/* ============================================================
   Om Shanthi Trust & Foundation — Design System
   Premium · Human · Elegant · Trustworthy
   ============================================================ */

:root {
  /* Brand */
  --color-primary: #174b43;
  --color-primary-dark: #0f332e;
  --color-primary-light: #22685c;
  --color-secondary: #2b8377;
  --color-accent: #1a6b5c;
  --color-gold: #d9a441;
  --color-gold-soft: #e8c56a;

  /* Surfaces */
  --color-background: #f7f3e9;
  --color-surface: #fffaf0;
  --color-surface-elevated: #ffffff;
  --color-text: #1c2725;
  --color-muted: #687572;
  --color-border: #e7e5dc;
  --color-border-strong: #d0cdc0;

  /* Semantic */
  --color-success: #2d6a4f;
  --color-danger: #9b2226;
  --color-warning: #bc6c25;

  /* Effects */
  --shadow-sm: 0 4px 16px rgba(23, 75, 67, 0.06);
  --shadow: 0 18px 50px rgba(23, 75, 67, 0.11);
  --shadow-lg: 0 28px 70px rgba(23, 75, 67, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Typography */
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Layout */
  --header-height: 78px;
  --container: 1160px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --color-primary: #3d9b8a;
  --color-primary-dark: #2b8377;
  --color-primary-light: #4db3a0;
  --color-secondary: #5ec4b2;
  --color-accent: #3d9b8a;
  --color-gold: #e8c56a;
  --color-gold-soft: #f0d78a;
  --color-background: #0f1a18;
  --color-surface: #162422;
  --color-surface-elevated: #1c2e2b;
  --color-text: #e8f0ee;
  --color-muted: #9bb0ab;
  --color-border: #2a3d39;
  --color-border-strong: #3a504b;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, textarea, select { font: inherit; }
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}
h1, h2, h3, .display {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { color: var(--color-muted); margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--color-surface-elevated) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1.05rem; color: var(--color-text); }
.brand-text small { font-size: 0.7rem; color: var(--color-muted); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.main-nav a {
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--color-primary); }
.main-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}
.nav-donate {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: var(--radius-full) !important;
  margin-left: 0.4rem;
  box-shadow: 0 6px 20px rgba(23, 75, 67, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
}
.nav-donate:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23, 75, 67, 0.3);
  color: #fff !important;
}
.nav-donate::after { display: none !important; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover, .menu-toggle:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* Mobile offcanvas */
.mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-links a {
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}
.mobile-nav-links .nav-donate {
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn:active, .button:active { transform: scale(0.97); }
.btn-primary, .button {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 75, 67, 0.22);
}
.btn-primary:hover, .button:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(23, 75, 67, 0.28);
}
.btn-outline-primary, .button-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover, .button-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.button-small, .btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-soft));
  color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217, 164, 65, 0.4);
  color: var(--color-primary-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, color-mix(in srgb, var(--color-gold) 12%, transparent), transparent),
    var(--color-background);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34em;
  margin-bottom: 1.75rem;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.hero-trust i { color: var(--color-gold); }
.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, var(--color-primary) 0%, var(--color-secondary) 55%, var(--color-primary-light) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217,164,65,0.25), transparent 45%);
}
.floating-note {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  background: color-mix(in srgb, var(--color-surface-elevated) 94%, transparent);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.2);
}
.floating-note b { display: block; margin-bottom: 0.25rem; color: var(--color-text); }
.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator i { font-size: 1.1rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--color-surface); }
.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.page-hero {
  padding: calc(var(--header-height) + 50px) 0 60px;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent),
    var(--color-background);
}
.page-hero h1 { margin: 0.4rem 0 0.75rem; }
.page-hero p { max-width: 36em; margin: 0; }

/* ---------- Cards & Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: transform var(--transition), background var(--transition);
}
.card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--color-primary);
  color: #fff;
}
.card h3 { margin: 0 0 0.5rem; }
.card p { margin-bottom: 1rem; font-size: 0.95rem; }
.card .link, .link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  transition: gap var(--transition);
}
.card .link:hover, .link:hover { gap: 0.55rem; }

/* Program card specific */
.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}
.program-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.program-card .card-media {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  overflow: hidden;
}
.program-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .card-media img { transform: scale(1.06); }

/* ---------- Impact / Stats ---------- */
.impact {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  color: #fff;
}
.impact .eyebrow { color: var(--color-gold-soft); }
.impact h2, .impact p { color: #fff; }
.impact p { color: rgba(255,255,255,0.8); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-soft);
  line-height: 1.1;
}
.stat span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.35rem;
  display: block;
}

/* ---------- Forms ---------- */
.form .field { margin-bottom: 1.15rem; }
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--color-success) 12%, transparent);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 25%, transparent);
}
.alert-error {
  background: color-mix(in srgb, var(--color-danger) 12%, transparent);
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 25%, transparent);
}

/* Amount selector (donate) */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.amount-btn {
  padding: 0.85rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.amount-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.amount-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 75, 67, 0.2);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,51,46,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .badge-verified {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ---------- Events ---------- */
.event-card {
  position: relative;
  overflow: hidden;
}
.event-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  min-width: 64px;
  margin-bottom: 1rem;
}
.event-date-badge .day {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}
.event-meta i { color: var(--color-primary); }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-list details[open] {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}
.faq-list summary {
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 1.35rem 1.25rem;
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
  position: relative;
  margin-top: 40px;
}
.footer-wave {
  position: absolute;
  top: -40px; left: 0; right: 0;
  height: 40px;
  background: var(--color-primary-dark);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-text b,
.footer-brand .brand-text small { color: #fff; }
.footer-mission {
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.social-link:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
  color: var(--color-gold-soft);
  padding-left: 4px;
}
.footer-newsletter-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.85rem;
}
.newsletter-form .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 0.65rem 1.1rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-gold);
  box-shadow: none;
  color: #fff;
}
.newsletter-form .btn {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--color-gold);
  border: none;
  color: var(--color-primary-dark);
  padding: 0.65rem 1.1rem;
}
.newsletter-form .btn:hover { background: var(--color-gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: var(--color-gold-soft); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(217,164,65,0.2), transparent 50%);
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 32em; margin: 0 auto 1.5rem; }
.cta-banner .actions { justify-content: center; position: relative; }

/* ---------- Admin ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar .brand { margin-bottom: 2rem; padding: 0 0.5rem; }
.admin-sidebar .brand-text b,
.admin-sidebar .brand-text small { color: #fff; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: background var(--transition), color var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.admin-main { padding: 2rem; background: var(--color-background); }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.stat-card .value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.75rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Empty / placeholder states */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  display: block;
}
.empty-state h3 { margin-bottom: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-art { min-height: 320px; order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: relative; }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .stats, .form-row, .footer-grid, .amount-grid {
    grid-template-columns: 1fr;
  }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 70px 0; }
  .page-hero { padding: calc(var(--header-height) + 30px) 0 45px; }
  .hero h1 { font-size: 2.2rem; }
  .cta-banner { padding: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .hero .actions { flex-direction: column; align-items: stretch; }
  .btn, .button { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-indicator { animation: none; }
}

/* ---------- Image media system ---------- */
.hero-art.has-image {
  background-size: cover;
  background-position: center;
}
.hero-art.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 51, 46, 0.55) 0%, rgba(15, 51, 46, 0.15) 50%, transparent 100%);
}
.hero-art .floating-note { z-index: 2; }

.card-media img,
.program-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.55);
  color: #fff;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.media-label.illustrative {
  background: rgba(23, 75, 67, 0.85);
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.about-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
}
.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* ============================================================
   HERO V2 — Full-bleed cinematic homepage hero
   ============================================================ */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 80px;
  overflow: hidden;
  background: #0f1a18;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 26, 24, 0.92) 0%, rgba(15, 26, 24, 0.78) 42%, rgba(15, 26, 24, 0.45) 100%),
    linear-gradient(to top, rgba(15, 26, 24, 0.7) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  width: min(var(--container), calc(100% - 36px));
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-eyebrow {
  color: var(--color-gold-soft) !important;
  margin-bottom: 0.85rem;
}
.hero-copy .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 1.85rem;
  line-height: 1.7;
}
.hero-copy .hero-trust {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.25rem;
}
.hero-copy .hero-trust i {
  color: var(--color-gold-soft);
}

.btn-hero-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-hero-outline:hover {
  background: #fff;
  color: var(--color-primary-dark) !important;
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.02rem;
}

/* Photo card stack on right */
.hero-card-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4 / 3;
  background: #1a2e2a;
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-photo-card:hover img {
  transform: scale(1.04);
}
.hero-photo-card .media-label {
  top: 16px;
  left: 16px;
}

.hero-floating-card {
  position: relative;
  margin-top: -48px;
  margin-left: 24px;
  margin-right: 24px;
  background: var(--color-surface-elevated);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--color-border);
  z-index: 3;
}
.hero-floating-card .hfc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.hero-floating-card strong {
  display: block;
  color: var(--color-text);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}
.hero-floating-card span {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.hero-v2 .scroll-indicator {
  color: rgba(255, 255, 255, 0.65);
  z-index: 3;
}

/* Mission photo */
.mission-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure header is readable over dark hero */
.site-header:not(.scrolled) .brand-text b,
.site-header:not(.scrolled) .main-nav a:not(.nav-donate) {
  color: #fff;
}
.site-header:not(.scrolled) .brand-text small {
  color: rgba(255, 255, 255, 0.7);
}
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.site-header:not(.scrolled) .theme-toggle:hover,
.site-header:not(.scrolled) .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.site-header:not(.scrolled) .main-nav a.active::after {
  background: var(--color-gold-soft);
}

/* Card media height consistency */
.program-card .card-media {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.program-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive hero */
@media (max-width: 950px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-card-stack {
    max-width: 480px;
    margin-inline: auto;
  }
  .hero-v2 {
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-copy h1 {
    font-size: 2.4rem;
  }
}
@media (max-width: 600px) {
  .hero-floating-card {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: -36px;
  }
  .hero-copy .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-copy .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE DRAWER — reliable side menu
   ============================================================ */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1090;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-backdrop[hidden] {
  display: none !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  background: var(--color-surface-elevated);
  color: var(--color-text);
  z-index: 1100;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface-elevated);
}
.mobile-drawer-header .brand-text b,
.mobile-drawer-header .brand-text small {
  color: var(--color-text) !important;
}
.mobile-drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-close:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-drawer-nav a {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text) !important;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-height: 48px;
  line-height: 1.4;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:active,
.mobile-drawer-nav a.active {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary) !important;
}
.mobile-drawer-nav a.active {
  font-weight: 700;
}

.mobile-donate {
  margin-top: 0.75rem !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  text-align: center;
  font-weight: 700 !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(23, 75, 67, 0.28);
}
.mobile-donate:hover,
.mobile-donate:active {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}

/* Lock body scroll when menu open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Ensure menu button is always tappable on mobile */
.menu-toggle {
  position: relative;
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.header-actions {
  position: relative;
  z-index: 5;
}

/* Hide old bootstrap offcanvas styles if any leftover */
.offcanvas.mobile-nav { display: none !important; }

@media (min-width: 992px) {
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .menu-toggle {
    display: none !important;
  }
}

/* ============================================================
   MOBILE HEADER — always-visible theme + menu buttons
   ============================================================ */
.site-header {
  overflow: visible;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0; /* allow flex children to shrink */
}
.brand {
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 110px); /* reserve space for action buttons */
  overflow: hidden;
}
.brand-text {
  min-width: 0;
  overflow: hidden;
}
.brand-text b,
.brand-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.theme-toggle,
.menu-toggle {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* On hero (not scrolled): glass style so buttons stay visible */
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-header:not(.scrolled) .theme-toggle:hover,
.site-header:not(.scrolled) .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
}
.site-header.scrolled .theme-toggle,
.site-header.scrolled .menu-toggle {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
  color: var(--color-text);
}

/* Force hamburger visible below lg — override any display:none leaks */
@media (max-width: 991.98px) {
  .menu-toggle {
    display: grid !important;
  }
  .main-nav {
    display: none !important;
  }
  .site-header .container {
    width: min(100% - 20px, var(--container));
    max-width: 100%;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    flex-shrink: 0;
  }
  .brand-text b {
    font-size: 0.95rem;
  }
  .brand-text small {
    font-size: 0.62rem;
  }
}
@media (max-width: 380px) {
  .brand-text small {
    display: none; /* keep logo + name, drop tagline on very narrow */
  }
  .theme-toggle,
  .menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
  }
}
