/* ============================================================
   GHAYAH — Global Design System
   Brand: Purpose-Driven eLearning Agency, MENA
   Palette: Dark Purple / Green / Purple / Sky Blue / Sun Yellow / Red Sunset
   Fonts: Space Grotesk (Koala alt) · DM Sans (TASA Orbiter alt) · Tajawal (Arabic)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand colors */
  --dark-purple:   #1A174F;
  --green:         #34CB98;
  --purple:        #9797FF;
  --sky-blue:      #63D0EA;
  --sun-yellow:    #FFF599;
  --red-sunset:    #ED7474;

  /* Tints — dark purple opacity scale */
  --dark-purple-80: #46436F;
  --dark-purple-70: #5B5882;
  --dark-purple-60: #716E95;
  --dark-purple-50: #8D8AA7;
  --dark-purple-45: #979AB0;
  --dark-purple-40: #A3A1C0;
  --dark-purple-30: #BEBCCE;
  --dark-purple-20: #CCCBD9;
  --dark-purple-15: #D5D4E1;
  --dark-purple-10: #E1E0EA;
  --dark-purple-8:  #E8E7EE;
  --dark-purple-5:  #EFEFF4;
  --dark-purple-3:  #F5F4F8;

  /* Tints — green */
  --green-40:       #8FE3C6;
  --green-10:       #D6F5EA;
  --green-5:        #EBF9F4;

  /* Tints — purple */
  --purple-40:      #C0C0FF;
  --purple-10:      #EAEAFF;

  /* Tints — sky blue */
  --sky-blue-10:    #E0F6FB;
  --sky-10:         #E0F6FB;  /* alias */

  /* Tints — red sunset */
  --red-sunset-10:  #FBEDED;

  /* UI colors */
  --white:   #FFFFFF;
  --off-white: #F8F8FC;
  --border:  #E1E0EA;
  --text-body: #1A174F;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-arabic:  'Tajawal', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.5rem;    /* 40px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  4rem;      /* 64px */
  --text-7xl:  5rem;      /* 80px */

  /* Spacing (8pt grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,23,79,0.08);
  --shadow-md:  0 4px 16px rgba(26,23,79,0.12);
  --shadow-lg:  0 12px 40px rgba(26,23,79,0.16);
  --shadow-xl:  0 24px 60px rgba(26,23,79,0.20);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);
  --nav-height:    72px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

[lang="ar"], .ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

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

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

ul, ol { list-style: none; }

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

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 800px;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark-purple);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-purple-80);
  max-width: 70ch;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.65;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--green);
  color: var(--dark-purple);
  border-color: var(--green);
}
.btn--primary:hover {
  background: #2bb882;
  border-color: #2bb882;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52,203,152,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark-purple);
  border-color: var(--dark-purple);
}
.btn--outline-dark:hover {
  background: var(--dark-purple);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--dark-purple);
  padding-inline: var(--space-4);
}
.btn--ghost:hover { background: var(--dark-purple-10); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.btn:hover svg { transform: translateX(3px); }

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(26,23,79,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(151,151,255,0.15);
  transition: background var(--transition-base);
}

.nav.nav--light {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
}

.nav .container { height: 100%; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo img {
  height: 38px;
  width: auto;
  margin-right: 1px;
  margin-bottom: 1px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column-reverse; /* Arabic on top, English below */
  line-height: 1.15;
  align-items: flex-start;
}

.nav__logo-en {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}

.nav__logo-ar {
  font-family: var(--font-arabic);
  font-size: var(--text-sm);
  color: var(--green);
  font-weight: 600;
  display: block;
  width: 100%;        /* match container width = English word width */
  text-align: center; /* center Arabic within that width */
}

.nav.nav--light .nav__logo-en { color: var(--dark-purple); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__link.active { color: var(--green); }

.nav.nav--light .nav__link { color: var(--dark-purple-80); }
.nav.nav--light .nav__link:hover { color: var(--dark-purple); background: var(--dark-purple-10); }

.nav__cta { margin-left: var(--space-4); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}
/* Hamburger visible on light-background navs */
.nav.nav--light .nav__hamburger span { background: var(--dark-purple); }

/* Mobile nav overlay — shared across all pages */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--dark-purple);
  padding: var(--space-8) var(--container-pad);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-4);
}
.nav__mobile.open { display: flex; }
.nav__mobile ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.nav__mobile .nav__link {
  font-size: var(--text-lg);
  padding: var(--space-3);
  color: rgba(255,255,255,0.85);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark-purple);
  overflow: hidden;
  padding-block: var(--space-24);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(52,203,152,0.15);
  border: 1px solid rgba(52,203,152,0.3);
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
}

.hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__heading {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__heading em {
  font-style: normal;
  color: var(--green);
}

.hero__sub {
  font-family: var(--font-arabic);
  font-size: var(--text-2xl);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  display: block;
}

.hero__body {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-1);
}

/* Visual card on hero right */
.hero__visual {
  position: relative;
}

.hero__card-stack {
  position: relative;
  height: 480px;
}

.hero__card {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  padding: var(--space-6);
  transition: transform var(--transition-slow);
}

.hero__card--main {
  inset: 0;
  background: linear-gradient(135deg, rgba(52,203,152,0.12) 0%, rgba(26,23,79,0.0) 100%);
  border-color: rgba(52,203,152,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__card--floating {
  width: 200px;
  right: -24px;
  top: 40px;
  background: var(--dark-purple);
  border-color: rgba(151,151,255,0.3);
  animation: float 5s ease-in-out infinite;
}

.hero__card--floating-2 {
  width: 180px;
  left: -20px;
  bottom: 60px;
  background: var(--dark-purple);
  border-color: rgba(52,203,152,0.25);
  animation: float 5s ease-in-out infinite 2.5s;
}

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

.hero__level-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(52,203,152,0.15);
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.hero__metric-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--green);
}
.hero__metric-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Section base ───────────────────────────────────────── */
.section {
  padding-block: var(--space-24);
}
.section--lg { padding-block: var(--space-32); }
.section--sm { padding-block: var(--space-16); }

.section--dark {
  background: var(--dark-purple);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.7); }

.section--tint { background: var(--off-white); }
.section--yellow { background: var(--sun-yellow); }

.section__header {
  margin-bottom: var(--space-16);
}
.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section__header p { margin-inline: auto; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--purple-40);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card--dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.card--dark:hover {
  border-color: rgba(52,203,152,0.3);
  background: rgba(52,203,152,0.05);
}

/* ── Grid layouts ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }

/* ── Trust Bar ──────────────────────────────────────────── */
.trust {
  border-block: 1px solid var(--border);
  padding-block: var(--space-8);
  background: var(--white);
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.trust__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-purple-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.trust__items {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-purple);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.trust__item:hover { opacity: 1; }

/* ── Spectrum / Level cards ─────────────────────────────── */
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.level-card {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--level-color, var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.level-card:hover::before { transform: scaleX(1); }
.level-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--level-color, var(--green));
}

.level-card__num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--level-color, var(--green));
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-4);
  transition: opacity var(--transition-base);
}
.level-card:hover .level-card__num { opacity: 0.25; }

.level-card__icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--level-color, var(--green));
  background: color-mix(in srgb, var(--level-color, var(--green)) 12%, transparent);
  margin-bottom: var(--space-5);
  transition: transform var(--transition-base), background var(--transition-base);
}
.level-card:hover .level-card__icon {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--level-color, var(--green)) 18%, transparent);
}

.level-card__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--level-color, var(--green));
  background: rgba(52,203,152,0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.level-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.level-card__tagline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--level-color, var(--green));
  margin-bottom: var(--space-4);
}

.level-card__desc {
  font-size: var(--text-sm);
  color: var(--dark-purple-80);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  flex: 1;
  max-width: none;
}

.level-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--level-color, var(--green));
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.level-card:hover .level-card__link { gap: var(--space-2); }

/* ── Differentiator cards ───────────────────────────────── */
.diff-card {
  padding: var(--space-8);
}
.diff-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--green-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.diff-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

/* ── Quote / Manifesto ──────────────────────────────────── */
.manifesto {
  padding-block: var(--space-32);
  background: var(--dark-purple);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 400px;
  color: rgba(255,255,255,0.02);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}
.manifesto__quote em {
  font-style: normal;
  color: var(--green);
}
.manifesto__source {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
}

/* ── Stats strip ────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stats-strip__item {
  background: var(--white);
  padding: var(--space-8);
  text-align: center;
}
.stats-strip__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--dark-purple);
  line-height: 1;
}
.stats-strip__label {
  font-size: var(--text-sm);
  color: var(--dark-purple-80);
  margin-top: var(--space-2);
}

/* ── Approach steps ─────────────────────────────────────── */
.approach-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.step-list { display: flex; flex-direction: column; gap: var(--space-6); }

.step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}
.step:hover { background: var(--off-white); }

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-purple);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: var(--space-1);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--dark-purple-80);
  line-height: 1.6;
  max-width: none;
}

/* ── Work / Case study cards ────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.work-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.work-card__thumb {
  height: 200px;
  background: var(--dark-purple);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.work-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card__tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag--level { background: var(--purple-10); color: var(--dark-purple); }
.tag--industry { background: var(--green-10); color: var(--dark-purple); }
.tag--outcome { background: var(--sky-10); color: var(--dark-purple); }

.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.work-card__metric {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--space-1);
}

.work-card__metric-label {
  font-size: var(--text-xs);
  color: var(--dark-purple-80);
  margin-top: auto;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark-purple);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
  gap: var(--space-4);
}
.faq-item__q:hover { background: var(--off-white); }

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--dark-purple-80);
  line-height: 1.7;
  background: var(--white);
}
.faq-item.open .faq-item__a { display: block; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-purple) 0%, #2D2970 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52,203,152,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__eyebrow { color: var(--green); margin-bottom: var(--space-4); }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,255,255,0.7); margin-inline: auto; margin-bottom: var(--space-8); }
.cta-banner__actions { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ── Contact form ───────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--space-5); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark-purple);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--dark-purple);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52,203,152,0.15);
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.required { color: var(--red-sunset); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark-purple);
  color: var(--white);
  padding-top: var(--space-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand { max-width: 300px; }

.footer__logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: var(--space-4);
}
.footer__logo img { height: 40px; margin-right: 1px; margin-bottom: 1px; }
.footer__logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  display: block;
}
.footer__logo-ar {
  font-family: var(--font-arabic);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  display: block;
  width: 100%;
  text-align: center;
}
/* Footer logo text stacks Arabic on top */
.footer__logo > div,
.footer__logo-text {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  line-height: 1.15;
}

.footer__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: none;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--green); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  max-width: none;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}
.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Page header (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--dark-purple);
  padding-block: var(--space-20) var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,203,152,0.4), transparent);
}

.page-hero__eyebrow { margin-bottom: var(--space-4); }

.page-hero h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: var(--space-5);
}

.page-hero h1 em {
  font-style: normal;
  color: var(--green);
}

.page-hero .lead {
  color: rgba(255,255,255,0.7);
  max-width: 640px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: rgba(255,255,255,0.25); }

/* ── Quiz ───────────────────────────────────────────────── */
.quiz {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  max-width: 720px;
  margin-inline: auto;
}
.quiz__step { display: none; }
.quiz__step.active { display: block; }

.quiz__q {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: var(--space-8);
  line-height: 1.3;
}

.quiz__options { display: flex; flex-direction: column; gap: var(--space-3); }

.quiz__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  text-align: left;
  width: 100%;
}
.quiz__option:hover {
  border-color: var(--green);
  background: var(--green-10);
}
.quiz__option.selected {
  border-color: var(--green);
  background: var(--green-10);
}

.quiz__option-key {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-purple-10);
  color: var(--dark-purple);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz__option-text {
  font-size: var(--text-base);
  color: var(--dark-purple);
  line-height: 1.5;
}

.quiz__progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.quiz__dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}
.quiz__dot.done { background: var(--green); }
.quiz__dot.active { background: var(--purple); }

.quiz__result {
  text-align: center;
  padding: var(--space-8);
  background: var(--green-10);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-40);
}

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

/* ── Footer aliases (flexible class names) ──────────────── */
/* Support both .footer__link and li a patterns */
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col ul li { font-size: var(--text-sm); color: rgba(255,255,255,0.65); }
.footer__col ul li a { color: rgba(255,255,255,0.65); transition: color var(--transition-fast); }
.footer__col ul li a:hover { color: var(--green); }
.footer__col ul li svg { vertical-align: -2px; opacity: 0.5; margin-right: 2px; }
.footer__tagline { font-size: var(--text-sm); color: var(--green); margin-top: var(--space-3); max-width: none; }
.footer__brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.55); line-height: 1.7; max-width: none; }
.footer__logo span { font-family: var(--font-arabic); font-size: var(--text-xl); font-weight: 700; color: var(--green); }
.footer__bottom p { font-size: var(--text-sm); color: rgba(255,255,255,0.35); max-width: none; }
.footer__bottom-links { display: flex; gap: var(--space-6); }
.footer__bottom-links a { font-size: var(--text-sm); color: rgba(255,255,255,0.35); transition: color var(--transition-fast); }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Page hero alias ────────────────────────────────────── */
.page-hero__sub { color: rgba(255,255,255,0.7); max-width: 640px; font-size: var(--text-lg); line-height: 1.65; }

/* ── CTA Banner flexible inner layout ───────────────────── */
.cta-banner__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-banner__content { max-width: 640px; }
.cta-banner__content h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-banner__content p { color: rgba(255,255,255,0.7); max-width: 52ch; margin-inline: auto; }
.cta-banner__actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; justify-content: center; margin-top: var(--space-8); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --container-pad: 1.25rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__toggle { display: flex; }
  .level-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: var(--space-10); }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .manifesto__quote { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; justify-content: center; }
}
