/* ==========================================================================
   Lebanese Medical Tourism Council (LMTC) — main stylesheet
   Brand colours are taken from the LMTC profile and logo.
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #0a2547;
  --blue-800: #0d3a72;
  --blue-700: #0057a8;   /* profile accent bars */
  --blue-600: #2e5fac;   /* logo letters */
  --blue-100: #e6eef8;
  --blue-50:  #f3f7fb;
  --green-500: #12a84a;  /* logo heartbeat (top) */
  --green-100: #e5f5ea;
  --teal-600: #3f8670;   /* profile underline / "Thank you" */
  --teal-100: #e6f1ed;
  --red-600:  #d62b2b;   /* Lebanese flag accent, used sparingly */

  /* Neutrals */
  --ink: #16202c;
  --ink-2: #3a4655;
  --muted: #5b6878;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f6f9fc;

  --brand-gradient: linear-gradient(135deg, var(--blue-700) 0%, #006f8e 55%, var(--green-500) 100%);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 71, .06), 0 2px 8px rgba(10, 37, 71, .05);
  --shadow: 0 10px 30px rgba(10, 37, 71, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 71, .16);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--surface-2); }
.section--tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--teal-600); }
.center .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--teal-600); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); }
.rule { width: 120px; height: 4px; border-radius: 4px; background: var(--teal-600); border: 0; margin: 0 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(0, 87, 168, .25); }
.btn--primary:hover { background: var(--blue-800); color: #fff; transform: translateY(-1px); }
.btn--green { background: var(--green-500); color: #fff; box-shadow: 0 8px 20px rgba(18, 168, 74, .25); }
.btn--green:hover { background: #0e8f3e; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn--ghost:hover { background: var(--blue-700); color: #fff; }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-50); color: var(--blue-900); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--blue-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head);
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 92px; height: auto; flex-shrink: 0; }
.brand-text { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.brand-text strong { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--blue-600); letter-spacing: .02em; }
.brand-text span { font-size: .72rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink-2); text-decoration: none; padding: 10px 11px; border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--blue-700); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--brand-gradient);
}
.nav .btn { margin-inline-start: 10px; min-height: 42px; padding: 8px 20px; color: #fff; }
.nav .btn:hover { color: #fff; background: #0e8f3e; }
.nav a, .nav .btn { white-space: nowrap; }

.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none;
  font-family: "Cairo", var(--font-head); font-weight: 700; font-size: .92rem; line-height: 1;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.lang-switch[lang="en"] { font-family: "Montserrat", var(--font-head); }
.lang-switch svg { width: 18px; height: 18px; color: var(--blue-700); }
.lang-switch:hover { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-50); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(18, 168, 74, .10), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(0, 87, 168, .10), transparent 60%),
    linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.hero .split { grid-template-columns: 1.15fr .85fr; }
.hero h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 620px; margin-bottom: 32px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
}
.hero-pill b {
  background: var(--teal-100); color: var(--teal-600); font-family: var(--font-head); font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 160px; opacity: .14; pointer-events: none; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  top: 6%; left: 50%; transform: translateX(-50%); background: var(--brand-gradient); opacity: .95;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  position: relative; width: min(360px, 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; }
.float-card .icon-badge { width: 38px; height: 38px; border-radius: 10px; }
.float-card .icon-badge svg { width: 20px; height: 20px; }
.float-card--a { left: -12px; top: 52%; }
.float-card--b { right: -8px; bottom: 22%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 60%, #00749a 100%);
  padding: clamp(56px, 8vw, 96px) 0;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 168, 74, .45), transparent 65%);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 680px; font-size: 1.15rem; margin: 0; }
.page-hero .eyebrow { color: #9fe3b8; }
.page-hero .eyebrow::before { background: #9fe3b8; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------- Themes strip ---------- */
.themes { background: var(--blue-900); color: #fff; padding: 22px 0; }
.themes ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.themes li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.themes svg { width: 20px; height: 20px; color: #7fd8a0; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcea; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card .text-link { margin-top: 8px; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 54px; height: 54px; border-radius: 14px; background: var(--brand-gradient); color: #fff;
  box-shadow: 0 8px 18px rgba(0, 87, 168, .22);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--soft { background: var(--blue-50); color: var(--blue-700); box-shadow: none; }
.icon-badge--green { background: var(--green-100); color: var(--teal-600); box-shadow: none; }
.card .icon-badge { margin-bottom: 20px; }

.pillar-card { display: flex; flex-direction: column; }
.pillar-card .num {
  position: absolute; top: 24px; right: 28px; font-family: var(--font-head); font-weight: 800;
  font-size: 2.2rem; color: var(--blue-50); line-height: 1;
}
.pillar-card .text-link { margin-top: auto; padding-top: 12px; }

/* Dual model */
.model-card { padding: 40px; overflow: hidden; }
.model-card--blue { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); color: #fff; border: 0; }
.model-card--blue h3, .model-card--blue p { color: #fff; }
.model-card--blue p { opacity: .85; }
.model-card--blue .tag { background: rgba(255,255,255,.14); color: #fff; }
.model-card--blue .checklist svg { color: #7fd8a0; }
.model-card .tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--teal-100); color: var(--teal-600);
  margin-bottom: 18px;
}
.model-card h3 { font-size: 1.5rem; }

.checklist { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--green-500); }
.checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

.outcome {
  margin-top: 32px; display: flex; gap: 20px; align-items: center; padding: 24px 28px;
  border-radius: var(--radius); background: var(--teal-100); color: var(--ink);
}
.outcome p { margin: 0; font-size: 1.05rem; }
.outcome .icon-badge { background: var(--teal-600); box-shadow: none; }

/* Vision / mission */
.vm-band { position: relative; background: var(--blue-900); color: #fff; overflow: hidden; }
.vm-band .split { align-items: stretch; }
.vm-band h2, .vm-band h3 { color: #fff; }
.vm-band .eyebrow { color: #9fe3b8; }
.vm-band .eyebrow::before { background: #9fe3b8; }
.vm-item { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.15); }
.vm-item:first-of-type { border-top: 0; padding-top: 8px; }
.vm-item p { color: rgba(255,255,255,.82); margin: 0; font-size: 1.08rem; }
.vm-item h3 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; }
.vm-item h3 svg { width: 26px; height: 26px; color: #7fd8a0; }
.vm-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; box-shadow: var(--shadow-lg); }
.vm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Audience */
.audience-card { text-align: left; }
.audience-card .icon-badge { width: 48px; height: 48px; }

/* Media + text rows */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--blue-50); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media:hover img { transform: scale(1.03); }
.media--accent::before {
  content: ""; position: absolute; z-index: 1; inset-inline-start: 0; top: 0; bottom: 0; width: 10px; background: var(--blue-700);
}
.media--gray img { filter: grayscale(1) contrast(1.05); }

/* Program detail */
.program { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.program:last-of-type { border-bottom: 0; }
.program-label { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.program-label .num {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--blue-700);
  background: var(--blue-50); border-radius: 999px; padding: 4px 12px; letter-spacing: .06em;
}
.program-label .status {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #8a5a00; background: #fff4dc; border-radius: 999px; padding: 4px 10px;
}
.program h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.program .why {
  margin-top: 24px; padding: 18px 20px; border-inline-start: 4px solid var(--teal-600); background: var(--surface-2);
  border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); font-size: 1rem; color: var(--ink-2);
}
.program .why strong { color: var(--ink); font-family: var(--font-head); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; color: var(--blue-700); }

.program-nav {
  position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.program-nav ul {
  list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none;
}
.program-nav ul::-webkit-scrollbar { display: none; }
.program-nav a {
  display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink-2); background: var(--surface-2);
}
.program-nav a:hover, .program-nav a.is-active { background: var(--blue-700); color: #fff; }

/* Values */
.value { display: flex; gap: 18px; align-items: flex-start; }
.value h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Notice / callout */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 32px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid #d7e4f2;
}
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 760px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; font-size: 1.1rem; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band svg.cta-ecg { position: absolute; right: -40px; bottom: -10px; width: 520px; opacity: .18; color: #fff; }

/* Quote */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--blue-600);
  font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.4;
}
.quote cite { display: block; margin-top: 18px; font-style: normal; color: var(--teal-600); font-weight: 700; font-family: var(--font-head); }

/* Ways to help */
.way { display: flex; flex-direction: column; }
.way ul { list-style: none; display: grid; gap: 8px; margin: 6px 0 20px; }
.way li { display: flex; gap: 10px; font-size: .97rem; color: var(--ink-2); line-height: 1.5; }
.way li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green-500); }
.way .btn { margin-top: auto; align-self: flex-start; white-space: nowrap; padding: 10px 20px; }

.donate-box {
  border-radius: var(--radius-lg); background: var(--blue-900); color: #fff; padding: clamp(32px, 5vw, 56px);
}
.donate-box h2, .donate-box h3 { color: #fff; }
.donate-box p { color: rgba(255,255,255,.82); }
.donate-box .eyebrow { color: #9fe3b8; }
.donate-box .eyebrow::before { background: #9fe3b8; }
.impact-list { list-style: none; display: grid; gap: 14px; }
.impact-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); line-height: 1.5;
}
.impact-list svg { width: 22px; height: 22px; flex: none; color: #7fd8a0; margin-top: 1px; }
.impact-list strong { display: block; font-family: var(--font-head); color: #fff; }
.impact-list span { color: rgba(255,255,255,.78); font-size: .95rem; }

/* Forms */
.form-card { padding: clamp(28px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(0, 87, 168, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field .error { display: none; color: var(--red-600); font-size: .85rem; }
.field.has-error .error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--blue-700); flex: none; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--green-100); color: #0b5b2a; }

.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-badge { width: 46px; height: 46px; }
.contact-list .icon-badge svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.contact-list span, .contact-list a { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--blue-700); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.75); padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.footer-ngo {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #9fe3b8; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .04em;
}
.footer-ngo svg { width: 16px; height: 16px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #7fd8a0; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.6);
}
.flag-bar { height: 4px; background: linear-gradient(90deg, var(--red-600) 0 33.3%, #fff 33.3% 66.6%, var(--green-500) 66.6%); opacity: .9; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .brand-text { display: none; }
  .nav a { padding-inline: 10px; }
  .nav .btn { margin-inline-start: 6px; padding-inline: 16px; }
}
@media (max-width: 1040px) {
  .site-header .container { gap: 12px; }
  .brand img { width: 76px; }
  .nav { gap: 0; }
  .nav a { padding-inline: 8px; font-size: .9rem; }
  .nav .btn { padding-inline: 14px; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
}

@media (max-width: 920px) {
  .nav { margin-inline-start: 0; }
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .nav a[aria-current="page"] { background: var(--blue-50); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 8px 0 0; }
  .split, .hero .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { margin-top: 16px; }
  .callout { grid-template-columns: auto 1fr; }
  .callout .btn { grid-column: 1 / -1; justify-self: start; }
  .vm-photo { min-height: 280px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .form-grid, .checklist--2col { grid-template-columns: 1fr; }
  .card, .model-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .float-card { display: none; }
  .hero-visual img { width: 70%; }
  .outcome { flex-direction: column; align-items: flex-start; }
  .callout { grid-template-columns: 1fr; padding: 24px; }
  .btn-row .btn { flex: 1 1 100%; }
  .brand img { width: 80px; }
}

/* ==========================================================================
   Arabic (RTL)
   ========================================================================== */
html[lang="ar"] {
  --font-head: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
}
/* Arabic letters must stay joined: no letter-spacing anywhere */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.45; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .brand-text strong { font-size: .9rem; line-height: 1.35; }
html[lang="ar"] .nav a { font-size: 1rem; }
html[lang="ar"] .eyebrow { font-size: .9rem; }
html[lang="ar"] .quote blockquote { line-height: 1.7; }
html[lang="ar"] .program-label .num { font-size: .9rem; }

/* Arrows point the reading direction */
[dir="rtl"] .btn svg, [dir="rtl"] .text-link svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg, [dir="rtl"] .text-link:hover svg { transform: scaleX(-1) translateX(3px); }

/* Mirror decorative positions */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .float-card--a { left: auto; right: -12px; }
[dir="rtl"] .float-card--b { right: auto; left: -8px; }
[dir="rtl"] .pillar-card .num { right: auto; left: 28px; }
[dir="rtl"] .page-hero::after { inset: auto auto -60% -10%; }
[dir="rtl"] .cta-band svg.cta-ecg { right: auto; left: -40px; }

/* Keep emails and phone numbers left-to-right */
[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }

/* ==========================================================================
   News
   ========================================================================== */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.news-head h2 { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder {
  display: block; width: 100%; height: 100%;
  background: url("../img/logo-mark-white.png") center / 34% no-repeat, var(--brand-gradient);
}
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .88rem; color: var(--muted); }
.news-card h3 { font-size: 1.18rem; margin: 0; line-height: 1.35; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue-700); }
.news-card p { margin: 0; font-size: .98rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .text-link { margin-top: auto; padding-top: 8px; }
.news-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff4dc; color: #8a5a00;
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
}

/* Loading placeholders */
.news-card--skeleton { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.news-card--skeleton .news-card__media,
.news-card--skeleton .news-card__body span,
.skeleton-line {
  background: linear-gradient(90deg, #eef3f8 0%, #f7fafc 50%, #eef3f8 100%); background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.news-card--skeleton .news-card__body span { display: block; height: 14px; border-radius: 6px; }
.news-card--skeleton .news-card__body span:nth-child(1) { width: 40%; }
.news-card--skeleton .news-card__body span:nth-child(2) { width: 90%; height: 20px; }
.news-card--skeleton .news-card__body span:nth-child(3) { width: 75%; }
.skeleton-line { display: inline-block; width: min(560px, 80%); height: .8em; border-radius: 8px; opacity: .35; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.news-state {
  margin: 8px auto 0; max-width: 620px; text-align: center; padding: 28px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--muted);
}
.news-more { display: flex; justify-content: center; margin-top: 40px; }
.news-more .btn[hidden] { display: none; }

/* Article */
.page-hero--article h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.page-hero--article .eyebrow::before { display: none; }
.article-section { padding-top: clamp(40px, 6vw, 64px); }
.article-wrap { max-width: 820px; }
.article-figure { margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-50); }
.article-figure img { width: 100%; max-height: 540px; object-fit: cover; }
.article-note { padding: 14px 18px; border-radius: var(--radius-sm); background: #fff4dc; color: #6b4600; margin-bottom: 28px; }
.article-body { font-size: 1.1rem; color: var(--ink-2); }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.article-body h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.article-body ul { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body a { color: var(--blue-700); }
.article-back { margin-top: 32px; }
[dir="rtl"] .article-back, [dir="rtl"] .news-card .text-link { direction: rtl; }

@media (max-width: 920px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card__body { padding: 20px; }
}

/* Contact forms: error message and hidden anti-spam field */
.form-status--error { background: #fdecec; color: #8f1d1d; }
.form-status--error a { color: inherit; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
