/* SAI Foundation — Design System (ui-ux-pro-max + 21st.dev) */
:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --cta: #059669;
  --cta-dark: #047857;
  --cta-light: #10b981;
  --bg: #ecfeff;
  --bg-white: #ffffff;
  --bg-muted: #f0fdfa;
  --text: #164e63;
  --text-muted: #0e7490;
  --text-light: #5eead4;
  --ink: #134e4a;
  --border: #a5f3fc;
  --border-strong: #67e8f9;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --shadow-sm: 0 4px 20px rgba(8, 145, 178, 0.08);
  --shadow-md: 0 12px 40px rgba(8, 145, 178, 0.12);
  --shadow-lg: 0 24px 60px rgba(8, 145, 178, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-heading: 'Figtree', system-ui, sans-serif;
  --font-body: 'Noto Sans', system-ui, sans-serif;
  --transition: 0.2s ease-out;
  --header-h: 72px;
  --topbar-h: 38px;
  /* Legacy aliases used in inline styles */
  --surface: var(--bg-muted);
  --cream: #fffbeb;
  --gold-light: #d4a84b;
  --teal: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Prevent flex/grid children from forcing horizontal scroll */
[class*="-grid"] > *,
.hero-grid > *,
.mission-grid > *,
.footer-grid > * {
  min-width: 0;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--cta);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--cta);
  border-color: #fff;
}
.btn-white:hover { background: var(--bg-muted); }

.btn-ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-ink:hover { background: #115e59; color: #fff; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; min-height: 40px; }

/* Icons */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.icon-box.lg { width: 52px; height: 52px; }
.icon-box.sm { width: 40px; height: 40px; }
.icon-box.sm svg { width: 20px; height: 20px; }
.icon-box.cta { background: #d1fae5; color: var(--cta); border-color: #a7f3d0; }
.icon-box.gold { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.icon-box svg { width: 22px; height: 22px; }

/* Topbar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.topbar-inner > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-inner > span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}
.topbar-inner a { color: #fff; font-weight: 600; }
.topbar-inner a:hover { color: var(--primary-light); }
.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.25);
  margin: 0 0.75rem;
  vertical-align: middle;
}

/* Header — floating style per ui-ux-pro-max */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}
.logo-text { min-width: 0; }

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-img-full {
  width: min(180px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
}
.logo-mark span {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-brand .logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-brand .logo-text { display: none; }
.footer-brand .logo-img-full { max-width: 180px; }

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.logo-tagline { display: none; }

.nav-desktop { display: flex; align-items: center; gap: 0.1rem; }
.nav-desktop a {
  padding: 0.5rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-desktop a:hover { color: var(--primary-dark); background: var(--bg); }
.nav-desktop a.active {
  color: var(--primary-dark);
  background: var(--bg);
  font-weight: 600;
}

.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--border);
  gap: 0.15rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-mobile a:hover { background: var(--bg); color: var(--primary); }

/* Hero — 21st.dev collage pattern */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-white) 100%);
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy { padding: 1rem 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--cta);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.hero h1 .highlight { color: var(--primary); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-trust {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: default;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Image collage — inspired by 21st.dev Hero Section */
.hero-collage {
  position: relative;
  height: 480px;
  width: 100%;
}

.collage-img {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  padding: 6px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
}

.collage-img.main {
  width: 58%;
  height: 58%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.collage-img.right {
  width: 48%;
  height: 48%;
  right: 0;
  top: 28%;
  z-index: 2;
}

.collage-img.left {
  width: 40%;
  height: 40%;
  left: 0;
  bottom: 0;
  z-index: 2;
}

.collage-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 1;
}
.collage-deco.d1 {
  width: 64px; height: 64px;
  background: var(--primary-light);
  top: 8%; left: 18%;
}
.collage-deco.d2 {
  width: 48px; height: 48px;
  background: #a7f3d0;
  bottom: 18%; right: 12%;
  border-radius: var(--radius);
}
.collage-deco.d3 {
  width: 24px; height: 24px;
  background: var(--cta-light);
  bottom: 35%; left: 8%;
}

/* Pillar cards */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all var(--transition);
}
.pillar-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.pillar-card.featured { border-top: 3px solid var(--primary); }
.pillar-card h3 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.pillar-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Impact strip */
.impact-strip {
  background: var(--ink);
  padding: 3.5rem 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.impact-item {
  text-align: center;
  padding: 1rem;
}

.impact-strip .impact-item {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.impact-strip .impact-item:last-child { border-right: none; }

.impact-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-strip .impact-number { color: #fff; }

.impact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.impact-strip .impact-label { color: rgba(255,255,255,0.65); }

.impact-note {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.impact-strip .impact-note { color: var(--primary-light); }

/* Sections */
section { padding: 5rem 0; }
section.bg-surface { background: var(--bg-muted); }
section.bg-white { background: var(--bg-white); }

.bg-surface { background: var(--bg-muted); }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-label::before { display: none; }
.section-header.center .section-desc { margin-inline: auto; }

/* Programme cards */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.programme-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.programme-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.programme-card.flagship { border-top: 3px solid var(--primary); }

.programme-card-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.programme-card-header h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.programme-card-header p { font-size: 0.85rem; color: var(--text-muted); }

.programme-flag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta);
  background: #d1fae5;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.programme-body { padding: 1.25rem 1.75rem 1.75rem; }
.programme-body ul { list-style: none; margin-bottom: 1.25rem; }
.programme-body li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg-muted);
}
.programme-body li:last-child { border-bottom: none; }
.programme-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
}

/* Campaign */
.campaign-section { background: var(--bg-muted); }

.campaign-panel {
  background: linear-gradient(135deg, var(--ink) 0%, #115e59 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.campaign-panel h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.campaign-panel p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }

.campaign-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.85rem;
}
.progress-labels strong { color: #fff; }

.progress-bar {
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cta-light), var(--primary-light));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s ease-out;
}

.progress-pct {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.65rem;
}

/* Foundation / Our Work page */
.foundation-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.foundation-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foundation-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 78, 74, 0.35) 0%, rgba(19, 78, 74, 0.88) 72%, rgba(19, 78, 74, 0.95) 100%);
}

.foundation-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 3.5rem;
  color: #fff;
  max-width: 720px;
}

.foundation-hero-content .section-label { color: var(--primary-light); }
.foundation-hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.foundation-hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.foundation-hero-content .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.foundation-hero-content .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.impact-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.impact-story.reverse .impact-story-media { order: 2; }
.impact-story.reverse .impact-story-copy { order: 1; }

.impact-story-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.impact-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-story-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.impact-story-copy p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.foundation-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.foundation-gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  aspect-ratio: 1;
}

.foundation-gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/10;
}

.foundation-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.foundation-gallery-item:hover img { transform: scale(1.04); }

.foundation-gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.75rem 0.65rem;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}

.foundation-leadership-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.foundation-leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0.75rem;
  overflow: visible;
}

.tier-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: visible;
}
.tier-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.tier-card.popular { border-color: var(--cta); box-shadow: var(--shadow-md); }

.tier-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}

.tier-placeholder { font-size: 0.72rem; color: var(--warning); margin-top: 0.5rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-card.placeholder { border-style: dashed; }

.testimonial-card.placeholder::after {
  content: 'Awaiting content';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}

.author-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.author-role { font-size: 0.76rem; color: var(--text-muted); }

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.founder-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: all var(--transition);
}
.founder-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }

.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}

.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
}

/* Certificate cards */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.certificate-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.certificate-preview {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.certificate-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.certificate-preview .cert-placeholder {
  display: none;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2rem;
}

.certificate-preview .cert-placeholder code {
  font-size: 0.75rem;
  word-break: break-all;
}

.certificate-body { padding: 1.5rem; }

.certificate-body h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.certificate-body .cert-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cta);
  margin-bottom: 0.75rem;
}

.cert-meta {
  display: grid;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cert-meta strong { color: var(--ink); font-weight: 600; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.72rem;
  padding: 1.5rem 0.5rem 0.5rem;
}

.gallery-item { position: relative; overflow: hidden; }

.img-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.founder-photo-placeholder { text-align: center; color: var(--text-muted); padding: 1rem; }
.founder-photo-placeholder svg { width: 48px; height: 48px; opacity: 0.35; margin: 0 auto 0.5rem; }
.founder-photo-placeholder span { display: block; font-size: 0.72rem; }

.founder-info { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.founder-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cta);
  margin-bottom: 0.4rem;
}
.founder-info h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.founder-bio { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.founder-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: auto;
}
.founder-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.founder-social a:hover { color: var(--primary); }

/* Trust badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-badge {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.trust-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.trust-badge h4 { font-size: 0.92rem; margin-bottom: 0.35rem; }
.trust-badge p { font-size: 0.8rem; color: var(--text-muted); }
.trust-badge .pending { color: var(--warning); font-size: 0.72rem; margin-top: 0.35rem; }

/* Volunteer */
.volunteer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.volunteer-roles { display: flex; flex-direction: column; gap: 0.85rem; }

.role-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all var(--transition);
}
.role-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.role-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.role-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

.volunteer-form-placeholder {
  background: var(--bg-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}

.featured-story {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.featured-story-image {
  height: 260px;
  overflow: hidden;
  background: var(--bg);
}

.featured-story-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-story-body { padding: 1.75rem; }
.featured-story-body h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.featured-story-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1rem; }

/* Instagram reel embed */
.reel-feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.reel-embed-panel {
  position: relative;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.reel-embed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.reel-embed-header svg { opacity: 0.9; }

.instagram-embed-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.instagram-embed-wrap .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 340px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.reel-fallback-link {
  position: absolute;
  inset: 0;
  top: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.reel-fallback-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.35s;
}

.reel-fallback-link:hover img {
  opacity: 0.7;
  transform: scale(1.03);
}

.reel-play-btn {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: transform 0.2s;
}

.reel-fallback-link:hover .reel-play-btn { transform: scale(1.08); }

.reel-fallback-label {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.reel-embed-panel:has(.instagram-embed-wrap iframe) .reel-fallback-link {
  display: none;
}

.reel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-item:hover { border-color: var(--primary); }
.gallery-item.large { grid-column: span 2; aspect-ratio: 2/1; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.contact-item span, .contact-item a { font-size: 0.9rem; color: var(--text-muted); }
.contact-item .pending-text { color: var(--warning); font-style: italic; font-size: 0.85rem; }

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Page hero */
.page-hero {
  background: var(--bg);
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label::before { display: none; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 540px; font-size: 1.05rem; line-height: 1.7; }

/* About */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.mission-panel {
  background: linear-gradient(135deg, var(--primary), var(--ink));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #fff;
}

.mission-panel .big-text {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.mission-stats div strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.mission-stats div span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all var(--transition);
}
.value-item:hover { border-color: var(--primary); }
.value-item h4 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.value-item p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

/* Org table */
.org-details-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.org-details {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.org-details table { width: 100%; border-collapse: collapse; }
.org-details tr { border-bottom: 1px solid var(--border); }
.org-details tr:last-child { border-bottom: none; }
.org-details td { padding: 1rem 1.5rem; font-size: 0.9rem; }
.org-details td:last-child { word-break: break-word; }
.org-details td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 38%;
  background: var(--bg-muted);
}
.org-details .pending { color: var(--warning); font-style: italic; }

/* Programme detail pages */
.programme-detail {
  max-width: 820px;
  margin: 0 auto 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.programme-detail-header {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.programme-detail-header h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.programme-detail-header p { color: var(--text-muted); font-size: 0.92rem; }
.programme-detail-body { padding: 2rem 2.5rem 2.5rem; }
.programme-detail-body > p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.programme-detail-body ul { list-style: none; margin-bottom: 1.5rem; }
.programme-detail-body li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.programme-detail-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.detail-cols h4 { font-size: 0.95rem; margin-bottom: 0.65rem; }

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--ink));
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  color: #fff;
}

.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* Content notice */
.content-notice {
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.content-notice::before {
  content: 'i';
  width: 20px;
  height: 20px;
  background: #fbbf24;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.map-placeholder {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.45); }
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-reg { color: rgba(255,255,255,0.35); }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Legacy aliases */
.programme-header, .programme-icon { display: none; }
.hero-image, .hero-image-wrap, .hero-float, .hero-media { display: none; }
.impact-bar { display: none; }
.impact-strip { display: block; }

/* Reusable responsive grids */
.stories-grid,
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.payment-methods-grid {
  max-width: 900px;
  margin-inline: auto;
}

.social-actions,
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-group { gap: 0.75rem; }

/* FAQ — AEO-friendly Q&A blocks */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* Layout utilities */
.btn-block { width: 100%; justify-content: center; }
.btn-on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.narrow { max-width: 720px; margin-inline: auto; }
.impact-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
}
.impact-grid--3 .impact-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
}

/* Responsive */
body.nav-open { overflow: hidden; }

/* Tablet landscape & small laptop */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { text-align: center; margin-inline: auto; max-width: 100%; }
  .hero-metrics { justify-content: center; }
  .hero-collage { height: 400px; max-width: 500px; margin: 0 auto; }
  .hero-pillars { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-strip .impact-item { border-right: none; }
  .impact-strip .impact-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .impact-strip .impact-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; }
  .programmes-grid { grid-template-columns: 1fr; }
  .campaign-panel { grid-template-columns: 1fr; gap: 2rem; }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .certificates-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .programme-detail-header { flex-direction: column; }
  .foundation-gallery { grid-template-columns: repeat(2, 1fr); }
  .foundation-gallery-item.wide { grid-column: span 2; }
  .impact-story,
  .impact-story.reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .impact-story.reverse .impact-story-media,
  .impact-story.reverse .impact-story-copy { order: unset; }
  .nav-desktop { gap: 0.35rem; }
  .nav-desktop a { font-size: 0.82rem; padding: 0.35rem 0.45rem; }
  .impact-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .topbar-inner > span:first-child { display: none; }
}

/* Tablet & mobile navigation */
@media (max-width: 992px) {
  :root { --header-h: 64px; }

  .topbar { display: none; }
  .nav-desktop,
  .header-cta .btn-ghost { display: none; }
  .header-cta { flex-shrink: 0; }
  .header-cta .btn-primary { padding: 0.55rem 1rem; font-size: 0.82rem; }
  .header-inner { gap: 0.65rem; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .logo { max-width: calc(100% - 7.5rem); }
  .logo-tagline { display: none; }

  .nav-mobile {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0 1.25rem;
    z-index: 999;
  }
  .nav-mobile a {
    min-height: 48px;
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
  }
  .nav-mobile .btn {
    margin: 0.5rem 0.9rem 0;
    width: calc(100% - 1.8rem);
    justify-content: center;
  }

  .impact-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founders-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .page-hero {
    padding: 3rem 0 2.25rem;
    text-align: center;
  }
  .page-hero p { margin-inline: auto; max-width: 100%; }

  .section-header { text-align: center; }
  .section-header .section-label { justify-content: center; }
  .section-header .section-label::before { display: none; }
  .section-desc { max-width: 100%; margin-inline: auto; }

  .hero { padding: 2rem 0 1.25rem; }
  .hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.35rem); }
  .hero-lead { font-size: 1rem; }
  .hero-eyebrow { margin-inline: auto; }
  .hero-pillars {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
    padding-bottom: 2rem;
  }
  .hero-collage { height: 320px; }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    border-top: none;
    padding-top: 1.25rem;
    width: 100%;
  }
  .stat-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    width: auto;
  }
  .stat-item .icon-box {
    width: 36px;
    height: 36px;
  }
  .stat-item .icon-box svg { width: 18px; height: 18px; }
  .stat-item strong { font-size: 1rem; }
  .stat-item span { font-size: 0.65rem; line-height: 1.35; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .impact-strip { padding: 2.25rem 0; }
  .impact-item { border-right: none !important; padding: 1rem 0.5rem; }

  .volunteer-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .tiers-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid,
  .values-list { grid-template-columns: 1fr; gap: 2rem; }
  .detail-cols { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .gallery-item.large { grid-column: span 2; }
  .stories-grid,
  .payment-methods-grid { grid-template-columns: 1fr; }

  .campaign-panel { padding: 1.75rem 1.25rem; }
  .campaign-box { padding: 1.25rem; }
  .progress-labels { flex-direction: column; gap: 0.35rem; text-align: center; }
  .programme-card-header,
  .programme-body { padding-left: 1.15rem; padding-right: 1.15rem; }
  .programme-card .btn { width: 100%; justify-content: center; }
  .programme-detail-header,
  .programme-detail-body { padding: 1.5rem; }
  .programme-detail { border-radius: var(--radius-lg); }

  .contact-info-card,
  .contact-form { padding: 1.35rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
  .contact-item { align-items: flex-start; }
  .map-placeholder { height: 240px; }

  .org-details td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
  .org-details td:first-child { width: 42%; }

  .org-details table,
  .org-details tbody,
  .org-details tr,
  .org-details td {
    display: block;
    width: 100%;
  }
  .org-details tr { border-bottom: 1px solid var(--border); }
  .org-details td:first-child {
    width: 100%;
    padding-bottom: 0.35rem;
    border-bottom: none;
    font-size: 0.8rem;
  }
  .org-details td:last-child {
    padding-top: 0;
    padding-bottom: 1rem;
    word-break: break-word;
  }

  .mission-panel { padding: 1.75rem; text-align: center; }
  .mission-panel .big-text { font-size: 2.5rem; }
  .mission-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .cta-banner { padding: 2.25rem 1.5rem; }
  .cta-banner .btn { width: 100%; max-width: 320px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-brand .logo { align-items: center; margin-inline: auto; }
  .footer-social { justify-content: center; }
  .content-notice {
    font-size: 0.82rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .social-actions,
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .social-actions .btn,
  .btn-group .btn { width: 100%; justify-content: center; }

  .tier-card .btn { width: 100%; }
  .testimonial-card { padding: 1.5rem; }
  .value-item { padding: 1.25rem; }
  .role-card { padding: 1.15rem; }
  .pillar-card { padding: 1.15rem; }

  .impact-story,
  .impact-story.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .impact-story.reverse .impact-story-media,
  .impact-story.reverse .impact-story-copy { order: unset; }
  .foundation-gallery { grid-template-columns: 1fr 1fr; }
  .foundation-gallery-item.wide { grid-column: span 2; }
  .foundation-hero-content { padding: 2.5rem 0 2.75rem; }
  .foundation-hero-content .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
  .foundation-hero-content .hero-actions .btn,
  .cta-banner .btn,
  .cta-banner .btn-group .btn {
    width: 100%;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .impact-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: max(0.9rem, env(safe-area-inset-left)) max(0.9rem, env(safe-area-inset-right)); }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn { width: 100%; }
  .hero-trust {
    font-size: 0.7rem;
    line-height: 1.55;
    word-break: break-word;
  }

  .impact-grid { grid-template-columns: 1fr; }
  .impact-number { font-size: 1.75rem; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; aspect-ratio: 16/10; }

  .featured-story-image { height: 200px; }
  .featured-story-body { padding: 1.25rem; }
  .reel-feature-story { grid-template-columns: 1fr; }
  .reel-embed-panel { min-height: 280px; }
  .instagram-embed-wrap { min-height: 240px; padding: 0.5rem; }

  .role-card { flex-direction: row; gap: 0.85rem; }

  .cert-meta { font-size: 0.78rem; }
  .tier-card { padding: 1.75rem 1.25rem; }
  .founder-info { padding: 1.35rem; }

  .foundation-gallery { grid-template-columns: 1fr; }
  .foundation-gallery-item.wide { grid-column: span 1; aspect-ratio: 16/10; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  section { padding: 2.75rem 0; }
  .page-hero { padding: 2.5rem 0 1.75rem; }
  .page-hero h1 { font-size: 1.65rem; }

  .hero-collage {
    height: 260px;
    max-width: 100%;
  }
  .collage-img.main {
    width: 65%;
    height: 52%;
  }
  .collage-img.right {
    width: 52%;
    height: 42%;
    top: 32%;
  }
  .collage-img.left {
    width: 44%;
    height: 38%;
  }
  .collage-deco.d1 { width: 44px; height: 44px; }
  .collage-deco.d2 { width: 32px; height: 32px; }

  .campaign-panel,
  .cta-banner { padding: 1.5rem 1rem; }
  .mission-stats { grid-template-columns: 1fr; }
  .founder-info { padding: 1.15rem; }
  .certificate-body { padding: 1.15rem; }

  .btn { padding: 0.75rem 1.15rem; font-size: 0.88rem; }
  .section-title { font-size: 1.55rem; }
  .section-header { margin-bottom: 1.75rem; }

  .logo-name { font-size: 0.9rem; }
  .logo-img { width: 44px; height: 44px; }
  .footer-brand .logo-img-full { max-width: 130px; }
  .header-cta .btn-primary { padding: 0.5rem 0.85rem; font-size: 0.78rem; }

  .foundation-hero { min-height: 360px; }
  .foundation-hero-content h1 { font-size: 1.65rem; }
  .foundation-hero-content p { font-size: 0.95rem; }
  .foundation-hero-content .hero-actions .btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}
