/* ============================================
   Seeds of Wealth - Site Stylesheet
   Brand: forest green + warm gold
   Type: DM Serif Display (headings) / Inter (body) / DM Mono (labels)
   Fonts are self-hosted (assets/fonts) - no third-party requests.
   ============================================ */

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #1e3d2f;
  --forest-dark: #14291f;
  --forest-light: #2f5943;
  --gold: #c9a227;
  --gold-light: #e0c15c;
  --gold-ink: #775a10; /* gold for text on light backgrounds (6.3:1 on white, 5.4:1 on tint) */
  --cream: #faf7f0;
  --paper: #ffffff;
  --tint: #f1ece0;
  --ink: #22261f;
  --ink-soft: #4c5548;
  --border: #e4ddc9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 41, 31, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 400;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
ul { color: var(--ink-soft); }

a { color: var(--forest); }
p a, li a, .faq-item a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }

:focus-visible { outline: 3px solid var(--forest-light); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

.mono, .stat-number, .eyebrow { font-family: 'DM Mono', 'Courier New', monospace; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

main:focus { outline: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container.narrow, .narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.container.narrow { padding: 0 24px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--forest); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #d6e6dc; }
.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--gold-light); }
.section--cream { background: var(--paper); }
.section--tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin-top: 0.5em; }
/* sections that are also containers keep their side gutters */
.container.section, .container.page-title { padding-left: 24px; padding-right: 24px; }

.page-title { padding-top: 56px; padding-bottom: 40px; }
.page-title h1 { max-width: 26ch; }
.page-title.text-center h1 { margin-left: auto; margin-right: auto; max-width: 24ch; }
.intro { font-size: 1.1rem; max-width: 640px; }
.text-center .intro, .page-title.text-center .intro { margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold-ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75em;
}
.section--dark .eyebrow { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none !important;
  text-align: center;
  font-family: inherit;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--forest-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--forest-dark); }
.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest-dark); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.section--dark .btn-primary, .section--dark .btn-primary:hover { color: var(--forest-dark); }
.section--dark .btn-outline { border-color: #fff; color: #fff; }
.section--dark .btn-outline:hover { background: #fff; color: var(--forest-dark); }

/* Accessibility utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0; top: 0;
  background: var(--forest-dark); color: #fff; padding: 12px 20px; z-index: 200;
  border-radius: 0 0 8px 0; transform: translateY(-110%); transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-width); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.nav-logo img { height: 38px; width: auto; border-radius: 0; }
.nav-logo span { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--forest-dark); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--gold-ink); }
.nav-links a.active { color: var(--gold-ink); font-weight: 700; }
.nav-links a.nav-donate {
  background: var(--forest); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 600;
}
.nav-links a.nav-donate:hover { background: var(--gold); color: var(--forest-dark); }
.nav-links a.nav-donate.active { background: var(--forest-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; font-size: 1.7rem; line-height: 1;
  color: var(--forest-dark); cursor: pointer; padding: 8px 10px; min-width: 44px; min-height: 44px;
}

/* Hero */
.hero-split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 64px;
}
.hero-copy h1 { margin-bottom: 0.45em; }
.lead { font-size: 1.15rem; max-width: 600px; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.text-center .hero-actions { justify-content: center; }
.brand-panel {
  background: var(--paper); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--shadow); padding: 36px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; max-width: 420px; width: 100%; margin-left: auto;
}
.brand-panel img { width: 78%; height: auto; border-radius: 0; }

.trust-bar { background: var(--forest); }
.trust-bar ul {
  list-style: none; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap;
  gap: 8px 36px; justify-content: center; color: #e4efe8; font-size: 0.92rem; font-weight: 500;
}
.trust-bar li::before { content: "\2713\00a0"; color: var(--gold-light); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px; text-align: center; margin: 44px 0 28px;
}
.stat-number { font-size: 2.6rem; color: var(--gold-light); font-weight: 500; line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: #d6e6dc; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.stats-note { max-width: 680px; margin: 0 auto; font-size: 0.9rem; }

/* Cards / grids */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid > * { min-width: 0; }
.grid--four { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.grid--split-a { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.grid--split-b { grid-template-columns: 1fr 0.9fr; align-items: start; gap: 48px; }
.grid--even { grid-template-columns: 1fr 1fr; gap: 48px; }
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.section--cream .card, .section--tint .card { background: var(--paper); }
.card h3 { margin-top: 0; }
.card > a { font-weight: 600; }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.card .age-badge, .age-badge {
  display: inline-block; background: var(--forest); color: #fff; font-size: 0.78rem;
  font-family: 'DM Mono', monospace; padding: 4px 12px; border-radius: 999px; margin: 0 8px 12px 0;
}
.status {
  display: inline-block; background: var(--tint); color: var(--forest-dark); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.status--live { background: #e3f1e8; border-color: #b9d8c5; color: #14402a; }
.card.flagship { border: 2px solid var(--gold); position: relative; }
.card.feature { max-width: 860px; margin: 0 auto; }
.card.flagship::before {
  content: 'Flagship Program'; position: absolute; top: -13px; left: 24px; background: var(--gold);
  color: var(--forest-dark); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 12px; border-radius: 999px;
}
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 0.5em; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.photo figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }

/* Forms */
form.stacked-form { display: flex; flex-direction: column; gap: 18px; max-width: 540px; margin-top: 20px; }
label { font-weight: 600; font-size: 0.92rem; color: var(--forest-dark); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid #8a917f; border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--forest-light); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a1260f; box-shadow: 0 0 0 1px #a1260f; }
.field-error { color: #a1260f; font-size: 0.85rem; margin-top: 4px; font-weight: 500; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  border-radius: 12px; padding: 18px 20px; margin: 18px 0; font-weight: 500; max-width: 540px;
  background: #e3f1e8; border: 1px solid #b9d8c5; color: #14402a;
}
.form-status.is-error { background: #fbe9e5; border-color: #e3b3a9; color: #7a1d0b; }
.form-status:focus { outline: 3px solid var(--forest-light); outline-offset: 2px; }
.form-status p { margin: 0; color: inherit; }

/* Support box */
.donate-box {
  background: var(--paper); border: 2px solid var(--gold); border-radius: 20px; padding: 36px; text-align: center; box-shadow: var(--shadow);
}
.donate-box p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.18); padding: 18px 0; }
.faq-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.faq-item p { margin: 0; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #d6e6dc; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.site-footer .footer-heading {
  color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.site-footer p { color: #d6e6dc; margin: 0 0 0.7em; }
.site-footer a { color: #d6e6dc; }
.site-footer a:hover { color: var(--gold-light); }
.footer-logo { height: 34px; width: auto; margin-bottom: 12px; border-radius: 0; background: #fff; padding: 2px; border-radius: 8px; }
.social-links { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.social-links a { padding: 12px 10px; min-width: 44px; min-height: 44px; display: inline-block; text-align: center; }
.social-links--light a { color: var(--forest); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #b4cabb;
}

/* Legal pages */
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal p { max-width: 70ch; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
  .brand-panel { margin: 0 auto; max-width: 320px; }
  .grid--split-a, .grid--split-b, .grid--even { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 0;
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(20, 41, 31, 0.12); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links a.nav-donate { display: inline-block; text-align: center; padding: 14px 22px; }
  .nav-toggle { display: block; }
  .section { padding: 48px 0; }
  .page-title { padding-top: 36px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; }
  .stats { gap: 24px 16px; }
  .btn { width: 100%; }
  .hero-actions .btn, .card-actions .btn { width: 100%; }
  .donate-box { padding: 26px 20px; }
}

@media print {
  .site-header, .skip-link, .nav-toggle, .hero-actions, form { display: none !important; }
  body { background: #fff; }
}

/* Evidence and facts */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-bottom: 24px; }
.evidence { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.evidence-number { font-family: 'DM Mono', monospace; font-size: 2.4rem; color: var(--forest); font-weight: 500; line-height: 1.1; margin-bottom: 10px; }
.evidence p { margin: 0; }
.source { font-size: 0.88rem; max-width: 760px; margin: 0 auto; text-align: center; }
.narrow .source { text-align: left; margin: 0; }
dl.facts { margin: 0; border-top: 1px solid var(--border); }
dl.facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px 28px; padding: 16px 0; border-bottom: 1px solid var(--border); }
dl.facts dt { font-weight: 600; color: var(--forest-dark); }
dl.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 780px) { dl.facts > div { grid-template-columns: 1fr; gap: 4px; } }
