/* ════════════════════════════════════════════════════════════════════
   My Neighbourhood Nurses — public site
   Design system: spacious minimalism · Fraunces + Inter
   Palette: forest green (primary) · warm orange (accent)
   ════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --green-950: #0D1911;
  --green-900: #122216;
  --green-800: #1B3322;
  --green-700: #234029;
  --green-600: #2A4D34;
  --green-500: #3B6449;
  --green-200: #C4D8CA;
  --green-100: #DFEBE2;
  --green-50:  #F1F6F2;
  --orange-600: #C2591C;
  --orange-500: #E06D28;
  --orange-100: #F9E3D3;
  --orange-50:  #FBF1E9;

  /* Semantic */
  --ink: #16261B;
  --text: #46584C;
  --muted: #7C8D81;
  --border: #E3EAE4;
  --bg: #FFFFFF;
  --bg-off: #F8FAF8;
  --success: #2A6B3F;
  --error: #B3401E;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Structure */
  --nav-h: 92px; /* single source of truth: the hero, mobile menu + JS anchor offset all read this */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(18, 34, 22, .05);
  --shadow-md: 0 6px 24px -6px rgba(18, 34, 22, .10);
  --shadow-lg: 0 24px 64px -16px rgba(18, 34, 22, .18);
  --ease: cubic-bezier(.32, .72, .36, 1);
  --dur: .25s;
  --section-pad: clamp(5rem, 9vw, 8rem);
}

html {
  scroll-behavior: smooth;
  /* Backstop for phones: anything wider than the screen would otherwise expand
     the mobile layout viewport (white gutter, clipped navbar). body's
     overflow-x:hidden masks descendants but not the root; clip stops it here. */
  overflow-x: clip;
  /* Keeps anchor targets clear of the fixed navbar for native jumps — Lenis
     applies its own offset, but it's skipped under prefers-reduced-motion and
     if the script fails, and without this those users land behind the bar. */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Lenis smooth scroll (only active once initialised on the public page) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--green-100); color: var(--green-900); }

:focus-visible {
  outline: 2.5px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Loading screen ────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-900);
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: preloader-fade .5s var(--ease);
}
.preloader-logo { height: 78px; width: auto; }
.preloader-name {
  font-family: var(--font-display); font-size: 20px; color: #fff; letter-spacing: -.01em;
}
.preloader-spinner {
  width: 30px; height: 30px; border-radius: 50%; margin-top: 6px;
  border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff;
  animation: preloader-spin .8s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .preloader-spinner { animation: none; }
  .preloader-inner { animation: none; }
}

/* ── Utilities ─────────────────────────────────────────────────── */
.container { max-width: 1520px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.section { padding: var(--section-pad) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 2000;
  background: var(--green-900); color: #fff; padding: 10px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-500); flex-shrink: 0;
}

.section-header { max-width: 700px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }

h1, h2, h3 { font-weight: 500; color: var(--ink); }
.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 480;
}
.display em {
  font-style: italic;
  color: var(--green-600);
}
.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 480;
  margin-bottom: 16px;
}
.section-sub { font-size: 16.5px; color: var(--text); max-width: 600px; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 550; line-height: 1;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(42, 77, 52, .45); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--green-200); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-600); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--green-800); border-color: #fff; }
.btn-white:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .3); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* Only the navbar CTA uses this (admin.css defines its own) — sized up with the nav */
.btn-sm { padding: 13px 26px; font-size: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  /* Transparent over the hero at the top of the page… */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* …then a frosted white bar once the user starts scrolling. */
.navbar.scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
/* While transparent, the navbar sits over a dark top gradient (see .hero::before),
   so its text/controls go white and crisp — reverting to the default dark styling
   when scrolled OR when the mobile menu is open (which paints a white background). */
.navbar:not(.scrolled):not(.nav-open) .brand-name,
.navbar:not(.scrolled):not(.nav-open) .brand-sub,
.navbar:not(.scrolled):not(.nav-open) .nav-link {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.navbar:not(.scrolled):not(.nav-open) .brand-name { color: #fff; }
.navbar:not(.scrolled):not(.nav-open) .brand-sub { color: rgba(255, 255, 255, .75); }
.navbar:not(.scrolled):not(.nav-open) .nav-link { color: rgba(255, 255, 255, .92); }
.navbar:not(.scrolled):not(.nav-open) .nav-link:hover,
.navbar:not(.scrolled):not(.nav-open) .nav-link.active {
  color: #fff; background: rgba(255, 255, 255, .18);
}
.navbar:not(.scrolled):not(.nav-open) .nav-call {
  color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16);
}
.navbar:not(.scrolled):not(.nav-open) .nav-toggle span { background: #fff; }
.nav-inner {
  max-width: 1800px; margin: 0 auto; padding: 0 clamp(20px, 2.2vw, 40px);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* Sizing note: this site's audience skews older, so the nav is deliberately
   larger than a typical marketing header — links sit at body-text size rather
   than the usual 14px, and the brand sub-line clears the ~10px range where
   uppercase letter-spaced text gets hard to read. */
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-brand img { height: 56px; width: auto; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand .brand-name {
  font-family: var(--font-display); font-size: 21px; font-weight: 560; color: var(--ink);
  letter-spacing: -.01em; transition: color .35s var(--ease);
}
.nav-brand .brand-sub {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .35s var(--ease);
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-link {
  padding: 11px 14px; border-radius: 100px;
  font-size: 16.5px; font-weight: 500; color: var(--text);
  /* Multi-word labels ("Who We Work With") would otherwise wrap to four lines
     and blow the bar's height apart before the collapse breakpoint fires. */
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--green-50); }
.nav-link.active { color: var(--green-700); background: var(--green-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; padding: 10px; margin-right: -10px;
  flex-direction: column; gap: 5px; z-index: 1101;
}
.nav-toggle span {
  display: block; width: 28px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: all .3s var(--ease);
}
/* translateY must equal bar height + gap (2.5 + 5), or the ✕ won't meet in the middle */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  /* Sits below the fixed navbar so the brand + toggle (as ✕) stay visible */
  position: fixed; inset: 0; z-index: 990;
  padding-top: var(--nav-h);
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
/* Nav links only — :not(.btn) keeps this off the CTA <a>, which must stay a
   proper button (white text on green) rather than inherit this dark serif. */
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-size: 23px; font-weight: 480; color: var(--ink);
  padding: 9px 24px; border-radius: 12px; transition: color var(--dur);
}
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn).active { color: var(--green-600); font-style: italic; }
/* Both menu CTAs (book + call): keep the button's own look (btn-primary is
   white-on-green, sans-serif) and a comfortable tap size. The call button
   carries a nowrap phone number that measured 413px — wider than a phone —
   so cap and let it wrap. */
.mobile-menu .btn {
  margin-top: 18px;
  max-width: calc(100vw - 48px);
  white-space: normal;
  text-align: center;
  font-size: 16px;
  padding: 15px 36px;
}
.mobile-menu-close {
  position: absolute; top: 22px; right: 24px;
  background: var(--green-50); border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg { width: 20px; height: 20px; color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; }

/* The dark band holds the backdrop and the split headline/photo row. It runs
   from the very top of the page (behind the fixed nav) down to its own bottom
   edge, where ::after dissolves it into the page — so the band can grow with
   its content without the fade drifting off the photo. */
.hero-band {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(2.5rem, 5.5vw, 5rem)) 0 clamp(4.5rem, 8vw, 7rem);
  min-height: 105vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Side scrim is a variable so the mobile stack can flatten it to an even
     wash — a left-weighted scrim only makes sense beside a right-hand photo. */
  --hero-side-scrim: linear-gradient(90deg,
    rgba(9, 19, 13, 0.58) 0%,
    rgba(9, 19, 13, 0.40) 38%,
    rgba(9, 19, 13, 0.12) 68%,
    rgba(9, 19, 13, 0) 92%);
}
.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Vertical: dark enough under the navbar for white text, easing to a
       lighter mist at the foot of the band */
    linear-gradient(180deg,
      rgba(11, 22, 15, 0.80) 0%,
      rgba(11, 22, 15, 0.58) 20%,
      rgba(11, 22, 15, 0.50) 45%,
      rgba(14, 26, 18, 0.55) 65%,
      rgba(40, 56, 45, 0.66) 80%,
      rgba(120, 138, 125, 0.78) 92%,
      rgba(190, 202, 193, 0.88) 100%),
    var(--hero-side-scrim),
    url('/images/neighbourhood-hero.jpg');
  background-size: cover, cover, cover;
  background-position: center top, center, center 22%;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}
/* Dissolve the band into the page at its bottom edge, whatever its height */
.hero-band::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(90px, 12vw, 170px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 84%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}
.hero-inner { text-align: left; max-width: 660px; margin: 0; }
/* No usable photo — either the static no-JS markup (empty container) or an
   image that failed to load (flagged by renderHero). Collapse to the centred
   column rather than leaving the text stranded in a dead half-grid. */
.hero-media.is-broken { display: none; }
.hero-grid:has(.hero-media:empty),
.hero-grid:has(.hero-media.is-broken) { grid-template-columns: 1fr; }
.hero-grid:has(.hero-media:empty) .hero-inner,
.hero-grid:has(.hero-media.is-broken) .hero-inner { text-align: center; width: 100%; max-width: 780px; margin: 0 auto; }
.hero-grid:has(.hero-media:empty) .hero-sub,
.hero-grid:has(.hero-media.is-broken) .hero-sub { margin-left: auto; margin-right: auto; }
.hero-grid:has(.hero-media:empty) .hero-ctas,
.hero-grid:has(.hero-media.is-broken) .hero-ctas { justify-content: center; }
/* Light hero text over the dark image gradient, with a soft dark shadow for depth */
.hero .eyebrow { color: rgba(255, 255, 255, .82); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hero .display {
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .38), 0 2px 26px rgba(0, 0, 0, .35);
  /* Smaller than the global .display: the split column is ~45vw, and the
     authored line break only holds if "Compassionate home care" fits on one
     line. Sized so it still fits at the 1024px split/stack boundary. */
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}
.hero .display em { color: #A9E0B6; } /* light mint accent reads on dark */
.hero-sub {
  font-size: clamp(16px, 2vw, 18px); max-width: 540px; margin: 0 0 34px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 14px rgba(0, 0, 0, .35);
}
.hero-ctas { display: flex; gap: 13px; justify-content: flex-start; flex-wrap: wrap; }
/* Buttons for the dark hero: solid green primary + a glassy white-outline secondary */
.hero-ctas .btn-primary { box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .5); }
.hero-ctas .btn-ghost {
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.hero-ctas .btn-ghost:hover {
  background: #fff; border-color: #fff; color: var(--green-700);
}

.hero-media { position: relative; }
/* Near-square card: the source art is 1:1, so this crops it far less than a
   letterboxed band would. The lift separates it from the canopy behind. */
.hero-media img {
  display: block;
  width: 100%; height: clamp(440px, 44vw, 620px); object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 80px -22px rgba(0, 0, 0, .62);
  outline: 1px solid rgba(255, 255, 255, .16);
  outline-offset: -1px;
}
.hero-stats {
  position: relative; z-index: 2;
  margin: clamp(-64px, -4vw, -36px) auto 0; max-width: 820px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 28px 12px;
}
.hero-stat { text-align: center; padding: 6px 18px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat .stat-value {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 500; color: var(--green-700); line-height: 1.1;
}
.hero-stat .stat-label { font-size: 13px; color: var(--muted); margin-top: 5px; font-weight: 500; }

.communities { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }
.communities-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.communities-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 0; max-width: 720px; margin: 0 auto;
}
.communities-list span {
  font-family: var(--font-display); font-size: clamp(15px, 1.9vw, 17.5px);
  color: var(--green-700); font-weight: 480; padding: 0 16px; position: relative;
}
.communities-list span + span::before {
  content: ''; position: absolute; left: -2px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--orange-500); opacity: .7;
}

/* ── About ─────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.08fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about-media { position: relative; }
.about-media::before {
  content: ''; position: absolute; inset: 28px -20px -20px 28px;
  background: var(--green-50); border-radius: var(--radius-lg); z-index: 0;
}
.about-media img {
  position: relative; z-index: 1; width: 100%; height: clamp(340px, 38vw, 470px);
  object-fit: cover; border-radius: var(--radius-lg);
}
.about-lead {
  font-size: clamp(18px, 2.2vw, 20.5px); font-weight: 500; color: var(--ink);
  line-height: 1.6; margin-bottom: 18px;
}
.about-body p { margin-bottom: 16px; font-size: 15.5px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.tag {
  padding: 8px 17px; border-radius: 100px; font-size: 13px; font-weight: 550;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}

/* ── Services ──────────────────────────────────────────────────── */
.services { background: var(--bg-off); }

/* Category filter chips (rendered only when categories exist) */
.svc-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: -14px 0 34px;
}
.svc-filters:empty { display: none; }
.svc-filter-chip {
  border: 1.5px solid var(--border); border-radius: 100px;
  background: #fff; color: var(--text); cursor: pointer;
  padding: 9px 20px; font: 600 13.5px var(--font-body);
  transition: all var(--dur) var(--ease);
}
.svc-filter-chip:hover { border-color: var(--green-600); color: var(--green-600); }
.svc-filter-chip.active {
  background: var(--green-600); border-color: var(--green-600); color: #fff;
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}
/* Photo layout (Nurse-Next-Door style): image bleeding to the card edges */
.svc-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); }
.svc-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--ease);
}
.svc-card:hover .svc-photo img { transform: scale(1.045); }
.svc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.svc-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-50);
  border-radius: 100px; padding: 5px 12px; white-space: nowrap;
}
.svc-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card:hover .svc-icon { background: var(--green-600); color: #fff; }
/* A service can show an uploaded image instead of an icon */
.svc-icon.has-img { padding: 0; overflow: hidden; background: var(--green-50); }
.svc-icon.has-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card:hover .svc-icon.has-img { background: var(--green-50); }
.svc-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 9px; letter-spacing: -.01em; }
.svc-card p { font-size: 14.5px; line-height: 1.65; }

/* ── Who we work with (insurance + provincial programs) ────────── */
.programs-section { background: var(--green-50); }
.programs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}
.program-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 3vw, 2.6rem);
  transition: all var(--dur) var(--ease);
}
.program-card:hover { transform: translateY(-3px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.program-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.program-card .svc-icon { margin-bottom: 0; }
.program-card:hover .svc-icon { background: var(--green-600); color: #fff; }
.program-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-50);
  border-radius: 100px; padding: 6px 13px;
}
.program-card h3 {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px;
}
.program-lead { font-size: 15.5px; line-height: 1.7; margin-bottom: 26px; }
.program-points-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
/* The list carries the card's flex growth so every CTA lands on the same line */
.program-points { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.program-points li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.6; }
.program-tick {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.program-tick svg { width: 13px; height: 13px; }
.program-note {
  margin-top: 22px; padding: 14px 18px;
  background: var(--orange-50); border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.program-note:empty { display: none; }
.program-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--green-600);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.program-cta svg { width: 17px; height: 17px; }
.program-card:hover .program-cta { gap: 13px; color: var(--green-800); }
.programs-footnote { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.programs-footnote p {
  font-size: 15.5px; color: var(--text); max-width: 62ch; margin: 0 auto;
}
.programs-footnote:empty { display: none; }

@media (max-width: 900px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* ── Why choose us ─────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--dur) var(--ease);
}
.why-card:hover { transform: translateY(-3px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.why-card .svc-icon { margin-bottom: 0; flex-shrink: 0; }
.why-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.why-card p { font-size: 14.5px; line-height: 1.65; }

/* ── How it works ──────────────────────────────────────────────── */
.steps-section { background: var(--bg-off); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center;
  transition: all var(--dur) var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-50); border: 1.5px solid var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 22px;
  color: var(--green-700);
}
.step-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; line-height: 1.65; }

/* ── Testimonials ──────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.quote-card {
  display: flex; flex-direction: column;
  background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.quote-mark {
  font-family: var(--font-display); font-size: 44px; line-height: 1;
  color: var(--orange-500); height: 28px;
}
.quote-card blockquote { margin: 8px 0 18px; font-size: 15px; line-height: 1.7; color: var(--ink); flex: 1; }
.quote-card figcaption { font-size: 13.5px; }
.quote-card figcaption .q-name { font-weight: 650; color: var(--ink); display: block; }
.quote-card figcaption .q-detail { color: var(--muted); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-section { background: var(--bg-off); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur);
}
.faq-item[open] { border-color: var(--green-200); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 24px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { content: '–'; transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 24px 20px; font-size: 14.5px; line-height: 1.7; color: var(--text); }

/* ── Values ────────────────────────────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}
.value-item { border-top: 1.5px solid var(--border); padding-top: 22px; }
.value-num {
  font-family: var(--font-display); font-style: italic; font-size: 15px;
  color: var(--orange-500); font-weight: 500; display: block; margin-bottom: 10px;
}
.value-item h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 7px; }
.value-item p { font-size: 14.5px; }

/* ── Mission & Vision ──────────────────────────────────────────── */
.mv-section { background: var(--bg-off); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { border-radius: var(--radius-lg); padding: clamp(2rem, 4.5vw, 3.25rem); }
.mv-card.vision { background: #fff; border: 1px solid var(--border); }
.mv-card.mission { background: var(--green-800); }
.mv-label {
  display: inline-block; padding: 6px 15px; border-radius: 100px;
  font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 22px;
}
.mv-card.vision .mv-label { background: var(--green-50); color: var(--green-700); }
.mv-card.mission .mv-label { background: rgba(255,255,255,.12); color: #fff; }
.mv-card h3 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 490; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.01em;
}
.mv-card p { font-size: 15px; margin-bottom: 12px; }
.mv-card.mission h3 { color: #fff; }
.mv-card.mission p { color: rgba(255,255,255,.78); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band { background: var(--green-900); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 109, 40, .13) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; max-width: 620px; margin: 0 auto; padding: clamp(4.5rem, 8vw, 6.5rem) 0; }
.cta-inner h2 {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 480; letter-spacing: -.01em;
  margin-bottom: 15px;
}
.cta-inner h2 em { font-style: italic; color: var(--orange-500); }
.cta-inner p { color: rgba(255,255,255,.72); font-size: 16.5px; margin-bottom: 34px; }
.cta-btns { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ── Careers ───────────────────────────────────────────────────── */
.careers-section { background: var(--green-50); }
.careers-top { padding: var(--section-pad) 0 clamp(3rem, 6vw, 4.5rem); }

/* "Why work with us" promise cards */
.perks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.perk-card {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: all var(--dur) var(--ease);
}
.perk-card:hover { transform: translateY(-3px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.perk-card .svc-icon { margin-bottom: 0; flex-shrink: 0; }
.perk-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.perk-card p { font-size: 14.5px; line-height: 1.65; }

/* Open roles */
.careers-roles-title {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500; letter-spacing: -.01em; margin-bottom: 22px; text-align: center;
}
.careers-roles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}
.career-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 26px 22px; transition: all var(--dur) var(--ease);
}
.career-card:hover { transform: translateY(-3px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.career-card h4 {
  font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; margin-bottom: 12px;
}
.career-type {
  display: inline-block; padding: 5px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100);
  margin-bottom: 14px;
}
.career-card p { font-size: 14.5px; line-height: 1.6; }
.career-apply {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--green-600);
  padding-top: 4px; transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.career-apply svg { width: 16px; height: 16px; }
.career-card:hover .career-apply { gap: 11px; color: var(--green-800); }

/* Apply area — intro pitch beside the application form */
.careers-apply { padding-bottom: clamp(4rem, 8vw, 6rem); }
.careers-apply-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.careers-apply-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 14px; color: var(--ink);
}
.careers-apply-title em { font-style: italic; color: var(--green-600); }
.careers-apply-intro p { font-size: 16px; line-height: 1.7; margin-bottom: 22px; max-width: 44ch; }
.careers-call-btn { display: inline-flex; align-items: center; gap: 9px; }
.careers-call-btn svg { width: 18px; height: 18px; }

/* Application form card (mirrors the contact form card, with emphasis) */
.careers-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.2vw, 2.4rem); box-shadow: var(--shadow-md);
}
.careers-form-card select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237C8D81' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; cursor: pointer;
}

@media (max-width: 820px) {
  .careers-apply-grid { grid-template-columns: 1fr; gap: 2rem; }
  .careers-apply-intro { text-align: center; }
  .careers-apply-intro p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .perks-grid { grid-template-columns: 1fr; }
  .careers-roles { grid-template-columns: 1fr; }
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}
a.info-card:hover { border-color: var(--green-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--green-50); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-card strong {
  display: block; font-size: 11px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
/* Contact values are user-supplied: a long email or address has no break
   opportunity and would otherwise set the min-content width of the card. */
.info-card .info-value {
  font-size: 15px; font-weight: 550; color: var(--ink); line-height: 1.5;
  min-width: 0; overflow-wrap: anywhere;
}
.info-card .info-value a:hover { color: var(--green-600); }
.info-card .info-value > span { display: block; }

.contact-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 17px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.form-group label .req { color: var(--orange-600); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; min-height: 48px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-600); box-shadow: 0 0 0 3.5px rgba(42, 77, 52, .1);
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* reCAPTCHA: Google's widget is a fixed 304px — centre it over the
   full-width submit button so it doesn't sit orphaned at the left edge. */
.captcha-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
/* On very narrow phones (<340px content width) the fixed-size frame can't
   fit — scale it down from the centre instead of overflowing the card. */
@media (max-width: 380px) {
  .captcha-wrap { transform: scale(.88); transform-origin: center; }
}

/* Multi-select service chips */
.chips-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.chips-label .label-hint { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { position: relative; }
.svc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.svc-chip span {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 550; color: var(--text);
  cursor: pointer; user-select: none;
  transition: all var(--dur) var(--ease);
}
.svc-chip span:hover { border-color: var(--green-500); color: var(--green-700); }
.svc-chip input:checked + span { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.svc-chip input:focus-visible + span { outline: 2.5px solid var(--green-600); outline-offset: 2px; }
.form-feedback {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 550; line-height: 1.5;
}
.form-feedback.success { display: block; background: var(--green-50); color: var(--success); border: 1px solid var(--green-100); }
.form-feedback.error { display: block; background: #FBEDE7; color: var(--error); border: 1px solid #F3D8CB; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { background: var(--green-950); color: rgba(255,255,255,.65); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .nav-brand .brand-name { color: #fff; }
.footer-brand .nav-brand .brand-sub { color: rgba(255,255,255,.45); }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 250px; }
.footer-col h4 {
  font-size: 11px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; transition: color var(--dur); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45);
}

/* ── Click-to-call ─────────────────────────────────────────────── */
.nav-call {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 19px; border-radius: 100px;
  font-size: 15.5px; font-weight: 620; color: var(--green-700);
  border: 1.5px solid var(--green-100); background: var(--green-50);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-call svg { width: 17px; height: 17px; }
.nav-call:hover { border-color: var(--green-600); background: var(--green-100); transform: translateY(-1px); }

.float-call {
  display: none;
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-600); color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(42, 77, 52, .55);
  transition: transform var(--dur) var(--ease);
}
.float-call svg { width: 24px; height: 24px; }
.float-call:active { transform: scale(.94); }
/* Must track the nav-collapse breakpoint above: this replaces the nav's phone button */
@media (max-width: 1279px) {
  .float-call { display: flex; }
}

/* ── Reveal animations ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────── */

/* Large screens: use the extra width with denser grids */
@media (min-width: 1440px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why-card { flex-direction: column; gap: 20px; }
  .testimonials-grid { gap: 24px; }
  .faq-list { max-width: 860px; }
  .hero-stats { max-width: 920px; }
}

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Below this the two hero columns starve the display type and wrap the CTA
     row, so the photo drops under a re-centred headline. */
  .hero-grid { grid-template-columns: 1fr; gap: clamp(2.25rem, 6vw, 3.25rem); }
  /* width:100% is load-bearing — auto margins alone would make this grid item
     shrink-to-fit its longest text run instead of honouring max-width. */
  .hero-inner { text-align: center; width: 100%; max-width: 780px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-media img { height: clamp(300px, 62vw, 460px); }
  /* Full width is back, so the headline can return to the display scale */
  .hero .display { font-size: clamp(2.6rem, 5.6vw, 4.15rem); }
  /* Even wash instead of a left-weighted scrim once nothing sits to the right */
  .hero-band { --hero-side-scrim: linear-gradient(90deg, rgba(9, 19, 13, .3), rgba(9, 19, 13, .3)); }
}

/* The nav's two step-downs. Both thresholds come from measuring the rendered
   nav, not from round numbers — at the senior-friendly type sizes the full bar
   needs ~1355px, and ~1200px once the phone number collapses to its icon.
   Margin added to each so neither sits exactly on the edge. */
@media (max-width: 1459px) {
  .nav-call span { display: none; } /* icon-only phone button when tight */
}
/* A seventh link pushes the full-scale bar to ~1470px, which would collapse it
   to a hamburger on ordinary 1280–1366px laptops. Step the nav's own scale down
   through this band instead: measured, the stepped bar needs ~1140px with the
   icon-only phone button and ~1290px once the phone number appears, leaving
   margin at every width in the band. */
@media (max-width: 1559px) {
  .nav-brand { gap: 12px; }
  .nav-brand img { height: 48px; }
  .nav-brand .brand-name { font-size: 18.5px; }
  .nav-brand .brand-sub { font-size: 10.5px; letter-spacing: .14em; }
  .nav-link { padding: 10px 9px; font-size: 15px; }
  .btn-sm { padding: 12px 20px; font-size: 14px; }
}
/* Nav collapses well before the content grids: brand + 7 links + 2 CTAs need
   room. Measured with the stepped-down scale above, the bar needs 1220px, so
   1280 is the narrowest width that still leaves margin (was 1240 with 6 links). */
@media (max-width: 1279px) {
  .nav-links, .nav-actions .btn, .nav-call { display: none !important; }
  .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
  .hero-stats { grid-template-columns: 1fr; margin-top: -34px; gap: 4px; padding: 20px 12px; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid var(--border); padding-top: 16px; }
  .hero-stat { padding-bottom: 10px; }

  .about-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media::before { inset: 20px -12px -12px 20px; }
  .services-grid, .values-grid, .why-grid, .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Phones. The senior-scale brand row (334px, flex-shrink:0) plus the hamburger
   needs 418px — wider than the screen, which expands the mobile layout viewport
   and shoves the hamburger off the right edge. Step the brand down and let it
   shrink; ellipsis is the last resort on very narrow devices. Threshold from
   measurement: the full-size row fits down to ~460px, with margin. */
@media (max-width: 479px) {
  .nav-brand { flex-shrink: 1; min-width: 0; gap: 10px; }
  .nav-brand img { height: 46px; }
  .nav-brand .brand-text { min-width: 0; }
  /* Measured: ~209px is left beside the logo + hamburger on the narrowest
     phones. The full name needs 201px at 16px; the letter-spaced sub-line
     fits at 9.5px/.12em. Ellipsis only engages on ~320px devices. */
  .nav-brand .brand-name {
    font-size: 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-brand .brand-sub {
    font-size: 9.5px; letter-spacing: .12em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* Four display lines is a wall of serif at this width — pull the floor down
     so the authored two-phrase break needs only three. */
  .hero .display { font-size: clamp(2.05rem, 8.6vw, 2.6rem); }
}

.pt-navbar { padding-top: calc(var(--nav-h, 90px) + 3rem); }

