/* ==========================================================================
   Kapde Bachao Foundation — single-page site styles
   Design tokens, layout primitives, and per-section styling.
   ========================================================================== */

:root {
  --green-50:  #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #16a34a;
  --green-600: #15803d;
  --green-700: #166534;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --ink-900:   #0f172a;
  --ink-700:   #334155;
  --ink-500:   #64748b;
  --ink-300:   #cbd5e1;
  --bg:        #ffffff;
  --bg-soft:   #f6f8f7;
  --bg-card:   #ffffff;
  --line:      #e6eae8;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px -12px rgba(16, 40, 30, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 40, 30, .28);
  --maxw:      1140px;
  --header-h:  68px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; color: var(--green-600); background: var(--green-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.section__subtitle { color: var(--ink-500); font-size: 1.05rem; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: .98rem; border-radius: 999px; border: 2px solid transparent;
  padding: 13px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-500); color: #fff; box-shadow: 0 12px 24px -10px rgba(22,163,74,.7); }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--outline { background: #fff; color: var(--green-700); border-color: var(--green-500); }
.btn--outline:hover { background: var(--green-50); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff; font-size: 1.2rem;
}
.brand__logo--img { background: none; border-radius: 0; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 1.04rem; line-height: 1.1; }
.brand__tag { font-size: .68rem; color: var(--green-600); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-700);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--green-50); color: var(--green-700); }

.header__right { display: flex; align-items: center; gap: 12px; }
.langswitch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langswitch button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: .82rem; padding: 6px 14px; border-radius: 999px; color: var(--ink-500);
}
.langswitch button.is-active { background: var(--green-500); color: #fff; }

.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 88vh; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__fallback {
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 70% 10%, #1f7a4d 0%, #0d4f31 55%, #08301f 100%);
}
/* Hero image slider */
.hero-slider { position: absolute; inset: 0; z-index: 0; background: #0d4f31; }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; background: #0d4f31; }
.story__video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04);
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 7s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.hero-dots button.is-active { width: 28px; background: #fff; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,40,26,.88) 0%, rgba(6,40,26,.55) 55%, rgba(6,40,26,.35) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: 110px 0; max-width: 760px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .82rem; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 18px; font-weight: 800; letter-spacing: -.01em; }
.hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 560px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.hero__chip { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 999px; }

/* ---------- Impact dashboard ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.stat {
  text-align: center; padding: 28px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat__emoji { font-size: 1.9rem; }
.stat__value { font-size: 2rem; font-weight: 800; color: var(--green-600); margin: 8px 0 4px; }
.stat__label { color: var(--ink-500); font-size: .92rem; font-weight: 600; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; margin-right: 7px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.6)} 70%{box-shadow:0 0 0 10px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.mission-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.mission-points li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.mission-points .emoji { font-size: 1.5rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 30px 20px; }
.step__num { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step__emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.step__title { font-weight: 700; }

/* ---------- Members ---------- */
.members-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.leaderboard th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.leaderboard tr:hover td { background: var(--green-50); }
.rank { font-weight: 800; color: var(--green-600); }
.rank--1 { color: #d97706; } .rank--2 { color: #6b7280; } .rank--3 { color: #b45309; }
.pts { font-weight: 700; }
.search-box { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.search-box input { padding: 12px 14px; border: 1px solid var(--ink-300); border-radius: 10px; font-family: inherit; font-size: .95rem; }
.premium-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }
.premium-card {
  position: relative; text-align: center; padding: 22px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #fffbeb, #fff7e0); border: 1px solid #f5e2a8;
  box-shadow: 0 12px 26px -16px rgba(180,130,10,.5);
}
.premium-card .crown { font-size: 1.5rem; }
.premium-card__avatar { width: 56px; height: 56px; border-radius: 50%; margin: 8px auto; background: linear-gradient(135deg,#fbbf24,#f59e0b); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.premium-card__name { font-weight: 700; }
.premium-card__city { font-size: .82rem; color: var(--ink-500); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }

/* ---------- Leadership ---------- */
.lead-group + .lead-group { margin-top: 40px; }
.lead-group__title { font-weight: 800; font-size: 1.1rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 18px; }
.person { text-align: center; padding: 26px 18px; }
.person__avatar { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--green-500), var(--green-700)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem; overflow: hidden; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 700; }
.person__role { color: var(--green-600); font-size: .9rem; font-weight: 600; }
.person__bio { color: var(--ink-500); font-size: .86rem; margin-top: 8px; }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.program { padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.program:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-50); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; }
.program__title { font-weight: 800; font-size: 1.12rem; margin-bottom: 8px; }
.program__desc { color: var(--ink-500); font-size: .94rem; }

/* ---------- Impact map ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.map-art {
  aspect-ratio: 1/1; border-radius: var(--radius); background:
    radial-gradient(80% 80% at 40% 30%, #d1fae5 0%, #ecfdf5 60%, #fff 100%);
  border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden;
}
.map-art__india { font-size: 8rem; opacity: .25; }
.state-list { display: flex; flex-direction: column; gap: 10px; }
.state-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 18px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; transition: .18s; text-align: left;
}
.state-btn:hover { border-color: var(--green-500); }
.state-btn.is-active { background: var(--green-500); color: #fff; border-color: var(--green-500); }
.state-detail { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.state-detail .mini { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 8px; }
.state-detail .mini b { display: block; font-size: 1.4rem; color: var(--green-600); }
.state-detail .mini span { font-size: .8rem; color: var(--ink-500); }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.story { overflow: hidden; padding: 0; }
.story__media { aspect-ratio: 16/10; background: linear-gradient(135deg,#dcfce7,#bbf7d0); display: grid; place-items: center; font-size: 2.4rem; position: relative; }
.story__beforeafter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.story__beforeafter div { display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--green-700); }
.story__beforeafter div:first-child { background: #fee2e2; }
.story__beforeafter div:last-child { background: #dcfce7; }
.story__body { padding: 20px 22px; }
.story__kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); }
.story__title { font-weight: 800; margin: 6px 0; }
.story__desc { color: var(--ink-500); font-size: .92rem; }
.play { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--green-600); font-size: 1.1rem; }

/* ---------- Events ---------- */
.event-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.chip-filter { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .86rem; color: var(--ink-700); transition: .15s; }
.chip-filter.is-active { background: var(--green-500); color: #fff; border-color: var(--green-500); }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.event { display: flex; gap: 16px; padding: 22px; }
.event__date { flex: 0 0 64px; text-align: center; background: var(--green-50); border-radius: var(--radius-sm); padding: 10px 6px; align-self: flex-start; }
.event__date b { display: block; font-size: 1.5rem; color: var(--green-700); line-height: 1; }
.event__date span { font-size: .72rem; text-transform: uppercase; color: var(--green-600); font-weight: 700; }
.event__cat { font-size: .72rem; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: .05em; }
.event__title { font-weight: 800; margin: 4px 0; }
.event__meta { color: var(--ink-500); font-size: .88rem; }

/* ---------- Membership card ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.id-card {
  border-radius: 20px; padding: 26px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-600), var(--green-700)); box-shadow: var(--shadow-lg);
}
.id-card::after { content:""; position:absolute; width:200px; height:200px; right:-60px; top:-60px; border-radius:50%; background: rgba(255,255,255,.08); }
.id-card__top { display: flex; justify-content: space-between; align-items: center; }
.id-card__chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg,#fde68a,#f59e0b); }
.id-card__name { font-size: 1.3rem; font-weight: 800; margin-top: 28px; }
.id-card__row { display: flex; justify-content: space-between; margin-top: 14px; font-size: .82rem; opacity: .9; }
.id-card__qr { width: 60px; height: 60px; border-radius: 8px; background:
  repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 50%/14px 14px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; flex: 0 0 26px; }

/* ---------- Donation ---------- */
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pay-methods { display: grid; gap: 14px; }
.pay-method { display: flex; align-items: center; gap: 14px; padding: 18px; }
.pay-method__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); display: grid; place-items: center; font-size: 1.3rem; }
.amounts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 24px; }
.amount-btn { border: 2px solid var(--line); background: #fff; padding: 12px 22px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem; transition: .15s; }
.amount-btn:hover, .amount-btn.is-active { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); }
.qr-box { text-align: center; }
.qr-box .qr { width: 150px; height: 150px; margin: 0 auto 12px; border-radius: 12px; background:
  repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 50%/24px 24px; border: 8px solid #fff; box-shadow: var(--shadow); }

/* ---------- Transparency ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.doc__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green-50); display: grid; place-items: center; font-size: 1.2rem; }
.doc__title { font-weight: 700; font-size: .96rem; }
.doc__link { font-size: .8rem; color: var(--green-600); font-weight: 600; }

/* ---------- Achievements ---------- */
.ach-group { margin-bottom: 34px; }
.ach-group__title { font-weight: 800; margin: 0 0 16px; display: flex; gap: 10px; align-items: center; }
.achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; }
.achievement { display: flex; gap: 14px; padding: 20px; align-items: flex-start; }
.achievement__icon { font-size: 1.6rem; }
.achievement__title { font-weight: 700; }
.achievement__desc { color: var(--ink-500); font-size: .86rem; }

/* ---------- Activity feed ---------- */
.feed { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.feed-item { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.feed-item__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--green-50); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 42px; }
.feed-item__text { font-weight: 600; }
.feed-item__time { font-size: .78rem; color: var(--ink-500); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.gallery-item { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg,#dcfce7,#a7f3d0); display: grid; place-items: center; cursor: pointer; }
.gallery-item__icon { font-size: 2.4rem; }
.gallery-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 700; font-size: .9rem; }
.gallery-item__kind { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.9); color: var(--green-700); padding: 3px 9px; border-radius: 999px; }

/* ---------- Premium feature highlight ---------- */
.premium-banner { background: linear-gradient(135deg, var(--ink-900), #14532d); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow-lg); }
.premium-banner h3 { font-size: clamp(1.4rem,3vw,2rem); margin: 14px 0; }
.premium-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; }
.premium-banner .medal { font-size: 2.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 16px; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); display: grid; place-items: center; font-size: 1.4rem; }
.contact-card__label { font-weight: 700; font-size: .92rem; }
.contact-card__value { font-size: .82rem; color: var(--ink-500); word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #cbd5e1; padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer__brand .brand__name { color: #fff; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.footer__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.footer__stat b { display: block; color: #fff; font-size: 1.3rem; }
.footer__stat span { font-size: .8rem; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; text-align: center; font-size: .82rem; color: var(--ink-500); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section images (placeholders until admin uploads) ---------- */
/* Programs */
.program { padding: 0; overflow: hidden; }
.program__media { height: 168px; background-size: cover; background-position: center; position: relative; }
.program__badge { position: absolute; left: 16px; bottom: -22px; width: 50px; height: 50px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.5rem; }
.program__body { padding: 32px 24px 26px; }

/* Mission image */
.mission__img { margin-top: 22px; height: 260px; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }

/* Stories */
.story__media { background-size: cover; background-position: center; }
.story__beforeafter div { background-size: cover; background-position: center; position: relative; align-items: flex-end; justify-items: stretch; }
.story__beforeafter div span { width: 100%; text-align: center; background: rgba(255,255,255,.85); padding: 4px 0; font-size: .72rem; }
.story__beforeafter div:first-child, .story__beforeafter div:last-child { background-color: #e2e8f0; }

/* Events */
.event { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.event__media { height: 150px; background-size: cover; background-position: center; position: relative; }
.event__media .event__date { position: absolute; top: 12px; left: 12px; background: #fff; box-shadow: var(--shadow); }
.event__body { padding: 20px 22px; }

/* Leadership avatars */
.person__avatar { background-size: cover; background-position: center; }

/* Achievements */
.achievement__media { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 14px; background-size: cover; background-position: center; position: relative; }
.achievement__media .achievement__icon { position: absolute; right: -8px; bottom: -8px; font-size: 1.2rem; background: #fff; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; box-shadow: var(--shadow); }

/* Gallery */
.gallery-item { background-size: cover; background-position: center; }
.gallery-item__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--green-600); font-size: 1.1rem; }

/* ---------- Responsive ---------- */
* { min-width: 0; }                                   /* prevent flex/grid children from overflowing */
img, video, svg { max-width: 100%; height: auto; }    /* never let media overflow its column */

@media (max-width: 900px) {
  .mission-grid, .members-layout, .map-layout, .split, .donate-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { min-height: 76vh; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
  .brand__tag { display: none; }                      /* tagline crowds the header on phones */
  .header__inner { gap: 10px; }
  .container { padding: 0 16px; }

  .hero { min-height: auto; padding: 92px 0 60px; }
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero__sub { font-size: 1rem; margin-bottom: 24px; }
  .hero__tag { font-size: .74rem; }

  .section { padding: 46px 0; }
  .section__title { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
  .section__subtitle { font-size: .96rem; }

  .leaderboard th, .leaderboard td { padding: 10px 7px; font-size: .9rem; }
  .state-detail { grid-template-columns: repeat(2, 1fr); }
  .event { flex-direction: column; gap: 14px; }
  .event__media { width: 100%; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  .brand__name { font-size: .92rem; }
  .brand__logo { width: 34px; height: 34px; }
  .btn--sm { padding: 8px 13px; font-size: .84rem; }
  .leaderboard th, .leaderboard td { padding: 9px 5px; font-size: .82rem; }
  .state-detail { grid-template-columns: 1fr; }
}
