/* =============================================================================
   THE OPEN HORIZON — Stylesheet
   A trauma-informed practice site for recovery from high-control religion.
   Single source of truth for design tokens + all components.
   See docs/STYLE-GUIDE.md for the human-readable system.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. SELF-HOSTED FONTS (variable woff2, latin subset — zero third-party calls)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-italic-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-latin-var.woff2') format('woff2');
}

/* -----------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds — warm, never clinical white */
  --bg-cream: #F5F0E6;
  --bg-raised: #FBF8F2;
  --bg-sand: #EBE3D5;

  /* Ink & primary — stability and safety */
  --ink-900: #20282C;   /* body text */
  --ink-700: #3A464C;   /* secondary text */
  --ink-500: #5C6A70;   /* muted / captions */
  --navy: #1F3247;      /* brand, buttons, anchor sections */
  --navy-800: #182838;  /* hover / deep footer */

  /* Accents — growth and horizon. -700 variants are text-safe (AA ≥4.5:1 on cream) */
  --moss: #6B7A53;
  --moss-700: #4F5C3A;
  --terracotta: #BF6B47;
  --terracotta-700: #9E5435;
  --sky: #9CC0D4;
  --sky-600: #5E8499;   /* large text / UI only (3.5:1) */

  /* Tints for soft fills */
  --moss-tint: #E7EADD;
  --terracotta-tint: #F1E2D7;
  --sky-tint: #E3ECF1;

  /* Surfaces on dark */
  --on-navy: #F3EEE3;
  --on-navy-muted: #C2CBD3;

  /* Lines & shadows */
  --line: #E0D7C7;
  --line-strong: #CFC3AE;
  --shadow-sm: 0 1px 2px rgba(32, 40, 44, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(32, 40, 44, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(32, 40, 44, 0.28);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-body: 1.125rem;            /* 18px base for calm reading */
  --fs-body-lg: 1.25rem;
  --fs-h3: clamp(1.3rem, 1rem + 1.2vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.7;                 /* generous, unhurried */

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 75rem;            /* 1200px */
  --container-narrow: 46rem;     /* ~736px — comfortable reading column */
  --measure: 65ch;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* Section rhythm */
  --section-y: clamp(3.5rem, 8vw, 7.5rem);

  --transition: 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -----------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* offset sticky header for anchor links */
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  position: relative;
  min-height: 100vh;
}

/* Barely-there warm grain for organic depth (decorative, very low opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--ink-900);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-700); }

strong, b { font-weight: 600; }
em { font-style: italic; }

/* Accessibility: visible focus everywhere */
:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-4); color: var(--on-navy); }

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Surface variants for alternating section backgrounds */
.surface-cream { background: var(--bg-cream); }
.surface-raised { background: var(--bg-raised); }
.surface-sand { background: var(--bg-sand); }
.surface-navy { background: var(--navy); color: var(--on-navy); }
.surface-navy h1, .surface-navy h2, .surface-navy h3 { color: var(--on-navy); }
.surface-navy p { color: var(--on-navy-muted); }
.surface-navy a { color: #BFD6E4; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: var(--space-4);
}
.surface-navy .eyebrow { color: #A9C6B2; }

.section-lead {
  font-size: var(--fs-body-lg);
  color: var(--ink-700);
  max-width: 52ch;
}
.center .section-lead { margin-inline: auto; }

/* -----------------------------------------------------------------------------
   5. BUTTONS & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition),
              border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--navy-800); color: var(--on-navy); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(31, 50, 71, 0.04); }

.surface-navy .btn--primary { background: var(--terracotta); color: #20140C; }
.surface-navy .btn--primary:hover { background: #CD7A57; color: #20140C; }
.surface-navy .btn--ghost { color: var(--on-navy); border-color: rgba(243, 238, 227, 0.35); }
.surface-navy .btn--ghost:hover { border-color: var(--on-navy); background: rgba(243, 238, 227, 0.08); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
}
.link-arrow::after {
  content: "\2192";
  transition: transform var(--transition);
}
.link-arrow:hover { color: var(--terracotta-700); }
.link-arrow:hover::after { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background-color var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.75rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--moss-700); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--ink-900); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.nav-cta { margin-left: var(--space-2); }
.nav-cta .btn { padding: 0.7rem 1.15rem; font-size: 1rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  cursor: pointer;
  color: var(--ink-900);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--gutter) var(--space-6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: var(--space-4) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 1rem; }
}

/* -----------------------------------------------------------------------------
   7. HERO — "the open horizon"
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3.5rem, 8vw, 7rem);
  isolation: isolate;
}
/* Layered horizon: a soft band of light low in the frame, suggesting openness */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 75% 8%, rgba(156, 192, 212, 0.30), transparent 55%),
    radial-gradient(90% 60% at 12% 30%, rgba(231, 234, 221, 0.55), transparent 60%),
    linear-gradient(180deg, #F0EADC 0%, var(--bg-cream) 46%, #F2ECDE 100%);
}
/* Faint horizon line */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(2.5rem, 12vh, 7rem);
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(94, 132, 153, 0.35) 30%, rgba(191, 107, 71, 0.25) 70%, transparent);
}
/* Two-column hero: text left, canvas right */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero__content { /* width constrained by grid column */ }
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 380px;
  /* Bleed the canvas flush to the hero's right edge */
  margin-right: calc(var(--gutter) * -1);
}
#hero-canvas,
#about-canvas,
#services-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* let mouse events pass through to the section */
}
@media (max-width: 860px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

.hero h1 { margin-bottom: var(--space-5); }
.hero__lead {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
  color: var(--ink-700);
  max-width: 40ch;
  margin-bottom: var(--space-7);
}
.hero .btn-row { margin-bottom: var(--space-5); }
.hero__reassure {
  font-size: 1rem;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.hero__reassure::before {
  content: "";
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--moss);
  flex: none;
}

/* -----------------------------------------------------------------------------
   8. VALIDATION GRID
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: var(--space-8);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .card-grid--2 { grid-template-columns: 1fr; }
}

.validate-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.validate-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent, var(--moss));
}
.validate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.validate-card h3 { margin-bottom: var(--space-3); font-size: 1.4rem; }
.validate-card p { color: var(--ink-700); }
.validate-card:nth-child(1) { --accent: var(--terracotta); }
.validate-card:nth-child(2) { --accent: var(--moss); }
.validate-card:nth-child(3) { --accent: var(--sky-600); }
.validate-card:nth-child(4) { --accent: var(--navy); }

/* -----------------------------------------------------------------------------
   9. APPROACH PILLARS
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: var(--space-8);
}
.pillar__mark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--terracotta-700);
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  margin-bottom: var(--space-4);
}
.pillar h3 { margin-bottom: var(--space-3); }
.pillar p { color: var(--ink-700); }

/* -----------------------------------------------------------------------------
   10. SPLIT / PROSE / FEATURE ROWS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--portrait { grid-template-columns: 0.8fr 1fr; }
@media (max-width: 820px) {
  .split, .split--portrait { grid-template-columns: 1fr; gap: var(--space-6); }
}

.prose > * + * { margin-top: var(--space-4); }
.prose p { color: var(--ink-700); max-width: var(--measure); }
.prose h2 { margin-bottom: var(--space-2); }
.prose h3 { margin-top: var(--space-6); }

/* Pull statement (philosophy, big quote-like blocks) */
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
  line-height: 1.35;
  color: var(--ink-900);
  font-weight: 500;
  max-width: 22ch;
}
.statement--wide { max-width: 30ch; }

.callout {
  border-left: 4px solid var(--moss);
  background: var(--moss-tint);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout p { color: var(--ink-700); }

/* Portrait placeholder (headshot slot) */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(156,192,212,0.5), transparent 55%),
    linear-gradient(160deg, var(--sky-tint), var(--bg-sand) 70%, var(--terracotta-tint));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}
.portrait span {
  font-size: 0.95rem;
  color: var(--ink-500);
  text-align: center;
  padding: 1rem;
  max-width: 22ch;
}

/* -----------------------------------------------------------------------------
   11. WHO THIS IS FOR — checklist
   -------------------------------------------------------------------------- */
.list-clean { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.list-clean li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--ink-700);
}
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--moss-tint), var(--sky-tint));
  border: 1.5px solid var(--moss);
}
.list-clean li::after {
  content: "";
  position: absolute;
  left: 0.42rem; top: 0.72rem;
  width: 0.35rem; height: 0.6rem;
  border: solid var(--moss-700);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* -----------------------------------------------------------------------------
   12. CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside p { color: var(--ink-700); }
.contact-aside .statement { margin-bottom: var(--space-5); }
.contact-methods { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.contact-methods a {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 500; color: var(--navy); text-decoration: none; font-size: 1.05rem;
}
.contact-methods a:hover { color: var(--terracotta-700); }
.contact-methods .label { color: var(--ink-500); font-weight: 400; }

.form {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: var(--space-2);
  color: var(--ink-900);
}
.field .req { color: var(--terracotta-700); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--ink-900);
  background: var(--bg-cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: #8C8576; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sky-600);
  box-shadow: 0 0 0 3px rgba(94, 132, 153, 0.22);
}
.field textarea { min-height: 9rem; resize: vertical; }

/* Honeypot — hidden from humans, catches bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__notice {
  font-size: 0.95rem;
  color: var(--ink-500);
  background: var(--sky-tint);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: var(--space-5);
}
.form button[type="submit"] { width: 100%; justify-content: center; }
.form__fineprint { font-size: 0.875rem; color: var(--ink-500); margin-top: var(--space-4); }

/* Submission confirmation / error message */
.form__status {
  margin-top: var(--space-4);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--moss-tint);
  border-left: 4px solid var(--moss);
}
.form__status[hidden] { display: none; }
.form__status.is-error {
  background: var(--terracotta-tint);
  border-left-color: var(--terracotta-700);
}

/* -----------------------------------------------------------------------------
   13. FAQ (accordion via <details>)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); margin-top: var(--space-7); }
.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 clamp(1.25rem, 3vw, 1.75rem);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--terracotta-700);
  transition: transform var(--transition);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { color: var(--ink-700); padding-bottom: 1.5rem; max-width: var(--measure); }

/* -----------------------------------------------------------------------------
   14. STEPS (what to expect)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-5); margin-top: var(--space-7); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.05rem; left: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  border-radius: 50%;
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.step p { color: var(--ink-700); }

/* -----------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(191,107,71,0.30), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(94,132,153,0.30), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .section-lead { color: var(--on-navy-muted); margin-bottom: var(--space-7); }

/* -----------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-800);
  color: var(--on-navy-muted);
  padding-block: var(--space-8) var(--space-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(243, 238, 227, 0.12);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: var(--on-navy); margin-bottom: var(--space-3); }
.footer-brand span { color: #A9C6B2; }
.site-footer p { color: var(--on-navy-muted); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A9C6B2;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--on-navy); text-decoration: none; }
.footer-col a:hover { color: #BFD6E4; }

.crisis-note {
  background: rgba(243, 238, 227, 0.06);
  border: 1px solid rgba(243, 238, 227, 0.14);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-7);
}
.crisis-note strong { color: var(--on-navy); }
.crisis-note a { color: #BFD6E4; font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--on-navy-muted);
}
.footer-bottom .disclaimer { max-width: 60ch; }

/* -----------------------------------------------------------------------------
   17. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 80% 0%, rgba(156,192,212,0.22), transparent 55%),
    linear-gradient(180deg, #F0EADC, var(--bg-cream));
}
.page-hero h1 { margin-bottom: var(--space-4); max-width: 20ch; }
.page-hero .section-lead { max-width: 50ch; }

/* -----------------------------------------------------------------------------
   18. MISC HELPERS
   -------------------------------------------------------------------------- */
.divider-soft { height: 1px; background: var(--line); border: 0; margin-block: 0; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.tag {
  font-size: 0.9rem;
  color: var(--moss-700);
  background: var(--moss-tint);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* -----------------------------------------------------------------------------
   19. MOTION — gentle reveal, fully reduced-motion safe
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* No-JS safety: never hide content if JS fails to run */
.no-js .reveal { opacity: 1; transform: none; }
