/* ==========================================================================
   Ihsaan-ul-Jaariya Foundation — Design System
   Deep emerald + champagne gold, drawn from the tree-of-life mark.
   Photo-led layouts; brand bands (hero, header over hero, hadith, footer)
   stay emerald in both themes. Light default, dark opt-in via the toggle.
   ========================================================================== */

:root {
  /* Brand palette (constant across themes) */
  --emerald-950: #04160f;
  --emerald-900: #072219;
  --emerald-800: #0b3024;
  --emerald-700: #0f4231;
  --emerald-600: #155a41;
  --emerald-500: #1d7453;

  --gold-200: #f4e7c6;
  --gold-300: #ead39f;
  --gold-400: #dcb877;
  --gold-500: #c99e55;
  --gold-600: #a97f3c;
  --gold-700: #85622b;

  --leaf-400: #8cc265;
  --leaf-500: #6fa84a;

  --cream-50: #fdfbf6;
  --cream-100: #f8f3e8;
  --cream-200: #efe6d3;

  --ink-900: #14201a;
  --ink-600: #4a5750;
  --ink-400: #7b8680;

  --font-serif: "DM Serif Display", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 260ms var(--ease);

  /* ---- Theme: LIGHT (default) ---- */
  color-scheme: light;
  --bg-page: var(--cream-50);
  --bg-alt: var(--cream-100);
  --bg-card: #ffffff;
  --text-body: var(--ink-900);
  --text-muted: var(--ink-600);
  --border-soft: #e7dcc4;
  --accent: var(--emerald-600);
  --accent-gold: var(--gold-700);
  --shadow-soft: 0 12px 32px -14px rgba(7, 34, 25, 0.18);
  --shadow-lift: 0 30px 60px -24px rgba(7, 34, 25, 0.35);
  --header-solid-bg: rgba(253, 251, 246, 0.9);
  --header-solid-text: var(--ink-900);
  --header-solid-muted: var(--ink-600);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #07130e;
  --bg-alt: #0b1c15;
  --bg-card: #0f241b;
  --text-body: #eae6da;
  --text-muted: #a8b3ab;
  --border-soft: #1d3a2e;
  --accent: var(--leaf-400);
  --accent-gold: var(--gold-400);
  --shadow-soft: 0 12px 32px -14px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  --header-solid-bg: rgba(4, 22, 15, 0.9);
  --header-solid-text: var(--gold-200);
  --header-solid-muted: #c3cbc5;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-alt); transition: background-color var(--transition); }
.section--dark {
  background: var(--emerald-900);
  color: var(--gold-200);
}
.section--dark .section-head p { color: rgba(244, 231, 198, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--gold-400); }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color: var(--emerald-950);
  box-shadow: 0 10px 24px -10px rgba(201, 158, 85, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(201, 158, 85, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-emerald { background: var(--emerald-700); color: #fff; }
.btn-emerald:hover { background: var(--emerald-600); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-200); background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: transparent; border-color: var(--text-body); color: var(--text-body); }
.btn-outline:hover { background: var(--text-body); color: var(--bg-page); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

/* ---------- Announcement bar ---------- */
.topbar {
  position: relative;
  z-index: 101;
  background: var(--emerald-950);
  color: var(--gold-200);
  font-size: 0.82rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(220, 184, 119, 0.18);
}
.topbar-track {
  display: inline-flex;
  gap: 56px;
  padding: 10px 0;
  animation: ticker 38s linear infinite;
}
.topbar-track span { display: inline-flex; align-items: center; gap: 12px; }
.topbar-track span::before { content: "✦"; color: var(--gold-400); font-size: 0.7rem; }
.topbar:hover .topbar-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  color: #fff;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition), color var(--transition);
}
.site-header.is-solid {
  position: fixed;
  top: 0;
  color: var(--header-solid-text);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-soft), 0 12px 30px -18px rgba(0, 0, 0, 0.3);
  animation: header-in 380ms var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile nav drawer inside the header's box. */
.site-header.is-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-solid-bg);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav-toggle[aria-expanded="true"] { color: var(--gold-200); }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-name span { font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-top: 3px; }
.site-header.is-solid .brand-name span { color: var(--accent-gold); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.6rem;
  padding: 4px;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.4);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--gold-400); color: var(--gold-400); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 84vw);
    background: var(--emerald-950);
    color: var(--gold-200);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 48px;
    transform: translateX(100%);
    transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35); }
  .nav-links a { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-actions .btn-primary { display: none; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  color: #fff;
  padding: 150px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(4, 22, 15, 0.94) 0%, rgba(7, 34, 25, 0.82) 38%, rgba(7, 34, 25, 0.35) 70%, rgba(7, 34, 25, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 22, 15, 0.7), transparent 40%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(220, 184, 119, 0.14);
  border: 1px solid rgba(220, 184, 119, 0.35);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-kicker i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf-400);
  box-shadow: 0 0 0 0 rgba(140, 194, 101, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(140, 194, 101, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 194, 101, 0); } }
.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 26px;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-200), var(--gold-400) 60%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 0;
}
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold-400); }

/* Quick donate card */
.quick-donate {
  background: rgba(253, 251, 246, 0.97);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}
.quick-donate::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--gold-300), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.quick-donate h2 { font-size: 1.75rem; margin-bottom: 4px; color: var(--emerald-800); }
.quick-donate > p { color: var(--ink-600); font-size: 0.92rem; margin-bottom: 22px; }
.qd-freq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-200);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.qd-freq button {
  border: none;
  background: transparent;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-600);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.qd-freq button.active { background: var(--emerald-700); color: #fff; box-shadow: 0 6px 16px -8px rgba(7, 34, 25, 0.6); }
.qd-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 8px; }
.qd-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--ink-900);
  margin-bottom: 18px;
  font-weight: 600;
}
.qd-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.qd-amounts button {
  padding: 13px 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.qd-amounts button:hover { border-color: var(--gold-500); }
.qd-amounts button.active { border-color: var(--emerald-600); background: rgba(29, 116, 83, 0.08); color: var(--emerald-700); transform: translateY(-1px); }
.qd-custom {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 18px;
  overflow: hidden;
}
.qd-custom span { padding: 0 4px 0 16px; font-weight: 700; color: var(--ink-400); }
.qd-custom input { border: none; outline: none; padding: 13px 16px 13px 4px; width: 100%; background: transparent; color: var(--ink-900); }
.qd-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 0.8rem; color: var(--ink-400); }
.qd-note svg { width: 14px; height: 14px; }

/* ---------- Program / appeal cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.appeal {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.appeal:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.appeal-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.appeal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.appeal:hover .appeal-media img { transform: scale(1.07); }
.appeal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 22, 15, 0.55), transparent 50%);
}
.appeal-tag {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(4, 22, 15, 0.72);
  backdrop-filter: blur(6px);
  color: var(--gold-200);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appeal-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.appeal-body h3 { font-size: 1.65rem; margin-bottom: 10px; }
.appeal-body p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 24px; }
.appeal-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--gold-400); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: var(--gold-300);
  margin-bottom: 22px;
  box-shadow: 0 10px 20px -10px rgba(7, 34, 25, 0.6);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 18px; }
.card-link { font-weight: 700; font-size: 0.9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px; left: 12%; right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(220, 184, 119, 0.5) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  width: 68px; height: 68px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--emerald-950);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  box-shadow: 0 0 0 8px var(--emerald-900), 0 0 0 9px rgba(220, 184, 119, 0.35);
  position: relative;
}
.step h3 { font-size: 1.55rem; color: #fff; }
.step p { color: rgba(244, 231, 198, 0.72); font-size: 0.97rem; max-width: 320px; margin: 0 auto; }

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.split p { color: var(--text-muted); font-size: 1.04rem; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
}
.split-media > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.split-media > img[src*="logo"] { width: 50%; height: auto; object-fit: contain; }
.split-badge {
  position: absolute;
  right: -28px; bottom: 40px;
  background: var(--bg-card);
  color: var(--text-body);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lift);
  width: 300px;
  max-width: calc(100% - 32px);
  border: 1px solid var(--border-soft);
}
.split-badge img { width: 54px; height: auto; }
.split-badge strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.split-badge span { font-size: 0.82rem; color: var(--text-muted); }
.check-list { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; font-weight: 500; }
.check-list svg {
  flex-shrink: 0;
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--emerald-600);
}

/* ---------- Hadith / quote band ---------- */
.quote-band {
  position: relative;
  padding: 140px 0;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.quote-band-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(7, 34, 25, 0.78), rgba(4, 22, 15, 0.94) 75%);
}
.quote-block { max-width: 860px; margin: 0 auto; }
.quote-block svg { width: 44px; height: 44px; color: var(--gold-400); margin: 0 auto 28px; display: block; }
.quote-block p.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  color: inherit;
}
.quote-cite {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(220, 184, 119, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section--dark .quote-block p.quote-text { color: #fff; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 2.6rem; color: var(--accent-gold); }
.stats-band span { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(220, 184, 119, 0.28), transparent 45%),
    linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  isolation: isolate;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 340px; height: 260px;
  background: url("../images/logo-mark.png") center / contain no-repeat;
  opacity: 0.12;
  z-index: -1;
}
.cta-banner h2, .cta-banner h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 12px; color: #fff; max-width: 620px; }
.cta-banner p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 520px; font-size: 1.05rem; }
.cta-banner .btn-ghost { color: #fff; }

/* ---------- Sticky donate bar (home) ---------- */
.donate-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--emerald-950);
  color: var(--gold-200);
  border-top: 1px solid rgba(220, 184, 119, 0.25);
  box-shadow: 0 -16px 40px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(110%);
  transition: transform 420ms var(--ease);
}
.donate-bar.is-visible { transform: translateY(0); }
.donate-bar form { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.donate-bar strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; margin-right: auto; white-space: nowrap; }
.donate-bar select, .donate-bar input {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 184, 119, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
}
.donate-bar select option { color: var(--ink-900); }
.donate-bar input { width: 120px; }
.donate-bar input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--emerald-950);
  color: rgba(244, 231, 198, 0.7);
  padding: 96px 0 32px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.site-footer .brand { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(220, 184, 119, 0.15);
}
.footer-brand p { margin-top: 20px; font-size: 0.93rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-sans); color: var(--gold-400); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col li { font-size: 0.93rem; }
.footer-col a { transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(220, 184, 119, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--gold-400); color: var(--emerald-950); background: var(--gold-400); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 0%, rgba(220, 184, 119, 0.2), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(29, 116, 83, 0.5), transparent 50%),
    linear-gradient(160deg, var(--emerald-800), var(--emerald-950));
  color: var(--gold-200);
  padding: 190px 0 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -70px;
  width: 360px; height: 270px;
  transform: translateX(-50%);
  background: url("../images/logo-mark.png") center / contain no-repeat;
  opacity: 0.07;
  z-index: -1;
}
.page-hero--photo { padding: 220px 0 130px; }
.page-hero--photo::after { display: none; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(7, 34, 25, 0.55), rgba(4, 22, 15, 0.9) 80%),
    linear-gradient(0deg, rgba(4, 22, 15, 0.85), transparent 45%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4.2rem); }
.page-hero p { color: rgba(244, 231, 198, 0.78); max-width: 580px; margin: 14px auto 0; font-size: 1.1rem; }
.breadcrumb { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(244, 231, 198, 0.6); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold-400); }

/* ---------- Inner-page components ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.form-card h2 { font-size: 2rem; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); margin-bottom: 28px; }

.note {
  color: var(--text-muted);
  font-size: 0.92rem;
  border-left: 3px solid var(--gold-500);
  padding: 4px 0 4px 16px;
}

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-list li:hover { border-color: var(--gold-400); transform: translateX(4px); }
.contact-list .card-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; border-radius: 14px; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.contact-list span { color: var(--text-muted); }
.contact-social { display: flex; gap: 10px; margin-top: 24px; }
.contact-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-body);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.contact-social a:hover { background: var(--emerald-700); color: #fff; border-color: var(--emerald-700); }

.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-200), var(--cream-100));
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--gold-400), var(--shadow-soft);
  color: var(--gold-600);
  overflow: hidden;
}
.team-avatar svg { width: 48px; height: 48px; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 4px; }
.team-card p { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 0; }

.program-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.split-media .appeal-tag { top: 22px; left: 22px; }

.impact-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0 0 24px;
  box-shadow: var(--shadow-soft);
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }
.impact-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 26px 22px;
  background: linear-gradient(0deg, rgba(4, 22, 15, 0.9), transparent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
}
.faq p { font-size: 0.94rem; }
.faq strong { display: block; color: var(--text-body); margin-bottom: 2px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 8px; color: var(--text-body); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-body);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(29, 116, 83, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.form-success {
  display: none;
  background: rgba(29, 116, 83, 0.1);
  border: 1px solid var(--emerald-500);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }

/* ---------- Donate page tiers ---------- */
.tier-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 40px;
}
.tier-toggle button {
  border: none;
  background: transparent;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.tier-toggle button.active { background: var(--emerald-700); color: #fff; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.amount-option {
  position: relative;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}
.amount-option:hover { border-color: var(--gold-500); }
.amount-option input { position: absolute; top: 0; left: 0; margin: 0; opacity: 0; pointer-events: none; }
.amount-option label { display: block; cursor: pointer; }
.amount-option strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; }
.amount-option span { font-size: 0.78rem; color: var(--text-muted); }
.amount-option:has(input:checked) { border-color: var(--emerald-500); background: rgba(29, 116, 83, 0.08); transform: translateY(-2px); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 56px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(29, 116, 83, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Scroll reveal: only hides content once JS has confirmed it can reveal it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 120ms; }
.js .reveal[data-delay="2"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .quick-donate { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split-media { aspect-ratio: 4 / 3; }
  .split.reverse .split-media { order: -1; }
  .split-badge { right: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .donate-bar select { display: none; }
}
@media (max-width: 800px) {
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .steps { gap: 48px; }
  .steps::before { display: none; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 80px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 22, 15, 0.8), rgba(7, 34, 25, 0.9)); }
  .cta-banner { padding: 44px 28px; flex-direction: column; align-items: flex-start; }
  .quote-band { padding: 96px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 150px 0 80px; }
  .page-hero--photo { padding: 170px 0 90px; }
  .form-card { padding: 28px 22px; }
  .donate-bar strong { display: none; }
  .donate-bar input { flex: 1; width: auto; }
  .brand-name strong { font-size: 1.1rem; }
  .brand img { height: 42px; }
}
