/* MAC — Moving Against the Current
   Shared design system styles.
   Tokens, primitives, components, responsive utilities. */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 2. Brand tokens ---------- */
:root {
  /* Palette */
  --forest:        #234E36;
  --forest-deep:   #1A3B29;
  --forest-soft:   #3C6B52;
  --sand:          #F4EFE5;
  --sand-warm:     #EBE3D2;
  --surface:       #FFFFFF;
  --coral:         #E89B6F;
  --coral-deep:    #D17A4F;
  --sage:          #A8B294;
  --ink:           #2D2B19;
  --ink-muted:     #6E6A55;
  --border:        #E5DFD2;
  --border-light:  #EFEAE0;

  /* Type families */
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Scale — conservative cap so headlines don't dominate desktop. */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   clamp(20px, 1.8vw, 22px);
  --text-xl:   clamp(22px, 2.2vw, 26px);
  --text-2xl:  clamp(24px, 2.6vw, 32px);
  --text-3xl:  clamp(28px, 3.4vw, 40px);
  --text-4xl:  clamp(34px, 4.4vw, 52px);
  --text-5xl:  clamp(40px, 5.4vw, 64px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-card: 0 1px 0 rgba(35, 78, 54, 0.04), 0 6px 24px rgba(35, 78, 54, 0.06);
  --shadow-raised: 0 4px 14px rgba(35, 78, 54, 0.10), 0 14px 40px rgba(35, 78, 54, 0.08);

  /* Layout */
  --container-max: 1280px;
  --rail-w: 320px;

  /* Easing */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--sand);
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest);
  text-wrap: balance;
  font-feature-settings: "ss01", "ss02";
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.035em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-lg); letter-spacing: -0.01em; }
h5 { font-size: var(--text-md); letter-spacing: -0.005em; }

p { color: var(--ink); }
.muted { color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--coral);
  border-radius: 2px;
  flex-shrink: 0;
}

.eyebrow.on-dark { color: rgba(255,255,255,0.85); }
.eyebrow.on-dark::before { background: var(--coral); }

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--loose { padding-block: clamp(72px, 12vw, 128px); }

.section--sand-warm {
  background: var(--sand-warm);
  position: relative;
}
.section--sand-warm::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'><path d='M0 16 C 150 0, 300 32, 450 16 S 750 0, 900 16 S 1200 32, 1200 16 L 1200 0 L 0 0 Z' fill='%23F4EFE5'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.section--surface { background: var(--surface); }
.section--forest { background: var(--forest); color: var(--surface); }
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest h4 { color: var(--surface); }
.section--forest p { color: rgba(255, 255, 255, 0.85); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .grid--2 { gap: var(--space-7); }
}

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* CTA / action row — consistent rhythm after content */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.actions--tight { margin-top: var(--space-3); }
.actions--loose { margin-top: var(--space-6); }

/* Subpage hero title — consistent sizing across all subpages */
.hero__title--sub {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--forest);
}

/* Metric figures — testimonials, about, anywhere we show a large number */
.metric-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  color: var(--forest);
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-figure + h4 { margin-top: var(--space-3); font-size: 16px; }
.metric-figure ~ .muted { font-size: 14px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--coral);
  color: var(--surface);
}
.btn--primary:hover { background: var(--coral-deep); }

.btn--forest {
  background: var(--forest);
  color: var(--surface);
}
.btn--forest:hover { background: var(--forest-deep); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn--outline:hover { background: var(--forest); color: var(--surface); }

.btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--surface);
}
.btn--outline-light:hover { background: var(--surface); color: var(--forest); }

.btn--sm { padding: 10px 18px; font-size: var(--text-sm); }
.btn--lg { padding: 18px 32px; font-size: var(--text-md); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--coral-deep); }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

.card--soft {
  background: var(--sand);
  border: 1px solid var(--border);
}

.card--forest {
  background: var(--forest);
  color: var(--surface);
  border: none;
}
.card--forest h2, .card--forest h3, .card--forest h4 { color: var(--surface); }
.card--forest p { color: rgba(255, 255, 255, 0.85); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sand);
  display: grid;
  place-items: center;
  color: var(--forest);
  margin-bottom: var(--space-4);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.06) rotate(-2deg); }

.card__icon--coral { background: rgba(232, 155, 111, 0.16); color: var(--coral-deep); }
.card__icon--sage { background: rgba(168, 178, 148, 0.22); color: var(--forest); }

.card--media {
  padding: 0;
  overflow: hidden;
}
.card--media .card__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.card--media .card__media {
  aspect-ratio: 16/10;
  border-radius: 0;
  transition: transform 0.7s var(--ease);
  transform-origin: center;
}
.card--media:hover .card__media { transform: scale(1.04); }
.card--media .card__body h4 {
  transition: color 0.2s var(--ease);
}
.card--media:hover .card__body h4 { color: var(--forest-deep); }

/* ---------- 7. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: 18px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-img { height: 40px; width: auto; display: block; }
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.nav__links {
  display: none;
  gap: var(--space-5);
  align-items: center;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--forest); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav__cta { display: none; }
.nav__phone { display: none; font-size: var(--text-sm); font-weight: 600; color: var(--forest); }

.nav__actions { display: inline-flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  color: var(--forest);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1100px) {
  .nav__phone { display: inline-flex; }
}

/* Mobile menu */
.nav__mobile {
  display: none;
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--sand);
}
.nav__mobile.is-open { display: block; }
.nav__mobile-list { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-4); }
.nav__mobile-list a { padding: 10px 0; font-size: var(--text-md); }
@media (min-width: 900px) { .nav__mobile { display: none !important; } }

/* ---------- 8. Hero (full-bleed image) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 720px);
  display: flex;
  align-items: flex-start;
  color: #fff;
}
/* Subpage (text-only) heroes: breathing room under the sticky nav, dark text, content-sized height */
.hero:not(.hero--image) {
  min-height: 0;
  align-items: stretch;
  color: var(--ink);
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 6vw, 88px);
}
.hero__photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  min-height: 360px;
}
.hero--image .hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.02);
}
.hero--image .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg,
      rgba(20, 46, 33, 0.92) 0%,
      rgba(35, 78, 54, 0.78) 38%,
      rgba(35, 78, 54, 0.35) 70%,
      rgba(35, 78, 54, 0.15) 100%),
    linear-gradient(180deg,
      rgba(20, 46, 33, 0.35) 0%,
      rgba(20, 46, 33, 0.10) 40%,
      rgba(20, 46, 33, 0.45) 100%);
}
.hero__inner {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(96px, 11vw, 180px);
  width: 100%;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 620px;
}
.hero__content > .badge { align-self: flex-start; }
.hero__title {
  font-size: var(--text-5xl);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.28);
  text-wrap: balance;
}
.hero__lede {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.96);
  max-width: 50ch;
  margin-block: var(--space-3) var(--space-2);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.32);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

@media (min-width: 900px) {
  .hero--image .hero__overlay {
    background:
      linear-gradient(95deg,
        rgba(20, 46, 33, 0.94) 0%,
        rgba(35, 78, 54, 0.80) 42%,
        rgba(35, 78, 54, 0.30) 72%,
        rgba(35, 78, 54, 0.05) 100%);
  }
}

/* On-image element variants */
.badge--on-image {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--coral {
  background: var(--coral);
  color: #fff;
  border: 1px solid var(--coral);
}
.btn--coral:hover { background: #d88758; border-color: #d88758; transform: translateY(-1px); }
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: 500;
}
.hero__chips .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--coral);
}
.hero__chips--on-image {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.hero__chips--on-image li {
  color: rgba(255, 255, 255, 0.92);
}
.hero__chips--on-image .dot {
  background: var(--coral);
}

/* Trust pillars that overlap the hero (mobile: no overlap; desktop: pull up) */
.trust-overlap {
  position: relative;
  z-index: 2;
  padding-block: 0;
  margin-top: -36px;
}
.trust-overlap .card {
  box-shadow: 0 18px 40px -16px rgba(20, 46, 33, 0.22), 0 2px 8px rgba(20, 46, 33, 0.06);
  background: var(--surface);
}
.trust-overlap .card:hover {
  box-shadow: 0 24px 48px -16px rgba(20, 46, 33, 0.28), 0 4px 12px rgba(20, 46, 33, 0.08);
}
@media (min-width: 760px) {
  .trust-overlap { margin-top: -64px; }
}
@media (min-width: 1024px) {
  .trust-overlap { margin-top: -88px; }
}
.trust-overlap + .section { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- 9b. Funding rows ---------- */
.funding-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.funding-row__tag {
  flex: 0 0 64px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(35, 78, 54, 0.08);
  color: var(--forest);
  margin-top: 2px;
}
.funding-row__tag--coral { background: rgba(232, 155, 111, 0.18); color: var(--coral-deep); }
.funding-row__tag--sage { background: rgba(168, 178, 148, 0.25); color: var(--forest); }

/* ---------- 9c. Lead form shell ---------- */
.form-shell {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
.form-shell__card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) {
  .form-shell { grid-template-columns: 1fr 1.1fr; gap: var(--space-8); }
}
.field-grid {
  display: grid;
  gap: var(--space-4) var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.field-grid .field { margin-bottom: var(--space-4); }
@media (min-width: 600px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 10. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(35, 78, 54, 0.10);
}
.field textarea { resize: vertical; min-height: 96px; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field--inline input[type="checkbox"], .field--inline input[type="radio"] { width: auto; }

.field--dark label { color: rgba(255, 255, 255, 0.92); }
.field--dark input,
.field--dark select,
.field--dark textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--surface);
}
.field--dark input::placeholder, .field--dark textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.field--dark input:focus, .field--dark textarea:focus, .field--dark select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(232, 155, 111, 0.18);
}

/* ---------- 11. Service / icon list ---------- */
.icon-list { display: flex; flex-direction: column; gap: var(--space-3); }
.icon-list__item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-base);
}
.icon-list__bullet {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--surface);
  display: grid; place-items: center;
  font-size: 14px;
  margin-top: 2px;
}
.icon-list__bullet--forest { background: var(--forest); }
.icon-list__bullet--sage { background: var(--sage); }

/* ---------- 12. Photo placeholders (documentary style) ---------- */
.photo {
  position: relative;
  background: linear-gradient(135deg, var(--sand-warm) 0%, var(--sand) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  color: var(--forest-soft);
  border: 1px dashed var(--border);
}
.photo::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 32ch;
  margin: auto;
}
.photo--portrait { aspect-ratio: 3/4; }
.photo--wide { aspect-ratio: 16/9; }
.photo--square { aspect-ratio: 1; }

/* When a real image is supplied via background-image, drop the placeholder chrome. */
.photo--filled {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
}
.photo--filled::before { content: none; }

/* ---------- 13. Footer ---------- */
.footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-8);
}
.footer h4 {
  color: var(--surface);
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); } }

.footer a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--coral); }
.footer ul li { padding-block: 4px; }

.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 36ch; }
.footer__brand .logo__text { color: var(--surface); }
.footer__brand p { color: var(--sand); }
.footer__tagline { color: var(--coral); font-weight: 500; }
.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 14. Misc / utilities ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin-block: var(--space-6);
}
.divider--dark { background: rgba(255, 255, 255, 0.12); }

.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--forest);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(232, 155, 111, 0.16);
  color: var(--coral-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--forest { background: rgba(35, 78, 54, 0.08); color: var(--forest); }
.badge--sage { background: rgba(168, 178, 148, 0.20); color: var(--forest); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--forest);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--forest);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.tag::after {
  content: "↓";
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}
.tag:hover,
.tag:focus-visible {
  background: var(--forest);
  color: var(--surface);
  transform: translateY(-1px);
  outline: none;
}
.tag:hover::after,
.tag:focus-visible::after { transform: translateY(2px); }
.jump-to {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.jump-to__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.center { text-align: center; }
.lede { font-size: var(--text-md); color: var(--ink-muted); max-width: 60ch; }
.lede.center { margin-inline: auto; }

.split { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; } }
@media (min-width: 900px) { .split--narrow-left { grid-template-columns: 1fr 1.4fr; } }
@media (min-width: 900px) { .split--narrow-right { grid-template-columns: 1.4fr 1fr; } }

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 16px; left: 16px; width: auto; height: auto;
  padding: 10px 16px;
  background: var(--forest);
  color: var(--surface);
  border-radius: var(--radius-md);
  z-index: 1000;
}

/* ---------- 15. Section header ---------- */
.section-header { margin-bottom: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.section-header h2 { font-size: var(--text-3xl); }
.section-header.center { align-items: center; text-align: center; }
.section-header__lede { color: var(--ink-muted); max-width: 60ch; font-size: var(--text-md); }
.section-header.center .section-header__lede { margin-inline: auto; }

/* ---------- 15a. Step number (process flows) ---------- */
.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- 16. Map (SVG-friendly box) ---------- */
.map-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.county-map { width: 100%; height: auto; display: block; }
.county-map__county path {
  transition: fill 0.18s var(--ease), transform 0.2s var(--ease);
  transform-origin: center;
  transform-box: fill-box;
}
.county-map__county:hover path,
.county-map__county:focus-visible path {
  fill: var(--forest-soft);
}
.county-map__county:focus-visible {
  outline: none;
}
.county-map__county:focus-visible path {
  stroke: var(--coral);
  stroke-width: 5;
}
@media (prefers-reduced-motion: no-preference) {
  .county-map__county:hover path { transform: translateY(-3px); }
}
html { scroll-behavior: smooth; }
/* Anchor targets account for the sticky nav so they don't land under it */
:target,
[id] { scroll-margin-top: 96px; }

/* ---------- 17. Quote / testimonial ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.quote__text { font-size: var(--text-md); color: var(--ink); line-height: 1.55; }
.quote__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--sand-warm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
  font-size: var(--text-md);
}
.quote__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.quote__name { font-weight: 600; color: var(--forest); font-size: var(--text-sm); }
.quote__role { font-size: var(--text-xs); color: var(--ink-muted); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: center;
  margin-block: var(--space-7);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--surface); font-size: var(--text-3xl); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-band__wave {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 280px; opacity: 0.10;
  pointer-events: none;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; padding: clamp(48px, 5vw, 80px); } }

/* ---------- 19. Animations (subtle, restraint-first) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero-only entrance (fires on load) */
  .fade-up {
    animation: fadeUp 0.7s var(--ease) both;
  }
  .fade-up.delay-1 { animation-delay: 80ms; }
  .fade-up.delay-2 { animation-delay: 160ms; }
  .fade-up.delay-3 { animation-delay: 240ms; }

  /* Scroll-triggered reveal — fires once when in view */
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 20. Print ---------- */
@media print {
  .nav, .footer, .cta-band { display: none !important; }
  body { background: white; }
}
