/* ==========================================================================
   AMYS Lanka — Association of Muslim Youth of Sailan
   Design system · brand-derived tokens (logo: brown earth, palm green, globe blue, amber accent)
   ========================================================================== */

:root {
  /* Color · brand */
  --green-900: #0b3524;
  --green-800: #0f4430;
  --green-700: #155a3b;
  --green-600: #1c7347;
  --green-500: #268a56;
  --green-100: #e3efe6;
  --green-tint: rgba(28, 115, 71, .09);

  --brown-800: #2e2013;
  --brown-700: #54401f;
  --brown-600: #6b4a26;

  --amber-600: #c26a12;
  --amber-500: #e88a2d;
  --amber-100: #fbeeda;

  /* Color · neutrals (warm) */
  --ink: #23291f;
  --ink-soft: #4c5546;
  --muted: #6e766a;
  --cream: #faf8f1;
  --cream-2: #f2eee1;
  --white: #ffffff;
  --line: rgba(38, 41, 31, .10);
  --line-soft: rgba(38, 41, 31, .06);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --r-pill: 999px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Shadows (tinted, never pure black) */
  --sh-1: 0 1px 2px rgba(38, 41, 31, .05), 0 4px 14px -6px rgba(38, 41, 31, .08);
  --sh-2: 0 18px 44px -20px rgba(15, 68, 48, .32);
  --sh-3: 0 24px 60px -24px rgba(46, 32, 19, .38);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .22s;
  --t-med: .38s;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--green-600); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--amber-500);
  border-radius: 2px;
}
.on-dark .eyebrow, .eyebrow.light { color: #a9cbb6; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }

.measure { max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px -12px rgba(28, 115, 71, .55); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(28, 115, 71, .6); }

.btn-donate { background: var(--amber-500); color: #2e2013; box-shadow: 0 10px 24px -12px rgba(232, 138, 45, .65); }
.btn-donate:hover { background: #f09641; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(232, 138, 45, .7); }

.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green-700);
  border-bottom: 1.5px solid transparent;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.text-link:hover { color: var(--green-600); gap: 11px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: #cfe0d4;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px;
}
.topbar-group { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color var(--t-fast); }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--amber-500); }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a {
  width: 28px; height: 28px; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.topbar-social a:hover { background: var(--green-600); }
.topbar-social svg { width: 13px; height: 13px; color: #fff; }
.tb-loc { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 241, .92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(38, 41, 31, .25); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-logo {
  width: 52px; height: 52px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(38, 41, 31, .12));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600; letter-spacing: .02em; color: var(--green-800);
  white-space: nowrap;
}
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a.nav-link:hover { color: var(--green-700); background: var(--green-tint); }
.nav li.active > a.nav-link { color: var(--green-700); font-weight: 600; }
.nav .caret { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.nav li:hover > a.nav-link .caret, .nav li.open > a.nav-link .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: 0 24px 50px -20px rgba(38, 41, 31, .28);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.nav li:hover > .dropdown, .nav li.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.dropdown a:hover { background: var(--green-tint); color: var(--green-700); }
.dropdown .dd-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-600);
}
.dropdown .dd-icon svg { width: 19px; height: 19px; }
.dropdown small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  place-items: center;
  border: 1.5px solid var(--line);
  background: #fff;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background var(--t-fast); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--green-900);
  padding: calc(var(--header-h) + 60px) 28px 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
body.menu-open { overflow: hidden; }
.mobile-menu a {
  color: #e8efe9; font-family: var(--font-display);
  font-size: 26px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a.sub { font-size: 19px; color: #a9c4b2; padding-left: 18px; border-bottom-color: rgba(255, 255, 255, .05); }
.mobile-menu .mm-label { color: var(--amber-500); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-top: 18px; }
.mobile-menu .btn { margin-top: 22px; justify-self: start; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--green-900);
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 53, 36, .93) 0%, rgba(11, 53, 36, .72) 42%, rgba(11, 53, 36, .25) 100%);
}
.hero-inner { padding: clamp(80px, 11vw, 130px) 0; }
.hero-content { max-width: 680px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: #ffd9ae;
  background: rgba(232, 138, 45, .16);
  border: 1px solid rgba(232, 138, 45, .35);
  padding: 9px 18px; border-radius: var(--r-pill);
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: #f4c98a; }
.hero p.lead { color: rgba(255, 255, 255, .82); max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-slide-caption {
  position: absolute; right: 40px; bottom: 34px; z-index: 2;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  background: rgba(17, 42, 29, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  padding: 10px 18px; border-radius: var(--r-pill);
  opacity: 0; transform: translateY(6px);
  transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s;
}
.hero-slide.active .hero-slide-caption { opacity: 1; transform: translateY(0); }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 34px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .28);
  position: relative; overflow: hidden;
  transition: background var(--t-fast);
}
.hero-dot.active { background: rgba(255, 255, 255, .35); }
.hero-dot.active::after {
  content: ""; position: absolute; inset: 0; background: var(--amber-500);
  transform-origin: left; animation: dotfill 6s linear forwards;
}
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-scroll-hint {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 3;
  color: rgba(255, 255, 255, .5); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 340px at 85% -20%, rgba(232, 138, 45, .16), transparent 65%),
              radial-gradient(600px 300px at 8% 120%, rgba(38, 138, 86, .35), transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: clamp(44px, 6vw, 68px) 0;
}
.stat { text-align: center; padding: 10px 14px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: rgba(255, 255, 255, .14);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.3rem); font-weight: 600; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-num .suffix { color: var(--amber-500); font-size: .62em; }
.stat-label { margin-top: 10px; font-size: 13.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #a9c4b2; }

/* ---------- About preview ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.about-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-collage figure {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1);
}
.about-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-collage figure:hover img { transform: scale(1.05); }
.about-collage .c1 { aspect-ratio: 4/4.6; }
.about-collage .c2 { aspect-ratio: 4/4.6; margin-top: 34px; }
.about-collage .badge {
  position: absolute; left: -18px; bottom: -20px;
  background: var(--brown-800); color: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 14px;
}
.about-collage .badge strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--amber-500); line-height: 1; }
.about-collage .badge span { font-size: 12.5px; line-height: 1.45; color: #d8cbb8; max-width: 130px; display: block; }

.about-copy .reg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--green-700);
  background: var(--green-tint);
  border: 1px solid rgba(28, 115, 71, .18);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.chip.amber { color: var(--amber-600); background: var(--amber-100); border-color: rgba(194, 106, 18, .22); }

.about-points { display: grid; gap: 14px; margin-top: 28px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .pt-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-600);
}
.about-point .pt-icon svg { width: 21px; height: 21px; }
.about-point h4 { font-size: 16px; font-weight: 600; color: var(--ink); }
.about-point p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Vision / Mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 46px);
  position: relative; overflow: hidden;
}
.vm-card.vision { background: var(--green-800); color: #fff; }
.vm-card.vision p { color: rgba(255, 255, 255, .82); }
.vm-card.mission { background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--sh-1); }
.vm-card .vm-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
}
.vm-card.vision .vm-icon { background: rgba(255, 255, 255, .1); color: var(--amber-500); }
.vm-card.mission .vm-icon { background: var(--green-tint); color: var(--green-600); }
.vm-card .vm-icon svg { width: 27px; height: 27px; }
.vm-card h3 { margin-bottom: 14px; }
.vm-card.vision h3 { color: #fff; }
.vm-card::after {
  content: ""; position: absolute; right: -46px; bottom: -46px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .05);
}

/* ---------- Program cards ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.program-media { position: relative; aspect-ratio: 16/10.5; overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.program-card:hover .program-media img { transform: scale(1.07); }
.program-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 53, 36, .55));
}
.program-icon {
  position: absolute; left: 18px; bottom: -24px; z-index: 2;
  width: 52px; height: 52px; border-radius: 15px;
  background: #fff; color: var(--green-600);
  display: grid; place-items: center;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line-soft);
}
.program-icon svg { width: 25px; height: 25px; }
.program-body { padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.program-body h3 { font-size: 20px; margin-bottom: 10px; }
.program-body p { font-size: 14.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.program-body .text-link { margin-top: 18px; font-size: 14.5px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.news-media { position: relative; aspect-ratio: 16/9.6; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-date {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 7px 12px;
  text-align: center; line-height: 1.05;
  box-shadow: var(--sh-1);
}
.news-date strong { display: block; font-family: var(--font-display); font-size: 19px; color: var(--green-700); }
.news-date span { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-cat { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 10px; }
.news-body h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.news-body p { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 14px; }
.gallery-item {
  border-radius: var(--r-md); overflow: hidden; cursor: zoom-in;
  position: relative; border: 0; padding: 0; background: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(11, 53, 36, .72));
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.gallery-item:hover .g-caption { opacity: 1; transform: translateY(0); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 20, 15, .92);
  display: grid; place-items: center;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%); max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  transform: scale(.96); transition: transform var(--t-med) var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- CTA / Donate band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 400px at 90% -10%, rgba(232, 138, 45, .22), transparent 62%),
    radial-gradient(620px 360px at 6% 115%, rgba(38, 138, 86, .3), transparent 58%),
    var(--brown-800);
  color: #fff;
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(44px, 6.5vw, 84px);
}
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, .75); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.bank-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 28px;
}
.bank-card h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--amber-500); margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px;
}
.bank-card h4 svg { width: 16px; height: 16px; }
.bank-rows { display: grid; gap: 0; }
.bank-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-size: 14.5px;
}
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { color: rgba(255, 255, 255, .58); }
.bank-row dd { color: #fff; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--green-900);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .ph-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 40%;
  opacity: .38;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 53, 36, .94) 8%, rgba(11, 53, 36, .55) 70%, rgba(11, 53, 36, .3));
}
.page-hero-inner { padding: clamp(70px, 9vw, 120px) 0; }
.breadcrumbs {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}
.breadcrumbs a { color: #cfdfd4; transition: color var(--t-fast); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { color: var(--amber-500); }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p.lead { color: rgba(255, 255, 255, .8); margin-top: 18px; max-width: 60ch; }

/* ---------- Program detail blocks ---------- */
.detail-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.detail-block:last-of-type { border-bottom: 0; }
.detail-block.flip .db-media { order: 2; }
.db-media {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 16/11;
  position: relative;
}
.db-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.db-media:hover img { transform: scale(1.04); }
.db-media.quote-media {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 18px;
  background:
    radial-gradient(420px 260px at 88% -10%, rgba(232, 138, 45, .18), transparent 62%),
    linear-gradient(140deg, var(--green-800), var(--green-600));
  padding: clamp(28px, 4vw, 48px);
}
.db-media.quote-media .q-icon { width: 44px; height: 44px; color: var(--amber-500); }
.db-media.quote-media blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-style: italic; font-weight: 450;
  line-height: 1.4; color: #fff; letter-spacing: -0.01em;
}
.db-media.quote-media cite {
  font-style: normal; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #a9cbb6;
}
.db-copy .db-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-tint); color: var(--green-600);
  display: grid; place-items: center; margin-bottom: 20px;
}
.db-copy .db-icon svg { width: 26px; height: 26px; }
.db-copy h3 { margin-bottom: 14px; }
.db-copy p { color: var(--ink-soft); }
.db-copy .db-fact {
  margin-top: 22px; padding: 14px 18px;
  background: var(--amber-100); border: 1px solid rgba(194, 106, 18, .18);
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--brown-700); font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
}
.db-copy .db-fact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--amber-600); }

/* Impact list (water stats etc.) */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 26px 22px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.impact-card .ic-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--green-700);
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.impact-card .ic-label { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.team-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 34px 24px 28px; text-align: center;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.team-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-700), var(--green-500));
  color: #fff;
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(28, 115, 71, .6);
  position: relative;
}
.team-avatar::after {
  content: ""; position: absolute; inset: -7px;
  border-radius: 50%; border: 1.5px dashed rgba(28, 115, 71, .35);
  transition: transform 8s linear;
}
.team-card:hover .team-avatar::after { transform: rotate(40deg); }
.team-card h3 { font-size: 18.5px; margin-bottom: 6px; }
.team-role {
  font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-600);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 30px 24px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
  display: block;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.contact-card .cc-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-tint); color: var(--green-600);
}
.contact-card .cc-icon svg { width: 23px; height: 23px; }
.contact-card h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 7px; }
.contact-card p, .contact-card a.link { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.contact-card a.link { color: var(--green-700); font-weight: 600; }
.contact-card a.link:hover { color: var(--green-600); }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--sh-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: .01em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--cream);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(28, 115, 71, .12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.map-card {
  border-radius: var(--r-lg);
  min-height: 420px;
  background:
    radial-gradient(500px 300px at 80% 10%, rgba(232, 138, 45, .12), transparent 60%),
    linear-gradient(155deg, var(--green-800), var(--green-700));
  color: #fff;
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  position: relative; overflow: hidden;
}
.map-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 65%, transparent);
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 65%, transparent);
  pointer-events: none;
}
.map-card > * { position: relative; }
.map-card .mc-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); color: var(--amber-500);
  display: grid; place-items: center;
}
.map-card .mc-icon svg { width: 26px; height: 26px; }
.map-card h3 { color: #fff; margin: 18px 0 10px; }
.map-card p { color: rgba(255, 255, 255, .78); max-width: 34ch; }
.map-card .mc-landmark {
  display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px; color: #d7e4da;
}
.map-card .mc-landmark svg { width: 17px; height: 17px; color: var(--amber-500); flex-shrink: 0; }

/* ---------- Donate page ---------- */
.donate-hero-num { color: var(--amber-500); }
.donate-methods { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.donate-bank {
  background: linear-gradient(150deg, var(--green-800), var(--green-700));
  border-radius: var(--r-lg); color: #fff;
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--sh-2);
  position: relative; overflow: hidden;
}
.donate-bank::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 230px; height: 230px; border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .05);
}
.donate-bank .bank-row dt { color: rgba(255, 255, 255, .62); }
.donate-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-100); border: 1px solid rgba(194, 106, 18, .2);
  border-radius: var(--r-md); padding: 18px 20px;
  font-size: 14px; color: var(--brown-700);
}
.donate-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--amber-600); }
.donate-ways { display: grid; gap: 14px; }
.donate-way {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 20px 22px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med);
}
.donate-way:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(28, 115, 71, .3); }
.donate-way .dw-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-600);
}
.donate-way .dw-icon svg { width: 22px; height: 22px; }
.donate-way h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.donate-way p { font-size: 14px; color: var(--muted); }
.donate-way a { color: var(--green-700); font-weight: 600; }
.donate-way a:hover { color: var(--green-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #b5c8bb;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 110% 0%, rgba(232, 138, 45, .1), transparent 60%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(30px, 4.5vw, 64px);
  padding: clamp(54px, 7vw, 84px) 0 48px;
  position: relative;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #8fa898; }
.footer-brand p { font-size: 14.5px; color: #9db5a4; line-height: 1.7; margin: 20px 0 24px; max-width: 34ch; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d7e4da;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease), color var(--t-fast);
}
.footer-social a:hover { background: var(--green-600); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #f4c98a; margin-bottom: 22px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: #a9bfaf; transition: color var(--t-fast), padding-left var(--t-fast) var(--ease); }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }

.footer-contact li { display: flex; gap: 12px; font-size: 14.5px; color: #a9bfaf; line-height: 1.6; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--amber-500); }
.footer-contact a { color: #cfe0d4; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #7e977f;
  position: relative;
}
.footer-bottom .reg { font-size: 12px; color: #6d8570; }
.footer-bottom a { color: #9db5a4; }
.footer-bottom a:hover { color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #22b358; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(34, 179, 88, .65);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.wa-float:hover { transform: translateY(-4px) scale(1.04); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- Reveal animations (only when JS is available) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta .btn-outline { display: none; }
  .burger { display: grid; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat + .stat::before { display: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-grid, .vm-grid, .cta-grid, .contact-split, .donate-methods { grid-template-columns: 1fr; }
  .detail-block, .detail-block.flip { grid-template-columns: 1fr; }
  .detail-block.flip .db-media { order: 0; }
  .db-media { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .topbar-group.left { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .brand-tag { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 18.5px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-donate { padding: 10px 16px; font-size: 13.5px; }
  .hero-inner { padding-bottom: 96px; }
  .topbar .tb-loc { display: none; }
  .programs-grid, .news-grid, .contact-grid, .impact-grid, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stat { padding: 6px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
  .hero-slide-caption { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .bank-row { flex-direction: column; gap: 2px; }
  .bank-row dd { text-align: left; }
  .about-collage .badge { left: 8px; bottom: -16px; padding: 14px 16px; }
  .container { width: calc(100% - 36px); }
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none; }
}
