/* =====================================================================
   ALIVE DAY FOUNDATION  |  Global Design System
   Crafted by ThatDeveloperGuy.com
   Palette: navy (trust), olive (healing), gold (hope), red (sacrifice),
   cream (humanity). Outdoors, dignified, hopeful. No dashes in content.
   ===================================================================== */

:root {
  /* Brand */
  --navy:        #13294a;
  --navy-700:    #1b3a5c;
  --navy-900:    #0c1b33;
  --olive:       #5e6a33;
  --olive-700:   #4b5529;
  --gold:        #c8a24a;
  --gold-300:    #ddc079;
  --red:         #9e342b;
  --cream:       #f4eee1;
  --cream-200:   #ece3d2;
  --forest:      #2e4a3a;

  /* Ink / surfaces */
  --ink:         #1b2230;
  --ink-soft:    #44505f;
  --muted:       #5b6675;
  --line:        #ddd3c2;
  --white:       #ffffff;

  /* Type */
  --serif:  "Bitter", Georgia, "Times New Roman", serif;
  --cond:   "Oswald", "Arial Narrow", sans-serif;
  --sans:   "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Caveat", cursive;

  /* Rhythm */
  --maxw: 1160px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 48px rgba(12, 27, 51, 0.12);
  --shadow-sm: 0 8px 22px rgba(12, 27, 51, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--olive-700); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { color: var(--ink-soft); }
p + p { margin-top: 1rem; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: var(--section-y); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; font-size: 0.8rem; color: var(--olive);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center-eyebrow { justify-content: center; }
.lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; }
.script-accent { font-family: var(--script); color: var(--gold); font-size: 1.4em; line-height: 0.9; }

/* AEO / voice answer capsule (speakable target) */
.answer-capsule {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; color: var(--ink);
  font-size: 1.08rem; box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  font-size: 0.98rem; padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 26px rgba(200,162,74,0.34); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-900); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(244,238,225,0.55); }
.btn-ghost-light:hover { background: var(--cream); color: var(--navy); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,238,225,0.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); font-size: 1.05rem; }
.brand .brand-sub { font-family: var(--cond); font-weight: 400; text-transform: uppercase; letter-spacing: 0.22em; color: var(--olive); font-size: 0.56rem; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-links a { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; font-size: 0.92rem; color: var(--navy); text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 7px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--olive-700); background: rgba(94,106,51,0.10); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 0.6rem 1.1rem 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 0.8rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--cream); isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12,27,51,0.78) 0%, rgba(19,41,74,0.86) 55%, rgba(12,27,51,0.94) 100%),
    radial-gradient(120% 120% at 80% 0%, rgba(200,162,74,0.22), transparent 55%),
    var(--navy-900);
  overflow: hidden;
}
.hero::after {
  /* subtle horizon ridge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(46,74,58,0.5));
  clip-path: polygon(0 60%, 12% 40%, 28% 58%, 42% 32%, 58% 56%, 72% 36%, 86% 58%, 100% 42%, 100% 100%, 0 100%);
}
.hero-inner { padding-block: clamp(4rem, 12vw, 8.5rem); position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(244,238,225,0.9); }
.hero .eyebrow { color: var(--gold-300); }
.hero .eyebrow::before { background: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.flag-strip { height: 5px; width: 96px; border-radius: 4px; background: linear-gradient(90deg, var(--red) 0 33%, var(--cream) 33% 66%, var(--navy-700) 66% 100%); margin-bottom: 1.4rem; }

/* ---------- generic surfaces ---------- */
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(244,238,225,0.82); }
.bg-olive { background: var(--olive); color: var(--cream); }
.bg-olive h2, .bg-olive h3 { color: #fff; }
.bg-olive p { color: rgba(244,238,225,0.9); }
.bg-cream2 { background: var(--cream-200); }
.bg-white { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(94,106,51,0.12); color: var(--olive-700); margin-bottom: 1rem; }
.card .icon svg { width: 26px; height: 26px; }
.card.span-top { border-top: 4px solid var(--gold); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat .label { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: rgba(244,238,225,0.82); margin-top: 0.5rem; }

/* ---------- pillars ---------- */
.pillar { text-align: center; padding: 1.7rem 1.3rem; }
.pillar .ring { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; margin: 0 auto 1.1rem; color: var(--navy); background: rgba(200,162,74,0.10); }
.bg-navy .pillar .ring { color: var(--gold-300); }
.pillar .ring svg { width: 38px; height: 38px; }
.pillar h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; }
.pillar ul { list-style: none; margin-top: 0.6rem; display: grid; gap: 0.25rem; }
.pillar ul li { font-size: 0.98rem; }

/* ---------- the model timeline ---------- */
.phases { display: grid; gap: 1.1rem; counter-reset: phase; }
.phase {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm); border-left: 5px solid var(--olive);
}
.phase .badge { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }
.phase h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.phase .kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--olive-700); }
.phase ul { margin: 0.7rem 0 0 1rem; color: var(--ink-soft); }
.phase ul li { margin-bottom: 0.2rem; }
.phase .outcome { margin-top: 0.8rem; font-style: italic; color: var(--navy-700); border-top: 1px dashed var(--line); padding-top: 0.7rem; }

/* ---------- giving tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 820px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
.tier { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.2rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.tier:hover { transform: translateY(-4px); border-color: var(--gold); }
.tier .amt { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; color: var(--navy); }
.tier .amt span { color: var(--gold); }
.tier p { font-size: 0.96rem; margin-top: 0.4rem; }

/* ---------- quote ---------- */
.quote { border-left: 5px solid var(--gold); padding: 0.6rem 0 0.6rem 1.6rem; }
.quote p { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--navy); font-style: italic; line-height: 1.4; }
.quote cite { display: block; margin-top: 0.9rem; font-style: normal; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: var(--olive-700); }

/* ---------- cta band ---------- */
.cta-band {
  background:
    linear-gradient(180deg, rgba(12,27,51,0.92), rgba(19,41,74,0.96)),
    radial-gradient(100% 140% at 100% 0%, rgba(200,162,74,0.28), transparent 60%),
    var(--navy);
  color: var(--cream); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(244,238,225,0.88); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(94,106,51,0.18); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- list with check ---------- */
.checklist { list-style: none; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border-left: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive); transform: rotate(-45deg); }
.bg-navy .checklist li::before, .bg-olive .checklist li::before { border-color: var(--gold); }

/* ---------- notice / status ---------- */
.notice { background: rgba(200,162,74,0.12); border: 1px solid rgba(200,162,74,0.4); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.98rem; color: var(--navy-700); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(244,238,225,0.78); padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gap); }
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold-300); font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-grid a { color: rgba(244,238,225,0.78); text-decoration: none; display: block; padding: 0.22rem 0; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand img { height: 64px; margin-bottom: 0.9rem; }
.footer-brand p { color: rgba(244,238,225,0.7); font-size: 0.96rem; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-row a { width: 40px; height: 40px; border: 1px solid rgba(244,238,225,0.25); border-radius: 50%; display: grid; place-items: center; }
.social-row a:hover { border-color: var(--gold); background: rgba(200,162,74,0.12); }
.social-row svg { width: 18px; height: 18px; fill: rgba(244,238,225,0.82); }
.footer-bottom { border-top: 1px solid rgba(244,238,225,0.14); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(244,238,225,0.6); }
.footer-bottom a { color: rgba(244,238,225,0.6); }
.footer-bottom a:hover { color: var(--gold-300); }
.credit { font-family: var(--cond); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }

/* ---------- reveal on scroll (content stays visible if JS is off) ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- skip link & focus ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-900); padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0; font-family: var(--cond); z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* utility spacing */
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.tag { display:inline-block; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--olive-700); background: rgba(94,106,51,0.12); padding: 0.3rem 0.7rem; border-radius: 999px; }
