/* =========================================================================
   AL-MAGHARIBIA FOUNDATION — DESIGN SYSTEM
   Brand: deep navy + cobalt, warm terracotta/orange/clay/teal accents,
   triangle-mosaic motif drawn from the organisation's own logo.
   Built RTL-first (Arabic is the default language) using CSS logical
   properties so the same rules mirror correctly in English (LTR).
   ========================================================================= */

:root {
  /* --- Brand palette (from the Foundation's own brand spec) --- */
  --navy: #0F1D4A;
  --navy-light: #1B2E68;
  --navy-dark: #0A1533;
  --cobalt: #2B6CE8;
  --cobalt-light: #5B8FEE;
  --cobalt-dark: #1E52B8;
  --orange: #E67E22;
  --orange-dark: #C6690F;
  --terracotta: #C14E30;
  --clay: #A07050;
  --teal: #7AB0B0;
  --mist: #D0D0D0;
  --mist-light: #E8E9EC;
  --white: #FFFFFF;
  --off-white: #F7F7F5;

  /* --- Semantic tokens --- */
  --bg: var(--off-white);
  --surface: var(--white);
  --ink: #12162E;
  --ink-soft: #4C5372;
  --ink-faint: #7B81A0;
  --border: #E3E4EA;
  --link: var(--cobalt);
  --success: #2E9E63;
  --success-bg: #E9F7EF;
  --danger: #D14343;
  --danger-bg: #FDECEC;

  /* --- Type --- */
  --font-heading: 'Montserrat', 'Tajawal', sans-serif;
  --font-body: 'Source Sans 3', 'Tajawal', sans-serif;
  --font-ar: 'Tajawal', 'Noto Sans Arabic', sans-serif;

  /* --- Spacing scale --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* --- Radius / shadow --- */
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(15,29,74,0.09);
  --shadow-md: 0 10px 30px rgba(15,29,74,0.12);
  --shadow-lg: 0 24px 60px rgba(15,29,74,0.20);

  --container: 1180px;
  --header-h: 84px;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
  font-weight: 800;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5 { font-family: var(--font-ar); font-weight: 800; }

p { margin: 0 0 var(--sp-4); color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--surface { background: var(--surface); }
.section--mist { background: var(--mist-light); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: var(--sp-3);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--teal); }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head.text-center { margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 18px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--cobalt); color: var(--white); }
.btn-secondary:hover { background: var(--cobalt-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.section--navy .btn-outline { color: var(--white); }
.section--navy .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--cobalt); padding-inline: 4px; }
.btn-ghost:hover { color: var(--cobalt-dark); gap: var(--sp-3); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-arrow { transition: transform 0.18s ease; }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
.btn:hover .btn-arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }

/* =========================================================================
   TRIANGLE MOSAIC MOTIF
   ========================================================================= */
.mosaic-corner { position: absolute; pointer-events: none; opacity: 0.9; }
.mosaic-corner svg { display: block; }
.mosaic-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 29, 74, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--white); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.01em; }
html[dir="rtl"] .brand-text strong { font-family: var(--font-ar); font-size: 16px; }
.brand-text span { font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.05em; }
html[dir="rtl"] .brand-text span { text-transform: none; letter-spacing: 0; font-size: 12px; }

.main-nav { display: flex; align-items: center; gap: var(--sp-6); }
.main-nav ul { display: flex; gap: var(--sp-5); }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 14.5px;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); border-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-full); overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.7); }
.lang-switch a.active { background: var(--cobalt); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .main-nav { position: fixed; inset-inline: 0; top: var(--header-h); background: var(--navy); flex-direction: column; align-items: stretch; padding: var(--sp-5); gap: var(--sp-5); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: var(--sp-1); }
  .main-nav a { display: block; padding: 12px 4px; }
  .nav-toggle { display: block; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 65%, #081029 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--sp-10) var(--sp-9);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 58px); margin-bottom: var(--sp-4); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.82); max-width: 620px; margin-bottom: var(--sp-6); }
.hero-ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--sp-8); margin-top: var(--sp-9); flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 26px; color: var(--white); }
html[dir="rtl"] .hero-stat strong { font-family: var(--font-ar); }
.hero-stat span { font-size: 13px; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .hero-stat span { text-transform: none; }

.hero .mosaic-bg svg { position: absolute; }

.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-block: var(--sp-8) var(--sp-7);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); margin-bottom: var(--sp-3); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: var(--sp-4); display:flex; gap: 8px; align-items:center; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), var(--cobalt-dark)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card-body h3 { font-size: 19px; margin-bottom: var(--sp-1); }
.card-body h3 a::after { content: ''; position: absolute; inset: 0; }
.card-body p { font-size: 14.5px; margin-bottom: 0; flex: 1; }
.card-meta { display: flex; gap: var(--sp-3); align-items: center; font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; }
.card-foot { padding: 0 var(--sp-5) var(--sp-5); margin-top: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--mist-light); color: var(--navy);
}
html[dir="rtl"] .badge { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.badge-cobalt { background: rgba(43,108,232,0.12); color: var(--cobalt-dark); }
.badge-orange { background: rgba(230,126,34,0.14); color: var(--orange-dark); }
.badge-teal { background: rgba(122,176,176,0.18); color: #3E6B6B; }
.badge-terracotta { background: rgba(193,78,48,0.13); color: var(--terracotta); }
.badge-clay { background: rgba(160,112,80,0.15); color: var(--clay); }
.badge-status-ongoing { background: rgba(46,158,99,0.14); color: var(--success); }
.badge-status-completed { background: var(--mist-light); color: var(--ink-soft); }
.badge-status-upcoming { background: rgba(230,126,34,0.14); color: var(--orange-dark); }

/* Project cards get a colored top band echoing their cover_color */
.card-band { height: 6px; }
.card-band.navy { background: var(--navy); }
.card-band.cobalt { background: var(--cobalt); }
.card-band.orange { background: var(--orange); }
.card-band.teal { background: var(--teal); }
.card-band.terracotta { background: var(--terracotta); }

/* Library item card (document icon style, not image-led) */
.doc-card { display: flex; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: box-shadow .2s ease, transform .2s ease; position: relative; }
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy), var(--cobalt-dark)); display: flex; align-items: center; justify-content: center; color: var(--white); }
.doc-icon svg { width: 26px; height: 26px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { font-size: 17px; margin-bottom: 4px; }
.doc-body h3 a::after { content:''; position:absolute; inset:0; }
.doc-meta { font-size: 12.5px; color: var(--ink-faint); display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: 6px; }

/* Video card */
.video-card .card-media { cursor: pointer; }
.video-card .play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-card .play-btn span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: transform .18s ease;
}
.video-card:hover .play-btn span { transform: scale(1.1); }
.video-card .play-btn svg { width: 20px; height: 20px; color: var(--navy); margin-inline-start: 3px; }
.video-duration { position: absolute; inset-inline-end: 10px; inset-block-end: 10px; background: rgba(15,29,74,0.85); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 4px; }

/* Team card */
.team-card { text-align: center; }
.team-avatar { width: 128px; height: 128px; border-radius: 50%; margin-inline: auto var(--sp-4); margin-bottom: var(--sp-4); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 34px; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--cobalt), var(--navy)); border: 4px solid var(--surface); box-shadow: var(--shadow-md); }
.team-card h3 { margin-bottom: 2px; font-size: 19px; }
.team-card .role { color: var(--cobalt-dark); font-weight: 700; font-size: 13.5px; }

/* =========================================================================
   TABS / FILTERS
   ========================================================================= */
.filter-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.filter-tabs a {
  padding: 9px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-tabs a:hover { border-color: var(--cobalt); color: var(--cobalt-dark); }
.filter-tabs a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.search-row { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input { width: 100%; padding: 13px 44px; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface); font-size: 14.5px; }
.search-box svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }

/* =========================================================================
   TIMELINE (Our Journey)
   ========================================================================= */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.timeline::before { content:''; position: absolute; top: 28px; inset-inline: 8%; height: 2px; background: var(--border); }
.timeline-item { position: relative; text-align: center; }
.timeline-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--cobalt); color: var(--white); display: flex; align-items: center; justify-content: center; margin-inline: auto; margin-bottom: var(--sp-4); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--terracotta); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--orange); }
.timeline-date { font-weight: 800; color: var(--cobalt-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;}
html[dir="rtl"] .timeline-date { text-transform: none; letter-spacing: 0; }
.timeline-item h3 { font-size: 17px; }
.timeline-item p { font-size: 14.5px; }
@media (max-width: 780px) {
  .timeline { grid-template-columns: 1fr; gap: var(--sp-7); }
  .timeline::before { inset-inline-start: 27px; top: 0; bottom: 0; width: 2px; height: auto; inset-inline-end: auto; }
  .timeline-item { text-align: start; padding-inline-start: 80px; min-height: 56px; }
  .timeline-dot { position: absolute; inset-inline-start: 0; margin: 0; }
}

/* =========================================================================
   VALUES / ICON GRID
   ========================================================================= */
.icon-card { padding: var(--sp-6); background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); height: 100%; }
.icon-badge { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); color: var(--white); }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.bg-cobalt { background: var(--cobalt); }
.icon-badge.bg-orange { background: var(--orange); }
.icon-badge.bg-teal { background: var(--teal); }
.icon-badge.bg-terracotta { background: var(--terracotta); }
.icon-badge.bg-clay { background: var(--clay); }
.icon-card h3 { font-size: 18px; }
.icon-card p { font-size: 14.5px; margin-bottom: 0; }

.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--cobalt); margin-top: 2px; }
.check-list li p { margin: 0; color: var(--ink-soft); }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-7); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-5); }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; color: var(--navy); }
.field .hint { font-size: 12.5px; color: var(--ink-faint); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=file], .field select, .field textarea {
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--off-white); font-size: 15px; color: var(--ink); width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); background: var(--white); outline: none; }
.field input[type=file] { padding: 10px 14px; background: var(--white); }

.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: var(--sp-5); display: flex; gap: var(--sp-3); align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #1E7A4C; }
.alert-error { background: var(--danger-bg); color: #A62F2F; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-7); margin-bottom: var(--sp-8); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: var(--white); font-family: var(--font-heading); font-size: 15px; }
html[dir="rtl"] .footer-brand strong { font-family: var(--font-ar); }
.site-footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-4); }
html[dir="rtl"] .site-footer h4 { text-transform: none; letter-spacing: 0; }
.site-footer ul li { margin-bottom: var(--sp-3); }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 14px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.social-row a:hover { background: var(--cobalt); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: 13px; color: rgba(255,255,255,0.5); }

/* =========================================================================
   MISC: empty states, pagination, modal, supporters strip
   ========================================================================= */
.empty-state { text-align: center; padding: var(--sp-9) var(--sp-5); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state svg { width: 48px; height: 48px; color: var(--mist); margin-bottom: var(--sp-4); }
.empty-state h3 { font-size: 19px; }
.empty-state p { max-width: 420px; margin-inline: auto; }

.pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-8); }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.pagination a:hover { border-color: var(--cobalt); color: var(--cobalt-dark); }
.pagination .active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.supporters-strip { display: flex; gap: var(--sp-8); align-items: center; flex-wrap: wrap; justify-content: center; }
.supporters-strip .supporter { display:flex; flex-direction:column; align-items:center; gap:8px; opacity:.85; }
.supporters-strip .supporter-badge { width: 64px; height:64px; border-radius: 50%; background: var(--mist-light); display:flex;align-items:center;justify-content:center; color: var(--navy);}
.supporters-strip span { font-size: 13px; font-weight:700; color: var(--ink-soft); }

.modal-overlay { position: fixed; inset: 0; background: rgba(10,15,35,0.88); z-index: 1000; display: none; align-items: center; justify-content: center; padding: var(--sp-5); }
.modal-overlay.is-open { display: flex; }
.modal-box { width: 100%; max-width: 900px; }
.modal-box .video-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.modal-box iframe, .modal-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close { display: flex; justify-content: flex-end; margin-bottom: var(--sp-3); }
.modal-close button { background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.divider-icon { display: flex; justify-content: center; margin-block: var(--sp-8); opacity: 0.85; }

/* =========================================================================
   REVEAL-ON-SCROLL (subtle, respects reduced motion via base rule above)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   PROSE (rendered rich text: project/blog bodies)
   ========================================================================= */
.prose { font-size: 17px; line-height: 1.8; color: var(--ink-soft); max-width: 760px; }
.prose h3 { color: var(--navy); font-size: 22px; margin-top: var(--sp-7); }
.prose h4 { color: var(--navy); font-size: 18px; margin-top: var(--sp-6); }
.prose ul { margin: 0 0 var(--sp-5); padding-inline-start: 1.3em; list-style: disc; }
.prose ul li { margin-bottom: var(--sp-2); }
.prose a { color: var(--cobalt); text-decoration: underline; }
.prose img { border-radius: var(--radius-md); margin-block: var(--sp-5); }
.prose blockquote { border-inline-start: 4px solid var(--orange); padding-inline-start: var(--sp-5); margin: var(--sp-6) 0; font-size: 19px; color: var(--navy); font-weight: 600;}

/* =========================================================================
   RESPONSIVE TYPE
   ========================================================================= */
@media (max-width: 640px) {
  .section { padding-block: var(--sp-7); }
  :root { --header-h: 68px; }
  .hero { padding-block: var(--sp-8) var(--sp-7); }
  .hero-stats { gap: var(--sp-6); }
  .form-card { padding: var(--sp-5); }
}
