/* ============================================================
   All Ears — shared styles
   Palette:
   --ink    #1C2733  deep slate navy (grounding, calm)
   --paper  #FBFAF7  warm near-white
   --gold   #F2B02E  hope / warmth (primary accent)
   --slate  #55677A  secondary text
   --line   #E4E0D6  hairlines
   ============================================================ */

:root {
  --ink: #1C2733;
  --ink-deep: #141D27;
  --paper: #FBFAF7;
  --gold: #F2B02E;
  --gold-soft: #F8D488;
  --slate: #55677A;
  --line: #E4E0D6;
  --radius: 14px;
  --max: 1120px;
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--slate);
  max-width: 58ch;
}

.on-dark { color: var(--paper); }
.on-dark .lede { color: #B9C4CF; }
.on-dark .eyebrow { color: var(--gold-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #FFC24A; }

.btn-ghost { border-color: currentColor; background: transparent; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-deep); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nav-links .btn { padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 12vw, 140px) 0 0;
  overflow: hidden;
}

.hero-inner { max-width: 800px; }

.hero .lede { margin-top: 22px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-wave {
  margin-top: clamp(48px, 8vw, 90px);
  display: block;
  width: 100%;
  height: auto;
}

/* subtle page-hero variant for inner pages */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vw, 100px) 0 clamp(48px, 7vw, 80px);
}

.page-hero .lede { margin-top: 18px; }

/* ---------- waveform signature ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  .wave-animated path {
    stroke-dasharray: 12 6;
    animation: wave-flow 30s linear infinite;
  }
  @keyframes wave-flow {
    to { stroke-dashoffset: -1000; }
  }
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-tint { background: #F3EFE6; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 14px; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.98rem; }

.card .card-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .card p { color: #B9C4CF; }

/* ---------- story / prose ---------- */

.prose {
  max-width: 680px;
  margin-inline: auto;
}

.prose p { margin-bottom: 1.35em; }

.prose .drop {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 26px;
  margin: 2.2em 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
}

.photo-placeholder {
  background: repeating-linear-gradient(-45deg, #EEE9DC, #EEE9DC 12px, #F3EFE6 12px, #F3EFE6 24px);
  border: 1px dashed #C9C2B0;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #8A8266;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  min-height: 320px;
  margin: 2.5em 0;
}

/* ---------- stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat span { color: #B9C4CF; font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gold);
  color: var(--ink-deep);
}

.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(48px, 7vw, 72px) 0;
}

.cta-band h2 { max-width: 18ch; }
.cta-band p { color: #4A3A12; margin-top: 10px; max-width: 46ch; }

/* ---------- crisis strip ---------- */

.crisis {
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0;
  font-size: 0.95rem;
}

.crisis .wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.crisis strong { color: var(--gold-soft); }

.crisis a { color: var(--gold-soft); font-weight: 700; }

.crisis-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .crisis-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 176, 46, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(242, 176, 46, 0); }
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #B9C4CF;
  padding: clamp(48px, 7vw, 72px) 0 40px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer h4 {
  font-family: var(--display);
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9C4CF; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8494A5;
}

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 20px; max-width: 640px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 176, 46, 0.25);
}

.note {
  font-size: 0.88rem;
  color: var(--slate);
  background: #F3EFE6;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

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

@media (max-width: 680px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 10px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
}
