/* ==========================================================================
   Happy Paws — brand stylesheet
   Edit brand colours and fonts in :root below; everything else inherits.
   ========================================================================== */

:root {
  /* Brand palette */
  --forest-950: #0B231C;
  --forest-900: #123B2F;
  --forest-700: #1B5241;
  --forest-500: #1F8A5E;
  --sage-200: #D5E7DA;
  --sage-100: #EAF3EC;
  --cream: #FBF7F0;
  --sand: #F3EADB;
  --amber-500: #F2A541;
  --amber-600: #D9861A;
  --amber-700: #9A5A08;
  --coral: #C4573F;
  --sky: #3F7FC0;
  --ink: #17201C;
  --ink-2: #3E4A44;
  --muted: #5B6660;
  --line: #E3DCCF;
  --white: #FFFFFF;

  /* Chart palette (validated for colour-vision deficiency) */
  --c1: #1F8A5E;
  --c2: #E39A2D;
  --c3: #3F7FC0;
  --c4: #C4573F;

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

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(18 59 47 / .06), 0 12px 32px -12px rgb(18 59 47 / .18);
  --shadow-lg: 0 30px 60px -24px rgb(11 35 28 / .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); text-underline-offset: .2em; }
a:hover { color: var(--forest-500); }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest-900);
  margin: 0 0 .5em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  border: 0 !important; white-space: nowrap !important;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest-900); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage-100); }
.section--dark { background: var(--forest-900); color: #DCE8E0; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--amber-500); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-500); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--amber-500); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.section--dark .lead { color: #C4D6CB; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.accent { color: var(--amber-600); font-style: italic; }
.section--dark .accent { color: var(--amber-500); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber-500); color: var(--forest-950); box-shadow: 0 8px 20px -8px rgb(217 134 26 / .7); }
.btn--primary:hover { background: #F5B45E; color: var(--forest-950); }
.btn--dark { background: var(--forest-900); color: var(--white); }
.btn--dark:hover { background: var(--forest-700); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--forest-900); background: transparent; }
.btn--ghost:hover { background: var(--forest-900); color: var(--white); border-color: var(--forest-900); }
.section--dark .btn--ghost, .hero--dark .btn--ghost { color: var(--white); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--forest-900); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Header / navigation ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 240 / .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(227 220 207 / .7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px;
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { width: 44px; height: 44px; }
.site-logo span { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--forest-900); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 600 .95rem var(--font-body); color: var(--forest-900); cursor: pointer;
}
.menu-button svg { width: 18px; height: 18px; }
.site-menu {
  list-style: none; margin: 0; padding: 12px;
  position: fixed; inset: auto;
  inset-block-start: 84px;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 16px;
  margin-block-start: 8px;
  inline-size: min(86dvw, 22rem);
  max-block-size: calc(100dvh - 6rem); overflow: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.site-menu a {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  font-weight: 500; color: var(--ink);
}
.site-menu a:hover { background: var(--sage-100); color: var(--forest-900); }
.site-menu a[aria-current="page"] { color: var(--forest-900); font-weight: 700; box-shadow: inset 3px 0 0 var(--amber-500); }
.site-menu .nav-cta { margin-top: 8px; }
.site-menu .nav-cta a { text-align: center; background: var(--amber-500); color: var(--forest-950); font-weight: 700; border-radius: 999px; }
.site-menu .nav-cta a:hover { background: #F5B45E; }

.site-header.is-measuring * { transition: none !important; }
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 4px;
  inline-size: auto; max-inline-size: none; max-block-size: none; overflow: visible;
  margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 10px 16px; }
.site-header.is-wide .site-menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber-500); border-radius: 10px 10px 2px 2px; }
.site-header.is-wide .site-menu .nav-cta { margin: 0 0 0 10px; }
.site-header.is-wide .site-menu .nav-cta a { padding: 11px 22px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(242 165 65 / .22), transparent 62%); pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-media { position: relative; }
.hero-media > img { width: 100%; filter: drop-shadow(0 30px 40px rgb(11 35 28 / .18)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.3; max-width: 230px;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--forest-900); }
.float-card .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.float-card .dot svg { width: 20px; height: 20px; }
.float-card--a { left: -2%; bottom: 14%; }
.float-card--b { right: 0; top: 8%; }
@media (max-width: 560px) {
  .float-card { position: static; margin-top: 12px; max-width: none; }
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--forest-500); }

/* Page hero (inner pages) */
.page-hero { background: var(--forest-900); color: #D9E6DE; padding-block: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #C4D6CB; }
.page-hero .eyebrow { color: var(--amber-500); }
.page-hero::after {
  content: ""; position: absolute; right: -10%; bottom: -40%; width: 55vw; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgb(242 165 65 / .3); pointer-events: none;
}
.page-hero .hero-grid { position: relative; z-index: 1; }

/* ---------------- Stats band ---------------- */
.stats { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--white); padding: 28px 26px; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--forest-900); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.stat-delta { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--forest-500); background: var(--sage-100); padding: 3px 10px; border-radius: 999px; }
.data-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.section--dark .data-note { color: #9DB5A7; }

/* ---------------- Cards & grids ---------------- */
.grid-2 { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--forest-700); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--amber { background: #FDF0DC; color: var(--amber-700); }
.card--dark { background: var(--forest-950); border-color: rgb(255 255 255 / .08); color: #C4D6CB; }

/* Mission pillars */
.pillars { counter-reset: pillar; }
.pillar { position: relative; }
.pillar::before {
  counter-increment: pillar; content: "0" counter(pillar);
  position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 2.4rem; color: var(--sage-200); font-weight: 600;
}

/* Journey of care pipeline */
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); position: relative; }
.journey li { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.journey .step-n { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-500); font-weight: 700; }
.journey h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.journey p { font-size: .93rem; margin: 0 0 14px; color: #B9CCC0; }
.journey .meter { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .1); overflow: hidden; }
.journey .meter span { display: block; height: 100%; border-radius: 6px; background: var(--amber-500); }
.journey .meter-label { display: flex; justify-content: space-between; font-size: .8rem; margin-top: 6px; color: #DCE8E0; font-variant-numeric: tabular-nums; }

/* Fund allocation stacked bar */
.alloc { margin-top: 8px; }
.alloc-bar { display: flex; gap: 2px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--white); }
.alloc-bar > div { position: relative; display: flex; align-items: center; padding-inline: 12px; font-weight: 700; font-size: .9rem; color: var(--white); cursor: default; transition: filter .2s; }
.alloc-bar > div:hover, .alloc-bar > div:focus-visible { filter: brightness(1.08); }
.alloc-bar > div.dark-text { color: var(--forest-950); }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .93rem; color: var(--ink-2); }
.legend li { display: flex; align-items: baseline; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; transform: translateY(1px); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Tooltip (shared) */
.chart-tip {
  position: fixed; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: var(--forest-950); color: var(--white); font-size: .85rem; line-height: 1.35;
  padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); max-width: 240px;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { color: var(--amber-500); }

/* Goals / progress */
.goals { display: grid; gap: 22px; }
.goal-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 8px; }
.goal-top strong { font-weight: 600; color: var(--forest-900); }
.goal-top span { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { height: 10px; background: var(--sage-200); border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--forest-500); border-radius: 10px; width: var(--v); }

/* Roadmap / global reach */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.roadmap li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.roadmap li::before { content: ""; position: absolute; left: 41px; top: 34px; bottom: 0; width: 2px; background: rgb(255 255 255 / .14); }
.roadmap li:last-child::before { display: none; }
.roadmap .yr {
  font-family: var(--font-display); font-weight: 600; color: var(--forest-950); background: var(--amber-500);
  border-radius: 999px; text-align: center; height: 34px; line-height: 34px; font-size: 1rem; position: relative; z-index: 1;
}
.roadmap li:not(.is-now) .yr { background: transparent; color: var(--amber-500); border: 1.5px solid var(--amber-500); line-height: 31px; }
.roadmap h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.roadmap p { margin: 0; color: #B9CCC0; font-size: .95rem; }
.globe-wrap { position: relative; }
.globe-wrap img { width: 100%; max-width: 560px; margin-inline: auto; }

/* Support / CTA cards */
.support-card { display: flex; flex-direction: column; gap: 14px; }
.support-card .btn { margin-top: auto; align-self: flex-start; }
.support-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
.support-card--feature { background: var(--forest-900); color: #D3E2D9; border-color: var(--forest-900); }
.support-card--feature h3 { color: var(--white); }
.support-card--feature ul { color: #C4D6CB; }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amber-500); color: var(--forest-950); }

.cta-band {
  background: linear-gradient(120deg, var(--forest-900), var(--forest-700));
  color: var(--white); border-radius: calc(var(--radius) + 8px); padding: clamp(36px, 6vw, 72px);
  display: grid; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #C4D6CB; margin: 0; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgb(242 165 65 / .18); }

/* Image figure */
.figure { margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--sand); }
.figure img { width: 100%; }

/* Quote */
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; color: var(--forest-900); max-width: 24ch; margin: 0; }
.quote-cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-size: .95rem; color: var(--muted); }

/* ---------------- About-specific ---------------- */
.belief { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.belief:last-child { border-bottom: 1px solid var(--line); }
.belief-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--amber-600); font-weight: 600; padding-top: 4px; }
.belief h3 { margin-bottom: .25em; }
.belief p { margin: 0; color: var(--ink-2); }

.intel-card { display: flex; flex-direction: column; gap: 10px; }
.intel-card .species { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-500); }
.intel-card h3 { font-size: 1.25rem; }

.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.chart-card h3 { font-size: 1.2rem; margin-bottom: .2em; }
.chart-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.line-chart { position: relative; }
.line-chart svg { width: 100%; height: auto; overflow: visible; }
.line-chart .grid line { stroke: #ECE6DA; stroke-width: 1; }
.line-chart .axis text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.line-chart .series { fill: none; stroke: var(--c4); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .area { fill: url(#declineFill); }
.line-chart .end-dot { fill: var(--c4); stroke: var(--white); stroke-width: 2; }
.line-chart .end-label { fill: var(--ink); font: 700 13px var(--font-body); }
.line-chart .hover-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.line-chart .hover-dot { fill: var(--c4); stroke: var(--white); stroke-width: 2; opacity: 0; }
.line-chart.is-hover .hover-line, .line-chart.is-hover .hover-dot { opacity: 1; }
.table-toggle { margin-top: 14px; font-size: .88rem; }
.table-toggle summary { cursor: pointer; color: var(--forest-700); font-weight: 600; }
.table-toggle table { margin-top: 10px; border-collapse: collapse; width: 100%; font-size: .88rem; }
.table-toggle th, .table-toggle td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.mix-bars { display: grid; gap: 16px; }
.mix-row { display: grid; grid-template-columns: minmax(120px, 160px) 1fr 48px; gap: 12px; align-items: center; font-size: .95rem; }
.mix-track { height: 18px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.mix-track span { display: block; height: 100%; width: var(--v); border-radius: 0 4px 4px 0; }
.mix-row b { text-align: right; font-variant-numeric: tabular-nums; }

.eco-wrap img { width: 100%; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.timeline li { border-top: 3px solid var(--amber-500); padding-top: 16px; }
.timeline .yr { font-family: var(--font-display); font-size: 1.6rem; color: var(--forest-900); font-weight: 600; }
.timeline p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }

/* ---------------- Contact-specific ---------------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.contact-item .icon-badge { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.contact-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.contact-item p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--forest-900); }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .84rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid #D6CFC1; border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123B2F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 4px rgb(31 138 94 / .18); background: var(--white); }
.field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback),
.was-submitted .field :is(input, select, textarea):invalid { border-color: #B3261E; background: #FCEEEC; }
.was-submitted .field :is(input, select, textarea):invalid + .error-msg { display: block; }
.field :is(input, select, textarea):is(:user-valid, .user-valid-fallback) { border-color: var(--forest-500); }
.error-msg { display: none; color: #B3261E; font-size: .86rem; font-weight: 500; }
.field :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg { display: block; }
.social-inputs { display: grid; gap: 10px; }
.social-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; }
.social-row label { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.social-row .error-msg { grid-column: 2; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest-500); flex-shrink: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { font-size: .95rem; font-weight: 500; }
.form-status.is-success { color: var(--forest-500); }
.form-status.is-error { color: #B3261E; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* FAQ accordion */
.faq-groups { display: grid; gap: 40px; max-width: 900px; margin-inline: auto; }
.faq-group h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.faq-group h3 .icon-badge { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.faq-group h3 .icon-badge svg { width: 20px; height: 20px; }
.accordion details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.accordion details[open] { border-color: var(--sage-200); box-shadow: var(--shadow); }
.accordion summary {
  list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 18px 22px; font-weight: 600; color: var(--forest-900); border-radius: 14px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ""; inline-size: 1.1em; block-size: 1.1em; flex-shrink: 0; background-color: var(--amber-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.accordion details[open] > summary::before { rotate: 0deg; }
.accordion summary:hover { background: var(--sage-100); }
.accordion .answer { padding: 0 22px 20px 54px; color: var(--ink-2); }
.accordion .answer p:last-child { margin-bottom: 0; }
.accordion details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.accordion details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate .2s; }
  .accordion details::details-content { transition: block-size, content-visibility, display; transition-duration: .3s; transition-timing-function: ease-in-out; transition-behavior: allow-discrete; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--forest-950); color: #A9BFB2; padding-block: 72px 32px; font-size: .95rem; }
.site-footer a { color: #DCE8E0; text-decoration: none; }
.site-footer a:hover { color: var(--amber-500); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand img { width: 52px; margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .18); }
.socials a:hover { background: var(--amber-500); color: var(--forest-950); border-color: var(--amber-500); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }

/* ---------------- Scroll reveal (progressive enhancement) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up { from { opacity: 0; translate: 0 32px; } }
    .reveal {
      animation: reveal-up auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
.reveal-fallback { opacity: 0; translate: 0 32px; transition: opacity .7s ease, translate .7s ease; }
.reveal-fallback.is-visible { opacity: 1; translate: 0 0; }

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid CanvasText; }
  .progress span, .mix-track span, .alloc-bar > div { forced-color-adjust: none; }
}
@media print {
  .site-header, .site-footer, .form-card, .btn { display: none !important; }
  body { background: #fff; }
}
