/**
 * Jewellery service-area pages — the components the `.pjf` system does not
 * already carry.
 *
 * Scope: the jewellery pages under /service-areas/. Enqueued from
 * functions.php alongside css/jewellery-service.css, which supplies the
 * tokens, type scale, buttons, tables, timeline, gallery, chips, FAQ and CTA.
 * This file adds only what that design does not have: the service card grid,
 * the key-facts strip, the alternating problem rows, the floor-plan column
 * and its zone list, the small "also for this client" card, and the contact
 * block in the closing section.
 *
 * EVERY selector is prefixed with `.pjf`, for the same reason jewellery-
 * service.css gives: the design is written against bare elements, and the
 * page body wraps its sections in <div class="pjf">. Do not add an unscoped
 * selector here.
 *
 * The page hero is NOT styled here. It is the site's own pa-hero component
 * (css/area-pages.css), authored into the page body outside .pjf, so these
 * pages keep the same hero language as every other service area.
 *
 * Fixed image heights carry !important for the reason recorded in
 * jewellery-service.css: an inline sheet fires
 * `.post_content img{height:auto!important}` at page content, which beats any
 * specificity and otherwise renders these tiles at their natural height.
 */

/* ---- service cards -------------------------------------------------------
   Three cards in a row, each image/title/description/link on one baseline.
   The link is pushed to the bottom with margin-top:auto, so cards with
   different copy lengths still end together.

   The 280px basis is set by the container, not the card: the theme's content
   column is 1000px wide here, so three cards plus two 24px gaps have to fit
   in 952px. At 320px they did not, and the third card dropped to a row of
   its own and stretched across it. `.row--4` is for the one page with four
   services, where 420px gives two tidy rows of two instead of three and a
   stretched orphan. */
.pjf .svc{flex:1 1 280px;border:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column}
.pjf .svc img{width:100%;height:220px!important;object-fit:cover}
.pjf .svc .in{padding:26px 26px 30px;display:flex;flex-direction:column;gap:12px;flex:1}
.pjf .svc h3{font-size:23px}
.pjf .svc p{margin:0;color:var(--muted);font-size:15px}
.pjf .svc .num{margin:0}
.pjf .svc .goldlink{margin-top:auto;font-family:Poppins,sans-serif;font-size:12px;letter-spacing:.14em;text-transform:uppercase;text-decoration:none}

.pjf .row--4>.svc{flex:1 1 420px}

/* ---- key facts ----------------------------------------------------------
   A bordered strip of figures. The borders are drawn on the container's top
   and left and on each cell's right and bottom, so wrapped rows never double
   up a line. */
.pjf .facts{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.pjf .facts>div{flex:1 1 210px;padding:26px 24px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.pjf .facts--4>div{flex:1 1 400px}  /* four figures: two tidy rows of two,
   rather than three across and one stretched underneath. */
.pjf .facts strong{display:block;font-family:Fraunces,Georgia,serif;font-weight:500;font-size:30px;color:var(--gold);line-height:1.1;margin-bottom:8px}
.pjf .facts p{margin:0;font-size:14px;color:var(--soft)}

/* ---- problem rows -------------------------------------------------------
   Image and text side by side, the image changing sides every other row.
   Below 860px they stack and the order is reset, so the image always leads. */
.pjf .prob{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:44px 0;border-top:1px solid var(--line)}
.pjf .prob:nth-of-type(even) .pimg{order:2}
.pjf .prob img{width:100%;height:330px!important;object-fit:cover}
.pjf .prob h3{font-size:23px}
.pjf .prob p{color:var(--muted);margin:14px 0 0}
.pjf .prob .num{margin-bottom:8px}

/* ---- floor plan ---------------------------------------------------------- */
.pjf .plan{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:start}
.pjf .plan svg{width:100%;max-width:520px;background:var(--deep);border:1px solid var(--line)}
.pjf .zones{display:flex;flex-direction:column;gap:14px}
.pjf .zones>div{border-left:2px solid var(--gold);background:var(--panel);padding:16px 20px}
.pjf .zones b{color:#fff;display:block}
.pjf .zones span{font-size:14px;color:var(--muted)}

/* ---- "also for this client" card ----------------------------------------- */
.pjf .mini{display:flex;gap:20px;align-items:center;margin-top:24px;border:1px solid var(--line);padding:14px;background:var(--bg)}
.pjf .mini img{flex:0 0 150px;width:150px;height:100px!important;object-fit:cover}
.pjf .mini b{color:#fff}

/* ---- contact block -------------------------------------------------------
   A <dl> of labelled cells, stacked one per row.
   They were a row of three to begin with. In this section the block shares
   the width with a 420px image, so three cells across left each one about
   160px of usable space: "8:00 AM to 6:00 PM" broke over two lines, and the
   third cell wrapped to a row of its own and stretched. Stacked, every cell
   has the full column, and the dividing line runs along the bottom. */
.pjf .contact{margin:6px 0 0;display:flex;flex-wrap:wrap;border:1px solid var(--line)}
.pjf .contact>div{flex:1 1 100%;padding:18px 24px;border-bottom:1px solid var(--line)}
.pjf .contact>div:last-child{border-bottom:0}
/* The first draft set the label at 11px/--muted and the value at 14px, which
   was the smallest type on the page and the hardest to read of anything a
   customer actually needs: the opening hours and the phone number. Label and
   value are both a step larger and a step brighter, and the value that
   matters most in each cell is gold at 18px. */
.pjf .contact dt{font-size:12px;letter-spacing:.14em;color:var(--soft)}
.pjf .contact dd{margin:8px 0 0;font-size:16px;color:var(--text);line-height:1.55}
.pjf .contact b{font-weight:600;color:var(--gold);font-size:18px}

@media(max-width:860px){
  .pjf .prob,.pjf .plan{grid-template-columns:1fr}
  .pjf .prob:nth-of-type(even) .pimg{order:0}
}


/* ---- dark button on the gold CTA band ------------------------------------
   The closing CTA sits on a gold panel, where .btn-gold would be gold on
   gold. The !important matches the link-colour overrides at the end of
   jewellery-service.css, which otherwise repaint it. */
.pjf .btn-dark{background:var(--bg);color:var(--gold)!important}
.pjf .btn-dark:hover{color:var(--head)!important}

/* ---- wpautop -------------------------------------------------------------
   The page body is authored as HTML, but wpautop still runs over it: a block
   that opens with an inline element (<span class="num">) gets an empty <p>
   inserted before the first heading, and the trailing link in a service card
   is wrapped in a <p> of its own. The empty paragraphs are hidden (a
   display:none element is not a flex item, so it takes no gap either), and
   the card's bottom margin moves onto that wrapper <p>, which is now the
   flex item margin-top:auto has to act on. Without this the three card links
   sit on two different lines. */
.pjf p:empty{display:none}
.pjf .svc .in>p:last-child{margin:auto 0 0}

/* The closing CTA sits on the gold panel. Its heading inherits the panel's
   dark colour, but the paragraph is repainted #ECEAE3 by the theme's own
   body-copy rule, which left near-white text on gold. */
.pjf .cta p{color:var(--bg)!important}
