/* ==========================================================================
   Green Organic Welfare Foundation — Design System
   ========================================================================== */

:root {
  /* Organic / earthy palette */
  --forest-900: #0f3d24;
  --forest-800: #14512f;
  --forest-700: #1a6b3c;
  --forest-600: #227a45;
  --forest-500: #2d9155;
  --forest-100: #e3f2e7;
  --forest-50:  #f2f9f4;

  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #e6b93a;
  --gold-100: #fbf0d4;

  --terracotta-600: #c4562a;
  --terracotta-500: #d9702f;
  --terracotta-400: #e88a4c;
  --terracotta-100: #fdece0;

  --cream-50: #fbf9f3;
  --cream-100: #f6f1e6;
  --cream-200: #efe7d4;

  --ink-900: #1b2419;
  --ink-700: #33402f;
  --ink-500: #5a6653;
  --ink-300: #8a9481;

  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(20, 30, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 30, 15, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 30, 15, 0.16);
  --shadow-gold: 0 10px 30px rgba(184, 134, 11, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-head: "Fraunces", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 84px;
  --container-w: 1200px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Global safety net: a long unbroken string (email address, UPI ID, account
   number) must never be able to force horizontal scroll on a narrow phone —
   let it break rather than overflow its container. */
p, a, span, strong, td, li, h1, h2, h3, h4, h5 { overflow-wrap: anywhere; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--forest-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--forest-50); }
.section-dark {
  background: linear-gradient(160deg, var(--forest-900), var(--forest-800));
  color: var(--cream-100);
}
.section-dark h2, .section-dark h3 { color: var(--cream-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-600);
  background: var(--forest-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-dark .eyebrow { background: rgba(255,255,255,0.12); color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }

.lede { font-size: 1.15rem; color: var(--ink-500); max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--forest-700);
  color: var(--forest-700);
}
.btn-outline:hover { background: var(--forest-700); color: var(--white); }
.section-dark .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--cream-50); }
.section-dark .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--forest-700); padding: 10px 18px; }
.btn-ghost:hover { background: var(--forest-100); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-2px); }

/* The signature glowing Donate button — used site-wide */
.btn-donate {
  position: relative;
  background: linear-gradient(120deg, var(--forest-600), var(--forest-800) 60%, var(--gold-500));
  background-size: 200% 200%;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: donateGradient 6s ease infinite, donateGlow 2.6s ease-in-out infinite;
  border: none;
}
.btn-donate:hover { transform: translateY(-3px) scale(1.035); }
.btn-donate svg { flex-shrink: 0; }
@keyframes donateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes donateGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 145, 85, 0.55), 0 8px 24px rgba(20,30,15,0.18); }
  50% { box-shadow: 0 0 0 14px rgba(45, 145, 85, 0), 0 8px 30px rgba(20,30,15,0.22); }
}

/* Membership CTA button — gold/terracotta glow, visually distinct from the
   green Donate button but equally premium, so the two never get confused. */
.btn-member {
  position: relative;
  background: linear-gradient(120deg, var(--gold-600), var(--terracotta-500) 60%, var(--gold-500));
  background-size: 200% 200%;
  color: var(--white);
  font-weight: 700;
  animation: donateGradient 6s ease infinite, memberGlow 2.6s ease-in-out infinite;
  border: none;
}
.btn-member:hover { transform: translateY(-3px) scale(1.035); }
@keyframes memberGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.5), 0 8px 24px rgba(20,30,15,0.18); }
  50% { box-shadow: 0 0 0 14px rgba(184, 134, 11, 0), 0 8px 30px rgba(20,30,15,0.22); }
}

/* Homepage membership section panel — same premium glowing-border trick as
   the donation panel, in the gold/terracotta family to read as its own
   distinct call to action. */
.member-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(120deg, var(--gold-500), var(--terracotta-500), var(--forest-600), var(--gold-500));
  background-size: 300% 300%;
  animation: donateGradient 9s ease infinite;
  box-shadow: var(--shadow-lg);
}
.member-panel-inner {
  background: var(--white);
  border-radius: calc(var(--radius-lg) - 3px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}
.member-panel-img {
  background-size: cover; background-position: center;
  min-height: 320px;
  position: relative;
}
.member-panel-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,61,36,0.05), rgba(15,61,36,0.35));
}
.member-panel-body { padding: 44px 40px; }
.member-panel-perks { display: grid; gap: 12px; margin: 20px 0 28px; }
.member-panel-perks .item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-500); }
.member-panel-perks .item span.ico { color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) {
  .member-panel-inner { grid-template-columns: 1fr; }
  .member-panel-img { min-height: 220px; }
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--forest-900);
  color: var(--cream-100);
  font-size: 0.84rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { opacity: 0.92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.topbar-social a:hover { background: rgba(255,255,255,0.22); }

/* ---------- Header / Mega nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,30,15,0.06);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--forest-900); }
.brand-text span { display: block; font-size: 0.72rem; color: var(--ink-500); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 10px;
  font-weight: 600;
  font-size: 0.89rem;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  background: none;
  border: none;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .nav-drop-toggle:hover { color: var(--forest-700); background: var(--forest-100); }
.nav-emphasis-link {
  border: 1.5px solid var(--forest-700) !important;
  color: var(--forest-700) !important;
  border-radius: var(--radius-pill) !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-emphasis-link:hover { background: var(--forest-700) !important; color: var(--white) !important; transform: translateY(-1px); }
.mobile-nav-top-link.nav-emphasis-link {
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  margin: 6px 0;
  font-weight: 800 !important;
}
.nav-drop-toggle .chev { transition: transform 0.2s ease; }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown.open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
}
.dropdown-panel a small { font-weight: 400; color: var(--ink-500); font-size: 0.8rem; margin-top: 2px; }
.dropdown-panel a:hover { background: var(--forest-50); color: var(--forest-700); }
.dropdown-panel.mega { min-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* Opens leftward from the trigger's right edge instead of the default
   left-anchored positioning, so the rightmost nav dropdown doesn't push
   past the viewport edge (it still counts toward layout width even while
   hidden via opacity/visibility, which was overflowing the whole page). */
.dropdown-panel.align-right { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn-donate { flex-shrink: 0; }
.btn-header-member { padding: 11px 18px; font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }
.brand { flex-shrink: 0; }
.header-call {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.92rem; color: var(--forest-800);
  padding: 8px 14px; border-radius: var(--radius-pill); background: var(--forest-100);
  white-space: nowrap; flex-shrink: 0;
}
.header-call svg { color: var(--forest-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--forest-900); border-radius: 2px; }

/* ---------- WhatsApp bubble + back to top ---------- */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25D366; color: var(--white); animation: whatsappPulse 2.4s ease-in-out infinite; }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-lg); }
}
.fab-top {
  background: var(--white);
  color: var(--forest-800);
  width: 46px; height: 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(45,145,85,0.16), transparent 55%), linear-gradient(150deg, var(--forest-900), var(--forest-800) 55%, var(--forest-700));
  color: var(--cream-50);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,61,36,0.88), rgba(15,61,36,0.55) 60%, rgba(15,61,36,0.85));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-content .eyebrow { background: rgba(255,255,255,0.14); color: var(--gold-400); }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero-content p.lede { color: rgba(255,255,255,0.86); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-dots { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); }
.hero-dots button.active { background: var(--gold-400); width: 26px; border-radius: 6px; }

.hero-scroll-cue {
  position: absolute; bottom: 36px; right: 40px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Simple inner-page hero */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--forest-900), var(--forest-700));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 640px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -64px;
  position: relative;
  z-index: 3;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px;
  text-align: center;
}
.stat-card .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--forest-800); font-weight: 700; }
.stat-card .label { font-size: 0.86rem; color: var(--ink-500); margin-top: 4px; }
.stat-note { text-align: center; font-size: 0.78rem; color: var(--ink-300); margin-top: 14px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(20,30,15,0.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest-100);
  color: var(--forest-700);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 0.96rem; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--forest-700); font-size: 0.9rem; }
.card-link:hover { gap: 10px; }

.program-card { overflow: hidden; padding: 0; }
.program-card .ph { height: 190px; background-size: cover; background-position: center; position: relative; }
.program-card .ph::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,61,36,0) 40%, rgba(15,61,36,0.55)); }
.program-card .ph .ph-tag { position: absolute; left: 16px; bottom: 14px; color: var(--white); font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; z-index: 1;}
.program-card .body { padding: 24px 24px 28px; }

/* Placeholder gradient blocks for imagery not yet supplied */
.placeholder-art {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.placeholder-art.gold { background: linear-gradient(135deg, var(--gold-500), var(--terracotta-500)); }
.placeholder-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.placeholder-art svg { width: 42%; max-width: 90px; opacity: 0.9; position: relative; z-index: 1; }
.placeholder-art .swap-note {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.03em; text-transform: uppercase;
  background: rgba(0,0,0,0.28); padding: 3px 10px; border-radius: var(--radius-pill);
  z-index: 1; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Founder ---------- */
.founder-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.founder-frame img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.founder-frame::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--gold-400), var(--forest-500), var(--terracotta-500), var(--gold-400));
  filter: blur(2px);
  opacity: 0.65;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.founder-badge {
  position: absolute; bottom: 10px; right: 6px; z-index: 2;
  background: var(--white); padding: 8px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); font-weight: 700; font-size: 0.82rem; color: var(--forest-800);
}
.founder-quote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--forest-900);
  border-left: 4px solid var(--gold-500);
  padding-left: 20px;
  margin: 20px 0;
}
.founder-socials { display: flex; gap: 12px; margin-top: 22px; }

/* ---------- Testimonials ---------- */
.testi-track { display: flex; gap: 24px; overflow: hidden; }
.testi-card {
  min-width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}
.testi-card p.quote { font-family: var(--font-head); font-size: 1.25rem; color: var(--forest-900); margin-bottom: 22px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--forest-100); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head);
}
.testi-nav { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testi-nav button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--forest-100); }
.testi-nav button.active { background: var(--forest-700); width: 24px; border-radius: 6px; }
.testi-grid .testi-card { min-width: 0; text-align: left; }
.testi-grid .testi-person { justify-content: flex-start; }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-tab {
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--forest-100); color: var(--forest-800);
  font-weight: 600; font-size: 0.88rem; border: none;
}
.gallery-tab.active { background: var(--forest-700); color: var(--white); }
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(15,61,36,0.85), transparent);
  color: var(--white); font-size: 0.82rem; font-weight: 600;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 15, 8, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 92vw); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: var(--white);
  border: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.75); font-size: 0.88rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 30px 22px; }
.team-photo {
  width: 108px; height: 108px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.team-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.team-role { color: var(--forest-600); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 12px; padding-left: 30px; border-left: 3px solid var(--forest-100); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -39px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-500); border: 4px solid var(--cream-50); box-shadow: 0 0 0 3px var(--forest-700);
}
.timeline-date { font-weight: 700; color: var(--forest-700); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline-item h3 { margin: 6px 0 8px; }

/* ---------- Accordion / FAQ ---------- */
.accordion-item { border-bottom: 1px solid var(--forest-100); }
.accordion-item:first-child { border-top: 1px solid var(--forest-100); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 4px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 1.02rem; color: var(--forest-900);
  gap: 20px;
}
.accordion-q .plus { flex-shrink: 0; transition: transform 0.25s ease; color: var(--forest-600); }
.accordion-item.open .accordion-q .plus { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-a-inner { padding: 0 4px 22px; color: var(--ink-500); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > * { min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.86rem; color: var(--forest-900); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--forest-100);
  font-family: inherit; font-size: 0.95rem; background: var(--cream-50); color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--forest-500); background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--ink-300); margin-top: 10px; }
.form-success {
  display: none;
  text-align: center; padding: 40px 20px;
  background: var(--forest-50); border-radius: var(--radius-md);
}
.form-success.show { display: block; }
.form-success .tick {
  width: 60px; height: 60px; border-radius: 50%; background: var(--forest-600); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-cards label {
  border: 1.5px solid var(--forest-100); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.radio-cards input { accent-color: var(--forest-700); }

/* ---------- Donate page ---------- */
.impact-block { display: flex; gap: 16px; align-items: flex-start; }
.impact-amt {
  flex-shrink: 0; width: 74px; height: 74px; border-radius: 18px;
  background: var(--gold-100); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; text-align: center;
}

.donation-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(120deg, var(--gold-500), var(--forest-600), var(--terracotta-500), var(--gold-500));
  background-size: 300% 300%;
  animation: donateGradient 8s ease infinite;
  box-shadow: var(--shadow-lg);
}
.donation-panel-inner {
  background: var(--white);
  border-radius: calc(var(--radius-lg) - 3px);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
}
.qr-box { text-align: center; }
.qr-frame {
  width: 100%; max-width: 240px; aspect-ratio: 1/1; margin: 0 auto 14px;
  border-radius: var(--radius-md); border: 2px dashed var(--forest-200, var(--forest-100));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--forest-50);
}
.qr-placeholder { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); padding: 14px; gap: 3px; }
.qr-placeholder div { background: var(--forest-800); border-radius: 1px; }
.qr-placeholder div.off { background: transparent; }
.upi-id-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--forest-50); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; color: var(--forest-900); font-size: 0.95rem;
}
/* A real UPI ID (no spaces, e.g. greenorganicwefare00622@sbi) is long enough
   to overflow a narrow phone screen unless it's allowed to break. */
.upi-id-row span { overflow-wrap: anywhere; min-width: 0; }
.bank-table td.value { overflow-wrap: anywhere; }
.copy-btn {
  border: none; background: var(--forest-700); color: var(--white);
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.copy-btn.copied { background: var(--gold-600); }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table tr { border-bottom: 1px solid var(--forest-100); }
.bank-table tr:last-child { border-bottom: none; }
.bank-table td { padding: 13px 6px; vertical-align: middle; }
.bank-table td.label { color: var(--ink-500); font-size: 0.85rem; font-weight: 600; width: 40%; }
.bank-table td.value { font-weight: 700; color: var(--forest-900); display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--forest-100); }
.trust-row .item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--forest-800); }

.receipt-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--forest-50); border: 1.5px solid var(--forest-100); border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.receipt-banner h3 { margin-bottom: 6px; }
.receipt-banner p { margin: 0; color: var(--ink-500); }

.donor-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.donor-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--forest-100); border-radius: var(--radius-pill);
  padding: 8px 18px 8px 8px; box-shadow: var(--shadow-sm);
}
.donor-chip .av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--forest-100); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; font-family: var(--font-head);
}
.donor-chip .amt { font-weight: 700; color: var(--forest-700); font-size: 0.85rem; }
.donor-note { font-size: 0.8rem; color: var(--ink-300); margin-top: 16px; }

.closing-cta {
  text-align: center; padding: 90px 0; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--forest-900), var(--forest-700));
  color: var(--white);
}
.closing-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.closing-cta .container { position: relative; z-index: 1; }
.closing-cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.closing-cta p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Certificates / transparency ---------- */
.cert-card { text-align: center; }
.cert-badge {
  display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--gold-100); color: var(--gold-600); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(246,241,230,0.82); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand strong { min-width: 0; overflow-wrap: anywhere; }
.footer-brand img { height: 48px; width: 48px; border-radius: 50%; }
.footer-brand strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--forest-600); }
.newsletter-box { display: flex; gap: 8px; margin-top: 8px; min-width: 0; }
.newsletter-box input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: var(--radius-sm); border: none; background: rgba(255,255,255,0.08); color: var(--white); font-size: 0.88rem;
}
.newsletter-box input::placeholder { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--gold-400); }
.footer-credit {
  text-align: center; padding: 14px 0 22px;
  font-size: 0.76rem; color: rgba(246,241,230,0.45);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
/* Long unbroken strings (emails, IDs) in a flex row need this to actually
   shrink/wrap instead of forcing the row wider than its container. */
.flex > * { min-width: 0; overflow-wrap: anywhere; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--forest-100); color: var(--forest-700);
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }
.reveal-delay-5.in-view { transition-delay: 0.4s; }

/* Devanagari toggle */
.hi-text { display: none; font-family: var(--font-head); }
.lang-hi .hi-text { display: block; }
.lang-hi .en-text { display: none; }
.lang-toggle {
  border: 1.5px solid var(--forest-200, var(--forest-100)); background: var(--white); color: var(--forest-700);
  border-radius: var(--radius-pill); padding: 7px 16px; font-weight: 700; font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donation-panel-inner { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-left span:nth-child(n+3) { display: none; }

  /* The brand block and donate button were both flex-shrink:0, so on narrow
     viewports they refused to compress and forced the whole page to scroll
     horizontally. Let the brand shrink and drop the tagline to fit. */
  .header-inner { gap: 10px; }
  .brand { flex-shrink: 1; min-width: 0; gap: 10px; }
  .brand img { height: 40px; width: 40px; flex-shrink: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong {
    font-size: 0.9rem; overflow-wrap: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .brand-text span { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-donate { padding: 10px 16px; font-size: 0.86rem; flex-shrink: 1; white-space: nowrap; }
  /* Reachable via the mobile drawer instead — keeps the mobile header to just
     brand + Donate + hamburger, which is what actually fits on a phone. */
  .btn-header-member { display: none; }
  /* member/admin utility pages (includes/header.php) have no hamburger —
     their header-actions is just Member/Admin Login + Donate, so shrink
     both instead of hiding either. */
  .header-actions .btn-outline { padding: 9px 12px; font-size: 0.8rem; }
}

/* .container caps at max-width:1200px regardless of viewport, so above the
   mobile breakpoint the header always has to fit brand + nav + two buttons
   into the same ~1152px budget (1200 minus side padding) whether the window
   is 1050px or 2000px wide — this isn't a "medium screen" special case, it's
   the permanent desktop sizing. */
@media (min-width: 1200px) {
  .btn-header-member { padding: 8px 12px; font-size: 0.78rem; }
  .main-nav > ul > li > a, .nav-drop-toggle { padding: 8px 5px; font-size: 0.78rem; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  .header-actions .btn-donate { padding: 9px 14px; font-size: 0.82rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .brand-text strong { font-size: 0.82rem; }
  .header-actions .btn-donate { padding: 9px 12px; font-size: 0.8rem; }
  .header-actions .btn-donate svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  /* Long button labels ("Share Receipt on WhatsApp", etc.) were pinned to one
     line via white-space:nowrap and forced their containers to overflow. */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 22px; font-size: 0.94rem; }
  .hero-cta .btn, .closing-cta .btn { width: 100%; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .receipt-banner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 78vh; }
  .floating-actions { right: 14px; bottom: 14px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav > div > ul > li { border-bottom: 1px solid var(--forest-100); }
.mobile-nav-top-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-weight: 700; font-size: 1.02rem; background: none; border: none; width: 100%; text-align: left; color: var(--ink-900); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 12px; }
.mobile-sub a { display: block; padding: 10px 4px; color: var(--ink-500); font-size: 0.94rem; }
.mobile-nav-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
