/* =========================================================
   RIAYA — Modern multilingual NGO website
   Palette pulled from the logo (green + medical blue)
   Typography: Fraunces (display serif) + Manrope + Tajawal (AR)
   ========================================================= */

:root {
  /* Colors */
  --green-900: #0f3a22;
  --green-800: #1c5638;
  --green-700: #236b46;
  --green-600: #2d8659;
  --green-500: #3fb872;
  --green-200: #c6e6d3;
  --green-100: #e4f2ea;
  --green-50:  #f2f8f4;

  --blue-600: #2891bd;
  --blue-500: #3ba9d1;
  --blue-100: #d8eef6;

  --cream:   #faf7f0;
  --cream-2: #f3efe4;
  --paper:   #ffffff;

  --ink-900: #12241c;
  --ink-700: #2e4238;
  --ink-500: #5a6f65;
  --ink-400: #8a9a92;
  --ink-200: #d5ddd8;

  /* Typography */
  --font-display: 'Fraunces', 'Tajawal', Georgia, serif;
  --font-body:    'Manrope', 'Tajawal', system-ui, -apple-system, sans-serif;

  /* Sizing & layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(18, 36, 28, 0.04);
  --shadow-md: 0 12px 30px -10px rgba(18, 36, 28, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(18, 36, 28, 0.2);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --cream: #0f1714;
  --cream-2: #16201c;
  --paper: #1b2722;
  --ink-900: #e5efe9;
  --ink-700: #b9c8c0;
  --ink-500: #95a89f;
  --ink-400: #6f847a;
  --ink-200: #2a3a33;
  --green-100: #24372f;
  --green-50: #1f2f29;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Decorative background ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob { position: absolute; width: 700px; height: 700px; }
.blob-1 { top: -260px; left: -200px; animation: floatSlow 22s ease-in-out infinite; }
.blob-2 { top: 60vh; right: -260px; animation: floatSlow 26s ease-in-out infinite reverse; }

@keyframes floatSlow {
  0%,100% { transform: translate(0,0) rotate(0); }
  50% { transform: translate(30px, -40px) rotate(8deg); }
}

/* ---------- Typography scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 80, "SOFT" 50;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-600);
  padding: 6px 12px;
  background: var(--green-100);
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow.light {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  max-width: 24ch;
}
.section-title.light { color: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 60ch;
  margin: 14px 0 0;
}
.section-lead.light { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-full { width: 100%; padding: 16px 24px; font-size: 1rem; }

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(45, 134, 89, 0.5);
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(45, 134, 89, 0.55);
}

.btn-ghost {
  color: var(--ink-900);
  border: 1.5px solid var(--ink-200);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-50);
}

.link-arrow {
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap .3s var(--ease);
  display: inline-flex;
  gap: 6px;
}
.link-arrow:hover { gap: 12px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(18, 36, 28, 0.08);
  background: rgba(250, 247, 240, 0.95);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-800);
}
.logo-tag {
  font-size: 0.68rem;
  color: var(--ink-500);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: color .2s ease;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--blue-500));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease), opacity .2s ease;
  opacity: 0;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}
.main-nav a.active {
  color: var(--green-800);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  border-radius: 100px;
  transition: all .2s ease;
  min-width: 32px;
  font-family: var(--font-body);
}
.lang-btn.active {
  background: var(--green-600);
  color: #fff;
}
.lang-btn:hover:not(.active) { color: var(--green-700); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}
.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  line-height: 1;
}
.theme-icon svg {
  width: 18px;
  height: 18px;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--green-500);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 23, 20, 0.82);
}
html[data-theme="dark"] .site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 20, 0.94);
}

html[data-theme="dark"] .card-main {
  background: linear-gradient(145deg, #1e2b25 0%, #253730 100%);
}
html[data-theme="dark"] .card-float {
  background: rgba(27, 39, 34, 0.92);
}
html[data-theme="dark"] .camp-region {
  background: rgba(27, 39, 34, 0.95);
}
html[data-theme="dark"] .theme-icon {
  color: #ffd56a;
}
html[data-theme="dark"] .regions {
  background: radial-gradient(120% 100% at 0% 50%, rgba(59, 169, 209, 0.08), transparent 55%);
}
html[data-theme="dark"] .regions-content .section-lead {
  color: var(--ink-700);
}
html[data-theme="dark"] .map-wrap {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(34, 49, 43, 0.72), rgba(20, 30, 26, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .morocco-shape-image {
  opacity: 0.96;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 8px 18px rgba(255, 255, 255, 0.18));
}
.morocco-shape-image {
  opacity: 0.96;
  filter:
    invert(18%)
    sepia(27%)
    saturate(1230%)
    hue-rotate(96deg)
    brightness(76%)
    contrast(94%)
    drop-shadow(0 8px 18px rgba(45, 134, 89, 0.24));
}
html[data-theme="dark"] .morocco-map path[stroke-dasharray] {
  stroke: rgba(188, 219, 204, 0.35);
}
html[data-theme="dark"] .city-label {
  fill: #173b2d;
  stroke: rgba(233, 246, 239, 0.95);
}
html[data-theme="dark"] .regions-list li {
  background: linear-gradient(120deg, rgba(27, 39, 34, 0.95), rgba(20, 31, 27, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-900);
}
html[data-theme="dark"] .regions-list li:hover {
  border-color: rgba(111, 211, 160, 0.65);
  transform: translateY(-2px);
}
html[data-theme="dark"] .regions-list .dot {
  background: #6fd3a0;
  box-shadow: 0 0 0 4px rgba(111, 211, 160, 0.18);
}
html[data-theme="dark"] .regions-list em {
  color: #8fe6b7;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 60px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--green-700);
  display: block;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-500);
  margin: 0 0 36px;
  max-width: 46ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--ink-200);
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-item strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--green-800);
  line-height: 1;
}
.meta-item strong span {
  color: var(--blue-500);
  font-size: 1.4rem;
}
.meta-item > span {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 4px;
}
.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--ink-200);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.card-main {
  inset: 0;
  background: linear-gradient(145deg, #fff 0%, var(--green-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  animation: morph 18s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  33% { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; }
  66% { border-radius: 45% 55% 40% 60% / 55% 50% 50% 45%; }
}
.hero-logo { width: 70%; height: 70%; }

.card-float {
  padding: 14px 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
  white-space: nowrap;
  animation: floatCard 6s ease-in-out infinite;
}
.card-float-1 { top: 12%; left: -8%; animation-delay: 0s; }
.card-float-2 { bottom: 24%; right: -14%; animation-delay: 2s; }
.card-float-3 { bottom: 6%; left: 6%; animation-delay: 4s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(63, 184, 114, 0.5);
  animation: pulse 2s infinite;
}
.pulse-dot.blue {
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(59, 169, 209, 0.5);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 184, 114, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(63, 184, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 184, 114, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--ink-400), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -20px; left: 0;
  width: 1px; height: 20px;
  background: var(--green-600);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -20px; }
  100% { top: 40px; }
}

/* =========================================================
   SECTIONS (general)
   ========================================================= */
.section {
  padding: 100px 0;
  position: relative;
}

.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.center .section-title { margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.about-text {
  max-width: 70ch;
}
.about-text p {
  font-size: 1.15rem;
  color: var(--ink-700);
  margin: 0 0 20px;
  line-height: 1.7;
}
.about-text p:last-child { margin-bottom: 0; }

/* Three pillars in a row */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
}
.pillar p {
  color: var(--ink-500);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* =========================================================
   ACTIONS / SERVICES
   ========================================================= */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.action-card {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.action-card:hover::before { transform: scaleX(1); }

.action-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--green-100);
  line-height: 1;
  transition: color .3s ease;
}
.action-card:hover .action-num { color: var(--green-500); }

.action-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.action-icon svg { width: 28px; height: 28px; }

.action-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 18ch;
}
.action-card p {
  color: var(--ink-500);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* =========================================================
   PRIORITIES
   ========================================================= */
.priorities { padding: 90px 0 70px; }
.prior-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prior-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 34px 20px 30px;
  text-align: center;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.prior-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.prior-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.prior-card:hover::before { transform: scaleX(1); }
.prior-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prior-icon svg { width: 32px; height: 32px; }
.prior-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-600);
  padding: 4px 10px;
  background: var(--green-100);
  border-radius: 100px;
  margin-bottom: 14px;
}
.prior-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 500;
}
.prior-note {
  text-align: center;
  margin: 36px 0 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-500);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   AMBITIONS
   ========================================================= */
.ambitions { padding: 80px 0 60px; }
.amb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.amb-card {
  position: relative;
  min-height: 160px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 120px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.amb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.amb-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.amb-card:hover::before { transform: scaleX(1); }
.amb-num {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-600);
  padding: 4px 10px;
  background: var(--green-100);
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
}
.amb-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 500;
  max-width: 30ch;
}
.amb-icon {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.amb-icon svg { width: 32px; height: 32px; }
.amb-card:hover .amb-icon {
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
}
html[dir="rtl"] .amb-card {
  padding: 32px 32px 32px 120px;
}
html[dir="rtl"] .amb-card::before {
  transform-origin: right;
}
html[dir="rtl"] .amb-icon {
  right: auto;
  left: 28px;
}

/* =========================================================
   IMPACT — modernized, dramatic
   ========================================================= */
.impact {
  padding: 120px 0;
}
.impact-wrap {
  position: relative;
  padding: 90px 70px;
  background:
    radial-gradient(ellipse at top right, rgba(59,169,209,0.25), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(63,184,114,0.3), transparent 50%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 55%, #0a2d1a 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
}
.impact-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.impact-head {
  position: relative;
  max-width: 640px;
  margin-bottom: 70px;
}

.stats-modern {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat-card {
  position: relative;
  padding: 32px 28px 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background .3s ease, border-color .3s ease;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(63,184,114,0.35);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}
.stat-card span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin-bottom: 20px;
}
.stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.stat-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: var(--pct, 50%);
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: growBar 1.8s var(--ease) 0.3s forwards;
}
.stat-card:nth-child(2) .stat-bar::after { animation-delay: 0.5s; }
.stat-card:nth-child(3) .stat-bar::after { animation-delay: 0.7s; }
.stat-card:nth-child(4) .stat-bar::after { animation-delay: 0.9s; }
.impact-footnote {
  position: relative;
  margin: 44px 0 0;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  color: #c6e6b2;
}
@keyframes growBar {
  to { transform: scaleX(1); }
}

/* =========================================================
   REGIONS — Morocco map
   ========================================================= */
.regions { padding: 110px 0; }
.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.regions-content .section-title { margin: 14px 0 20px; }
.regions-content .section-lead { margin: 0 0 36px; }

.regions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  padding: 0;
}
.regions-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--ink-700);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.regions-list li:hover {
  border-color: var(--green-500);
  transform: translateX(3px);
}
.regions-list .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(45,134,89,0.15);
}
.regions-list em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--green-700);
}

.map-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
}
.morocco-map {
  width: 100%;
  max-width: 560px;
  height: auto;
}
.city-pin .pin-pulse {
  transform-origin: center;
  animation: pinPulse 2.4s ease-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.6); opacity: 0; }
}
.city-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  fill: #ffffff;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: rgba(14, 62, 43, 0.92);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
html[lang="ar"] .city-label {
  font-size: 8.4px;
  stroke-width: 2.1px;
}
.city-link {
  stroke: rgba(26, 94, 66, 0.55);
  stroke-width: 0.8;
  stroke-dasharray: 2 2;
}
html[data-theme="dark"] .city-link {
  stroke: rgba(225, 244, 234, 0.5);
}

/* =========================================================
   HEALTH CAMPAIGNS
   ========================================================= */
.campaigns { padding: 110px 0; }

.camp-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.camp-filter {
  padding: 10px 18px;
  border: 1.5px solid var(--ink-200);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: all .2s ease;
}
.camp-filter:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}
.camp-filter.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.camp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.camp-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), box-shadow .3s ease, opacity .3s ease;
  display: flex;
  flex-direction: column;
}
.camp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.camp-card.hidden {
  display: none;
}
.camp-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: column;
}

.camp-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-100);
}
.camp-card.featured .camp-media { aspect-ratio: 16/10; }
.camp-img { width: 100%; height: 100%; position: relative; }
.camp-img svg { width: 100%; height: 100%; display: block; }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor: pointer;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.camp-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--green-600);
  color: #fff;
}

.camp-region {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.camp-region svg { width: 14px; height: 14px; color: var(--green-700); }

.camp-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.camp-card.featured .camp-body { padding: 32px 34px 36px; }

.camp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.camp-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.camp-meta time {
  font-size: 0.82rem;
  color: var(--ink-400);
}

.camp-body h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.3;
  font-weight: 500;
}
.camp-card.featured .camp-body h3 { font-size: 1.7rem; max-width: 18ch; }

.camp-body p {
  font-size: 0.93rem;
  color: var(--ink-500);
  margin: 0 0 22px;
  line-height: 1.6;
  flex: 1;
}
.camp-card.featured .camp-body p { font-size: 1.02rem; max-width: 48ch; }

.camp-stats {
  display: flex;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-200);
}
.camp-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.camp-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green-800);
  line-height: 1;
  font-variation-settings: "opsz" 80;
}
.camp-stats span {
  font-size: 0.78rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   LEGACY STATS (unused but kept for safety if referenced)
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 400;
  color: #fff;
}
.stat span { font-size: 0.92rem; color: rgba(255,255,255,0.75); }

/* =========================================================
   LEGACY NEWS (kept for backwards compat, section now .campaigns)
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), box-shadow .3s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card.feature .news-thumb { aspect-ratio: 4/3; }
.thumb-1 { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.thumb-2 { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.thumb-3 { background: linear-gradient(135deg, var(--green-700), var(--blue-600)); }
.news-thumb svg { width: 60%; height: auto; }

.news-body { padding: 26px; }
.news-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 10px;
}
.news-body time {
  font-size: 0.82rem;
  color: var(--ink-400);
}
.news-body h3 {
  font-size: 1.2rem;
  margin: 14px 0 8px;
  line-height: 1.3;
  font-weight: 500;
}
.news-card.feature .news-body h3 { font-size: 1.5rem; }
.news-body p {
  font-size: 0.93rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   INVOLVE
   ========================================================= */
.involve {
  padding: 100px 0;
}
.involve-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 24px;
}
.involve-deco {
  position: absolute;
  top: -60px; right: -40px;
  width: 400px; opacity: 0.6;
  pointer-events: none;
}
.involve-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.involve-content .section-title { margin: 0 auto 16px; }
.involve-content > p { color: var(--ink-500); font-size: 1.05rem; margin: 0 auto 48px; max-width: 46ch; }

.involve-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.involve-card {
  position: relative;
  padding: 36px 28px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  transition: all .3s var(--ease);
  overflow: hidden;
}
.involve-card:hover {
  transform: translateY(-4px);
  background: var(--green-600);
  border-color: var(--green-600);
  box-shadow: var(--shadow-lg);
}
.involve-card h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  font-weight: 500;
  transition: color .3s ease;
}
.involve-card p {
  color: var(--ink-500);
  margin: 0 0 20px;
  font-size: 0.93rem;
  transition: color .3s ease;
}
.involve-card .arrow {
  display: inline-block;
  color: var(--green-600);
  font-size: 1.3rem;
  transition: transform .3s var(--ease), color .3s ease;
}
.involve-card:hover h3,
.involve-card:hover p { color: #fff; }
.involve-card:hover p { color: rgba(255,255,255,0.85); }
.involve-card:hover .arrow { color: #fff; transform: translateX(6px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-bottom: 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-info > p {
  color: var(--ink-500);
  font-size: 1.02rem;
  margin: 16px 0 36px;
  max-width: 46ch;
}

.contact-list {
  display: grid;
  gap: 20px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
}
.c-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-icon svg { width: 22px; height: 22px; }
.contact-list strong {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contact-list a,
.contact-list span {
  color: var(--ink-700);
  font-size: 1rem;
  transition: color .2s ease;
}
.contact-list a:hover { color: var(--green-700); }

/* Form */
.contact-form {
  padding: 40px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.field input,
.field textarea {
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--ink-200);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink-900);
  transition: border-color .2s ease, background .2s ease;
  resize: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--green-700);
  min-height: 1.3em;
  font-weight: 500;
}
.form-status.error { color: #c14545; }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), box-shadow .3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.team-photo svg { width: 100%; height: 100%; display: block; }
.team-info { padding: 24px 22px 28px; }
.team-info h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  font-weight: 500;
}
.team-role {
  display: block;
  font-size: 0.82rem;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.team-info p {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { padding: 80px 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 30px 28px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.partner-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.35;
  max-width: 19ch;
}
html[dir="rtl"] .partner-card h3 {
  text-align: right;
}
html[dir="rtl"] .partner-card {
  flex-direction: row-reverse;
}
.partner-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-50), #c6e6a9);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-icon svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 80px 0; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  position: relative;
  padding: 36px 30px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  transition: transform .4s var(--ease), box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  width: 36px; height: 36px;
  color: var(--green-200);
}
.testi-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0;
  font-weight: 400;
  font-style: italic;
  flex: 1;
  font-variation-settings: "opsz" 80, "SOFT" 50;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-200);
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-avatar svg { width: 100%; height: 100%; }
.testi-person strong {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.testi-person span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

/* =========================================================
   INVOLVE (icon)
   ========================================================= */
.involve-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background .3s ease, color .3s ease;
}
.involve-icon svg { width: 24px; height: 24px; }
.involve-card:hover .involve-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 80px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.faq-head { position: sticky; top: 120px; }
.faq-head .section-title { margin: 14px 0 20px; }
.faq-head p {
  color: var(--ink-500);
  margin: 0 0 24px;
  line-height: 1.65;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .3s ease;
}
.faq-item[open] {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.35;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-700); }

.faq-icon {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  flex-shrink: 0;
  transition: background .3s ease, transform .3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon {
  background: var(--green-600);
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: #fff;
}
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  padding: 0 26px 24px;
}
.faq-answer p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* =========================================================
   NEWSLETTER (footer)
   ========================================================= */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.newsletter-content h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
  font-weight: 500;
}
.newsletter-content p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 50ch;
}
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  min-width: 400px;
}
.newsletter-form input {
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--green-500);
  background: rgba(255,255,255,0.12);
}
.newsletter-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--green-500);
  min-height: 1em;
}
.newsletter-status.error { color: #ff9e9e; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .logo-name { color: #fff; }
.site-footer .logo-tag { color: rgba(255,255,255,0.5); }

.footer-brand p {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.95rem;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--green-500); }

.social {
  display: flex;
  gap: 10px;
}
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .3s var(--ease);
}
.social a:hover {
  background: var(--green-600);
  transform: translateY(-3px);
}
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
.footer-name-ar {
  font-family: 'Tajawal', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
}

html[data-theme="dark"] .site-footer {
  background: #0b1210;
  color: rgba(255,255,255,0.74);
}
html[data-theme="dark"] .footer-top,
html[data-theme="dark"] .footer-newsletter {
  border-bottom-color: rgba(255,255,255,0.12);
}

/* =========================================================
   RTL ADJUSTMENTS (Arabic)
   ========================================================= */
html[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
}
html[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  font-weight: 700;
}
html[dir="rtl"] .hero-title em { font-style: normal; }
html[dir="rtl"] .logo-name { font-family: 'Tajawal', sans-serif; font-weight: 900; }

html[dir="rtl"] .eyebrow { letter-spacing: 0.05em; }
html[dir="rtl"] .action-num {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .news-tag { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .link-arrow { direction: rtl; }
html[dir="rtl"] .involve-card:hover .arrow { transform: translateX(-6px); }
html[dir="rtl"] .card-float-1 { left: auto; right: -8%; }
html[dir="rtl"] .card-float-2 { right: auto; left: -14%; }
html[dir="rtl"] .card-float-3 { left: auto; right: 6%; }
html[dir="rtl"] .blob-1 { left: auto; right: -200px; }
html[dir="rtl"] .blob-2 { right: auto; left: -260px; }

/* New sections RTL */
html[dir="rtl"] .amount-display { padding: 4px 8px 4px 20px; }
html[dir="rtl"] .testi-card summary,
html[dir="rtl"] .faq-item summary,
html[dir="rtl"] .donate-impacts li,
html[dir="rtl"] .contact-list li,
html[dir="rtl"] .pillar { text-align: right; }
html[dir="rtl"] .testi-text { font-style: normal; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tight desktop — ensure nav fits on one line */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 10px; font-size: 0.86rem; }
  .main-nav a::after { left: 10px; right: 10px; }
  .nav-wrap { gap: 14px; }
  .logo-tag { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { margin: 0 auto; max-width: 400px; }
  .about-grid { gap: 48px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pillar { padding: 28px 24px; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.feature { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .involve-options { grid-template-columns: 1fr; }
  .impact-wrap { padding: 60px 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .prior-grid { grid-template-columns: repeat(2, 1fr); }
  .amb-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .footer-newsletter { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { min-width: 0; }

  /* New sections */
  .stats-modern { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .impact-wrap { padding: 60px 40px; }
  .regions-grid { grid-template-columns: 1fr; gap: 48px; }
  .regions-list { grid-template-columns: 1fr; }
  .morocco-map { max-width: 460px; margin: 0 auto; }
  .camp-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-card.featured { grid-column: span 2; grid-row: span 1; }
  .camp-card.featured .camp-body h3 { font-size: 1.35rem; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--paper);
    padding: 90px 32px 32px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 40;
  }
  .main-nav.open { transform: translateX(0); }
  html[dir="rtl"] .main-nav {
    right: auto; left: 0;
    transform: translateX(-100%);
  }
  html[dir="rtl"] .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }
  .menu-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .section { padding: 70px 0; }
  .hero { padding: 40px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { gap: 16px; }
  .meta-divider { display: none; }
  .meta-item strong { font-size: 1.6rem; }

  .section-head { margin-bottom: 40px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }

  .actions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.feature { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .impact { padding: 80px 0; }
  .impact-wrap { padding: 48px 28px; border-radius: var(--radius-lg); }
  .contact-form { padding: 28px; }
  .hero-visual { max-width: 320px; }
  .scroll-hint { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .pillar { padding: 24px 22px; }
  .about-text p { font-size: 1.05rem; }
  .logo-tag { display: none; }

  .team-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; gap: 14px; }
  .prior-grid { grid-template-columns: 1fr; }
  .amb-card { min-height: auto; padding: 24px 90px 24px 24px; }
  .amb-card h3 { font-size: 1.05rem; }
  .amb-icon { width: 60px; height: 60px; right: 16px; }
  .amb-icon svg { width: 26px; height: 26px; }
  html[dir="rtl"] .amb-card { padding: 24px 24px 24px 90px; }
  html[dir="rtl"] .amb-icon { left: 16px; }
  .donate-card { padding: 28px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amount-btn { padding: 12px 6px; font-size: 0.88rem; }
  .testi-card { padding: 28px 24px; }
  .faq-item summary { padding: 18px 20px; font-size: 1rem; }
  .faq-answer { padding: 0 20px 20px; }

  /* New sections on mobile */
  .stats-modern { grid-template-columns: 1fr; gap: 16px; }
  .impact-wrap { padding: 48px 24px; }
  .stat-card { padding: 24px 22px 28px; }
  .camp-grid { grid-template-columns: 1fr; }
  .camp-card.featured { grid-column: span 1; grid-row: span 1; }
  .camp-card.featured .camp-body { padding: 24px 26px 28px; }
  .camp-card.featured .camp-body h3 { font-size: 1.25rem; }
  .camp-filters { gap: 8px; }
  .camp-filter { padding: 8px 14px; font-size: 0.82rem; }
  .camp-stats { gap: 14px; }
  .camp-stats strong { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2.2rem; }
  .card-float { font-size: 0.76rem; padding: 10px 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .action-card { padding: 28px 24px; }
}

/* Scroll reveal helpers */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

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