/* ============================================
   African Cultural Centre — africanculturalss.org
   Design system
   ============================================ */

:root {
  /* Brand palette — pulled from the ACC logo + mosque artwork */
  --green-900: #0a5128;
  --green-700: #0e7c3a;
  --green-500: #2aa35a;
  --green-100: #e6f2eb;
  --gold-600: #c9951b;
  --gold-400: #e5b945;
  --ivory:    #faf7f0;
  --paper:    #ffffff;
  --ink-900:  #16221a;
  --ink-700:  #2d3d33;
  --ink-500:  #5a6b61;
  --ink-300:  #9aa69e;
  --ink-100:  #e4e8e5;
  --red-accent: #c44536;

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-arabic:  "Amiri", "Noto Naskh Arabic", serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 81, 40, 0.06), 0 2px 8px rgba(10, 81, 40, 0.04);
  --shadow-md: 0 6px 24px rgba(10, 81, 40, 0.08), 0 2px 6px rgba(10, 81, 40, 0.05);
  --shadow-lg: 0 20px 60px rgba(10, 81, 40, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green-700);
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--gold::before { background: var(--gold-600); }
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light::before { background: var(--gold-400); }

.lead { font-size: 1.15rem; color: var(--ink-500); max-width: 58ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.section { padding: var(--s-7) 0; }
.section--tight { padding: var(--s-6) 0; }

/* ---------- Top announcement bar ---------- */
.topbar {
  background: var(--green-900);
  color: var(--ivory);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.topbar-meta { display: flex; gap: var(--s-3); opacity: 0.85; }
.topbar-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-lang { display: flex; gap: 0.8rem; font-family: var(--font-arabic); }
.topbar-lang a { opacity: 0.6; transition: opacity 0.2s; }
.topbar-lang a.active, .topbar-lang a:hover { opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(10, 81, 40, 0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(10, 81, 40, 0.08);
}
.footer-logo {
  background: var(--paper);
  border: 2px solid rgba(250, 247, 240, 0.1);
}
.nav-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-100);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--green-700);
}
.nav-brand-text { line-height: 1.1; }
.nav-brand-text .en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.nav-brand-text .ar {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  color: var(--green-700);
  direction: rtl;
}
.nav-links {
  display: flex;
  gap: var(--s-4);
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: var(--green-700);
  color: var(--ivory);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover {
  background: var(--green-900);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-100);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--green-900);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-6) 0 var(--s-7);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, var(--green-100) 0%, transparent 62%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(229, 185, 69, 0.18) 0%, transparent 65%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.hero-content .eyebrow { margin-bottom: var(--s-3); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  margin-bottom: var(--s-3);
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--green-700);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-500);
  max-width: 54ch;
  margin-bottom: var(--s-4);
}
.hero-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--green-700);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-100);
}
.btn-ghost:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn-gold {
  background: var(--gold-600);
  color: var(--ink-900);
}
.btn-gold:hover { background: var(--gold-400); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Stats strip under hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink-100);
  max-width: 520px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* Hero visual composition */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  width: 100%;
  justify-self: end;
  margin-right: 30px; /* room for the card that hangs off the right edge */
}
.hero-visual-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: var(--shadow-lg);
}
.hero-visual-frame svg { width: 100%; height: 100%; }
.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual-badge {
  position: absolute;
  top: -20px; left: -20px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: slow-spin 30s linear infinite;
}
.hero-visual-card {
  position: absolute;
  right: -40px; bottom: 40px;
  background: var(--paper);
  padding: var(--s-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 2;
}
.hero-visual-card h4 {
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 0.3rem;
}
.hero-visual-card p {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin: 0;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
}
.section-head .lead { margin-top: var(--s-2); }
.section-head h2 .accent {
  color: var(--green-700);
  font-style: italic;
  font-weight: 300;
}

/* ---------- About ---------- */
.about {
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-6);
  align-items: start;
}
.about-image-stack {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about-image-main,
.about-image-sub {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-100);
}
.about-image-main {
  top: 0; left: 0;
  width: 78%; height: 78%;
  box-shadow: var(--shadow-md);
}
.about-image-sub {
  bottom: 0; right: 0;
  width: 55%; height: 48%;
  border: 6px solid var(--ivory);
}
.about-image-main svg,
.about-image-sub svg { width: 100%; height: 100%; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.pillar {
  padding: var(--s-3);
  border-radius: var(--radius-md);
  background: var(--ivory);
  border: 1px solid var(--ink-100);
  transition: transform 0.2s, border-color 0.2s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--green-500);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid; place-items: center;
  color: var(--green-700);
  margin-bottom: var(--s-2);
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.pillar p {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* ---------- Programs ---------- */
.programs {
  background: var(--ivory);
  position: relative;
}
.program-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.track-card {
  background: var(--green-900);
  color: var(--ivory);
  padding: var(--s-4);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.track-card--alt { background: var(--green-700); }
.track-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(229, 185, 69, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.track-card h3 {
  color: var(--ivory);
  margin-bottom: var(--s-3);
  position: relative;
  font-style: italic;
  font-weight: 400;
}
.track-card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-400);
  margin-top: 0.7rem;
}
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}
.track-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.97rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(250, 247, 240, 0.1);
}
.track-list li:last-child { border-bottom: none; }
.track-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ---------- Impact / Objectives ---------- */
.impact {
  background: var(--paper);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.impact-card {
  padding: var(--s-4);
  border-radius: var(--radius-md);
  background: var(--ivory);
  border: 1px solid var(--ink-100);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.impact-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-600);
  margin-bottom: var(--s-2);
  letter-spacing: 0.05em;
}
.impact-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.impact-card p {
  font-size: 0.93rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ---------- Team ---------- */
.team {
  background: var(--ivory);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
.team-card {
  text-align: center;
}
.team-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: var(--green-100);
  overflow: hidden;
  margin-bottom: var(--s-2);
  position: relative;
  transition: transform 0.3s;
}
.team-card:hover .team-portrait { transform: translateY(-4px); }
.team-portrait svg,
.team-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.team-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 75%, rgba(10, 81, 40, 0.2));
  pointer-events: none;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--ink-900);
}
.team-card .role {
  font-size: 0.82rem;
  color: var(--green-700);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Donate section ---------- */
.donate {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.donate::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229, 185, 69, 0.25) 0%, transparent 65%);
}
.donate::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(42, 163, 90, 0.35) 0%, transparent 70%);
}
.donate .container { position: relative; z-index: 2; }
.donate h2 { color: var(--ivory); }
.donate h2 .accent { color: var(--gold-400); }
.donate .lead { color: rgba(250, 247, 240, 0.8); }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-5);
  align-items: start;
}

.donate-left h2 { margin-bottom: var(--s-3); }
.donate-why {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.donate-why li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(250, 247, 240, 0.92);
}
.donate-why li svg {
  flex-shrink: 0;
  color: var(--gold-400);
  margin-top: 0.15rem;
}

/* Donation form card */
.donate-card {
  background: var(--paper);
  color: var(--ink-700);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.donate-card h3 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin-bottom: var(--s-3);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Amount selector */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: var(--s-3);
}
.amount-btn {
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-100);
  background: var(--ivory);
  color: var(--ink-900);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.amount-btn:hover { border-color: var(--green-500); }
.amount-btn.active {
  background: var(--green-700);
  color: var(--ivory);
  border-color: var(--green-700);
}
.amount-custom {
  grid-column: span 4;
  position: relative;
}
.amount-custom input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--ivory);
  transition: border-color 0.2s;
}
.amount-custom input:focus {
  outline: none;
  border-color: var(--green-700);
}
.amount-custom .currency {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-500);
  padding-right: 0.75rem;
  border-right: 1px solid var(--ink-100);
}

/* Payment methods */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
}
.pay-method {
  padding: var(--s-2);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pay-method:hover { border-color: var(--green-500); }
.pay-method.active {
  border-color: var(--green-700);
  background: var(--green-100);
  box-shadow: inset 0 0 0 1px var(--green-700);
}
.pay-method-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ivory);
  flex-shrink: 0;
  font-size: 0.88rem;
}
.pay-method-logo.mgurush { background: var(--red-accent); }
.pay-method-logo.momo    { background: var(--gold-600); color: var(--ink-900); }
.pay-method-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(10, 81, 40, 0.1);
}
.pay-method-text .name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.pay-method-text .desc {
  font-size: 0.78rem;
  color: var(--ink-500);
}

/* Input groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: var(--s-2);
}
.form-group { margin-bottom: var(--s-2); }
.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--ivory);
  transition: border-color 0.2s;
  color: var(--ink-900);
}
.form-input:focus {
  outline: none;
  border-color: var(--green-700);
}

.phone-group { display: flex; }
.phone-code {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--ink-100);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--green-100);
  font-weight: 500;
  color: var(--green-900);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
}
.phone-group .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.donate-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--gold-600);
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--s-2);
}
.donate-submit:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.donate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.donate-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: var(--s-2);
  text-align: center;
}

/* Form status */
.form-status {
  margin-top: var(--s-2);
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.info {
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid var(--green-500);
}
.form-status.error {
  background: #fdeaea;
  color: #8a2721;
  border: 1px solid var(--red-accent);
}
.form-status.success {
  background: #e6f7ec;
  color: var(--green-900);
  border: 1px solid var(--green-500);
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.contact-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  border-radius: var(--radius-md);
  background: var(--ivory);
  border: 1px solid var(--ink-100);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  color: var(--green-700);
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.contact-item p {
  font-size: 1rem;
  color: var(--ink-900);
  line-height: 1.5;
}
.contact-item a { color: var(--green-700); }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--ivory);
  padding: var(--s-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}
.contact-form h3 {
  font-family: var(--font-display);
  margin-bottom: var(--s-3);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(250, 247, 240, 0.8);
  padding: var(--s-6) 0 var(--s-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid rgba(250, 247, 240, 0.1);
}
.footer-brand .logo-line {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: var(--s-2);
}
.footer-brand .nav-brand-mark {
  background: rgba(250, 247, 240, 0.08);
  border-color: var(--green-500);
}
.footer-brand .en { color: var(--ivory); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 40ch;
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ivory);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer a {
  font-size: 0.9rem;
  color: rgba(250, 247, 240, 0.72);
  transition: color 0.2s;
}
.footer a:hover { color: var(--gold-400); }
.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--s-2);
}
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.footer-socials a:hover { background: var(--gold-600); color: var(--ink-900); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-3);
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.55);
}

/* ---------- Reveal animations (progressive enhancement) ----------
   Elements are visible by default. When JS loads, the <html> element
   gets .has-js, which opts into the hidden-then-reveal behavior.
-------------------------------------------------------------------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.has-js .reveal.in { opacity: 1; transform: translateY(0); }
.has-js .reveal:nth-child(2) { transition-delay: 0.1s; }
.has-js .reveal:nth-child(3) { transition-delay: 0.2s; }
.has-js .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--s-3);
    gap: var(--s-2);
    box-shadow: var(--shadow-md);
  }

  .hero-grid, .about-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }

  /* Hero visual: center it and reset desktop's right-margin hack */
  .hero-visual {
    max-width: 460px;
    justify-self: center;
    margin: var(--s-4) auto 0;
    margin-right: auto;
  }

  .program-tracks, .impact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .topbar-meta { display: none; }
  .section { padding: var(--s-6) 0; }

  /* Slightly smaller logo on tablet */
  .nav-brand-logo { width: 44px; height: 44px; }
  .nav-brand-text .en { font-size: 0.98rem; }
  .nav-brand-text .ar { font-size: 0.85rem; }
}

@media (max-width: 640px) {
  /* Breathing room on small phones */
  .container { padding: 0 var(--s-2); }

  /* Topbar: center the language switcher since contact meta is hidden */
  .topbar { font-size: 0.78rem; padding: 0.5rem 0; }
  .topbar .container { justify-content: center; }
  .topbar-lang {
    gap: 0.8rem;
    font-size: 0.82rem;
  }
  .topbar-lang a { padding: 0 0.3rem; }

  /* Nav brand: keep logo small, allow text to stay on one visible row */
  .nav-brand-logo { width: 40px; height: 40px; }
  .nav-brand { gap: 0.55rem; }
  .nav-brand-text .en { font-size: 0.9rem; line-height: 1.15; }
  .nav-brand-text .ar { font-size: 0.78rem; }
  .nav-toggle { width: 40px; height: 40px; }

  /* Hero: ensure it never overflows viewport */
  .hero {
    padding: var(--s-4) 0 var(--s-5);
    overflow-x: clip;
  }
  .hero-visual {
    max-width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    aspect-ratio: 4 / 4.5;
  }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-sub { font-size: 0.98rem; line-height: 1.55; }

  /* Buttons: inline-sized, not full-width blocks */
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    font-size: 0.92rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: var(--s-2);
  }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-stat .lbl { font-size: 0.72rem; }

  /* Hero badge + card: keep inside the frame */
  .hero-visual-badge {
    width: 88px; height: 88px;
    top: 8px; left: 8px;
    font-size: 0.72rem;
    padding: 0.6rem;
  }
  .hero-visual-card {
    right: 12px; bottom: 12px;
    max-width: 64%;
    padding: var(--s-2);
  }
  .hero-visual-card h4 { font-size: 0.88rem; }
  .hero-visual-card p { font-size: 0.75rem; }

  /* Section heads + typography scale */
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .lead { font-size: 0.98rem; line-height: 1.55; }
  .eyebrow { font-size: 0.72rem; }

  /* Forms */
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-custom { grid-column: span 2; }
  .pay-methods { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Team: single column on very small phones looks better than squeezed 2-col */
  .team-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .team-card h4 { font-size: 0.92rem; }
  .team-card .role { font-size: 0.75rem; }

  /* About image stack: tighter on mobile */
  .about-image-stack { max-width: 400px; margin: 0 auto; }

  /* Pillars + impact cards */
  .pillars { grid-template-columns: 1fr; }
  .impact-card { padding: var(--s-3); }
  .impact-card h4 { font-size: 1.1rem; }

  /* Track cards */
  .track-card { padding: var(--s-3); }
  .track-card h3 { font-size: 1.35rem; }

  /* Donate card padding */
  .donate-card { padding: var(--s-3); }
  .donate-card h3 { font-size: 1.3rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .section { padding: var(--s-5) 0; }
}

@media (max-width: 380px) {
  /* Tiny phones: hide Arabic in nav to save space */
  .nav-brand-text .ar { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-visual-card { max-width: 75%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PROGRAMS & DONATE PAGE STYLES
   ============================================================ */

/* ---------- Page hero (smaller than home hero) ---------- */
.page-hero {
  position: relative;
  padding: var(--s-6) 0 var(--s-5);
  background: linear-gradient(180deg, var(--green-100) 0%, var(--ivory) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(229, 185, 69, 0.18) 0%, transparent 65%);
}
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: var(--s-3);
}
.page-hero h1 em {
  font-style: italic;
  color: var(--green-700);
  font-weight: 300;
}
.page-hero .lead {
  font-size: 1.2rem;
  max-width: 56ch;
}
.page-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.page-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Programs page ---------- */
.track-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink-100);
}
.track-header h2 {
  font-style: italic;
  font-weight: 400;
}
.track-header h2 .accent { color: var(--green-700); font-style: normal; }

.program-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.program-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-4);
  align-items: center;
}
.program-card:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.program-card:nth-child(even) .program-card-photo { order: 2; }
.program-card:nth-child(even) .program-card-body { order: 1; }

.program-card-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.program-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.program-card:hover .program-card-photo img { transform: scale(1.04); }

.program-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 81, 40, 0.25));
  pointer-events: none;
}

.program-card-body .eyebrow { margin-bottom: var(--s-2); }
.program-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--s-2);
  line-height: 1.15;
}
.program-card-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-500);
  margin-bottom: var(--s-3);
}
.program-meta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink-100);
}
.program-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.program-meta-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.program-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-900);
}

/* ---------- "Why our work matters" panel ---------- */
.why-panel {
  background: var(--ink-900);
  color: var(--ivory);
  padding: var(--s-6) 0;
  position: relative;
  overflow: hidden;
}
.why-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.why-panel-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.why-panel-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
.why-panel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 81, 40, 0.3), rgba(0, 0, 0, 0.2));
}
.why-panel h2 {
  color: var(--ivory);
  font-style: italic;
  font-weight: 400;
}
.why-panel h2 .accent { color: var(--gold-400); font-style: normal; }
.why-panel p {
  color: rgba(250, 247, 240, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: var(--s-3);
}
.why-panel .source {
  margin-top: var(--s-3);
  font-size: 0.85rem;
  color: rgba(250, 247, 240, 0.55);
  font-style: italic;
}

/* ---------- CTA strip (links between pages) ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--ivory);
  padding: var(--s-5) 0;
  text-align: center;
}
.cta-strip h2 {
  color: var(--ivory);
  margin-bottom: var(--s-2);
  font-style: italic;
  font-weight: 400;
}
.cta-strip h2 .accent { color: var(--gold-400); font-style: normal; }
.cta-strip p {
  color: rgba(250, 247, 240, 0.85);
  max-width: 56ch;
  margin: 0 auto var(--s-3);
  font-size: 1.05rem;
}
.cta-strip .btn-gold {
  background: var(--gold-600);
  color: var(--ink-900);
  font-size: 1rem;
  padding: 1rem 2rem;
}
.cta-strip .btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
}

/* ---------- Donate page ---------- */
.donate-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 81, 40, 0.15), transparent 50%);
}

/* "What your money does" — impact tiles */
.impact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.impact-tile {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  border: 1px solid var(--ink-100);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.impact-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.impact-tile-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-600);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.impact-tile-amount .currency {
  font-size: 1rem;
  color: var(--ink-500);
  font-weight: 500;
  margin-right: 0.3rem;
}
.impact-tile-amount .alt {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-500);
  font-style: italic;
  margin-top: 0.3rem;
  font-family: var(--font-body);
}
.impact-tile h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: var(--s-2) 0 0.5rem;
}
.impact-tile p {
  font-size: 0.9rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* Impact area / category blocks */
.impact-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.impact-area {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.impact-area-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.impact-area-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.impact-area-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.impact-area-body h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.impact-area-body p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.55;
}

/* Trust signals row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.trust-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  background: var(--ivory);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}
.trust-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid; place-items: center;
  color: var(--green-700);
  flex-shrink: 0;
}
.trust-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--ink-900);
}
.trust-item p {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-900);
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--ivory); }
.faq-question .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 320px;
  padding: 0 1.5rem 1.3rem;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--ink-500);
  line-height: 1.65;
}

/* Other ways to give */
.other-ways {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  border: 1px solid var(--ink-100);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.other-ways-block h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
}
.other-ways-block p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.other-ways-block .detail {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-700);
  font-size: 0.95rem;
}

/* Section variants */
.section--paper { background: var(--paper); }
.section--ivory { background: var(--ivory); }

/* Donate page form layout — wider than home form */
.donate-page-form {
  max-width: 720px;
  margin: 0 auto;
}
.donate-page-form .donate-card {
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
}

/* ---------- Programs/donate responsive ---------- */
@media (max-width: 980px) {
  .page-hero-grid,
  .why-panel-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-image { max-width: 520px; margin: 0 auto; width: 100%; }
  .program-card,
  .program-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .program-card:nth-child(even) .program-card-photo { order: 0; }
  .program-card:nth-child(even) .program-card-body { order: 0; }
  .impact-tiles { grid-template-columns: repeat(2, 1fr); }
  .impact-areas { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .other-ways { grid-template-columns: 1fr; padding: var(--s-3); }
  .track-header { grid-template-columns: 1fr; gap: var(--s-2); }
}

@media (max-width: 640px) {
  .impact-tiles { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .impact-tile { padding: var(--s-3); }
  .impact-tile-amount { font-size: 2rem; }
  .impact-area { grid-template-columns: 1fr; }
  .impact-area-photo { aspect-ratio: 16 / 9; }
  .page-hero { padding: var(--s-4) 0 var(--s-4); }
  .program-card-body h3 { font-size: 1.4rem; }
  .donate-page-form .donate-card { padding: var(--s-3); }
  .why-panel { padding: var(--s-5) 0; }
}

@media (max-width: 420px) {
  .impact-tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT, PARTNER, VOLUNTEER PAGES
   ============================================================ */

/* ---------- Map ---------- */
.map-section {
  padding: 0;
  position: relative;
  background: var(--ink-100);
}
.map-frame {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
  filter: saturate(1.05);
}

/* ---------- Contact info cards (full page) ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}
.contact-info-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink-900);
}
.contact-info-card p {
  font-size: 0.95rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}
.contact-info-card a {
  color: var(--green-700);
  font-weight: 500;
  display: block;
  font-size: 0.95rem;
}
.contact-info-card a:hover {
  text-decoration: underline;
}

/* ---------- Big social row ---------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
  padding: var(--s-3) 0;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--ink-100);
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.social-row a:hover {
  border-color: var(--green-700);
  color: var(--green-700);
  transform: translateY(-2px);
}
.social-row a svg {
  width: 18px; height: 18px;
}

/* ---------- Page form layout (Contact / Partner / Volunteer) ---------- */
.page-form-wrap {
  display: grid;
  /* Intro takes flexible width, form column sized exactly to form's max-width */
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: var(--s-5);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.page-form-intro h2 .accent {
  color: var(--green-700);
  font-style: italic;
}
.page-form-intro .lead { margin-top: var(--s-2); }

.page-form-list {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.page-form-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.96rem;
  color: var(--ink-700);
}
.page-form-list li svg {
  flex-shrink: 0;
  color: var(--green-700);
  margin-top: 0.15rem;
}

.page-form-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
  /* Cap field width — long inputs feel cold/institutional */
  max-width: 520px;
  width: 100%;
}
.page-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--s-3);
}

/* Form rhythm — more breathing space between groups */
.page-form-card .form-group {
  margin-bottom: var(--s-3);
}
.page-form-card .form-row {
  margin-bottom: 0;
  gap: 0.85rem;
}
.page-form-card .form-row .form-group {
  margin-bottom: var(--s-3);
}

.form-input-select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink-900);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b61' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  transition: border-color 0.2s;
}
.form-input-select:focus {
  outline: none;
  border-color: var(--green-700);
}

.form-radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.form-radio-card {
  position: relative;
  cursor: pointer;
  display: flex;
}
.form-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-radio-card-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.6rem;
  background: var(--ivory);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.3;
  transition: all 0.2s;
  min-height: 3rem;
}
.form-radio-card:hover .form-radio-card-label {
  border-color: var(--green-500);
}
.form-radio-card input:checked + .form-radio-card-label {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--green-700);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--s-2);
  transition: all 0.2s;
}
.form-submit:hover {
  background: var(--green-900);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Office hours block ---------- */
.hours-block {
  background: var(--ivory);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--s-3);
}
.hours-block h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: var(--s-2);
  color: var(--ink-900);
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--ink-700); font-weight: 500; }
.hours-list .time { color: var(--ink-500); }
.hours-list .closed { color: var(--red-accent); font-style: italic; }

/* ---------- Partner / volunteer category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.cat-grid.cat-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
.cat-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.cat-card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-600);
  margin-bottom: var(--s-2);
  letter-spacing: 0.05em;
}
.cat-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--ink-900);
}
.cat-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ---------- Volunteer form-specific ---------- */
.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

/* ---------- Page form responsive ---------- */

/* Tablet landscape (980px – 720px): keep 2-column page layout, but tighten gaps and let cards breathe */
@media (max-width: 980px) {
  .page-form-wrap {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .page-form-card {
    justify-self: stretch;
    max-width: none;
  }
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid.cat-grid--two {
    grid-template-columns: 1fr 1fr;
  }
  /* Radio cards stay 3-across — keep the visual unit intact, smaller text if needed */
  .form-radio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-radio-card-label {
    font-size: 0.82rem;
    padding: 0.6rem 0.4rem;
  }
  .map-frame { height: 360px; }
}

/* Tablet portrait + small (720px down): contact cards stack to 1-col, cat-grid to 1-col */
@media (max-width: 720px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
  .cat-grid,
  .cat-grid.cat-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Phone (640px down) */
@media (max-width: 640px) {
  /* Radio cards: single column on small phones since the 3-up gets too cramped */
  .form-radio-grid { grid-template-columns: 1fr; }
  .form-radio-card-label {
    font-size: 0.92rem;
    padding: 0.85rem 0.6rem;
    min-height: 2.6rem;
  }
  .map-frame { height: 280px; }
  .social-row a { padding: 0.7rem 1.1rem; font-size: 0.88rem; }
  .page-form-card { padding: var(--s-3); }
  .page-form-wrap {
    gap: var(--s-3);
  }
}

/* ============================================================
   DONATE — currency toggle + local mobile money
   ============================================================ */

/* Currency toggle (USD / EUR) */
.currency-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: var(--s-3);
}
.currency-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s;
}
.currency-btn:hover {
  border-color: var(--green-500);
}
.currency-btn.active {
  background: var(--green-100);
  border-color: var(--green-700);
  color: var(--green-900);
}
.currency-btn .symbol {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}
.currency-btn .name {
  font-size: 0.92rem;
}

/* The currency prefix inside amount buttons */
.amount-btn .amount-currency {
  font-family: var(--font-body);
  font-size: 0.78em;
  color: var(--ink-500);
  font-weight: 500;
  margin-right: 0.15rem;
  vertical-align: 0.05em;
}
.amount-btn.active .amount-currency {
  color: var(--ivory);
  opacity: 0.85;
}

/* Local donor pointer below form */
.local-donor-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.15);
  border-radius: var(--radius-md);
  color: var(--ivory);
}
.local-donor-note-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(229, 185, 69, 0.15);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.local-donor-note h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--ivory);
}
.local-donor-note p {
  font-size: 0.92rem;
  color: rgba(250, 247, 240, 0.8);
  margin: 0;
  line-height: 1.5;
}
.local-donor-note p a {
  color: var(--gold-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.local-donor-note p a:hover {
  color: var(--gold-200);
}

/* Local mobile money cards */
.local-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  max-width: 880px;
  margin: 0 auto;
}
.local-mobile-card {
  background: var(--ivory);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.local-mobile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.local-mobile-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.local-mobile-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-900);
  margin: 0;
}
.local-mobile-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}
.local-mobile-detail {
  margin-top: 0.5rem;
  padding-top: var(--s-2);
  border-top: 1px solid var(--ink-100);
  font-size: 0.88rem;
  color: var(--ink-700);
  font-family: var(--font-display);
}
.local-mobile-note {
  max-width: 880px;
  margin: var(--s-3) auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.6;
}
.local-mobile-note a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .local-mobile-grid {
    grid-template-columns: 1fr;
  }
  .currency-toggle {
    grid-template-columns: 1fr 1fr;
  }
}
