/* =========================================================
   Deulpur Sishu Kalyan Samity — Main Stylesheet
   Mobile-first. Larger-screen rules live in responsive.css
   ========================================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  --green-900: #1F4D2B;
  --green-800: #245A32;
  --green-700: #2E6B3A;
  --green-500: #6FA83C;
  --green-200: #D5E8C4;
  --green-100: #EAF3E2;
  --gold-500: #E8B21E;
  --gold-100: #FCF3D7;
  --orange-500: #F28C28;
  --red-400: #E25B4B;
  --red-100: #FCE6E2;
  --cream: #FBF8F1;
  --cream-200: #F5EEDD;
  --text-900: #1E2A22;
  --text-600: #4A5A50;
  --white: #FFFFFF;

  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(31, 77, 43, 0.08);
  --shadow-lg: 0 18px 44px rgba(31, 77, 43, 0.14);
  --container: 1400px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-600);
  background: var(--cream);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-900); line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; color: var(--green-900); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; color: var(--green-900); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 14px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--white { background: var(--white); }
.section--green { background: var(--green-100); }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green-900); color: var(--white); padding: 10px 18px; border-radius: var(--radius-btn);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.placeholder { background: var(--gold-100); color: #7A5A00; padding: 0 6px; border-radius: 6px; font-size: .9em; font-weight: 500; white-space: nowrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: var(--radius-btn); border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--primary { background: var(--green-900); color: var(--white); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }
.btn--outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn--outline:hover { background: var(--green-900); color: var(--white); }
.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: #F2C23A; color: var(--green-900); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { color: var(--green-900); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn--block { width: 100%; }

.arrow-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; background: var(--green-100); color: var(--green-900);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.arrow-btn svg { width: 18px; height: 18px; }

/* ===== DECORATIONS ===== */
.swash { position: relative; display: inline-block; white-space: nowrap; }
.swash__line { position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: .42em; color: var(--gold-500); pointer-events: none; }
.sparks { display: inline-block; width: 42px; height: 42px; color: var(--gold-500); flex-shrink: 0; }
.sparks--flip { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head__title { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.section-head__title h2 { margin: 0; }
.section-head p { font-size: 1.05rem; margin: 0; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .section-head__title { justify-content: flex-start; }

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 241, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(31, 77, 43, .1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand__mark { width: 50px; height: 50px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-body); font-weight: 700; line-height: 1.08; font-size: 1.02rem; }
.brand__text span:last-child { color: var(--green-700); }
.brand__text small { display: none; }

.nav__list { list-style: none; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--text-900); padding: 12px 0;
}
.nav__link:hover, .nav__link.is-active { color: var(--green-700); }
.nav__chev { width: 16px; height: 16px; transition: transform .25s; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--green-100); color: var(--green-900); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.header-donate { display: none; }

/* Mobile drawer */
.nav {
  position: fixed; top: 0; right: 0; z-index: 120; height: 100dvh; width: min(86vw, 360px);
  background: var(--white); box-shadow: -20px 0 50px rgba(0,0,0,.15);
  transform: translateX(105%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; padding: 18px 22px 28px;
}
.nav.is-open { transform: translateX(0); }
.nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nav__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--green-100); color: var(--green-900); cursor: pointer; display: grid; place-items: center; }
.nav__close svg { width: 22px; height: 22px; }
.nav__list > li { border-bottom: 1px solid var(--green-100); }
.nav__list .nav__link { padding: 14px 4px; font-size: 1.05rem; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.nav__list .nav__link.is-active { color: var(--green-900); font-weight: 600; }
.nav__drawer-cta { margin-top: 22px; }
.nav__drawer-info { margin-top: 22px; font-size: .9rem; display: grid; gap: 8px; }
.nav__drawer-info a { display: flex; align-items: center; gap: 8px; }
.nav__drawer-info svg { width: 18px; height: 18px; color: var(--green-700); }

.dropdown { list-style: none; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.has-dropdown.is-open .dropdown { max-height: 420px; }
.has-dropdown.is-open .nav__chev { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-600); border-radius: 10px; font-size: .95rem; }
.dropdown a:hover { background: var(--green-100); color: var(--green-900); }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.dropdown .dd-icon svg { width: 18px; height: 18px; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(20, 40, 26, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* ===== HERO (HOME) ===== */
.hero { position: relative; padding-top: 28px; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__content { position: relative; z-index: 2; }
.hero__title { position: relative; margin-bottom: 22px; }
.hero__title .sparks { position: absolute; top: -22px; right: -6px; width: 46px; height: 46px; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-600); max-width: 34ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; font-size: .9rem; color: var(--text-600); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--green-500); }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 28px; padding: 0; background: var(--green-500); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__badge {
  position: absolute; right: 12px; bottom: 14px; z-index: 2;
  font-family: var(--font-hand); font-size: clamp(1.25rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1;
  color: var(--white); background: var(--green-900); padding: 12px 22px 16px; border-radius: var(--radius-pill);
  border: 3px solid var(--white); box-shadow: var(--shadow-lg);
}
.hero__badge .swash__line { bottom: -.12em; left: 40%; width: 58%; height: .32em; }
.hero__leaf { position: absolute; left: -26px; bottom: 40px; width: 90px; color: var(--green-500); opacity: .55; z-index: 0; pointer-events: none; }
.hero__leaf--right { left: auto; right: -20px; top: 10px; bottom: auto; transform: scaleX(-1) rotate(20deg); width: 60px; opacity: .35; }

/* ===== STATS ===== */
.stats { position: relative; z-index: 3; margin-top: 32px; }
.stats__wrap { background: rgba(234, 243, 226, .75); border-radius: 26px; padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow); border: 1px solid var(--white); }
.stat { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius-card); padding: 16px 20px; }
.stat__icon { width: 62px; height: 62px; border-radius: 16px; background: var(--green-100); color: var(--green-900); display: grid; place-items: center; flex-shrink: 0; }
.stat__icon svg { width: 32px; height: 32px; }
.stat__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--green-900); line-height: 1.05; }
.stat__label { color: var(--text-600); font-size: .98rem; }

/* ===== PROGRAM CARDS ===== */
.cards { display: grid; gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px 24px; flex: 1; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--green-100); color: var(--green-900); }
.card__icon svg { width: 28px; height: 28px; }
.card__icon--red { background: var(--red-100); color: var(--red-400); }
.card__icon--gold { background: var(--gold-100); color: #B7860B; }
.card__icon--orange { background: #FDE9D6; color: #C8650B; }
.card__text { flex: 1; min-width: 0; }
.card__text h3 { margin-bottom: 6px; color: var(--green-900); }
.card__text p { font-size: .93rem; margin: 0; line-height: 1.6; }
.card .arrow-btn { align-self: center; }
.card:hover .arrow-btn { background: var(--green-900); color: var(--white); transform: translateX(3px); }

/* ===== ABOUT PREVIEW / SPLIT ===== */
.split { display: grid; gap: 36px; align-items: center; }
.split__media { position: relative; }
.split__img { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__img--small {
  position: absolute; width: 44%; right: -6px; bottom: -28px; border: 6px solid var(--white); border-radius: 20px;
}
.split__img--small img { aspect-ratio: 1; }
.badge-years {
  position: absolute; left: 14px; top: 14px; background: var(--gold-500); color: var(--green-900);
  border-radius: 20px; padding: 12px 16px; text-align: center; box-shadow: var(--shadow-lg); line-height: 1.1;
}
.badge-years strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 900; }
.badge-years span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.split__content p { font-size: 1.02rem; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--white); background: var(--green-500); border-radius: 50%; padding: 4px; margin-top: 2px; }

.fact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 28px; }
.fact { background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.fact small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); font-weight: 600; }
.fact strong { font-family: var(--font-head); color: var(--green-900); font-size: 1.05rem; }

/* ===== FOCUS AREA CHIPS ===== */
.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chip-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px;
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.chip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.chip-card .card__icon { width: 48px; height: 48px; }
.chip-card h3 { font-size: 1rem; margin: 0; color: var(--green-900); }
.chip-card p { font-size: .88rem; margin: 0; line-height: 1.55; }

/* ===== TESTIMONIALS ===== */
.quotes { display: grid; gap: 22px; }
.quote {
  position: relative; background: var(--white); border-radius: var(--radius-card); padding: 34px 26px 26px; box-shadow: var(--shadow);
  border-top: 4px solid var(--green-500);
}
.quote__mark { position: absolute; top: -22px; left: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); display: grid; place-items: center; }
.quote__mark svg { width: 22px; height: 22px; }
.quote p { font-style: italic; font-size: 1rem; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--white); background: var(--green-700); flex-shrink: 0; font-family: var(--font-body); }
.avatar--gold { background: var(--orange-500); }
.avatar--red { background: var(--red-400); }
.quote__who strong { display: block; color: var(--text-900); line-height: 1.3; }
.quote__who span { font-size: .85rem; }
.sample-note { text-align: center; font-size: .82rem; margin-top: 22px; color: var(--text-600); opacity: .8; }

/* ===== GALLERY ===== */
.gallery-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-preview a { position: relative; border-radius: 16px; overflow: hidden; display: block; aspect-ratio: 1; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-preview a:hover img { transform: scale(1.08); }
.gallery-preview a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,77,43,.45), transparent 55%); opacity: 0; transition: opacity .3s; }
.gallery-preview a:hover::after { opacity: 1; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  min-height: 44px; padding: 8px 20px; border-radius: var(--radius-pill); border: 2px solid var(--green-200);
  background: var(--white); color: var(--green-900); font-weight: 500; cursor: pointer; transition: all .25s;
}
.filter-btn:hover { border-color: var(--green-500); }
.filter-btn.is-active { background: var(--green-900); border-color: var(--green-900); color: var(--white); }

.masonry { columns: 2 160px; column-gap: 14px; }
.masonry__item {
  break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  display: block; width: 100%; padding: 0; border: 0; background: var(--green-100); box-shadow: var(--shadow);
}
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: var(--white); font-size: .88rem; font-weight: 500; text-align: left;
  background: linear-gradient(to top, rgba(20,45,28,.85), transparent); transform: translateY(100%); transition: transform .35s var(--ease);
}
.masonry__item:hover figcaption, .masonry__item:focus-visible figcaption { transform: translateY(0); }
.masonry__item.is-hidden { display: none; }
.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.wide img { aspect-ratio: 4 / 3; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 26, 16, .94);
  display: flex; align-items: center; justify-content: center; padding: 60px 12px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.lightbox__caption { color: #E9EFE7; margin-top: 12px; font-size: .95rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 22px; left: 20px; color: #C9D6C8; font-size: .9rem; }

/* ===== CTA BAND ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #FBF1D6 55%, #F6E7BC 100%);
  padding-top: clamp(48px, 7vw, 80px);
}
.cta-band__inner { position: relative; z-index: 2; display: grid; gap: 22px; text-align: center; justify-items: center; padding-bottom: 24px; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 52ch; margin: 0 auto; }
.cta-band__divider { display: none; }
.landscape { width: 100%; height: auto; display: block; margin-top: -10px; }

/* ===== PAGE BANNER ===== */
.page-banner { position: relative; overflow: hidden; color: var(--white); background: var(--green-900); }
.page-banner__bg { position: absolute; inset: 0; }
.page-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,52,29,.94) 0%, rgba(31,77,43,.82) 45%, rgba(31,77,43,.35) 100%); }
.page-banner__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px) clamp(70px, 10vw, 120px); }
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: #E3EEDB; max-width: 56ch; font-size: 1.05rem; margin: 0; }
.page-banner__curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; color: var(--cream); z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 16px; font-size: .9rem; }
.breadcrumb a { color: var(--gold-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #9DBE8C; }
.breadcrumb [aria-current] { color: #E3EEDB; }

/* ===== MISSION / VALUES ===== */
.mv-grid { display: grid; gap: 22px; }
.mv-card { background: var(--white); border-radius: var(--radius-card); padding: 30px 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mv-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--green-100); z-index: 0; }
.mv-card > * { position: relative; z-index: 1; }
.mv-card--dark { background: var(--green-900); color: #DCE8D4; }
.mv-card--dark h3 { color: var(--white); }
.mv-card--dark::after { background: rgba(255,255,255,.06); }
.mv-card .card__icon { margin-bottom: 18px; }
.mv-card--dark .card__icon { background: rgba(255,255,255,.1); color: var(--gold-500); }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.value { text-align: center; background: var(--white); border-radius: var(--radius-card); padding: 26px 14px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.value:hover { transform: translateY(-4px); }
.value .card__icon { margin: 0 auto 14px; }
.value h3 { font-size: 1rem; margin-bottom: 4px; color: var(--green-900); }
.value p { font-size: .86rem; margin: 0; line-height: 1.55; }

/* ===== REGISTRATION BLOCK ===== */
.reg { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: grid; }
.reg__head { background: var(--green-900); color: var(--white); padding: 28px 26px; }
.reg__head h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.reg__head p { color: #CFE0C5; margin: 0; }
.reg__list { display: grid; padding: 10px 26px 24px; }
.reg__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--green-200); flex-wrap: wrap; }
.reg__row:last-child { border-bottom: 0; }
.reg__row dt { font-weight: 500; color: var(--text-600); }
.reg__row dd { margin: 0; font-weight: 600; color: var(--green-900); text-align: right; }

/* ===== TEAM ===== */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member { background: var(--white); border-radius: var(--radius-card); padding: 26px 14px; text-align: center; box-shadow: var(--shadow); }
.member .avatar { width: 84px; height: 84px; font-size: 1.6rem; margin: 0 auto 14px; font-family: var(--font-head); border: 4px solid var(--green-100); }
.member h3 { font-size: 1rem; margin-bottom: 2px; }
.member p { font-size: .85rem; margin: 0; color: var(--green-700); font-weight: 500; }

/* ===== TIMELINE ===== */
.timeline { list-style: none; position: relative; max-width: 900px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green-500), var(--gold-500)); }
.timeline__item { position: relative; margin-bottom: 26px; }
.timeline__item::before {
  content: ""; position: absolute; left: -31px; top: 22px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--green-500); box-shadow: 0 0 0 5px var(--green-100);
}
.timeline__card { background: var(--white); border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow); }
.timeline__year { display: inline-block; font-family: var(--font-head); font-weight: 900; color: var(--green-900); background: var(--gold-100); padding: 2px 12px; border-radius: var(--radius-pill); margin-bottom: 8px; font-size: .95rem; }
.timeline__card h3 { margin-bottom: 6px; font-size: 1.08rem; }
.timeline__card p { margin: 0; font-size: .93rem; }

/* ===== PROGRAM DETAIL (OUR WORK) ===== */
.program { display: grid; gap: 32px; align-items: center; }
.program + .program { margin-top: clamp(64px, 9vw, 110px); }
.program__media { position: relative; }
.program__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.program__tag {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--green-900); font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow);
}
.program__tag svg { width: 18px; height: 18px; }
.program__mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.mini-stat { background: var(--green-100); border-radius: 14px; padding: 12px 10px; text-align: center; }
.mini-stat strong { display: block; font-family: var(--font-head); color: var(--green-900); font-size: 1.25rem; }
.mini-stat span { font-size: .78rem; line-height: 1.3; display: block; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(251,248,241,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--green-100); }
.subnav__list { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; list-style: none; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--radius-pill); background: var(--white); color: var(--green-900); font-size: .9rem; font-weight: 500; border: 1px solid var(--green-200); }
.subnav__list a:hover { background: var(--green-900); color: var(--white); }

/* ===== INVOLVE CARDS ===== */
.involve { display: grid; gap: 20px; }
.involve-card {
  background: var(--white); border-radius: var(--radius-card); padding: 30px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), box-shadow .3s; border-bottom: 4px solid transparent;
}
.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--gold-500); }
.involve-card h3 { margin: 6px 0 0; color: var(--green-900); }
.involve-card p { font-size: .93rem; margin: 0; flex: 1; }
.involve-card .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 6px; }
.involve-card .link-arrow svg { width: 18px; height: 18px; transition: transform .25s; }
.involve-card:hover .link-arrow svg { transform: translateX(4px); }

/* ===== FORMS ===== */
.form-card { background: var(--white); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; color: var(--text-900); font-size: .93rem; }
.field label .req { color: var(--red-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #D8E2D2; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: var(--white); box-shadow: 0 0 0 4px rgba(111,168,60,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-400); background: #FFF6F4; }
.field__error { color: #C0392B; font-size: .84rem; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.form__success {
  display: none; align-items: center; gap: 12px; background: var(--green-100); color: var(--green-900); padding: 16px 18px; border-radius: 14px; font-weight: 500;
}
.form__success.is-visible { display: flex; }
.form__success svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--green-700); }
.form__note { font-size: .82rem; margin: 0; }

/* ===== CONTACT ===== */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 22px; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; color: var(--green-900); }
.contact-card p { margin: 0; font-size: .93rem; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-layout { display: grid; gap: 28px; }
.map-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--green-100); min-height: 300px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ===== DONATE ===== */
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.amount-chip {
  min-height: 54px; border-radius: 14px; border: 2px solid var(--green-200); background: var(--white); color: var(--green-900);
  font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: all .2s;
}
.amount-chip:hover { border-color: var(--green-500); }
.amount-chip.is-active { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.custom-amount { display: none; }
.custom-amount.is-visible { display: grid; }
.impact-line { display: flex; gap: 12px; align-items: center; background: var(--gold-100); border-radius: 14px; padding: 14px 16px; color: #5E4700; font-size: .93rem; }
.impact-line svg { width: 26px; height: 26px; flex-shrink: 0; color: #B7860B; }

.usage { display: grid; gap: 18px; }
.usage__row { display: grid; gap: 8px; }
.usage__label { display: flex; justify-content: space-between; font-weight: 500; color: var(--text-900); }
.usage__bar { height: 14px; background: var(--green-100); border-radius: 999px; overflow: hidden; }
.usage__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green-700), var(--green-500)); transition: width 1.4s var(--ease); }
.usage__fill--gold { background: linear-gradient(90deg, #D49B0C, var(--gold-500)); }
.usage__fill--orange { background: linear-gradient(90deg, #E07614, var(--orange-500)); }
.usage__fill--red { background: linear-gradient(90deg, #C9473A, var(--red-400)); }
.is-visible .usage__fill { width: var(--w); }

.pay-grid { display: grid; gap: 22px; }
.pay-card { background: var(--white); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.pay-card h3 { display: flex; align-items: center; gap: 12px; color: var(--green-900); }
.pay-card h3 .card__icon { width: 46px; height: 46px; }
.qr-box {
  width: 190px; height: 190px; margin: 10px auto 14px; border-radius: 18px; border: 3px dashed var(--green-500);
  display: grid; place-items: center; text-align: center; color: var(--green-700); font-size: .85rem; padding: 14px; background: var(--green-100);
}
.qr-box svg { width: 56px; height: 56px; margin: 0 auto 8px; }
.notice { display: flex; gap: 14px; background: var(--green-100); border-left: 5px solid var(--green-500); padding: 18px 20px; border-radius: 14px; }
.notice svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--green-700); }
.notice p { margin: 0; font-size: .93rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--green-900); color: #C9DABF; position: relative; }
.footer-landscape { display: block; width: 100%; height: auto; background: var(--cream); }
.footer-main { display: grid; gap: 34px; padding-block: 44px 34px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand__mark { background: var(--white); border-radius: 14px; padding: 4px; width: 58px; height: 58px; }
.footer-brand .brand__text span:last-child { color: var(--gold-500); }
.footer-brand p { font-size: .93rem; margin: 0; max-width: 36ch; }
.social { display: flex; gap: 10px; justify-content: center; list-style: none; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); transition: background .25s, transform .25s; }
.social a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.footer-col h3 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { color: #C9DABF; display: inline-block; padding: 6px 0; }
.footer-col a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; justify-content: center; padding: 4px 0; font-size: .93rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .85rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold-500); }

.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-500); color: var(--green-900); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__badge { animation: float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== NAV: dropdown row + toggle ===== */
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.nav__list .nav__row .nav__link { width: auto; flex: 1; }
.dropdown-toggle {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--green-100); color: var(--green-900);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}

/* ===== UTILITIES ===== */
[data-space="top"] { margin-top: 24px; }
.reg__list[data-flush] { padding: 0; }
.masonry__item figure { margin: 0; }
.landscape { height: clamp(130px, 17vw, 250px); }
.page-banner__bg img { aspect-ratio: auto; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.stats__wrap { background: #EEF5E7; }
.hero__title .swash .sparks { position: absolute; top: 0; right: -50px; width: 40px; height: 40px; }

/* ===== SPLASH SCREEN ===== */
.splash {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, var(--cream) 55%, #F3ECD9 100%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-seen .splash { display: none; }
.splash__inner { text-align: center; padding: 16px; animation: splashIn .8s var(--ease) both; }
.splash__logo { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; display: grid; place-items: center; }
.splash__logo img { width: 112px; height: auto; position: relative; z-index: 1; animation: splashBeat 1.6s ease-in-out infinite; }
.splash__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 4px solid var(--green-100); border-top-color: var(--green-500); border-right-color: var(--gold-500);
  animation: splashSpin 1.1s linear infinite;
}
.splash__name { font-family: var(--font-body); font-weight: 700; font-size: 1.45rem; color: var(--green-900); line-height: 1.2; margin: 0; }
.splash__name span { color: var(--orange-500); }
.splash__tag { font-family: var(--font-hand); font-size: 1.4rem; color: var(--green-700); margin: 4px 0 18px; }
.splash__bar { display: block; width: 160px; height: 4px; margin: 0 auto; border-radius: 4px; background: var(--green-100); overflow: hidden; }
.splash__bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); animation: splashBar 1.2s ease-in-out infinite; }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes splashBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== MOBILE DRAWER (refined) ===== */
.nav__ico { display: none; }
@media (max-width: 991px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 248, 241, .98); }
  .nav-toggle { width: 46px; height: 46px; border-radius: 14px; background: var(--green-900); color: var(--white); box-shadow: 0 6px 16px rgba(31,77,43,.25); }
  .nav-toggle svg { width: 24px; height: 24px; }

  .nav { width: min(88vw, 380px); padding: 0 0 24px; background: var(--cream); border-radius: 24px 0 0 24px; }
  .nav__head {
    position: sticky; top: 0; z-index: 2; margin: 0; padding: 14px 18px;
    background: var(--white); border-bottom: 1px solid var(--green-100);
  }
  .nav__head .brand__mark { width: 44px; height: 44px; }
  .nav__head .brand__text { font-size: .98rem; }
  .nav__close { width: 42px; height: 42px; border-radius: 50%; background: var(--green-100); transition: transform .3s, background .2s; }
  .nav__close:hover { background: var(--green-200); transform: rotate(90deg); }

  .nav__list { padding: 14px 14px 0; display: grid; gap: 4px; }
  .nav__list > li { border: 0; }
  .nav__list .nav__link {
    gap: 14px; justify-content: flex-start; padding: 10px 12px; border-radius: 14px;
    font-size: 1rem; font-weight: 500; color: var(--text-900); transition: background .2s, color .2s;
  }
  .nav__list .nav__link:hover { background: var(--white); }
  .nav__list .nav__link.is-active { background: var(--green-900); color: var(--white); }
  .nav__list .nav__link.is-active .nav__ico { background: rgba(255,255,255,.14); color: var(--gold-500); }
  .nav__ico {
    display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
    background: var(--white); color: var(--green-700); box-shadow: 0 2px 8px rgba(31,77,43,.06);
  }
  .nav__ico svg { width: 19px; height: 19px; }
  .nav__row { gap: 6px; }
  .dropdown-toggle { width: 42px; height: 42px; border-radius: 12px; background: var(--white); }
  .has-dropdown.is-open .dropdown-toggle { background: var(--green-100); }
  .dropdown { margin: 0 0 0 30px; padding-left: 14px; border-left: 2px dashed var(--green-200); }
  .has-dropdown.is-open .dropdown { margin-top: 4px; margin-bottom: 6px; }
  .dropdown a { padding: 8px 10px; font-size: .92rem; }
  .dropdown .dd-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--white); }

  .nav__drawer-cta { width: auto; margin: 18px 14px 0; min-height: 52px; border-radius: 14px; }
  .nav__drawer-info {
    margin: 18px 14px 0; padding: 18px; border-radius: 18px; gap: 10px;
    background: var(--green-100); color: var(--green-900); font-size: .92rem;
  }
  .nav__drawer-title { margin: 0 0 2px; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
  .nav__drawer-info a, .nav__drawer-info > span { display: flex; align-items: center; gap: 10px; color: var(--green-900); font-weight: 500; }
  .nav__drawer-info svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-700); }

  /* staggered entrance */
  .nav .nav__list > li, .nav__drawer-cta, .nav__drawer-info { opacity: 0; transform: translateX(24px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .nav.is-open .nav__list > li, .nav.is-open .nav__drawer-cta, .nav.is-open .nav__drawer-info { opacity: 1; transform: none; }
  .nav.is-open .nav__list > li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__list > li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__list > li:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav__list > li:nth-child(5) { transition-delay: .16s; }
  .nav.is-open .nav__list > li:nth-child(6) { transition-delay: .2s; }
  .nav.is-open .nav__drawer-cta { transition-delay: .24s; }
  .nav.is-open .nav__drawer-info { transition-delay: .28s; }
  /* overlay must never sit above the drawer, whatever the DOM order */
  body.nav-open .site-header { z-index: 130; }
  .nav { z-index: 140; }
  .nav-overlay { z-index: 120; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
