/* ==========================================================================
   BIYAYA CHILD DEVELOPMENT CENTRE — Design System
   Palette:  Navy (governance/trust) · Gold (hope/offering)
             Coral (children/life)   · Leaf (growth/land) · Cream (paper)
   Type:     Fraunces (display) · Work Sans (body) · Space Mono (ledger/data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Colour tokens */
  --navy-950: #081226;
  --navy-900: #0B1D3A;
  --navy-800: #142c54;
  --navy-700: #1c3a6b;
  --navy-100: #dbe4f2;
  --gold-500: #E4A72A;
  --gold-600: #c78d18;
  --gold-100: #fbeecb;
  --coral-500: #EF6350;
  --coral-600: #d84a37;
  --coral-100: #fde3de;
  --leaf-500: #3E8E52;
  --leaf-600: #2f6f3f;
  --leaf-100: #dcf0e1;
  --cream-50: #FBF6EC;
  --cream-100: #F4EDDD;
  --paper: #FFFEFB;
  --ink-900: #171712;
  --ink-700: #3f3d35;
  --ink-500: #6b6858;

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 32px -12px rgba(11, 29, 58, 0.28);
  --shadow-card: 0 6px 20px -8px rgba(11, 29, 58, 0.22);
  --nav-h: 76px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; color: var(--navy-900); font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

@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; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy-900); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 999; transition: top .2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-900); color: #f1f2f6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--cream { background: var(--cream-100); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--coral-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--coral-500);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold-500); }
.section--navy .eyebrow::before { background: var(--gold-500); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.1rem; color: var(--ink-700); }
.section--navy .lede { color: #cfd6e6; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 10px 24px -10px rgba(239,99,80,.6); }
.btn-primary:hover { background: var(--coral-600); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(228,167,42,.55); }
.btn-gold:hover { background: var(--gold-600); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.section--navy .btn-outline { color: #fff; }
.section--navy .btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ==========================================================================
   NAVBAR — sticky, glassy backdrop-filter, collapses to hamburger
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11, 29, 58, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 18, 38, 0.92);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.5);
}
.nav-inner {
  width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.brand-text { line-height: 1.15; min-width: 0; overflow: hidden; }
.brand-text small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #e7ebf5; font-weight: 600; font-size: .93rem;
  padding: 10px 14px; border-radius: 999px;
  position: relative;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a[aria-current="page"] { color: var(--gold-500); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 auto; width: min(78vw, 340px);
    background: rgba(8,18,38,.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 22px 18px;
    transform: translateX(100%); transition: transform .32s var(--ease);
    border-left: 1px solid rgba(255,255,255,.1);
    height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 1.02rem; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: flex; margin-top: 14px; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
}

@media (max-width: 640px) {
  .hero-inner { padding-left: 28px; padding-right: 20px; }
  .hero-actions { margin-top: 8px; }
  .hero-actions .btn { margin-right: 6px; margin-bottom: 10px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,18,38,.55) 0%, rgba(8,18,38,.35) 32%, rgba(8,18,38,.88) 100%),
    linear-gradient(100deg, rgba(11,29,58,.92) 0%, rgba(11,29,58,.35) 55%, rgba(11,29,58,.15) 100%);
}
.hero-inner { position: relative; padding: 130px 0 72px; width: 100%; }
.hero-verse {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--gold-500); text-transform: uppercase; margin-bottom: 18px;
  display: inline-flex; gap: 10px; align-items: center; font-weight: 700;
}
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 15ch;
  font-weight: 600; letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-500); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: #e6e9f2; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px;
}
.hero-stats .stat-num { font-family: var(--font-mono); font-size: clamp(1.4rem,2.6vw,2rem); color: var(--gold-500); font-weight: 700; }
.hero-stats .stat-label { font-size: .8rem; color: #cfd6e6; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   THE LEDGER — signature transparency component (passbook / stamped ledger)
   ========================================================================== */
.ledger {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 34px 32px;
  font-family: var(--font-mono);
  overflow: hidden;
}
.ledger::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background-image: repeating-linear-gradient(180deg, var(--navy-900) 0 10px, transparent 10px 20px);
}
.ledger-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0 12px 18px;
  border-bottom: 1px dashed var(--navy-100);
  font-size: .92rem;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row dt { color: var(--ink-500); }
.ledger-row dd { margin: 0; font-weight: 700; color: var(--navy-900); text-align: right; }
.ledger-stamp {
  position: absolute; top: 22px; right: 26px;
  border: 2.5px solid var(--leaf-500); color: var(--leaf-600);
  border-radius: 50%; width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  transform: rotate(-14deg);
  line-height: 1.15;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 30px;
  border: 1px solid rgba(11,29,58,.06);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 1.18rem; }

.pillar-grid .card:nth-child(1) .card-icon { background: var(--coral-500); }
.pillar-grid .card:nth-child(2) .card-icon { background: var(--leaf-500); }
.pillar-grid .card:nth-child(3) .card-icon { background: var(--gold-500); color: var(--navy-900); }
.pillar-grid .card:nth-child(4) .card-icon { background: var(--navy-700); }
.pillar-grid .card:nth-child(5) .card-icon { background: var(--coral-500); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   WELCOME / PULL-QUOTE (Overseer letter)
   ========================================================================== */
.welcome {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center;
}
.welcome-figure {
  position: relative;
  text-align: center;
}
.welcome-figure img {
  width: 280px; height: 280px; margin: 0 auto;
  display: block; object-fit: cover; border-radius: 50%;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper);
  outline: 4px solid var(--navy-100);
}
.welcome-figure figcaption {
  margin-top: 22px; padding: 0; background: none; color: var(--ink-700);
  font-size: .92rem;
}
.welcome-figure figcaption strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 3px; }
.letter { position: relative; padding-left: 28px; border-left: 4px solid var(--gold-500); }
.letter blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.28rem; color: var(--navy-900); line-height: 1.5; }
.letter-sign { margin-top: 22px; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-500); }
.letter-sign strong { display: block; color: var(--navy-900); font-family: var(--font-body); font-size: 1rem; }

@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-figure img { width: 220px; height: 220px; }
}

/* ==========================================================================
   NEWS & UPDATES
   ========================================================================== */
.news-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  overflow: hidden; padding: 0;
}
.news-featured-media { position: relative; height: 100%; min-height: 320px; }
.news-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured-body { padding: 40px 44px 40px 0; }
.news-date {
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 10px;
}
.news-featured-body h2 { font-size: 1.7rem; margin-bottom: 14px; }
.news-featured-body p { color: var(--ink-700); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.news-card-media { position: relative; overflow: hidden; }
.news-card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.news-card-body { padding: 20px 22px 24px; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-card-body p { font-size: .9rem; color: var(--ink-700); margin: 0; }

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 240px; }
  .news-featured-body { padding: 32px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ACTIVITIES GALLERY
   ========================================================================== */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.activity-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.activity-photo { position: relative; overflow: hidden; background: var(--navy-100); }
.activity-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; transition: transform .4s var(--ease); }
.activity-card:hover .activity-photo img { transform: scale(1.04); }
.activity-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(8,18,38,.75); backdrop-filter: blur(4px);
  color: var(--gold-500); font-family: var(--font-mono); font-size: .68rem; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(228,167,42,.5); text-transform: uppercase; letter-spacing: .04em;
}
.activity-body { padding: 20px 22px 24px; }
.activity-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.activity-body p { font-size: .9rem; color: var(--ink-700); margin: 0; }

.activity-grid--feature .activity-card:first-child { grid-column: span 2; }
.activity-grid--feature .activity-card:first-child .activity-photo img { aspect-ratio: 16/9; }

@media (max-width: 980px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid--feature .activity-card:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .activity-grid, .activity-grid--feature .activity-card:first-child { grid-template-columns: 1fr; grid-column: span 1 !important; }
}

/* ==========================================================================
   CHILD SPONSORSHIP CATALOG
   ========================================================================== */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding: 18px 22px; background: var(--paper);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select {
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--navy-100);
  background: var(--cream-50); color: var(--navy-900); font-weight: 600; font-size: .88rem;
}
.result-count { font-family: var(--font-mono); font-size: .84rem; color: var(--ink-500); }

.child-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.child-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.child-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.child-photo {
  position: relative; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.child-photo img { width: 100%; height: 100%; object-fit: cover; }
.child-photo .ph-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75); text-align: center; padding: 20px;
}
.child-photo .ph-placeholder svg { width: 44px; height: 44px; opacity: .85; }
.child-photo .ph-placeholder span { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.child-id {
  position: absolute; top: 12px; left: 12px; background: rgba(8,18,38,.72); backdrop-filter: blur(4px);
  color: var(--gold-500); font-family: var(--font-mono); font-size: .68rem; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(228,167,42,.5);
}
.child-status {
  position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: .65rem;
  padding: 5px 10px; border-radius: 999px; font-weight: 700; text-transform: uppercase;
}
.status-open { background: var(--leaf-500); color: #fff; }
.status-sponsored { background: rgba(255,255,255,.85); color: var(--ink-700); }
.child-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.child-name { font-family: var(--font-display); font-size: 1.08rem; color: var(--navy-900); font-weight: 600; }
.child-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-500); font-family: var(--font-mono); }
.child-need {
  display: inline-flex; align-self: flex-start; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--coral-100); color: var(--coral-600);
}
.child-body .btn { margin-top: auto; }

.catalog-more { display: flex; justify-content: center; margin-top: 44px; gap: 14px; }

@media (max-width: 980px) { .child-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .child-grid { grid-template-columns: 1fr; } .catalog-toolbar { flex-direction: column; align-items: stretch; } }

/* ==========================================================================
   DONATION FORM
   ========================================================================== */
.donate-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 980px) { .donate-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 36px; }
.form-step { margin-bottom: 30px; }
.form-step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.form-step h3 .step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .8rem;
}
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 620px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-option { position: relative; }
.tier-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.tier-option label {
  display: block; border: 2px solid var(--navy-100); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.tier-option input:checked + label { border-color: var(--coral-500); background: var(--coral-100); }
.tier-option input:focus-visible + label { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.tier-amount { font-family: var(--font-mono); font-weight: 700; color: var(--navy-900); display: block; }
.tier-desc { font-size: .78rem; color: var(--ink-500); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy-100); background: var(--cream-50); color: var(--ink-900);
}
.field input:focus, .field select:focus { border-color: var(--coral-500); outline: none; }
.field-hint { font-size: .78rem; color: var(--ink-500); margin-top: 4px; }

.radio-row, .check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-choice { position: relative; }
.pill-choice input { position: absolute; opacity: 0; }
.pill-choice label {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid var(--navy-100); cursor: pointer; font-weight: 600; font-size: .88rem;
  transition: all .18s var(--ease);
}
.pill-choice input:checked + label { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pill-choice input:focus-visible + label { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.payment-routes { display: grid; gap: 10px; }
.route-option { border: 1.5px solid var(--navy-100); border-radius: var(--radius-md); padding: 14px 16px; position: relative; }
.route-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.route-option label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.route-option input:checked ~ label { color: var(--navy-900); }
.route-option:has(input:checked) { border-color: var(--leaf-500); background: var(--leaf-100); }
.route-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.route-sub { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-500); }

.summary-card { position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--navy-100); font-size: .92rem; }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--navy-900); }

/* Bank transfer / printable card */
.bank-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; }
.bank-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(228,167,42,.18), transparent 55%); }
.bank-card .ledger-row { border-bottom-color: rgba(255,255,255,.15); }
.bank-card .ledger-row dt { color: #b9c2d6; }
.bank-card .ledger-row dd { color: var(--gold-500); }

/* ==========================================================================
   RECEIPT MODAL
   ========================================================================== */
.receipt-overlay {
  position: fixed; inset: 0; background: rgba(8,18,38,.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 900; padding: 24px;
}
.receipt-overlay.is-open { display: flex; }
.receipt-modal {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 38px; position: relative; box-shadow: var(--shadow-soft);
  animation: pop-in .35s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.receipt-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--navy-100); background: var(--cream-50); font-size: 1.1rem; }
.receipt-head { text-align: center; margin-bottom: 22px; }
.receipt-head .stamp-check {
  width: 60px; height: 60px; border-radius: 50%; background: var(--leaf-100); color: var(--leaf-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.6rem;
}
.receipt-id { font-family: var(--font-mono); color: var(--coral-600); font-size: .85rem; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-group { margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--navy-100); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 1.06rem; color: var(--navy-900); font-weight: 600;
}
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--navy-900); position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position: absolute; background: var(--navy-900); transition: transform .25s var(--ease); }
.faq-q .plus::before { left: 6px; right: 6px; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { top: 6px; bottom: 6px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-q .plus::after { transform: translateX(-50%) scaleY(0); }
.faq-a { padding: 0 4px 22px; color: var(--ink-700); max-width: 72ch; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; cursor: pointer; }

/* ==========================================================================
   POLICY / ARTICLE PAGES
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } }
.article-toc { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--paper); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); }
.article-toc p { font-family: var(--font-mono); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 10px; }
.article-toc a { display: block; padding: 7px 0; font-size: .88rem; font-weight: 600; color: var(--ink-700); border-left: 2px solid transparent; padding-left: 10px; }
.article-toc a:hover { color: var(--coral-600); border-left-color: var(--coral-500); }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.article-body h2:first-child { margin-top: 0; }
.article-body ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.article-body ul li { margin-bottom: .5em; }
.callout { background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   LEADERSHIP GRID
   ========================================================================== */
.leader-card { text-align: center; }
.leader-avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center; color: var(--gold-500);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  overflow: hidden; border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--navy-100);
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-role { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-600); margin-bottom: 4px; }
.leader-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.leader-org { font-size: .82rem; color: var(--ink-500); }

/* ==========================================================================
   TIMELINE (history)
   ========================================================================== */
.timeline { position: relative; padding-left: 34px; border-left: 3px solid var(--navy-100); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -42px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral-500); border: 3px solid var(--cream-50);
}
.timeline-year { font-family: var(--font-mono); color: var(--coral-600); font-weight: 700; font-size: .85rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #cfd6e6; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 2px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; display: block; }
.footer-verse { font-family: var(--font-display); font-style: italic; color: var(--gold-500); font-size: .95rem; }
.footer-heading { color: #fff; font-family: var(--font-mono); text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; color: #cfd6e6; }
.footer-links a:hover { color: var(--gold-500); }
.footer-contact li { font-size: .9rem; margin-bottom: 10px; display: flex; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #94a0bd; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; border: 1px solid rgba(255,255,255,.2); padding: 5px 10px; border-radius: 999px; }

/* ==========================================================================
   MISC / UTILITIES
   ========================================================================== */
.page-hero {
  background: var(--navy-900); color: #fff; padding: 150px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after { content:""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(228,167,42,.18), transparent 55%); }
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero .eyebrow::before { background: var(--gold-500); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); max-width: 18ch; position: relative; }
.page-hero p { max-width: 60ch; color: #cfd6e6; position: relative; }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: #9fabc9; margin-bottom: 18px; position: relative; }
.breadcrumb a { color: var(--gold-500); }

.cta-band { background: linear-gradient(120deg, var(--coral-500), var(--coral-600)); color: #fff; border-radius: var(--radius-lg); padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.9); margin: 0 auto 26px; }

.badge-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge-strip .chip { font-family: var(--font-mono); font-size: .72rem; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4, .grid-5 { grid-template-columns: repeat(2,1fr); }
  .donate-layout, .article-layout { gap: 30px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
  .footer-bottom { flex-direction: column; }
}

/* Print styles for the receipt */
@media print {
  .site-header, .site-footer, .receipt-close, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt-overlay { position: static; background: none; backdrop-filter: none; }
  .receipt-modal { box-shadow: none; max-height: none; }
}
