/* ==========================================================================
   Service — loaded only on a Services post (single-wst-services.php).

   Version 4: four widgets, each assembled from parts the brand already has.
   .pr-crumbs, .pr-lockup, .pr-sectionhead, .pr-cta and .pr-prose come from
   prestige-components.css and are NOT restated. Lineage of each widget:

     hero     the home hero's washed photo + .pr-banner's crumbs/title scale
     intro    one centred column over the home watermark; red = the design's
              rule colour
     mosaic   service cards on ink: the photo framed, then the watermark's
              ring (small, round a line icon) and the name
     enquiry  Contact's dark detail card (credentials copy, the watermark's
              ring as seals, Site Settings details) beside the form

   Values come from prestige-tokens.css — no hex in this file.
   ========================================================================== */

/* ==========================================================================
   1. Photo hero
   ========================================================================== */
/* The wash never drops below 0.62 where words sit (the accessibility floor
   for white over this photography); it is lighter only at the top, behind
   the header. Compact: the title area only, as .pr-banner. */
[data-sv="hero"] {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* min-height is a FLOOR, not a fixed height: an empty-ish hero matches
     .pr-banner's size, and a hero with more in it grows (BugHerd #148).
     padding-top reserves the header's measured height so nothing in the hero
     can ever run under the logo — it is the clearance, which is why it is
     padding on the section and not a margin on the copy. Content is held at
     the bottom by justify-content: flex-end, so the hero grows downward. */
  box-sizing: border-box;
  min-height: clamp(420px, 31.25vw, 600px);
  padding-top: var(--pr-header-height, 0px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.84) 100%),
    var(--pr-sv-hero) center / cover no-repeat,
    var(--ink);
}

/* The page gutter alone, as every other page's banner (.pr-banner__inner):
   capping it at the content width pushed the title in on wide screens
   (BugHerd #148). */
[data-sv="herogrid"] {
  width: 100%;
  padding: clamp(16px, 1.5vw, 28px) var(--gutter-page) clamp(44px, 4.4vw, 84px);
}

/* Centred at every width, like the shared banner (BugHerd #155). */
[data-sv="herocopy"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 1.25vw, 24px);
}

[data-sv="heroeyebrow"] {
  color: var(--paper);
  margin: clamp(8px, 1.5vw, 28px) 0 -0.3em;
}

[data-sv="herotitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-xl);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--paper);
}
/* ALWAYS two lines, at every width (prestige_two_lines() splits the words
   evenly), so every service title stacks alike and none runs to three
   (BugHerd #116, #119, #148); a phone may still wrap a long line.
   It ran on ONE line from 992px up for a while, to pull the hero down to the
   other banners' 600px. That traded the client's stacking for a height match
   the hero does not owe: the hero sizes to its content above a floor, so a
   two-line title simply makes it taller. */
[data-sv="heroline"] { display: block; }
@media (min-width: 992px) {
  /* The section's padding-top already clears the header here. */
  [data-sv="heroeyebrow"] { margin-top: 0; }
}
/* The rule sits under the title; the column gap spaces it. */
[data-sv="herocopy"] .pr-rule { margin-top: 0; }

[data-sv="herolede"] {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: var(--quote);
  line-height: var(--leading-quote);
  color: var(--paper);
  text-wrap: pretty;
}

[data-sv="heroctas"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.4vw, 46px);
}
[data-sv="heroctas"] .pr-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

/* Credential chips: a hairline strip across the foot of the hero. */
[data-sv="chips"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
[data-sv="chip"] {
  flex: 1 1 0;
  min-width: 220px;
  padding: clamp(16px, 1.35vw, 26px) var(--gutter-header);
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: clamp(14px, 0.94vw, 18px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--paper);
}
[data-sv="chip"] + [data-sv="chip"] { border-left: 1px solid var(--hairline); }

/* ==========================================================================
   2. Intro — the About intro's shape
   ========================================================================== */

[data-sv="intro"] {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-section);
  padding: var(--section-pad) var(--gutter-page);
}

[data-sv="introgrid"] {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620fr) minmax(0, 880fr);
  gap: clamp(36px, 6.25vw, 120px);
  /* Stretch: the photo runs the copy's full height, top to bottom. */
  align-items: stretch;
}

/* Rounded and lifted like About's photos; a slow zoom on hover. */
[data-sv="intromedia"] {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-feature);
  background: var(--surface);
}
/* The copy sets the row's height; the photo fills it. height 0 +
   min-height 100% keeps the photo's own height out of the row sizing. */
[data-sv="intromedia"] img {
  display: block;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
}
[data-sv="intromedia"]:hover [data-shot] { transform: scale(1.04); }

[data-sv="introcopy"] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 1.88vw, 36px);
  min-width: 0;
}
[data-sv="introcopy"] > :not([data-sv="watermark"]) { position: relative; z-index: 1; }
[data-sv="introcopy"] .pr-rule { margin-top: 0; }

/* Behind the copy, centred on it — the homepage mark at its faint fill. */
[data-sv="watermark"] {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: clamp(300px, 28vw, 540px);
  aspect-ratio: 599.435 / 599;
  pointer-events: none;
}

[data-sv="introtitle"] {
  font-size: var(--display-md);
  line-height: 0.95;
  margin: 0;
}
/* The eyebrow gets air below it, as About's intro (BugHerd #81). */

/* The quote cut in the display face: large enough to lead, calm enough for
   a paragraph this long. */
[data-sv="lead"] {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.46vw, 28px);
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}

[data-sv="introbody"] {
  max-width: 760px;
}

/* ==========================================================================
   2b. Feature band — an optional second copy section
   ========================================================================== */
/* About's dark editorial band: heading and red rule left, copy right past a
   hairline, over the photo at a 0.88 wash (well over the 0.62 floor for
   white text). Points run beneath as icon tiles, each in the watermark's
   ring as on the service cards. */

[data-sv="feature"] {
  background:
    linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
    var(--pr-sv-feature) center / cover no-repeat,
    var(--ink);
  box-shadow: var(--shadow-band);
  padding: var(--section-pad) var(--gutter-page);
}

/* The heading spans the band; the grid below starts level. */
[data-sv="featurehead"] {
  max-width: var(--content-max);
  margin: 0 auto clamp(36px, 3.13vw, 60px);
}
[data-sv="featurehead"] .pr-lockup__eyebrow { color: var(--paper); }

[data-sv="featuretitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
}

[data-sv="featuregrid"] {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620fr) minmax(0, 900fr);
  gap: clamp(36px, 5.21vw, 100px);
  align-items: stretch;
}
[data-sv-nophoto] { grid-template-columns: minmax(0, 1fr); }

/* The photo runs the copy's height: its top and foot line up with it. */
[data-sv="featurephoto"] {
  /* Never shorter than 4:3, so a band with little copy (Garage) keeps the
     photo's proportions of a band with a lot (Decks). The ::before spacer
     and the img share one grid cell: the spacer sets the minimum, a taller
     copy column still stretches it. */
  display: grid;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-feature);
  background: var(--ink);
}
[data-sv="featurephoto"]::before {
  content: "";
  grid-area: 1 / 1;
  padding-top: 75%;
}
/* height 0 + min-height 100%: the copy (or the 4:3 spacer) sets the row,
   the photo fills it. */
[data-sv="featurephoto"] img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
}
[data-sv="featurephoto"]:hover [data-shot] { transform: scale(1.04); }

[data-sv="featurebody"] {
  min-width: 0;
  padding-left: clamp(36px, 5.21vw, 100px);
}
[data-sv-nophoto] [data-sv="featurebody"] {
  max-width: 900px;
  padding-left: 0;
  border-left: 0;
}

/* Light: the band ahead of the dark service cards. A faint grey ground (the
   watermark tint over paper) parts it from the white intro. Not a second
   photo-beside-text block: the photo runs as a wide strip under the heading,
   and the copy sits beneath it — the first paragraph as a serif lead on the
   left, the rest on the right past a hairline. */
[data-sv-light] {
  background: linear-gradient(var(--watermark), var(--watermark)), var(--paper);
  box-shadow: var(--shadow-section);
}
/* The light band centres its head, as the cards below do. */
[data-sv-light] [data-sv="featurehead"] { text-align: center; }
[data-sv-light] [data-sv="featurehead"] .pr-sectionhead { align-items: center; }
[data-sv-light] [data-sv="featurehead"] .pr-rule { margin-left: auto; margin-right: auto; }
[data-sv-light] [data-sv="featurehead"] .pr-lockup__eyebrow,
[data-sv-light] [data-sv="featuretitle"] { color: var(--ink); }
[data-sv-light] [data-sv="featuregrid"] { grid-template-columns: minmax(0, 1fr); }
[data-sv-light] [data-sv="featurephoto"]::before { padding-top: 22%; }
[data-sv-light] [data-sv="featurebody"] {
  max-width: none;
  padding-left: 0;
  border-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(36px, 5.21vw, 100px);
  align-content: start;
}
[data-sv-light] [data-sv="featurebody"] > * { grid-column: 2; margin-top: 0; }
[data-sv-light] [data-sv="featurebody"] > * + * { margin-top: clamp(22px, 2vw, 34px); }
[data-sv-light] [data-sv="featurebody"] > :first-child {
  grid-column: 1;
  grid-row: 1 / span 20;
  font-family: var(--font-display);
  font-size: var(--quote);
  line-height: var(--leading-quote);
}
[data-sv-light] [data-sv="featurebody"] > :nth-child(2) {
  margin-top: 0;
  padding-left: clamp(36px, 5.21vw, 100px);
}
[data-sv-light] [data-sv="featurebody"] > :nth-child(n+3) {
  padding-left: clamp(36px, 5.21vw, 100px);
  padding-top: clamp(22px, 2vw, 34px);
  margin-top: 0;
}

/* Blocks layout (an intro line, or headings in the body): the copy left as
   white blocks stacked (a new block at each h3, split in the template), the
   photo right, mirroring the intro's photo-left above. The photo stretches to
   the blocks' height, so the two columns start and end level. */
[data-sv-light] [data-sv-blocks] {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "body photo";
  row-gap: clamp(36px, 3.13vw, 60px);
  align-items: stretch;
}
[data-sv-blocks] [data-sv="featurephoto"] { grid-area: photo; }
/* An intro line runs under the heading, above both columns. */
[data-sv-light] [data-sv-blocks][data-sv-haslead] { grid-template-areas: "lead lead" "body photo"; }
[data-sv-light] [data-sv-blocks] [data-sv="featurephoto"]::before { padding-top: 75%; }
[data-sv="featurelead"] {
  grid-area: lead;
  max-width: 900px;
  color: var(--ink);
}
[data-sv="featurelead"] p {
  margin: 0;
  font-size: var(--body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}
[data-sv="featurelead"] p + p { margin-top: clamp(16px, 1.25vw, 24px); }
[data-sv="featurelead"] p:first-child {
  font-family: var(--font-display);
  font-size: var(--quote);
  line-height: var(--leading-quote);
}
[data-sv-light] [data-sv-blocks] [data-sv="featurebody"] {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.25vw, 24px);
}
/* :nth-child(n) out-weighs the no-intro column rules above. */
[data-sv-blocks] [data-sv="featurebody"] > :nth-child(n) {
  margin: 0;
  padding: clamp(24px, 2.08vw, 40px);
  border-left: 0;
  border-radius: var(--radius-sm);
  /* Ink with one red glow off the top corner, dark blocks on the light band.
     (A second, fainter glow at the foot read as brown; dropped.) */
  background:
    radial-gradient(80% 75% at 100% 0%, rgba(222, 38, 38, 0.20) 0%, rgba(222, 38, 38, 0) 60%),
    var(--ink);
  box-shadow: var(--shadow-feature);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
}
/* The red rule that opened each block is gone, with every other divider
   line on the page (BugHerd #158). */
[data-sv="featureblock"] h3 {
  margin: 0 0 clamp(16px, 1.25vw, 24px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--card-title);
  line-height: 1.15;
  text-wrap: balance;
  color: var(--paper);
}
[data-sv="featureblock"] > * + * { margin-top: clamp(14px, 1.2vw, 20px); }
[data-sv="featureblock"] > h3:first-child::after { margin: clamp(14px, 1.2vw, 20px) 0 0; }

/* Points only: the service cards' ground (ink + the red glows), centred
   head, no first-section gap. */
[data-sv-pointsonly] {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(222, 38, 38, 0.30) 0%, rgba(222, 38, 38, 0) 65%),
    radial-gradient(70% 60% at 0% 100%, rgba(222, 38, 38, 0.18) 0%, rgba(222, 38, 38, 0) 65%),
    var(--ink);
}
[data-sv-pointsonly] [data-sv="points"] { margin-top: 0; text-align: center; }
[data-sv-pointsonly] [data-sv="pointstitle"] {
  font-size: var(--display-md);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 0;
}
[data-sv-pointsonly] [data-sv="points"] > .pr-rule { margin: clamp(18px, 1.56vw, 30px) auto clamp(40px, 4.17vw, 80px); }
[data-sv-pointsonly] [data-sv="point"] { align-items: center; text-align: center; }

[data-sv="points"] {
  max-width: var(--content-max);
  margin: clamp(48px, 4.69vw, 90px) auto 0;
}
[data-sv="pointstitle"] {
  margin-bottom: clamp(20px, 1.67vw, 32px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--card-title);
  line-height: 1.15;
  color: var(--paper);
}
/* A wrapping row, centred: a short last row (a lone point) sits in the
   middle rather than hanging left. Five to a row on desktop. */
[data-sv="pointlist"] {
  --pr-point-gap: clamp(12px, 1.04vw, 20px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pr-point-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
[data-sv="point"] {
  flex: 0 0 calc((100% - 4 * var(--pr-point-gap)) / 5);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 1.67vw, 32px);
  /* Framed, not filled: the homepage testimonial frame's 2px paper line on
     the dark ground, which is how the theme sets anything on ink. Cards in
     this system are paper; a near-black fill was not one of its colours. */
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: var(--radius-sm);
  transition: border-color .4s ease;
}
/* Four to a row (8 points: two even rows) — desktop only; the stacked
   rules below take over at 991px. */
@media (min-width: 992px) {
  [data-sv-four] > [data-sv="point"] { flex-basis: calc((100% - 3 * var(--pr-point-gap)) / 4); }
  [data-sv-three] > [data-sv="point"] { flex-basis: calc((100% - 2 * var(--pr-point-gap)) / 3); }
}
/* Hover keeps the tile dark: the frame takes the accent and the ring fills
   with it and lifts a little. The accent is a
   rule and icon colour, never text, so the copy stays paper. */
[data-sv="point"]:hover { border-color: var(--accent); }
[data-sv="point"] [data-sv="cardring"] {
  border-color: var(--paper);
  transition: background-color .4s ease, border-color .4s ease, transform .45s cubic-bezier(.22, .61, .36, 1);
}
[data-sv="point"]:hover [data-sv="cardring"] { background: var(--accent); border-color: var(--accent); transform: translateY(-4px); }
[data-sv="pointtext"] {
  margin: 0;
  font-size: var(--body);
  line-height: var(--leading-card);
  color: var(--paper);
  text-wrap: pretty;
  transition: color .4s ease;
}

/* ==========================================================================
   3. Photo mosaic — a bento
   ========================================================================== */

/* Ink with two faint glows of the design's red, top-right and bottom-left:
   the accent as light, never as a fill. 0.30 / 0.18 keep it a tint — the
   cards are opaque, so their white text never sits on this. */
[data-sv="mosaic"] {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(222, 38, 38, 0.30) 0%, rgba(222, 38, 38, 0) 65%),
    radial-gradient(70% 60% at 0% 100%, rgba(222, 38, 38, 0.18) 0%, rgba(222, 38, 38, 0) 65%),
    var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 6.25vw, 120px);
}

[data-sv="mosaichead"] {
  max-width: calc(var(--content-max) + 2 * var(--gutter-page));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter-page) clamp(36px, 3.6vw, 70px);
}
[data-sv="mosaichead"] .pr-lockup__eyebrow { color: var(--paper); }

[data-sv="mosaictitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}

[data-sv="mosaichead"] .pr-rule { margin-top: clamp(14px, 1.25vw, 24px); }
/* Centred head, as the enquiry section's. */
[data-sv="mosaichead"] { justify-content: center; text-align: center; }
[data-sv="mosaichead"] .pr-sectionhead { align-items: center; }

/* Service cards: the photo in its own frame, then a footer with the line
   icon (the seal ring, small) and the name. Deliberately not the homepage's
   full-bleed overlay tiles. On ink, inside the content width.
   Hover singles one card out — it lifts with the feature shadow, its photo
   zooms ([data-shot]), the red underline draws under the name — while the
   others dim in place. Nothing reflows. */
[data-sv="cards"] {
  max-width: calc(var(--content-max) + 2 * var(--gutter-page));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.25vw, 24px);
  list-style: none;
  padding: 0 var(--gutter-page) clamp(64px, 6.25vw, 120px);
}

/* A card alone on the last row sits in the middle column. */
[data-sv="cardcell"]:last-child:nth-child(3n + 1) { grid-column: 2; }

[data-sv="cardcell"] {
  min-width: 0;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}

[data-sv="svcard"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  /* Opaque: the section's red glow is the BACKGROUND only and must not tint
     the cards. A 4% white lift baked over ink, not a translucent fill. */
  background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: box-shadow .5s ease, border-color .4s ease;
}

[data-sv="cardphoto"] {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--ink);
}
[data-sv="cardphoto"] > [data-shot] {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

[data-sv="cardfoot"] {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.04vw, 20px);
  padding: clamp(18px, 1.46vw, 28px) clamp(18px, 1.46vw, 28px);
}

/* The watermark's ring, at icon size — the seal motif from the card below. */
[data-sv="cardring"] {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 2.92vw, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  transition: background-color .4s ease, border-color .4s ease;
}
[data-sv="cardicon"] {
  width: 50%;
  height: 50%;
  color: var(--paper);
  transition: color .4s ease;
}

[data-sv="cardlabel"] {
  /* Sized to its words, so the hover underline is too. */
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--card-title);
  line-height: 1.1;
  color: var(--paper);
  text-wrap: balance;
}
/* A sentence-length label (VA & ADA's offerings) in the body face: the
   display serif at card size ran four lines deep. */
[data-sv-long] [data-sv="cardfoot"] { justify-content: center; text-align: center; }
[data-sv-long] [data-sv="cardlabel"] {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-card);
  text-transform: none;
}
/* The tiles' red underline, drawn in on hover. */
[data-sv="cardlabel"] {
  padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
  transition: background-size .5s cubic-bezier(.22, .61, .36, 1);
}

[data-sv="cardarrow"] {
  flex: none;
  margin-left: auto;
  width: 24px;
  height: 24px;
  color: var(--paper);
  opacity: 0.6;
  transform: translateX(-6px);
  transition: transform .45s ease, opacity .45s ease;
}

[data-sv="cardcell"]:hover,
[data-sv="cardcell"]:focus-within { transform: translateY(-6px); }
[data-sv="cardcell"]:hover [data-sv="svcard"],
[data-sv="cardcell"]:focus-within [data-sv="svcard"] {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-tile-hover);
}
[data-sv="cardcell"]:hover [data-shot],
[data-sv="cardcell"]:focus-within [data-shot] { transform: scale(1.06); }
[data-sv="cardcell"]:hover [data-sv="cardring"],
[data-sv="cardcell"]:focus-within [data-sv="cardring"] { background: var(--paper); border-color: var(--paper); }
[data-sv="cardcell"]:hover [data-sv="cardicon"],
[data-sv="cardcell"]:focus-within [data-sv="cardicon"] { color: var(--ink); }
[data-sv="cardcell"]:hover [data-sv="cardlabel"],
[data-sv="cardcell"]:focus-within [data-sv="cardlabel"] { background-size: 100% 2px; }
[data-sv="cardcell"]:hover [data-sv="cardarrow"],
[data-sv="cardcell"]:focus-within [data-sv="cardarrow"] { opacity: 1; transform: translateX(0); }

/* The rest dim while one is singled out. */
[data-sv="cards"]:has([data-sv="cardcell"]:hover) [data-sv="cardcell"]:not(:hover) { opacity: 0.55; }

/* The mosaic's tiles are .pr-tile (prestige-components.css). Only the
   arrow, which appears when a tile links, is this page's own. */
[data-sv="tilearrow"] {
  flex: none;
  width: clamp(26px, 1.9vw, 36px);
  height: clamp(26px, 1.9vw, 36px);
  color: var(--paper);
  transform: translateX(-6px);
  opacity: 0.7;
  transition: transform .45s ease, opacity .45s ease;
}

a[data-sv="tile"]:hover [data-sv="tilearrow"],
a[data-sv="tile"]:focus-visible [data-sv="tilearrow"] { transform: translateX(0); opacity: 1; }

/* ==========================================================================
   3b. FAQ — the widget library's Accordion / FAQ
   ========================================================================== */
/* On the light band's faint grey ground, so it parts from the white contact
   section below. One open at a time (service.js). Panels open on
   grid-template-rows 0fr → 1fr, as the widget does; they fold only once the
   script marks the list ready, so every answer reads with JS off. */

[data-sv="faq"] {
  background: linear-gradient(var(--watermark), var(--watermark)), var(--paper);
  box-shadow: var(--shadow-section);
  padding: var(--section-pad) var(--gutter-page);
}
[data-sv="faqhead"] {
  max-width: var(--content-max);
  margin: 0 auto clamp(36px, 3.13vw, 60px);
  text-align: center;
}
[data-sv="faqhead"] .pr-sectionhead { align-items: center; }
[data-sv="faqhead"] .pr-rule { margin-left: auto; margin-right: auto; }
[data-sv="faqtitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}

[data-sv="faqlist"] {
  /* The content width every other section's container uses. */
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cta);
  padding: clamp(10px, 1.2vw, 20px) clamp(24px, 2.6vw, 44px);
}
[data-sv="faqitem"] + [data-sv="faqitem"] { border-top: 1px solid var(--surface); }
[data-sv="faqq"] { margin: 0; }
[data-sv="faqbtn"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 68px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--quote);
  line-height: 1.35;
  color: var(--ink);
}
[data-sv="faqbtn"]:hover span,
[data-sv="faqbtn"]:focus-visible span { color: var(--accent); }
[data-sv="faqchev"] {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform 0.3s ease;
}
[data-sv="faqitem"][data-open] [data-sv="faqchev"] { transform: rotate(180deg); }

[data-sv="faqpanel"] {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
}
[data-sv="faqinner"] { min-height: 0; overflow: hidden; }
[data-sv="faqanswer"] {
  padding: 0 0 22px;
  color: var(--muted);
}
[data-sv="faqlist"][data-ready] [data-sv="faqitem"]:not([data-open]) [data-sv="faqpanel"] {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  [data-sv="faqpanel"],
  [data-sv="faqchev"] { transition: none; }
}

/* ==========================================================================
   4. Enquiry — credentials + contact card beside the form
   ========================================================================== */
/* The last section: it hangs straight onto the footer, so no closing card. */

[data-sv="enquiry"] {
  background: var(--paper);
  /* The page's last section: a shorter foot before the footer (BugHerd #108). */
  padding: var(--section-pad) var(--gutter-page) calc(var(--section-pad) * 0.6);
}

/* The section head: centred, as About's "Why PRS?". */
[data-sv="enquiryhead"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 4.17vw, 80px);
}
[data-sv="enquiryhead"] .pr-rule { margin-left: auto; margin-right: auto; }

[data-sv="enquirygrid"] {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620fr) minmax(0, 900fr);
  gap: clamp(24px, 3.13vw, 60px);
  align-items: stretch;
}

/* Contact's dark detail card. */
[data-sv="card"] {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.6vw, 30px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-feature);
  padding: clamp(32px, 3.6vw, 70px) clamp(24px, 3vw, 58px);
  color: var(--paper);
}
[data-sv="card"] .pr-lockup__eyebrow { color: var(--paper); }

/* The monogram, cropped off the card's right edge and barely visible:
   paper at 1.2% over ink. Decoration only, behind the content. */
[data-sv="card"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[data-sv="card"] > :not([data-sv="cardmark"]) { position: relative; z-index: 1; }
[data-sv="cardmark"] {
  position: absolute;
  top: 50%;
  right: -18%;
  z-index: 0;
  width: 78%;
  aspect-ratio: 599.435 / 599;
  transform: translateY(-50%);
  pointer-events: none;
}
[data-sv="cardmark"] svg { fill: var(--paper); opacity: 0.012; }

[data-sv="cardtitle"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 54px);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--ink);
}
[data-sv="card"] [data-sv="cardtitle"] { color: var(--paper); }

[data-sv="seals"] {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.6vw, 50px);
  list-style: none;
  margin: clamp(6px, 0.8vw, 16px) 0 0;
  padding: 0;
}

[data-sv="seal"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* The watermark's ring, at seal size. */
[data-sv="sealring"] {
  display: grid;
  place-items: center;
  width: clamp(88px, 6.25vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--paper);
  box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 7px var(--hairline);
  transition: background-color .35s ease, color .35s ease;
}
[data-sv="sealicon"] { width: 40%; height: 40%; color: var(--paper); }
[data-sv="seal"]:hover [data-sv="sealring"] { background: var(--paper); }
[data-sv="seal"]:hover [data-sv="sealicon"] { color: var(--ink); }

[data-sv="seallabel"] {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: var(--cta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}


/* Site Settings contact details, under a hairline. */
[data-sv="details"] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: auto 0 0;
  padding: clamp(18px, 1.6vw, 30px) 0 0;
  border-top: 1px solid var(--hairline);
}
[data-sv="details"]:empty { display: none; }
/* With no credentials copy above it the list IS the card: no divider, and
   the card centres it rather than leaving an empty block on top. */
/* :first-child alone stopped matching once the monogram became the card's
   first element; the list directly after it is the same case. */
[data-sv="details"]:first-child,
[data-sv="cardmark"] + [data-sv="details"] {
  margin: auto 0;
  padding-top: 0;
  border-top: 0;
}
[data-sv="detail"] {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  font-size: var(--body);
  line-height: var(--leading-card);
  color: var(--paper);
}
[data-sv="detail"] a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
[data-sv="detail"] a:hover { text-decoration-color: var(--accent); }
[data-sv="detailicon"] { width: 22px; height: 22px; color: var(--paper); margin-top: 1px; }

/* The form on paper, with the design's red as a rule along its top edge.
   Gravity Forms styling comes from components; GF does the layout. */
[data-sv="formcard"] {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.04vw, 20px);
  min-width: 0;
  padding: clamp(24px, 2.6vw, 50px);
  background: var(--paper);
  border: 1px solid var(--surface);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cta);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  [data-sv="enquirygrid"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

@media (max-width: 991px) {
  /* Titles and copy centre at tablet and below. */
  [data-sv="watermark"] { opacity: 0.5; }

  [data-sv="introgrid"] { grid-template-columns: minmax(0, 1fr); }
  [data-sv="intromedia"] {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  /* Stacked: a fixed crop again, nothing beside it to match. */
  [data-sv="intromedia"] img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  [data-sv="introcopy"] { align-items: center; text-align: center; }
  [data-sv="introcopy"] .pr-rule { margin-left: auto; margin-right: auto; }

  [data-sv="featuregrid"] { grid-template-columns: minmax(0, 1fr); }
  [data-sv="featurehead"] { text-align: center; }
  [data-sv="featurephoto"] {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  [data-sv="featurephoto"] img { height: 100%; }
  [data-sv="featurehead"] .pr-sectionhead { align-items: center; }
  [data-sv="featurehead"] .pr-rule { margin-left: auto; margin-right: auto; }
  [data-sv="featurebody"] {
    padding: clamp(28px, 4vw, 40px) 0 0;
    border-left: 0;
    text-align: center;
  }
  [data-sv-light] [data-sv="featurebody"] {
    display: block;
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 0;
    max-width: 760px;
    margin: 0 auto;
  }
  /* :nth-child(n) matches the desktop rules' weight so these win. */
  [data-sv-light] [data-sv="featurebody"] > :nth-child(n) { padding: 0; border-left: 0; }
  [data-sv-light] [data-sv="featurebody"] > :nth-child(n) + * { margin-top: clamp(22px, 2vw, 34px); }
  [data-sv-light] [data-sv="featurephoto"] { max-width: none; aspect-ratio: 2 / 1; }
  [data-sv-light] [data-sv-blocks] [data-sv="featurephoto"] { max-width: 640px; aspect-ratio: 4 / 3; }
  [data-sv-light] [data-sv-blocks] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "photo" "body";
    row-gap: clamp(28px, 4vw, 40px);
  }
  [data-sv-light] [data-sv-blocks][data-sv-haslead] { grid-template-areas: "lead" "photo" "body"; }
  [data-sv="featurelead"] { text-align: center; max-width: 760px; margin: 0 auto; }
  [data-sv-light] [data-sv-blocks] [data-sv="featurebody"] { display: flex; padding-top: 0; }
  [data-sv-blocks] [data-sv="featurebody"] > :nth-child(n) { padding: clamp(24px, 6vw, 32px); }
  [data-sv-blocks] [data-sv="featurebody"] > :nth-child(n)::before,
  [data-sv="featureblock"] > h3:first-child::after { margin-left: auto; margin-right: auto; }
  [data-sv-blocks] [data-sv="featurebody"] > :nth-child(n) + * { margin-top: 0; }
  [data-sv="pointstitle"] { text-align: center; }
  [data-sv="point"] {
    /* Three to a row; a short last row centres (the list is justify-content:
       center). */
    flex-basis: calc((100% - 2 * var(--pr-point-gap)) / 3);
    align-items: center;
    text-align: center;
  }

  [data-sv="mosaichead"] { justify-content: center; text-align: center; }
  [data-sv="mosaichead"] .pr-sectionhead { align-items: center; }
  [data-sv="cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns: a lone last card spans both and centres at one card's
     width. The three-column rule above is undone first. */
  [data-sv="cardcell"]:last-child:nth-child(3n + 1) { grid-column: auto; }
  [data-sv="cardcell"]:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(16px, 1.25vw, 24px)) / 2);
  }

  [data-sv="enquirygrid"] { grid-template-columns: minmax(0, 1fr); }
  [data-sv="card"] { text-align: center; align-items: center; }
  [data-sv="seals"] { justify-content: center; }
  [data-sv="details"] { align-self: stretch; align-items: center; }
  /* Each detail centres as a unit: icon beside its line(s). */
  [data-sv="detail"] {
    grid-template-columns: 24px auto;
    justify-content: center;
    text-align: center;
  }
  /* Centre the submit row with the stacked copy. The shared Gravity Forms
     block only centres it below 640px (where GF goes one column); this card
     is centred from 991px. Scoped to the services form card. */
  [data-sv="formcard"] .gform_wrapper.gravity-theme .gform_footer { justify-content: center; }
}

@media (max-width: 575px) {
  /* One column: a compact row per service — a small photo beside the name —
     so nine cards don't become a long scroll; no lift or dimming, which a
     tap would only jolt. */
  [data-sv="point"] { flex-basis: 100%; }
  [data-sv="cards"] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* One column: every card is alone on its row, so no centring. */
  [data-sv="cardcell"]:last-child:nth-child(2n + 1) { grid-column: auto; width: auto; justify-self: stretch; }
  [data-sv="svcard"] { flex-direction: row; align-items: stretch; }
  [data-sv="cardphoto"] { flex: 0 0 34%; aspect-ratio: auto; min-height: 88px; }
  [data-sv="cardfoot"] { flex: 1 1 auto; padding: 14px 16px; }
  [data-sv="cardlabel"] { font-size: 20px; }
  [data-sv="cardcell"]:hover,
  [data-sv="cardcell"]:focus-within { transform: none; }
  [data-sv="cards"]:has([data-sv="cardcell"]:hover) [data-sv="cardcell"]:not(:hover) { opacity: 1; }
  [data-sv="chip"] { min-width: 100%; }
  [data-sv="chip"] + [data-sv="chip"] { border-left: 0; border-top: 1px solid var(--hairline); }
}
