/* ==========================================================================
   Mannion Lawyers — Family Law for Fathers
   Design system: "Eucalyptus light"
   - Paper:   #F6F7F4  cool, daylight white
   - Ink:     #1C2B25  green-charcoal
   - Green:   #1F5B46  primary action / brand
   - Gold:    #D9A441  decorative only (line motif, stars) — never text
   Type: Newsreader (display) / Figtree (body)
   ========================================================================== */

:root {
  --paper: #f6f7f4;
  --mist: #ebefe9;
  --ink: #1c2b25;
  --ink-soft: #44544c;
  --green: #1f5b46;
  --green-deep: #14402f;
  --gold: #d9a441;
  --line: #dde2da;
  --white: #ffffff;

  --font-display: "Newsreader", georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 43, 37, 0.05), 0 8px 28px rgba(28, 43, 37, 0.07);
  --container: 72rem;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchored sections clear of sticky header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); }

img, svg { max-width: 100%; height: auto; display: block; }

em.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* Visible focus for keyboard users — WCAG 2.4.7 */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* Small uppercase label that introduces each section */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 64, 47, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 44px; width: auto; }
@media (max-width: 800px) { .brand-logo { height: 38px; } }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.primary-nav ul:not(.dropdown) {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav a {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.nav-cta { white-space: nowrap; padding: 0.65rem 1.3rem; font-size: var(--text-sm); }

/* ---------- Services mega menu ----------
   Disclosure pattern: "Services" stays a real link; the chevron button
   toggles the panel (aria-expanded). JS also opens on hover for mouse users. */
.has-mega { display: flex; align-items: center; gap: 0.15rem; }

.mega-toggle {
  background: none;
  border: 0;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
}
.mega-toggle svg { transition: transform 0.2s ease; }
.has-mega.open .mega-toggle svg { transform: rotate(180deg); }

.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -18px rgba(28, 43, 37, 0.18);
}
.has-mega.open .mega-panel { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .has-mega.open .mega-panel { animation: mega-in 0.18s ease; }
  @keyframes mega-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 2rem;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 1rem;
  align-content: start;
}

.mega-item {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.mega-item:hover { background: var(--mist); }
.mega-item strong { display: block; font-size: var(--text-sm); }
.mega-item span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.mega-all {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0.5rem 0 0 0.85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}
.mega-all:hover { text-decoration: underline; }

.mega-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  font-size: var(--text-sm);
}
.mega-aside .eyebrow { margin-bottom: 0.4rem; }
.mega-aside p { color: var(--ink-soft); }
.mega-aside .btn { margin-top: 0.9rem; padding: 0.6rem 1.2rem; font-size: var(--text-sm); }
.mega-aside .btn-primary,
.mega-aside .btn-primary:hover,
.mega-aside .btn-primary:visited { color: var(--white); }

/* Mobile: the panel folds into the slide-down nav as an expandable group */
@media (max-width: 800px) {
  .has-mega { flex-wrap: wrap; }
  .has-mega > a { flex: 1; }
  .mega-toggle { padding: 0.75rem 0.6rem; }
  .mega-panel {
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    flex-basis: 100%;
  }
  .mega-grid { display: block; padding-block: 0 0.75rem; }
  .mega-links { display: block; }
  .mega-item { padding: 0.55rem 1rem; }
  .mega-item span { display: none; } /* keep the mobile list scannable */
  .mega-all { display: inline-block; margin: 0.4rem 0 0.75rem 1rem; }
  .mega-aside { display: none; } /* the sticky CTA already covers mobile conversion */
}

/* ---------- Resources simple dropdown ---------- */
.has-dropdown { display: flex; align-items: center; gap: 0.15rem; position: relative; }

.dropdown-toggle {
  background: none;
  border: 0;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
}
.dropdown-toggle svg { transition: transform 0.2s ease; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -8px rgba(28, 43, 37, 0.15);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 100;
  margin: 0;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
}
.dropdown li a:hover { color: var(--green); background: var(--mist); }

@media (prefers-reduced-motion: no-preference) {
  .has-dropdown.open .dropdown { animation: mega-in 0.18s ease; }
}

@media (max-width: 800px) {
  .has-dropdown { flex-wrap: wrap; }
  .has-dropdown > a { flex: 1; }
  .dropdown-toggle { padding: 0.75rem 0.6rem; }
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    flex-basis: 100%;
  }
  .dropdown li a { padding: 0.55rem 1rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem 1.25rem 1.5rem;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .primary-nav a { display: block; padding: 0.75rem 0.25rem; font-size: 1.05rem; }
  .nav-cta-wrap { display: none; }
}

/* ---------- Hero (full-bleed image with overlaid copy) ---------- */
.hero {
  position: relative;
  isolation: isolate; /* keeps the scrim's z-index local */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* favour the family (centre-right) when cropped */
}

/* Light, paper-toned scrim: opaque-ish at the left where the text sits,
   fading to clear over the family at the right. A faint top-to-bottom wash
   lifts legibility under the header and above the trust bar. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(246, 247, 244, 0.97) 0%,
      rgba(246, 247, 244, 0.92) 30%,
      rgba(246, 247, 244, 0.65) 52%,
      rgba(246, 247, 244, 0.15) 72%,
      rgba(246, 247, 244, 0) 100%),
    linear-gradient(180deg,
      rgba(246, 247, 244, 0.5) 0%,
      rgba(246, 247, 244, 0) 25%);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 32rem + 8vw, 44rem);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.hero-copy { max-width: 38rem; }

.hero-copy h1 {
  /* Soft halo so the headline holds even over the lighter part of the scrim */
  text-shadow: 0 1px 0 rgba(246, 247, 244, 0.8);
}
.hero .lede {
  margin-top: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}
/* Secondary button over the image gets a solid paper fill so it never
   floats ambiguously against the photo */
.btn-on-image {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-color: rgba(28, 43, 37, 0.18);
}
.btn-on-image:hover { background: #fff; border-color: var(--ink); }

/* The signature line under the copy */
.hero-thread {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  max-width: 40rem;
  padding: 0;
}

/* On narrow screens the photo moves to a stacked banner above the copy,
   so the text sits on solid paper and is never fighting the image. */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero-bg {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 16 / 10;
  }
  .hero-scrim {
    /* a gentle bottom fade only, blending the banner into the copy below */
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(246,247,244,0) 0%, var(--paper) 100%);
  }
  .hero-inner {
    min-height: 0;
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
  }
  .hero-copy h1 { text-shadow: none; }
}
.hero h1 .amp {
  font-style: italic;
  color: var(--green);
}
.hero-thread svg { width: 100%; overflow: visible; }

/* Centered placement (used in the video section, no longer in the hero) */
.thread-centered {
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.thread-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.thread-dot { fill: var(--green); }

/* Labels live in HTML (not SVG) so they stay readable at every viewport size */
.thread-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* The destination rolls through the three things the firm protects.
   Pure CSS: each word holds, then rolls up to the next; the last frame is a
   duplicate of the first so the loop is seamless. Static under reduced motion. */
.thread-roller {
  display: block;
  height: 1.5em;
  overflow: hidden;
  text-align: right;
  color: var(--green);
}
.roller-track { display: block; }
.roller-track > span {
  display: block;
  height: 1.5em;
  line-height: 1.5em;
}

@media (prefers-reduced-motion: no-preference) {
  .roller-track { animation: roll 9s ease infinite; }
  @keyframes roll {
    0%, 28%   { transform: translateY(0); }      /* your kids */
    33%, 61%  { transform: translateY(-1.5em); } /* good financial outcome */
    66%, 94%  { transform: translateY(-3em); }   /* peace of mind */
    100%      { transform: translateY(-4.5em); } /* back to start */
  }
}

@media (prefers-reduced-motion: no-preference) {
  .thread-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1.6s ease-out 0.4s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Trust bar under the hero */
.trust-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background: var(--white);
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px;
}
.trust-item {
  padding: 1.4rem 1rem;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.trust-item span { font-size: var(--text-xs); color: var(--ink-soft); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--mist); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Cards (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.card h3 { font-size: 1.3rem; margin: 0; }
.card p { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }
.card .card-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--green);
}

/* Cards with a photo: image sits flush at the top, copy padded below */
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img > :not(.card-img) { margin-inline: 1.6rem; }
.card.has-img h3 { margin-top: 1.3rem; }
.card.has-img .card-link { margin-bottom: 1.6rem; }
.card.has-img p { margin-bottom: 0; }
.card-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mist);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card.has-img:hover .card-img img { transform: scale(1.04); }

/* Two-column section: media beside copy (used on the about teaser) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}
.card:hover .card-link::after { transform: translateX(4px); }
.card-link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

/* ---------- Process (1, 2, 3 with connecting thread) ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.process-thread {
  position: absolute;
  top: 1.7rem;
  left: 12%;
  right: 12%;
  height: 3px;
  z-index: 0;
}
.process-thread svg { width: 100%; height: 24px; overflow: visible; }

.step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }
.step-num {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  border: 4px solid var(--paper);
}
.section-alt .step-num { border-color: var(--mist); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-soft); font-size: var(--text-sm); }

@media (max-width: 720px) {
  .process { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-thread { display: none; }
}

/* ---------- Video (click-to-load facade) ----------
   The third-party player iframe is only injected when the visitor presses
   play, so it never weighs on initial load. aspect-ratio reserves the space
   up front — zero layout shift when the player appears. */
.video-section { padding-top: clamp(2rem, 3vw, 3.5rem); padding-bottom: 0; }
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 52rem;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(217, 164, 65, 0.18), transparent 55%),
    linear-gradient(160deg, var(--green-deep), var(--ink));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.1rem;
  box-shadow: var(--shadow);
}
.video-play {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--green-deep);
  padding-left: 0.3rem; /* optically centre the triangle */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-play:hover { transform: scale(1.07); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.video-caption {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: var(--text-sm);
  margin: 0;
}
.video-caption span { color: rgba(255, 255, 255, 0.55); font-weight: 400; }
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote h3 {
  font-size: 1.2rem;
  font-style: italic;
}
.quote p { color: var(--ink-soft); font-size: var(--text-sm); flex: 1; }
.quote footer { font-weight: 700; font-size: var(--text-sm); margin-top: 1rem; }
.quote footer::before { content: "— "; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0.25rem 1.4rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Locations ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
}
.location {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.location h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.location p { font-size: var(--text-sm); color: var(--ink-soft); font-style: normal; }

/* ---------- Big CTA band ---------- */
.cta-band {
  background: var(--green-deep);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255, 255, 255, 0.82); margin-inline: auto; }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--green-deep);
  margin-top: 1.8rem;
}
.cta-band .btn-primary:hover { background: var(--mist); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.cta-band .cta-sub { margin-top: 1rem; font-size: var(--text-sm); color: rgba(255,255,255,0.7); }
.cta-band a:not(.btn) { color: var(--white); }

/* ---------- Prose pages (about, services, privacy) ---------- */
.prose { max-width: 44rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; }
.service-block .answer-first {
  font-size: var(--text-lg);
  font-weight: 500;
}
@media (max-width: 720px) {
  .service-block { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 3px solid rgba(31, 91, 70, 0.35);
  outline-offset: 0;
  border-color: var(--green);
}
.field-hint { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.3rem; }
.field-error { color: #9b2c2c; font-size: var(--text-xs); font-weight: 600; margin-top: 0.3rem; display: none; }
.invalid .field-error { display: block; }
.invalid input, .invalid textarea { border-color: #9b2c2c; }

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  font-weight: 400;
}
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--green); }

.form-success {
  display: none;
  background: var(--mist);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.form-success.show { display: block; }

/* ---------- Contact layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: var(--white); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--text-xs);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: none;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 800px) { .sticky-cta { display: block; } }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }

/* ---------- Print: keep it readable ---------- */
@media print {
  .site-header, .sticky-cta, .site-footer, .cta-band { display: none; }
}

/* ==========================================================================
   Locations
   ========================================================================== */

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .offices-grid { grid-template-columns: 1fr; } }

.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.office-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}
@media (max-width: 600px) { .office-card-inner { grid-template-columns: 1fr; } }

.office-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.office-info h2 {
  font-size: var(--text-xl);
  margin: 0.15rem 0 0.5rem;
}
.office-info address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  flex: 1;
}
.office-info address p { margin-bottom: 0.4rem; }
.office-info address a { color: var(--green); text-decoration: none; font-weight: 600; }
.office-info address a:hover { text-decoration: underline; }

.office-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin-top: 0.75rem;
}
.office-directions:hover { text-decoration: underline; }

.office-map {
  position: relative;
  background: var(--mist);
}
.office-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 600px) {
  .office-map { height: 200px; position: relative; }
  .office-map iframe { position: absolute; }
}

/* ==========================================================================
   Resources / Blog
   ========================================================================== */

/* Index page */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.resource-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.resource-card .eyebrow { margin-bottom: 0.4rem; }
.resource-card h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}
.resource-card p { color: var(--ink-soft); flex: 1; }
.resource-card .card-link {
  margin-top: 1rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--green);
}

.resources-empty { color: var(--ink-soft); }

/* Article layout: body + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding-top: 2rem;
  padding-bottom: clamp(4rem, 6vw, 7rem);
}
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { order: -1; }
}

/* Article hero */
.page-hero--article { padding-bottom: 0; }
.article-meta {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* Table of contents */
.article-toc {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}
.article-toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.article-toc li { margin-bottom: 0.35rem; }
.article-toc a { color: var(--green); text-decoration: none; font-size: var(--text-sm); }
.article-toc a:hover { text-decoration: underline; }

/* Article body typography */
.article-body h2 {
  font-size: var(--text-2xl);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}
.article-body h3 { font-size: var(--text-xl); margin-top: 1.5rem; }
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}
.article-body li { margin-bottom: 0.5rem; }

/* Inline CTAs */
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--mist);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.article-cta > div { flex: 1; }
.article-cta strong { display: block; margin-bottom: 0.25rem; }
.article-cta p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
.article-cta .btn { white-space: nowrap; flex-shrink: 0; }

.article-cta--urgent {
  background: #fdf3ee;
  border-color: var(--gold);
}

.article-cta--final {
  display: block;
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
  color: var(--white);
}
.article-cta--final h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}
.article-cta--final p { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.article-cta--final .btn {
  background: var(--white);
  color: var(--green);
}
.article-cta--final .btn:hover { background: var(--mist); }

@media (max-width: 640px) {
  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-cta .btn { width: 100%; justify-content: center; }
}

/* Related articles */
.article-related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.article-related h3 { font-size: var(--text-xl); margin-bottom: 1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.related-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--mist);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: var(--text-sm);
  transition: background 0.2s;
}
.related-item:hover { background: var(--line); }
.related-item strong { color: var(--green); }
.related-item span { color: var(--ink-soft); }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
@media (max-width: 960px) {
  .article-sidebar { position: static; }
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.sidebar-cta-card {
  border-color: var(--green);
}
.sidebar-cta-card h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.4rem;
}
.sidebar-cta-card > p { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 1.2rem; }

.sidebar-form .field { margin-bottom: 0.9rem; }
.sidebar-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.sidebar-form input,
.sidebar-form textarea,
.sidebar-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.sidebar-form input:focus,
.sidebar-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.sidebar-form textarea { resize: vertical; }

.sidebar-about p { font-size: var(--text-sm); color: var(--ink-soft); }
.sidebar-about a { color: var(--green); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.sidebar-about a:hover { text-decoration: underline; }
