/* ============================================================
   TRACE — design tokens
   Source: Figma Style Guide (Variables), file R5oPcBv7fOxoUrs1kOr0Iy
   Names mirror Figma 1:1. All values globally tunable — change here,
   propagates everywhere. Copy language: English (UK).

   NOTE — Figma variable bugs found (dev file, many edits). Trust the
   VISUAL Style Guide + real components, not the raw variables:
   - Heading sizes H2/H3/H4: variables say 40/40/36, visual says 60/48/40 → using visual.
   - Radius variables say 0, but real buttons/inputs use 4px → using 4px.
   ============================================================ */

:root {
  /* ===== PRIMITIVES — Neutrals ===== */
  --c-white:            #ffffff;
  --c-neutral-lightest: #f2f2f2;
  --c-neutral-lighter:  #d9d9d9;
  --c-neutral-light:    #b4b3b4;
  --c-neutral:          #828183;
  --c-neutral-dark:     #504e52;
  --c-neutral-darker:   #1e1c20;
  --c-neutral-darkest:  #060308;

  /* ===== PRIMITIVES — Supernova (brand yellow) ===== */
  --c-supernova-lightest: #fef9e6;
  --c-supernova-lighter:  #fef3cd;
  --c-supernova-light:    #fed750;
  --c-supernova:          #fec605;
  --c-supernova-dark:     #cb9e04;
  --c-supernova-darker:   #654f02;
  --c-supernova-darkest:  #4c3b01;

  /* ===== OPACITY ===== */
  --o-ink-15:   #06030826;
  --o-ink-60:   #06030899;
  --o-white-20: #ffffff33;
  --o-white-60: #ffffff99;

  /* ===== SEMANTIC ALIASES ===== */
  --c-brand:      var(--c-supernova);       /* CTA / punch */
  --c-brand-deep: var(--c-supernova-dark);  /* hover — deeper, not brighter */
  --c-ink:        var(--c-neutral-darkest); /* body text + dark backgrounds */
  --c-page:       var(--c-white);
  --c-border:     var(--o-ink-15);

  /* ===== TYPOGRAPHY ===== */
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* responsive scale (mobile 375 -> desktop 1440) */
  --fs-h1: clamp(3rem,     2.21rem + 3.38vw, 5.25rem);  /* 48 -> 84 */
  /* desktop sizes = real mockup usage (variables). Style Guide PAGE shows 60/48/40
     but actual layouts render 40/40/36 -> mockups win. Mobile clamp added in mobile pass. */
  --fs-h2: 2.5rem;   /* 40 */
  --fs-h3: 2.5rem;   /* 40 */
  --fs-h4: 2.25rem;  /* 36 */
  --fs-h5: 2rem;     /* 32 */
  --fs-h6: 1.625rem; /* 26 */

  --fs-text-lg: 1.625rem; /* 26 */
  --fs-text-md: 1.25rem;  /* 20 */
  --fs-text:    1.125rem; /* 18 */
  --fs-text-sm: 1rem;     /* 16 */
  --fs-text-xs: 0.75rem;  /* 12 */

  --lh-h1: 1.1; --lh-h2: 1.2; --lh-h3: 1.2; --lh-h4: 1.3; --lh-h5: 1.3; --lh-h6: 1.4;
  --lh-body: 1.5;
  --ls-head: -0.01em; /* Figma letterSpacing -1 = -1% (e.g. -0.84px @84px) */

  --fw-light: 300; --fw-normal: 400; --fw-medium: 500;
  --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;

  /* ===== RADIUS / BORDER ===== */
  --radius:      4px; /* buttons, inputs, chips — verified on real components */
  --radius-none: 0;   /* images, section blocks — sharp per design */
  --border-width: 1px;

  /* ===== SHADOWS ===== */
  --shadow-xxsmall: 0 1px 2px 0 #0000000d;
  --shadow-xsmall:  0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;
  --shadow-small:   0 2px 4px -2px #0000000f, 0 4px 8px -2px #0000001a;
  --shadow-medium:  0 4px 6px -2px #00000008, 0 12px 16px -4px #00000014;
  --shadow-large:   0 8px 8px -4px #00000008, 0 20px 24px -4px #00000014;
  --shadow-xlarge:  0 24px 48px -12px #0000002e;
  --shadow-xxlarge: 0 32px 64px -12px #00000024;

  /* ===== LAYOUT (measured from Figma) ===== */
  --wrap:       1280px; /* container max (Header Container) */
  --page-px:    64px;   /* global page padding — navbar */
  --section-px: 112px;  /* section horizontal padding (large) */
  --section-py: 80px;   /* section vertical padding (medium) */
}

/* ===== SECTION SCHEMES — tonal rhythm. Apply on <section>. ===== */
.scheme-1     { --bg: var(--c-white);             --fg: var(--c-ink);   --border-c: var(--o-ink-15);   --tagline-bg: var(--c-neutral-lightest); } /* white  */
.scheme-2     { --bg: var(--c-supernova-lightest);--fg: var(--c-ink);   --border-c: var(--o-ink-15);   --tagline-bg: var(--c-white); } /* cream  */
.scheme-3     { --bg: var(--c-neutral-lightest);  --fg: var(--c-ink);   --border-c: var(--o-ink-15);   --tagline-bg: var(--c-white); } /* grey   */
.scheme-dark  { --bg: var(--c-ink);               --fg: var(--c-white); --border-c: var(--o-white-20); --tagline-bg: var(--o-white-20); } /* dark (added) */
.scheme-brand { --bg: var(--c-brand);             --fg: var(--c-ink);   --border-c: var(--o-ink-15);   --tagline-bg: var(--c-white); } /* yellow */
/* TRACE — static build styles. Tokens live in tokens.css.
   Each section maps to a future template-parts/blocks/<name>.php partial. */

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-text-sm);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nowrap { white-space: nowrap; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-head);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap;
  width: 1em; overflow: hidden; box-sizing: content-box;
  word-wrap: normal; direction: ltr; flex: none;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== BUTTONS / FIELDS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 0; font-weight: var(--fw-semibold);
  font-size: var(--fs-text-sm); line-height: 1.5; white-space: nowrap; transition: background .15s ease;
}
.btn--brand { background: var(--c-brand); border: 1px solid var(--c-brand); color: var(--c-neutral-darkest); padding: 16px 24px; }
.btn--brand:hover { background: var(--c-brand-deep); }
.btn--sm { padding: 6px 14px; }

/* ===== NAVBAR ===== */
.nav { background: var(--c-white); border-bottom: var(--border-width) solid var(--c-border); position: sticky; top: 0; z-index: 50; }
.nav__bar {
  display: flex; align-items: center; gap: 32px;
  height: 92px;
  padding-inline: var(--page-px);
}
.nav__logo { flex: none; }
.nav__logo img { height: 72px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: var(--fw-medium); font-size: var(--fs-text-sm); color: var(--c-ink);
}
.nav__link .material-symbols-rounded { font-size: 24px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--c-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link.is-active { font-weight: var(--fw-semibold); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; padding: 8px; font-weight: var(--fw-semibold); font-size: var(--fs-text-sm); }
.nav__phone .material-symbols-rounded { font-size: 20px; }
.nav__toggle { display: none; }

/* ===== MEGA MENU ===== */
.nav__item { position: static; display: flex; align-items: center; height: 92px; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-white); border-bottom: var(--border-width) solid var(--c-border);
  box-shadow: var(--shadow-large);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner {
  display: flex; gap: 40px; align-items: flex-start;
  max-width: 1312px; margin-inline: auto; padding: 20px var(--page-px) 40px;
}
.mega__cats { width: 373px; flex: none; }
.mega__cat {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  font-weight: var(--fw-bold); font-size: var(--fs-text-sm); border-radius: var(--radius);
}
.mega__cat:hover { background: var(--c-neutral-lightest); }
.mega__cat.is-active { background: var(--c-brand); border-radius: 0; }
.mega__panel { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.mega__heading { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-text-lg); }
.mega__cols { display: flex; gap: 40px; }
.mega__sub { flex: 1; }
.mega__sub li { border-bottom: var(--border-width) solid var(--c-neutral-lighter); }
.mega__sub li.is-active, .mega__sub li:hover { background: var(--c-neutral-lightest); }
.mega__sub a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: var(--fw-medium); font-size: var(--fs-text-sm);
}
.mega__sub .material-symbols-rounded { font-size: 24px; transition: transform .2s ease; }
.mega__sub li:hover .material-symbols-rounded { transform: translate(3px, -3px); }

/* ===== HERO (Header) ===== */
.hero {
  position: relative; isolation: isolate;
  padding: var(--section-py) var(--section-px);
  background: url("assets/hero-bg.webp") center / cover no-repeat;
  color: var(--c-white); text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; } /* Figma Header/65 overlay = 0.4, same across all page heroes */
/* Home hero background video — sits below the dark overlay (z-index -1) and above the fallback bg image. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.hero__inner { max-width: var(--wrap); margin-inline: auto; display: flex; justify-content: center; }
.hero__title { width: 920px; max-width: 100%; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.hero h1 { color: var(--c-white); overflow-wrap: break-word; }
.hero__lead { font-size: var(--fs-text-md); }

.reviews { display: inline-flex; align-items: center; gap: 16px; padding: 4px 12px; border-radius: var(--radius); max-width: 100%; flex-wrap: wrap; justify-content: center; }
.reviews__stars { height: 16px; width: auto; }
.reviews__score { font-weight: var(--fw-medium); font-size: var(--fs-text-md); }
.reviews__count { font-size: var(--fs-text-xs); }
.reviews__meta { display: inline-flex; align-items: baseline; gap: 16px; }

.accreds { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.accreds li { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-text-xs); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); flex: none; }

.finder { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.finder__title { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-text-lg); }
.finder__row { display: flex; gap: 16px; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.field {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 320px; flex: none; min-width: 0; padding: 17px; border: var(--border-width) solid var(--c-neutral);
  border-radius: var(--radius); background: var(--c-white); color: var(--c-neutral-dark);
  opacity: .9; font-size: var(--fs-text-sm);
}
.field > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field > .material-symbols-rounded { flex: none; }
/* Second finder dropdown while its options refresh after a category change: spinner + no clicks. */
.field.is-loading { pointer-events: none; color: var(--c-neutral); }
.field.is-loading > .material-symbols-rounded { animation: k360-spin .7s linear infinite; }
@keyframes k360-spin { to { transform: rotate(360deg); } }
.finder__cta { padding: 16px 24px; }

/* ===== SECTION SHELL ===== */
.section { padding: var(--section-py) var(--page-px); background: var(--bg, var(--c-white)); color: var(--fg, var(--c-ink)); }
.section > .container { max-width: var(--wrap); margin-inline: auto; }
.section--tight { padding-top: 0; }
.section-lead { max-width: 768px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.section--flush-b { padding-bottom: 20px; }  /* intro leads tight into the following content block (Figma Header/64 pb-20) */

/* ===== SHARED ===== */
.tagline { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: var(--radius); background: var(--tagline-bg, var(--c-neutral-lightest)); font-weight: var(--fw-semibold); font-size: var(--fs-text-sm); }
.section-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head__text { display: flex; flex-direction: column; gap: 24px; }
.lead { font-size: var(--fs-text-md); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.t-h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
.t-h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }

.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.btn--explore { display: inline-flex; align-items: center; background: var(--c-brand); color: var(--c-neutral-darkest); padding: 6px 12px; border-radius: 0; font-weight: var(--fw-medium); font-size: var(--fs-text); }
.btn--explore:hover { background: var(--c-brand-deep); }
.btn--text { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); font-size: var(--fs-text); }
.btn--text::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 3px;
  background: var(--c-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.btn--text .material-symbols-rounded { font-size: 24px; position: relative; top: 1px; transition: transform .2s ease; }

/* ===== MEDIA SPLIT (image + content) ===== */
.media-split { display: flex; gap: 80px; align-items: center; }
.media-split__media { flex: 1; }
.media-split__media img { width: 100%; aspect-ratio: 600 / 640; object-fit: cover; border-radius: var(--radius); }
.media-split__body { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }

/* ===== HOW WE WORK / FEATURE GRID ===== */
.how { display: flex; flex-direction: column; gap: 40px; }
.how__intro { max-width: 768px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.feature__icon { font-size: 48px; }
.feature__text { display: flex; flex-direction: column; gap: 16px; }
.feature p { font-size: var(--fs-text); }

/* ===== SERVICES (tabbed list) ===== */
.services .container { display: flex; flex-direction: column; gap: 80px; }
.services__head { max-width: 768px; }
.svc { display: flex; gap: 40px; align-items: flex-start; }
.svc__nav { width: 373px; flex: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; border-left: 1px solid var(--c-neutral-lighter); }
.svc__tab { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--c-neutral-lightest); border-radius: var(--radius); font-weight: var(--fw-bold); font-size: var(--fs-text); color: var(--c-ink); }
.svc__tab .material-symbols-rounded { font-size: 32px; }
.svc__tab.is-active { background: var(--c-brand); border-radius: 0; border-left: 2px solid var(--c-neutral); }
.svc__cards { display: none; flex: 1; gap: 40px; }
.svc__cards.is-active { display: flex; }
.svc__col { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.svc__card { display: flex; flex-direction: column; gap: 12px; padding: 16px 8px; border-bottom: 1px solid var(--c-neutral-lighter); color: var(--c-ink); transition: background .15s ease; }
.svc__card.is-active { background: var(--c-neutral-lightest); }
.svc__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc__card-head h3 { font-size: var(--fs-text); line-height: 1.5; }
.svc__card-head .material-symbols-rounded { font-size: 32px; transition: transform .2s ease; }
.svc__card p { font-size: var(--fs-text-sm); }

/* Services mobile accordion (hidden on desktop) */
.svc__accordion { display: none; width: 100%; flex-direction: column; gap: 8px; }
.svc__acc-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; cursor: pointer; text-align: left;
  border: 0; background: var(--c-neutral-lightest); border-radius: var(--radius);
  font-family: inherit; font-weight: var(--fw-bold); font-size: var(--fs-text); color: var(--c-ink);
}
.svc__acc-head .material-symbols-rounded { font-size: 32px; }
.svc__acc-name { flex: 1; min-width: 0; }
.svc__acc-chev { font-size: 24px; transition: transform .2s ease; }
.svc__acc-item.is-open > .svc__acc-head { background: var(--c-brand); border-radius: 0; border-left: 2px solid var(--c-neutral); }
.svc__acc-item.is-open .svc__acc-chev { transform: rotate(180deg); }
.svc__acc-panel { display: none; padding: 4px 8px 8px; }
.svc__acc-item.is-open > .svc__acc-panel { display: block; }

/* ===== HOW IT WORKS (yellow, vertical steps) ===== */
.how-it .container { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.how-it__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 24px; }
.how-it__head .lead { font-size: var(--fs-text); }
.how-it__body { display: flex; gap: 80px; align-items: center; width: 100%; }
.how-it__media { flex: 1; aspect-ratio: 1 / 1; }
.how-it__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.how-it__tabs { flex: 1; display: flex; flex-direction: column; gap: 48px; }
.how-it__tab { display: flex; flex-direction: column; gap: 16px; justify-content: center; min-height: 130px; padding-left: 32px; }
.how-it__tab.is-active { border-left: 1px solid var(--c-ink); }
.how-it__tab h3 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
.how-it__tab p { font-size: var(--fs-text); }

/* ===== CTA BAND (dark, image bg) ===== */
.cta-band { position: relative; isolation: isolate; padding: var(--section-py) var(--page-px); background: var(--c-ink); color: var(--c-white); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.cta-band .container { max-width: var(--wrap); margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.cta-band__inner { max-width: 768px; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.cta-band__text { display: flex; flex-direction: column; gap: 24px; }
.cta-band h2 { color: var(--c-white); }
.cta-band--brand { background: var(--c-brand); color: var(--c-neutral-darker); }
.cta-band--brand h2 { color: var(--c-neutral-darker); }
.btn--white { display: inline-flex; align-items: center; background: var(--c-white); border: 1px solid var(--c-white); color: var(--c-ink); padding: 6px 14px; border-radius: 0; font-weight: var(--fw-medium); font-size: var(--fs-text-sm); line-height: 1.5; }
.btn--white:hover { background: var(--c-neutral-lightest); }
.btn--ghost { display: inline-flex; align-items: center; border: 1px solid var(--o-white-60); color: var(--c-white); padding: 6px 14px; border-radius: 0; font-weight: var(--fw-medium); font-size: var(--fs-text-sm); line-height: 1.5; }
.btn--ghost:hover { background: var(--o-white-20); }

/* ===== NUMBERS (dark, stats) ===== */
.numbers { background: var(--c-neutral-darker); color: var(--c-white); }
.numbers .container { display: flex; gap: 80px; align-items: flex-start; }
.numbers__title { flex: 1; }
.numbers__title h2 { color: var(--c-white); }
.numbers__body { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.numbers__lead { font-size: var(--fs-text-md); }
.stats { display: flex; gap: 24px; padding: 8px 0; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-head); color: var(--c-brand); }
.stat p { font-size: var(--fs-text); }

/* ===== LOCATIONS ===== */
.locations .container { display: flex; gap: 80px; align-items: center; }
.locations__body { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.loc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; width: 100%; }
.loc-list li { padding: 8px 0; font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-head); }
.loc-list a, .area-col a, .area-links__item h3 { position: relative; display: inline-block; }
.loc-list a::after, .area-col a::after, .area-links__item h3::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 3px;
  background: var(--c-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.locations__media { flex: 1; aspect-ratio: 600 / 640; }
.locations__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ===== CASE STUDIES ===== */
.cases .container { display: flex; flex-direction: column; gap: 40px; }
.cases__head { max-width: 768px; }
.cases__list { display: flex; flex-direction: column; width: 100%; }
.case-row { display: flex; gap: 80px; align-items: center; padding: 48px 0; border-top: 1px solid var(--c-border); }
.case-row__media { flex: 1; }
.case-row__media img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; border-radius: var(--radius); }
.case-row__body { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.case-row__text { display: flex; flex-direction: column; gap: 8px; }
.case-row__text h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.case-row__text p { font-size: var(--fs-text); max-width: 560px; }
.case-row__text p a { text-decoration: underline; }

/* Clickable cards — title is a real stretched <a> (SEO: descriptive anchor, one link per card) */
.case-row, .blog-card { position: relative; }
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-more { pointer-events: none; }                       /* decorative — clicks fall through to the card link */
.case-row__text p a { position: relative; z-index: 2; }    /* inline links stay clickable above the stretched link */
.case-row__media, .blog-card__media { overflow: hidden; border-radius: var(--radius); }
.case-row__media img, .blog-card__media img { transition: transform .4s ease; }
.cases__foot { align-self: center; }
.btn--outline { display: inline-flex; align-items: center; border: 1px solid var(--c-border); padding: 6px 14px; border-radius: 0; font-weight: var(--fw-medium); font-size: var(--fs-text-sm); line-height: 1.5; color: var(--c-ink); }
.btn--outline:hover { background: var(--c-neutral-lightest); }

/* ===== ACCREDITATIONS ===== */
.accreds-band .container { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.accreds-band__title { max-width: 768px; text-align: center; }
.accreds-band__logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: 32px; width: 100%; }
.accreds-band__logos img { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }

/* ===== ABOUT US ===== */
.about .container { display: flex; gap: 80px; align-items: center; }
.about__body { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.about__prose { display: flex; flex-direction: column; gap: 16px; }
.about__prose p { font-size: var(--fs-text); }
.about__media { flex: 1; align-self: stretch; }
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); min-height: 400px; }
/* Service intro: image is a fixed 1:1 square (Figma 600×600), columns vertically centred */
.about--intro .about__media { align-self: center; aspect-ratio: 1 / 1; }
.about--intro .about__media img { min-height: 0; }

/* ===== METHODS (universal service-child block: alternating image + text rows) =====
   One .method per technique. Image left / text right; even rows auto-flip.
   Reusable for any service page (roof leaks, air leakage, etc.). → template-parts/blocks/service-methods-media.php */
.section--methods .container { display: flex; flex-direction: column; gap: 64px; } /* consistent gap between section head (title+lead) and the method rows */
.methods { display: flex; flex-direction: column; gap: 64px; }
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.method:nth-child(even) .method__media { order: 1; } /* flip: image to the right on alternate rows */
.method__media { align-self: stretch; }
.method__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; min-height: 320px; }
/* Video variant: a method row can carry a responsive 16:9 embed instead of a photo */
.method__media--video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-ink); }
.method__media--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.method__video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-ink); }
.method__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.method__caption { margin-top: 12px; font-size: var(--fs-text-sm); color: var(--c-muted); line-height: 1.5; }
.method__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.method__text p { font-size: var(--fs-text); line-height: 1.5; }

/* ===== PAGE HERO (interior page header — reusable) ===== */
.page-hero .container { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: var(--fs-text-sm); color: var(--o-white-60); }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb [aria-current] { color: var(--c-white); }

/* ===== TEAM (3 cards, centered, social icons + closing CTA) ===== */
.team .container { display: flex; flex-direction: column; gap: 80px; align-items: center; }
.team__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; width: 100%; }
.team-card { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--c-neutral-lighter); }
.team-card__meta { display: flex; flex-direction: column; }
.team-card__name { font-size: var(--fs-text-lg); font-weight: var(--fw-semibold); }
.team-card__role { font-size: var(--fs-text-md); }
.team-card__social { display: flex; gap: 14px; }
.team-card__social a { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
/* the shared social SVGs are white (built for the dark footer) — invert to dark glyphs on the light Team section (Figma: black icons) */
.team-card__social img { height: 20px; width: auto; filter: brightness(0); }
.team__cta { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.team__cta-text { display: flex; flex-direction: column; gap: 16px; }

/* ===== SERVICES OVERVIEW (parent page — grid of service tiles) ===== */
.services-overview .container { display: flex; flex-direction: column; gap: 48px; }
.services-overview__head { max-width: 768px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.svc-tile {
  position: relative; display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: 32px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}
.svc-tile__icon { font-size: 48px; color: var(--c-ink); }
.svc-tile__text { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-tile__text h3 { font-size: var(--fs-h6); line-height: var(--lh-h6); }
.svc-tile__text p { font-size: var(--fs-text-sm); }
.svc-tile .card-more { margin-top: auto; }

/* ===== TESTIMONIALS ===== */
.testimonials .container { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.testimonials__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; align-items: start; }
.review { display: flex; flex-direction: column; gap: 24px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; }
.review__stars { width: 116px; height: 18.89px; }
.review__quote { font-size: var(--fs-text-md); }
.review__author { display: flex; gap: 16px; align-items: center; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.review__name { font-weight: var(--fw-semibold); font-size: var(--fs-text); }

/* ===== BLOG ===== */
.section.blog .container { display: flex; flex-direction: column; gap: 80px; align-items: center; }
.blog__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.blog__head-text { display: flex; flex-direction: column; gap: 24px; }
.blog__grid { display: flex; gap: 32px; width: 100%; }
.blog-card { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.blog-card__media { width: 100%; aspect-ratio: 3 / 2; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.blog-card__body { display: flex; flex-direction: column; gap: 16px; }
.tag { display: inline-flex; align-self: flex-start; background: var(--c-supernova-lightest); border: 1px solid var(--c-border); padding: 4px 10px; border-radius: var(--radius); font-weight: var(--fw-semibold); font-size: var(--fs-text-sm); }
.blog-card__text { display: flex; flex-direction: column; gap: 8px; }
.blog-card__text h3 { font-size: var(--fs-h6); line-height: var(--lh-h6); }
.blog-card__text p { font-size: var(--fs-text); }
.blog__foot { align-self: center; }

/* ===== GET A QUOTE ===== */
.quote .container { display: flex; gap: 80px; align-items: center; }
.quote__info { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.quote__contact { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.quote__contact-row { display: flex; gap: 16px; align-items: center; font-size: var(--fs-text); }
.quote__contact-row.is-strong { font-weight: var(--fw-bold); font-size: var(--fs-text-md); }
.quote__contact-row .material-symbols-rounded { font-size: 24px; }
.quote__reviews { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.quote__reviews img { height: 16px; width: auto; }
.quote__reviews-score { display: flex; gap: 8px; align-items: baseline; }
.quote__reviews-score b { font-weight: var(--fw-bold); font-size: var(--fs-text-lg); }
.quote__reviews-score span { font-size: var(--fs-text-sm); }
.quote__form { flex: 1; display: flex; flex-direction: column; gap: 24px; background: var(--c-white); padding: 40px; border-radius: var(--radius); }
.field-row { display: flex; gap: 20px; }
.field-line { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--c-ink); background: transparent; padding: 8px 0; font: inherit; font-size: var(--fs-text-sm); color: var(--c-ink); min-height: 48px; }
.field-line--area { min-height: 140px; resize: vertical; width: 100%; }
.field-line:focus, .field-line:focus-visible { outline: none; border-bottom-color: var(--c-brand); border-bottom-width: 2px; padding-bottom: 7px; }
.field-check { display: flex; gap: 8px; align-items: center; font-size: var(--fs-text-sm); }
.field-check input { width: 18px; height: 18px; }
.btn--dark { display: inline-flex; align-items: center; align-self: flex-start; background: var(--c-neutral-darker); border: 1px solid var(--c-neutral-darker); color: var(--c-white); padding: 6px 14px; border-radius: 0; font-weight: var(--fw-medium); font-size: var(--fs-text-sm); line-height: 1.5; }
.btn--dark:hover { background: var(--c-ink); }

/* ===== CONTACT HERO (Header w/ form) ===== */
.contact-hero { position: relative; isolation: isolate; background: url("assets/contact-hero.webp") center / cover no-repeat; padding-inline: var(--section-px); }
.contact-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; }
.contact-hero .container { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.contact-hero__title { text-align: center; width: 100%; }
.contact-hero__cols { display: flex; gap: 80px; align-items: stretch; width: 100%; }
.contact-hero__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.contact-hero__details { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.contact-hero__row { display: flex; gap: 16px; align-items: flex-start; font-weight: var(--fw-bold); font-size: var(--fs-text-md); }
.contact-hero__row .material-symbols-rounded { color: var(--c-brand); font-size: 24px; flex: none; }
.contact-hero__row address { font-style: normal; }
/* dark form variant — reuses .quote__form / .field-line, recoloured for the dark overlay */
.contact-hero__form { flex: 1; min-width: 0; background: #060308b3; }
.contact-hero__form .field-line { border-bottom-color: var(--c-white); color: var(--c-white); }
.contact-hero__form .field-line::placeholder { color: var(--c-white); opacity: 1; }
.contact-hero__form .field-check { color: var(--c-neutral-lightest); }

/* ===== CONTACT MAP ===== */
.contact-map { line-height: 0; }
.contact-map iframe { width: 100%; height: 600px; border: 0; display: block; }

/* ===== KNOWLEDGE BASE ===== */
.kb-hero { text-align: center; padding-inline: var(--section-px); }
.kb-hero .container { display: flex; flex-direction: column; align-items: center; }
.kb-hero__inner { display: flex; flex-direction: column; gap: 40px; align-items: center; width: 920px; max-width: 100%; }
.kb-hero__sub { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.kb-hero__topic { font-weight: var(--fw-bold); font-size: var(--fs-text-lg); }
.kb-search { display: flex; gap: 16px; width: 100%; padding-top: 20px; }
.kb-search__input { flex: 1; min-width: 0; background: var(--c-white); border: 1px solid var(--c-neutral); border-radius: var(--radius); padding: 17px; font: inherit; font-size: var(--fs-text-sm); color: var(--c-neutral-dark); }
.kb-search__btn { display: inline-flex; gap: 12px; align-items: center; justify-content: center; background: var(--c-neutral-darker); border: 1px solid var(--c-neutral-dark); border-radius: 0; padding: 17px 25px; color: var(--c-white); font-weight: var(--fw-bold); font-size: var(--fs-text-sm); flex: none; }
.kb-search__btn .material-symbols-rounded { font-size: 24px; }

.kb-cats .container { display: flex; flex-direction: column; }
.kb-cats__row { display: flex; gap: 48px; align-items: stretch; padding: 20px 0 48px; border-bottom: 1px solid var(--o-ink-30, rgba(6,3,8,.3)); }
.kb-cats__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kb-cat { flex: 1; min-width: 0; background: var(--c-neutral-lightest); padding: 20px; display: flex; flex-direction: column; gap: 32px; }
.kb-featured .kb-cat { background: var(--c-white); }
.kb-cat__head { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px solid var(--c-neutral); }
.kb-cat__head .material-symbols-rounded { font-size: 32px; }
.kb-cat__head h3 { font-size: var(--fs-text); font-weight: var(--fw-bold); }
.kb-cat__list { display: flex; flex-direction: column; }
.kb-cat__link { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-neutral-lighter); font-size: 14px; letter-spacing: -.28px; color: var(--c-ink); }
.kb-cat__link span:first-child { flex: 1; min-width: 0; }
.kb-cat__link .material-symbols-rounded { font-size: 18px; flex: none; margin-top: 2px; transition: transform .2s ease; }
.kb-cat__more { align-self: flex-start; padding: 14px 0 6px; font-size: 14px; font-weight: var(--fw-bold); letter-spacing: -.28px; color: var(--c-ink); }
.kb-cat__empty { padding: 8px 0; font-size: 14px; color: var(--c-neutral-dark); }
.kb-featured .container { display: flex; flex-direction: column; gap: 40px; }
.kb-featured__head { max-width: 768px; margin-inline: auto; text-align: center; }
.kb-featured__row { display: flex; gap: 48px; align-items: stretch; }

/* KB article (sidebar nav + content) */
.kb-article .container { display: flex; gap: 48px; align-items: flex-start; }
.kb-article__nav { width: 394px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.kb-nav__item { background: var(--c-neutral-lightest); padding: 20px; }
.kb-nav__head { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 0; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--c-ink); }
.kb-nav__head .kb-nav__folder { font-size: 32px; flex: none; }
.kb-nav__head h3 { flex: 1; min-width: 0; font-size: var(--fs-text); font-weight: var(--fw-bold); }
.kb-nav__head .kb-nav__chev { font-size: 24px; flex: none; transition: transform .2s ease; }
.kb-nav__item.is-open .kb-nav__head { border-bottom: 2px solid var(--c-neutral); }
.kb-nav__item.is-open .kb-nav__chev { transform: rotate(180deg); }
.kb-nav__list { display: none; flex-direction: column; padding-top: 20px; }
.kb-nav__item.is-open .kb-nav__list { display: flex; }
.kb-nav__list .kb-cat__link.is-current { font-weight: var(--fw-bold); }
/* "Show remaining" — extra links stay in the DOM (SEO-crawlable), hidden with CSS and revealed by a
   pure-CSS checkbox toggle. The toggle input is the first child of the list so `~` reaches both the
   extra links and the label. */
.kb-cat__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.kb-nav__list .kb-cat__link.is-extra { display: none; }
.kb-cat__toggle:checked ~ .kb-cat__link.is-extra { display: flex; }
.kb-cat__more { cursor: pointer; }
.kb-cat__more--hide { display: none; }
.kb-cat__toggle:checked ~ .kb-cat__more .kb-cat__more--show { display: none; }
.kb-cat__toggle:checked ~ .kb-cat__more .kb-cat__more--hide { display: inline; }
.kb-article__body { flex: 1; min-width: 0; padding-top: 20px; }
.kb-article__body .prose h1 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-head); }

@media (hover: hover) {
  .kb-cat__link:hover { color: var(--c-brand-deep); }
  .kb-cat__link:hover .material-symbols-rounded { transform: translate(3px, -3px); }
  .kb-cat__more:hover { color: var(--c-brand-deep); }
}
@media (max-width: 991px) {
  .kb-cats__row, .kb-featured__row { flex-wrap: wrap; gap: 20px; }
  .kb-cats__row .kb-cat, .kb-featured__row .kb-cat { flex: 1 1 45%; }
  .kb-article .container { flex-direction: column; }
  .kb-article__nav { width: 100%; }
}
@media (max-width: 560px) {
  .kb-search { flex-direction: column; }
  .kb-cats__row .kb-cat, .kb-featured__row .kb-cat { flex-basis: 100%; }
}

/* ===== FOOTER ===== */
.footer { background: var(--c-neutral-darker); color: var(--c-white); }
.footer .container { display: flex; flex-direction: column; gap: 80px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__heading { font-weight: var(--fw-semibold); font-size: var(--fs-text); margin-bottom: 16px; }
.footer__col-contact { width: 240px; display: flex; flex-direction: column; gap: 40px; }
.footer__social-icons { display: flex; gap: 8px; }
.footer__social-icons a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.footer__social-icons img { width: auto; height: 22px; }
.footer__contact { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.footer__contact-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-text-sm); }
.footer__contact-row .material-symbols-rounded { font-size: 20px; }
.footer__col-services { width: 600px; }
.footer__services-cols { display: flex; justify-content: space-between; gap: 24px; }
.footer__links { display: flex; flex-direction: column; }
.footer__links a { padding: 11px 0; font-size: var(--fs-text-sm); line-height: 1.6; }
.footer__col-menu { width: 240px; }
.footer__credits { display: flex; flex-direction: column; gap: 32px; }
.footer__divider { border: 0; border-top: 1px solid var(--o-white-20); width: 100%; }
.footer__credits-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__logo { width: 420px; max-width: 100%; height: auto; }
.footer__legal { display: flex; gap: 24px; align-items: center; font-size: var(--fs-text-xs); flex-wrap: wrap; }
.footer__legal-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ===== INNER-PAGE HERO (banner: bg image + reviews + actions) — reuses .hero ===== */
.hero--inner::before { background: rgba(0,0,0,.6); }
.hero--inner .hero__title { gap: 32px; }
.hero--blog { background-image: url("assets/blog-hero.webp"); }
.hero--cases { background-image: url("assets/case-hero.webp"); }
.hero--case-study { background-image: url("assets/case-study-hero.webp"); }
.cases--archive .cases__head { max-width: 768px; margin-inline: auto; align-items: center; text-align: center; }
.hero--post { background-image: url("assets/blog-post-hero.webp"); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; }
.btn--ghost { border: 1px solid var(--o-white-60); color: var(--c-white); padding: 6px 14px; }
.hero .breadcrumb { justify-content: center; color: #ffffffe6; }
.hero .breadcrumb .material-symbols-rounded { font-size: 16px; }
.breadcrumb__cat { color: var(--c-brand); }
.post-meta { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; max-width: 100%; color: #ffffffe6; font-size: var(--fs-text-sm); }
.post-meta li { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .material-symbols-rounded { font-size: 18px; }

/* ===== BLOG ARCHIVE (3-col grid + pagination) — reuses .blog / .blog-card ===== */
.blog--archive .container { gap: 48px; }
.blog__grid--archive { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 64px; }
.blog__grid--archive .blog-card { height: 100%; }
.blog__grid--archive .card-more { margin-top: auto; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination__page, .pagination__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-weight: var(--fw-medium); font-size: var(--fs-text-sm); color: var(--c-ink);
}
.pagination__page:hover, .pagination__arrow:hover { background: var(--c-neutral-lightest); }
.pagination__page.is-active { background: var(--c-brand); border-color: var(--c-brand); font-weight: var(--fw-semibold); }
.pagination__page.is-active:hover { background: var(--c-brand-deep); }
.pagination__arrow .material-symbols-rounded { font-size: 20px; }
.pagination__arrow.is-disabled { opacity: .4; pointer-events: none; }
.pagination__ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; color: var(--c-neutral); }

/* ===== POST BODY (single article) ===== */
.post__container { max-width: 960px; margin-inline: auto; display: flex; flex-direction: column; gap: 48px; }
.prose { display: flex; flex-direction: column; gap: 24px; }
.prose h2 { font-size: var(--fs-h5); line-height: var(--lh-h5); margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: var(--fs-text); line-height: var(--lh-body); }
.prose__figure { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }
.prose__figure img { width: 100%; aspect-ratio: 96 / 50; object-fit: cover; border-radius: var(--radius); }
.prose__figure figcaption { padding-left: 10px; border-left: 2px solid var(--c-brand); font-size: var(--fs-text-sm); color: var(--c-neutral-dark); }
/* Inline images in imported post content span the full column width (scoped to bare content
   images so it never overrides .prose__figure img). */
.prose > img, .prose > p > img { display: block; width: 100%; height: auto; margin: 0; border-radius: var(--radius); }
.prose__quote { padding-left: 22px; border-left: 2px solid var(--c-brand); font-size: var(--fs-text-md); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.post__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--c-border); }
.post__share { display: flex; flex-direction: column; gap: 16px; }
.post__share-title { font-weight: var(--fw-semibold); font-size: var(--fs-text); }
.post__share-btns { display: flex; gap: 8px; }
/* Figma: borderless, dark glyphs (the footer social SVGs are #F2F2F2 / white — invert to dark here) */
.post__share-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.post__share-btn .material-symbols-rounded { font-size: 22px; }
.post__share-btn img { width: auto; height: 20px; filter: brightness(0); }
.post__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
/* Figma "Tag" component: grey #f2f2f2, bordered, sharp corners (not the cream home-card chip) */
.post__tags .tag { background: var(--c-neutral-lightest); border-radius: 0; }

/* ===== LOCATIONS — area directory (parent) + area links (single) ===== */
.hero--locations { background-image: url("assets/locations.webp"); }
.areas .container { display: flex; flex-direction: column; gap: 48px; }
.areas__head { margin-bottom: 32px; }
.areas__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 48px; padding: 20px 0 48px; border-bottom: 1px solid var(--c-border); }
.areas__row--last { border-bottom: 0; padding-bottom: 0; }
.area-col { display: flex; flex-direction: column; gap: 16px; }
.area-col__list { display: flex; flex-direction: column; gap: 4px; }
.area-col__list a { font-size: var(--fs-text); }

.area-links .container { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.area-links__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; row-gap: 32px; width: 100%; }
.area-links__item h3 { font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-head); }
.area-links__foot { align-self: flex-start; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  :root { --section-px: 24px; --page-px: 20px; --section-py: 48px; } /* mobile vertical rhythm = Figma padding-section-small (48), not desktop 80 */
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .hero__title { width: 100%; }
  .finder__row { flex-direction: column; align-items: stretch; width: 100%; }
  .field, .finder__cta { width: 100%; min-width: 0; }
  .reviews { flex-direction: column; gap: 8px; }
  .media-split { flex-direction: column; gap: 40px; align-items: stretch; } /* Figma mobile: image on top, text below */
  .how__intro { max-width: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .services .container { gap: 40px; }
  .svc { flex-direction: column; align-items: stretch; gap: 0; }
  .svc__nav, .svc .svc__cards.is-active, .svc .svc__cards { display: none; }
  .svc__accordion { display: flex; }
  .how-it__body { flex-direction: column; gap: 40px; } /* Figma mobile: media on top, tabs below */
  .numbers .container { flex-direction: column; gap: 40px; }
  .locations .container { flex-direction: column; gap: 40px; }
  .stats { flex-direction: column; }
  .case-row { flex-direction: column; gap: 32px; align-items: stretch; }
  .cases--archive .case-row__media img { aspect-ratio: 335 / 135; } /* Figma mobile: short wide banner crop */
  .about .container { flex-direction: column-reverse; gap: 40px; align-items: stretch; } /* markup is body-then-media; reverse puts image on top (Figma mobile) */
  .methods { gap: 40px; }
  .method { grid-template-columns: 1fr; gap: 24px; }
  .method:nth-child(even) .method__media { order: 0; } /* keep image on top for every row on mobile */
  .method__media img { min-height: 0; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .accreds-band__logos { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .accreds-band__logos img { max-height: 130px; }
  .blog__grid { flex-direction: column; }
  .blog__grid--archive { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .post__foot { flex-direction: column; align-items: flex-start; }
  .areas__row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .area-links__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .quote .container { flex-direction: column; gap: 40px; align-items: stretch; }
  .contact-hero__cols { flex-direction: column; gap: 40px; }
  .contact-map iframe { height: 360px; }
  .field-row { flex-direction: column; }
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__col-contact, .footer__col-services, .footer__col-menu { width: 100%; }
  .footer__services-cols { flex-direction: column; gap: 0; }
  .footer__credits-row { flex-direction: column; align-items: center; text-align: center; }
  .footer__legal { flex-direction: column-reverse; align-items: center; gap: 16px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .loc-list { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .blog__grid--archive { grid-template-columns: 1fr; }
  .area-links__grid { grid-template-columns: 1fr; }
  /* directory: stacked to 1 col, the desktop per-ROW dividers land in arbitrary spots —
     switch to an even per-REGION divider so the line has a consistent rhythm */
  .areas .container { gap: 0; }
  .areas__row { display: block; border-bottom: 0; padding: 0; }
  .area-col { padding: 24px 0; border-bottom: 1px solid var(--c-border); }
  .areas__row--last .area-col:last-child { border-bottom: 0; }
}

/* ============================================================
   INTERACTIONS (app.js)
   ============================================================ */
.nav { transition: box-shadow .2s ease; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--o-ink-15), 0 8px 24px rgba(6,3,8,.06); }

/* Mega — touch/keyboard open + chevron */
.nav__item.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.nav__link .material-symbols-rounded { transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .material-symbols-rounded { transform: rotate(180deg); }
.nav__link, .mega__cat, .svc__tab, .how-it__tab { cursor: pointer; }

/* Hero finder dropdown */
.finder__row { position: relative; }
.field.is-filled span:first-child { color: var(--c-ink); }
.field__menu {
  position: absolute; z-index: 40; display: none;
  max-height: 320px; overflow-y: auto;
  background: var(--c-white); border: 1px solid var(--o-ink-15);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(6,3,8,.14);
}
.field__menu.is-open { display: block; }
.field__menu button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 16px; background: none; border: 0;
  border-bottom: 1px solid var(--o-ink-15);
  font: inherit; font-size: var(--fs-text-sm); color: var(--c-ink);
}
.field__menu button:last-child { border-bottom: 0; }
.field__menu button:hover { background: var(--c-neutral-lightest); }

/* Mobile drawer */
.no-scroll { overflow: hidden; }
.nav__drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  width: min(420px, 86vw); height: 100dvh;
  display: flex; flex-direction: column; gap: 24px;
  padding: 88px 24px 32px; background: var(--c-white);
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s ease, visibility .28s ease;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: none; visibility: visible; }
.nav__overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(6,3,8,.5);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }
.nav__drawer-links { display: flex; flex-direction: column; }
.nav__drawer-links > a, .nav__drawer-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; text-align: left; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--o-ink-15); background: none;
  font-family: var(--font-head); font-weight: var(--fw-bold);
  font-size: var(--fs-text-lg); color: var(--c-ink);
}
.nav__drawer-acc .material-symbols-rounded { transition: transform .2s ease; }
.nav__drawer-acc.is-open .material-symbols-rounded { transform: rotate(180deg); }
.nav__drawer-sub { display: none; flex-direction: column; padding: 4px 0 8px 12px; }
.nav__drawer-sub.is-open { display: flex; }
.nav__drawer-sub a { padding: 10px 0; font-size: var(--fs-text-sm); color: var(--c-ink); }
.nav__drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.nav__drawer-actions .btn { justify-content: center; }
@media (min-width: 992px) {
  .nav__drawer, .nav__overlay { display: none; }
}

/* ============================================================
   HOVER — pointer-only (skipped on touch so taps don't stick)
   ============================================================ */
.nav__link, .nav__phone, .footer a { transition: opacity .15s ease, color .15s ease; }
@media (hover: hover) {
  .svc__tab:hover { background: var(--c-brand); }
  .svc__card:hover { background: var(--c-neutral-lightest); }
  .svc__card:hover .svc__card-head .material-symbols-rounded { transform: translate(3px, -3px); }
  .btn--text:hover .material-symbols-rounded { transform: translateX(4px); }
  .nav__link:hover::after, .btn--text:hover::after, .loc-list a:hover::after,
  .area-col a:hover::after, .area-links__item:hover h3::after { transform: scaleX(1); }
  .case-row:hover .card-more::after, .blog-card:hover .card-more::after, .svc-tile:hover .card-more::after { transform: scaleX(1); }
  .case-row:hover .card-more .material-symbols-rounded, .blog-card:hover .card-more .material-symbols-rounded, .svc-tile:hover .card-more .material-symbols-rounded { transform: translateX(4px); }
  .case-row:hover .case-row__media img, .blog-card:hover .blog-card__media img { transform: scale(1.04); }
  .svc-tile:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--o-white-20); }
  .post__share-btn:hover { background: var(--c-neutral-lightest); }
  .nav__phone:hover { color: var(--c-brand-deep); }
  .footer a:hover { color: var(--c-brand); }
  .footer__social-icons a:hover { opacity: .7; }
  .related-card:hover .related-card__media img { transform: scale(1.04); }
  .related-card:hover .card-more::after { transform: scaleX(1); }
  .related-card:hover .card-more .material-symbols-rounded { transform: translateX(4px); }
}

/* ============================================================
   SERVICE-SINGLE — flush-top intro, text-cols, faq, related
   → template-parts/blocks/{intro,text-cols,faq,related}.php
   ============================================================ */
.section--flush-t { padding-top: 48px; }
.section--tight { padding-top: 0; }

/* Two-column text block (What causes / Standards) */
.text-cols { display: flex; gap: 112px; align-items: flex-start; }
.text-cols__head { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.text-cols__tag { display: inline-flex; align-items: center; gap: 8px; }
.text-cols__optional { color: var(--c-brand); font-size: var(--fs-text-sm); font-weight: var(--fw-semibold); }
.text-cols__body { flex: 1; }
.text-cols__head p { font-size: var(--fs-text); line-height: 1.5; }
.text-cols--eyebrow .text-cols__body { padding-top: 52px; } /* drop list level with the H2, below the eyebrow tag */
.text-cols__body ul { list-style: disc; padding-left: 27px; }
.text-cols__body li { font-size: var(--fs-text); line-height: 1.5; }

/* FAQ accordion */
.faq .container { display: flex; flex-direction: column; gap: 80px; align-items: center; }
.faq__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.faq__list { max-width: 768px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.faq__q {
  display: flex; gap: 24px; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 20px; background: var(--c-neutral-lightest); border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--fs-text-md); line-height: 1.4; color: var(--c-ink);
}
.faq__q .material-symbols-rounded { font-size: 32px; flex: none; transition: transform .2s ease; }
.faq__item.is-open .faq__q { border-bottom: 1px solid var(--o-ink-15); }
.faq__item.is-open .faq__q .material-symbols-rounded { transform: rotate(180deg); }
.faq__a { display: none; padding: 12px 20px 24px; }
.faq__a p { font-size: var(--fs-text); line-height: 1.5; }
.faq__item.is-open .faq__a { display: block; }

/* Related services grid */
.related .container { display: flex; flex-direction: column; gap: 80px; align-items: center; }
.related__head { max-width: 768px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; width: 100%; }
.related-card { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.related-card__media { width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-card__text { display: flex; flex-direction: column; gap: 8px; }
.related-card__text h3 { font-size: var(--fs-h6); line-height: var(--lh-h6); }
.related-card__text p { font-size: var(--fs-text); line-height: 1.5; }

/* ============================================================
   CASE STUDY SINGLE — narrow intro, media-splits, service chips
   → template-parts/blocks/{case-intro,case-split,case-services}.php
   ============================================================ */
.section--narrow > .container { max-width: 1024px; }

/* Intro + "Our approach" (Layout/210) */
.case-intro__body { display: flex; flex-direction: column; gap: 48px; width: 100%; }
.case-intro__lead { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.case-intro__lead p { font-size: var(--fs-text-md); line-height: 1.5; }
.case-intro__approach { border-top: 1px solid rgba(6,3,8,.4); padding-top: 48px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; width: 100%; }
.case-intro__icon { font-size: 48px; }
.case-intro__approach-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 544px; }
.case-checks { display: flex; flex-direction: column; gap: 16px; }
.case-checks li { display: flex; gap: 10px; align-items: center; font-weight: var(--fw-bold); font-size: var(--fs-text-md); line-height: 1.5; }
.case-checks .material-symbols-rounded { font-size: 32px; flex: none; }

/* Media-split (What we found / The outcome) — narrow 1024, 472+472 */
.case-split__body { display: flex; gap: 80px; align-items: stretch; width: 100%; }
.case-split--rev .case-split__body { flex-direction: row-reverse; }
.case-split__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 21px; }
.case-split__prose { display: flex; flex-direction: column; gap: 20px; }
.case-split__prose p, .case-split__prose li { font-size: var(--fs-text-md); line-height: 1.5; }
.case-split__prose ul { list-style: disc; padding-left: 30px; display: flex; flex-direction: column; gap: 0; }
.case-split__media { flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; }
.case-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Services used chips */
.case-services__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; width: 100%; }
.case-services__row { display: flex; gap: 20px; width: 100%; }
.case-chip { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--c-neutral-lightest); border-radius: var(--radius); font-weight: var(--fw-bold); font-size: var(--fs-text); color: var(--c-ink); }
.case-chip .material-symbols-rounded { font-size: 32px; flex: none; }
.case-chip.is-primary { background: var(--c-brand); border-radius: 0; }

/* FAQ "still have questions" footer + subtitle */
.faq__sub { font-size: var(--fs-text-md); line-height: 1.5; }
.faq__more { max-width: 560px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.faq__more h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.faq__more p { font-size: var(--fs-text-md); line-height: 1.5; }

/* Service CTA (CTA/27): centred heading + subtext + button on brand */
.svc-cta .container { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.svc-cta__inner { max-width: 768px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.svc-cta__inner .lead { font-size: var(--fs-text-md); }

/* Service hero (Header/65): bg image + 2-col content|form, reuses contact-hero form styling */
.svc-hero { position: relative; isolation: isolate; background: url("assets/roof-hero.webp") center / cover no-repeat; }
.svc-hero--location { background-image: url("assets/location-hero.webp"); }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; }
.svc-hero .container { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.svc-hero__title { text-align: center; color: var(--c-white); width: 100%; }
.svc-hero__cols { display: flex; gap: 80px; align-items: stretch; width: 100%; }
.svc-hero__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; color: var(--c-white); align-items: flex-start; }
.svc-hero__lead { font-size: var(--fs-text-md); }
.svc-hero__checks { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.svc-hero__check { display: flex; gap: 16px; align-items: flex-start; font-size: var(--fs-text); }
.svc-hero__check .material-symbols-rounded { color: var(--c-brand); font-size: 24px; flex: none; }
.svc-hero__phone { display: flex; gap: 10px; align-items: center; }
.svc-hero__phone-ico { display: inline-flex; padding: 6px; background: var(--c-brand); border-radius: var(--radius); }
.svc-hero__phone-ico .material-symbols-rounded { font-size: 32px; color: var(--c-ink); display: block; }
.svc-hero__phone a { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: 32px; letter-spacing: -0.32px; color: var(--c-white); line-height: 1.3; }
.svc-hero__form { flex: 1; min-width: 0; background: #060308b3; }
.svc-hero__form .field-line { border-bottom-color: var(--c-white); color: var(--c-white); }
.svc-hero__form .field-line::placeholder { color: var(--c-white); opacity: 1; }
.svc-hero__form select.field-line { color: var(--c-white); }
.svc-hero__form select.field-line option { color: #000; }
.svc-hero__form .field-check { color: var(--c-neutral-lightest); }

@media (max-width: 991px) {
  .text-cols { flex-direction: column; gap: 40px; }
  .text-cols--eyebrow .text-cols__body { padding-top: 0; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .faq .container, .related .container { gap: 40px; }
  .svc-hero__cols { flex-direction: column; gap: 40px; }
  .case-split__body, .case-split--rev .case-split__body { flex-direction: column-reverse; gap: 40px; } /* image on top */
  .case-services__row { flex-direction: column; }
}
@media (max-width: 560px) {
  .related__grid { grid-template-columns: 1fr; }
}

/* ===== ACOUSTIC CONSULTANTS DIRECTORY (parent listing + profile) ===== */
.dir-hero { text-align: center; }
.dir-hero__inner { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dir-hero__lead { font-size: var(--fs-text); line-height: var(--lh-body); }
.dir-hero .kb-search { width: 100%; max-width: 560px; }
/* Directory index hero — compact: smaller title, tighter padding, narrower lead */
.dir-hero--index { padding-top: 56px; padding-bottom: 56px; }
.dir-hero--index h1 { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); line-height: 1.08; } /* 40 -> 56 */
.dir-hero--index .dir-hero__lead { max-width: 620px; }

.dir-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.dir-group__count { color: var(--c-neutral-dark); font-size: var(--fs-text-sm); font-weight: var(--fw-medium); }
.dir-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dir-tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dir-tile:hover { border-color: var(--c-brand); box-shadow: 0 10px 28px rgba(6,3,8,.08); transform: translateY(-2px); }
.dir-tile__name { font-weight: var(--fw-bold); font-size: var(--fs-text); color: var(--c-ink); }
.dir-tile__city { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-text-sm); color: var(--c-neutral-dark); }
.dir-tile__city .material-symbols-rounded { font-size: 16px; color: var(--c-brand-deep); }
.dir-tile__desc { font-size: var(--fs-text-sm); line-height: 1.5; color: var(--c-neutral-dark); }
.dir-group__foot { margin-top: 32px; text-align: center; }

/* Profile (child) */
/* Shared listing/category hero — identical breadcrumb + title position so it never jumps between pages */
.dir-hero--profile, .dir-hero--category { text-align: left; padding-top: 48px; padding-bottom: 48px; }
.dir-hero--profile .dir-hero__inner, .dir-hero--category .dir-hero__inner { align-items: flex-start; max-width: var(--wrap); gap: 16px; }
.dir-hero--profile h1, .dir-hero--category h1 { font-size: var(--fs-h2); line-height: 1.1; }
.dir-hero .breadcrumb { color: var(--c-neutral-darker); justify-content: flex-start; }
.dir-hero .breadcrumb a:hover { color: var(--c-neutral-darkest); text-decoration: underline; }
.dir-hero .breadcrumb .material-symbols-rounded { font-size: 16px; }
.dir-hero__meta { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); }
.dir-hero__meta .material-symbols-rounded { font-size: 20px; }
.dir-profile .container { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.dir-profile__body .prose h2 { margin-top: 0; }
.dir-profile__body .dir-card__back { margin-top: 32px; }
.dir-card__back { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-medium); font-size: var(--fs-text-sm); }
.dir-card__back .material-symbols-rounded { font-size: 18px; }
/* the imported profile body carries its own at-a-glance list + map iframe 1:1 from live — keep the map tidy in the reading column */
.dir-profile__body .prose iframe { display: block; width: 100%; max-width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius); }
/* Independent-profile disclaimer — the only fully-italic paragraph: smaller, muted, tighter */
.dir-profile__body .prose p:has(> em:only-child) { margin-top: 0; font-size: var(--fs-text-sm); line-height: 1.5; color: var(--c-neutral-dark); }

/* Profile sidebar: sticky Trace services CTA + same-city internal links (never a CTA to the listed firm) */
.dir-profile__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.dir-cta { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); }
.dir-cta__title { font-size: var(--fs-text); font-weight: var(--fw-bold); line-height: 1.3; }
.dir-cta__text { font-size: var(--fs-text-sm); line-height: 1.5; color: var(--c-neutral-dark); }
.dir-cta .btn { align-self: flex-start; }
.dir-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); }
.dir-card__title { font-size: var(--fs-text); font-weight: var(--fw-bold); }
.dir-links { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.dir-links li { border-bottom: 1px solid var(--c-border); }
.dir-links li:last-child { border-bottom: 0; }
.dir-links a { display: block; padding: 10px 0; font-size: var(--fs-text-sm); color: var(--c-ink); line-height: 1.4; }
.dir-links__all a { color: var(--c-brand-deep); font-weight: var(--fw-medium); }
@media (hover: hover) { .dir-links a:hover { color: var(--c-brand-deep); } }

@media (max-width: 900px) {
  .dir-profile .container { grid-template-columns: 1fr; }
  .dir-profile__aside { position: static; }
}

/* Related directory listings (bottom of a profile) — reuses .dir-tiles/.dir-tile */
.dir-related .container { display: flex; flex-direction: column; gap: 32px; }
.dir-related__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
/* white "View all" sits on the grey related band — hover to brand so it never blends into the bg */
.dir-related .btn--white:hover { background: var(--c-brand); border-color: var(--c-brand); }

/* Category / type landing (all listings of one type) */
.dir-hero--category .dir-hero__lead { max-width: 720px; }
.dir-list .container { display: flex; flex-direction: column; gap: 32px; }
.dir-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.dir-toolbar__count { font-weight: var(--fw-semibold); }
.dir-toolbar__count strong { font-weight: inherit; color: inherit; }
.dir-toolbar__sort { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-text-sm); color: var(--c-neutral-dark); }
.dir-toolbar__sort select { font: inherit; font-size: var(--fs-text-sm); padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white); color: var(--c-ink); }

/* Video gallery — client-managed grid (page-video-gallery.php) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; width: 100%; }
.video-card { display: flex; flex-direction: column; gap: 16px; }
.video-card__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-neutral-darkest); }
.video-card__frame iframe, .video-card__frame video, .video-card__frame embed, .video-card__frame object { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__frame video { object-fit: cover; background: var(--c-neutral-darkest); }
.video-card__meta { display: flex; flex-direction: column; gap: 4px; }
.video-card__title { font-weight: var(--fw-semibold); color: var(--c-ink); }
.video-card__caption { font-size: var(--fs-text-sm); color: var(--c-neutral-dark); }
.video-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 560px; margin-inline: auto; padding: 40px 0; }
.video-empty__ico { font-size: 64px; line-height: 1; color: var(--c-neutral-light); }
.video-empty__title { font-size: var(--fs-h4, 2.25rem); }
.video-empty__text { color: var(--c-neutral-dark); }
.video-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* Imported (live 1:1) service body — readable prose column under the hero */
.svc-body__content { max-width: 820px; margin-inline: auto; }
.svc-body__content > h1:first-child { display: none; } /* hero already carries the title */
.svc-body__content h2 { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-head); }
.svc-body__content ul, .svc-body__content ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.svc-body__content li { font-size: var(--fs-text); line-height: var(--lh-body); }
.svc-body__content a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Privacy-policy link inside the CF7 consent checkbox — make it read as a link */
.wpcf7-acceptance a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; font-weight: var(--fw-medium); }
.wpcf7-acceptance a:hover { text-decoration: none; }

/* Footer "Menu" column rendered from the WP footer menu (ul, not the flat nav) */
ul.footer__links { list-style: none; margin: 0; padding: 0; }
ul.footer__links li { margin: 0; }

/* CF7 response message — CF7 clips .wpcf7-response-output via aria-hidden and doesn't
   always un-clip it, so force it visible & styled once the form carries a state class. */
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  position: static; width: auto; height: auto; clip: auto; overflow: visible;
  margin: 20px 0 0; padding: 12px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: var(--fs-text-sm); line-height: 1.5;
}
.wpcf7 form.sent .wpcf7-response-output { background: rgba(70,180,80,.18); border-color: #46b450; color: #eafff0; }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { background: rgba(220,70,70,.18); border-color: #e05a5a; color: #ffe0e0; }
/* Inline per-field validation tips */
.wpcf7 .wpcf7-not-valid-tip { color: #ffd4d4; font-size: var(--fs-text-sm); margin-top: 6px; }
.wpcf7 .wpcf7-not-valid { border-color: #e05a5a !important; }
