/* ============================================
   Aurel Academy — Unified Homepage
   Base (per spec snippet) + section styles
   ============================================ */

:root {
  --bg-primary: #FFFFFF;
  --bg-section: #F5F5F2;
  --brand-orange: #F97316;
  --brand-orange-dark: #EA580C;
  --brand-green: #10B981;
  --brand-green-dark: #059669;
  --brand-red: #DC2626;
  --whatsapp: #25D366;
  --text-primary: #0A0A0A;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 72px;
}

@media (max-width: 768px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; font-family: 'Inter', -apple-system, sans-serif; letter-spacing: -0.01em; }

.italic-accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--brand-orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.btn-primary { background: var(--brand-orange); color: white; }
.btn-primary:hover { background: var(--brand-orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.35); }

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

.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); }

.btn-green { background: var(--brand-green); color: white; }
.btn-green:hover { background: var(--brand-green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.3); }

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

.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Container / section ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-alt { background: var(--bg-section); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.125rem);
  margin-top: 16px;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Utilities ---------- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }
.hide-mobile-inline { display: none; }
@media (min-width: 900px) { .hide-mobile-inline { display: inline-flex; } }

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

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

/* MOBILE PERF: kill GSAP-heavy reveals + reduce CPU on mobile */
@media (max-width: 767px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Disable hover transitions on mobile (no hover anyway, saves CPU) */
  .card, .program, .pillar, .feature, .step, .tier {
    transition: none;
  }
  /* Hero visual loops are expensive; pause them */
  .hv-card, .hv-shape, .hv-blush {
    animation-play-state: paused !important;
  }
}

body.menu-open { overflow: hidden; }

/* Fade-up baseline (GSAP targets) */
.fade-up, .cards-stagger .card {
  will-change: opacity, transform;
}

/* ---------- Card ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  animation: waEntry 0.7s ease both, pulse 3s 1s infinite;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Hide WhatsApp float when an inline WhatsApp CTA is visible (Sprint 2 item 5) */
.whatsapp-float.is-near-cta {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mobile : float plus petit + au-dessus de la safe area */
@media (max-width: 767px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; }
  .btn-whatsapp { white-space: normal; width: 100%; max-width: 100%; padding-left: 14px; padding-right: 14px; font-size: 0.98rem; line-height: 1.3; }
}

@keyframes waEntry {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ═════════════════════════════════════════════
   HEADER
   ═════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.25s ease;
}
.header.is-scrolled .logo { transform: scale(0.92); }

.logo-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav { display: none; }
@media (min-width: 900px) { .nav { display: block; } }

.nav-list { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-weight: 500; font-size: 0.95rem;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--bg-section); color: var(--brand-orange); }
.nav-caret { font-size: 0.7em; opacity: 0.7; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background-color 0.15s;
}
.nav-dropdown li a:hover { background: var(--bg-section); color: var(--brand-orange); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.2s, color 0.2s;
}
.lang-btn.is-active { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-sm); }
@media (max-width: 768px) { .lang { display: none; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 40px; height: 40px;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

.mobile-menu {
  position: fixed;
  top: var(--header-h); right: 0;
  width: min(320px, 85vw);
  height: calc(100vh - var(--header-h));
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 99;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 1rem; font-weight: 500;
  border-radius: 10px;
  transition: background-color 0.15s;
}
.mobile-menu a:hover { background: var(--bg-section); }

/* ═════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 48px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 70%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { min-height: 100vh; padding-bottom: 64px; } }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
@media (min-width: 768px)  { .hero-inner { grid-template-columns: 52% 48%; } }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 55% 45%; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-size: 0.85rem; font-weight: 500;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw + 1rem, 3.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
@media (max-width: 500px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

.hero-social { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: inline-flex; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.social-text { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; }
.stars { color: #FBBF24; letter-spacing: 2px; font-size: 0.95rem; }

/* ═════════════════════════════════════════════
   HERO VISUAL — 2D composition (Eduvex-style)
   ═════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  isolation: isolate;
}

/* Dotted pattern background */
.hv-dots {
  position: absolute;
  inset: -8% -8% -8% -8%;
  width: 116%;
  height: 116%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

/* Soft blush */
.hv-blush {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 600px; height: 600px;
  max-width: 130%;
  max-height: 130%;
  background: radial-gradient(circle, rgba(249,115,22,0.18), rgba(249,115,22,0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  transform-origin: center;
}

/* Decorative shapes */
.hv-shape { position: absolute; z-index: 1; opacity: 0.6; pointer-events: none; }
.hv-shape-1 { top: 6%;  left: -2%; }
.hv-shape-2 { top: 18%; right: 12%; }
.hv-shape-3 { bottom: 18%; left: 4%; }
.hv-shape-4 { bottom: 6%; right: -2%; opacity: 0.45; }

/* ── Dashboard mockup ──────────── */
.hv-mockup {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 90%);
  aspect-ratio: 480 / 360;
  background: linear-gradient(160deg, #F8F7F4 0%, #FFFFFF 55%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
  display: flex; flex-direction: column;
}

.hv-mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.hv-dot { width: 10px; height: 10px; border-radius: 50%; }
.hv-dot--r { background: #FF5F57; }
.hv-dot--y { background: #FEBC2E; }
.hv-dot--g { background: #28C840; }
.hv-mockup__title {
  margin-left: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hv-mockup__body {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 18px 20px;
  gap: 14px;
}

/* Progress bar */
.hv-progress { display: flex; flex-direction: column; gap: 6px; }
.hv-progress__label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hv-progress__label strong { color: var(--brand-orange); font-weight: 700; }
.hv-progress__track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 999px;
  overflow: hidden;
}
.hv-progress__fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #FDBA74, #F97316);
  border-radius: 999px;
}

/* Next lesson card */
.hv-next {
  display: flex; align-items: center; gap: 12px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 12px;
  padding: 10px 12px;
}
.hv-next__icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  background: #FFEDD5;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.hv-next__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-next__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.hv-next__text strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mini stats row */
.hv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}
.hv-stat {
  background: #FAFAF7;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.hv-stat__emoji { font-size: 1.05rem; }
.hv-stat strong { font-size: 0.85rem; color: var(--text-primary); }
.hv-stat__label { font-size: 0.65rem; color: var(--text-muted); }

/* ── Floating cards ──────────── */
.hv-card {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
              box-shadow 0.3s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
  min-width: 140px;
}
.hv-card:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.hv-card--green  { background: #D1FAE5; border-color: #A7F3D0; }
.hv-card--orange { background: #FED7AA; border-color: #FDBA74; }

.hv-card__emoji { font-size: 1.2rem; flex: 0 0 auto; }
.hv-card__check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 24px;
}

.hv-card__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hv-card__text strong { font-size: 0.88rem; color: var(--text-primary); font-weight: 700; }
.hv-card__text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hv-card--green  .hv-card__text strong { color: #065F46; }
.hv-card--green  .hv-card__text span   { color: #047857; }
.hv-card--orange .hv-card__text strong { color: #7C2D12; }
.hv-card--orange .hv-card__text span   { color: #9A3412; }

.hv-card-1 { top: 6%;  left: 0; }
.hv-card-2 { top: 10%; right: 0; }
.hv-card-3 { bottom: 12%; left: 0; }
.hv-card-4 { bottom: 6%;  right: 0; }

.hv-avatars { display: inline-flex; }
.hv-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem; color: #fff;
  margin-left: -8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hv-avatars .hv-avatar:first-child { margin-left: 0; }
.hv-stars { color: #FBBF24; font-size: 0.78rem; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero-visual { max-width: 440px; }
  .hv-mockup { width: min(380px, 88%); }
  .hv-card-2, .hv-card-4 { display: none; }
}

@media (max-width: 767px) {
  .hero-visual {
    max-width: 340px;
    aspect-ratio: 1 / 0.9;
    margin-top: 24px;
  }
  .hv-mockup { width: min(300px, 92%); }
  .hv-card, .hv-shape, .hv-dots { display: none; }
}

/* ═════════════════════════════════════════════
   3. PROGRAMMES
   ═════════════════════════════════════════════ */
.programs { align-items: stretch; }
.program {
  display: flex; flex-direction: column;
  border-top: 4px solid var(--brand-orange);
  padding-top: 36px;
}
.program-a1b2 { border-top-color: var(--brand-green); }

.program-icon {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFF7ED;
  border-radius: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.program-a1b2 .program-icon { background: #ECFDF5; }
.program:hover .program-icon { transform: translateY(-4px) rotate(-4deg) scale(1.05); }

.program-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-orange);
  background: #FFEDD5;
  border-radius: 999px;
  margin-bottom: 14px;
}
.program-badge-green { color: var(--brand-green-dark); background: #D1FAE5; }

.program h3 { margin-bottom: 12px; }
.program-desc { color: var(--text-muted); margin-bottom: 20px; }

.program-stats {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.program-stats li { position: relative; padding-right: 14px; }
.program-stats li:not(:last-child)::after {
  content: "·"; position: absolute; right: 0; top: 0;
}

.program-price { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.program-price strong {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.program-ctas { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) {
  .program-ctas-dual { flex-direction: row; }
  .program-ctas-dual .btn { flex: 1; }
}

/* ═════════════════════════════════════════════
   4. PILLARS
   ═════════════════════════════════════════════ */
.pillars { gap: 32px; }
.pillar { text-align: center; padding: 16px; }
.pillar-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(249,115,22,0.25);
  transition: transform 0.3s ease;
}
.pillar:hover .pillar-icon { transform: rotate(10deg) scale(1.1); }
.pillar h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }

/* ═════════════════════════════════════════════
   5. STEPS
   ═════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.step { text-align: center; padding: 16px; position: relative; }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px; right: -16px;
    width: 32px; height: 2px;
    background-image: linear-gradient(90deg, var(--brand-orange) 50%, transparent 50%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
  }
}
.step-num {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(249,115,22,0.25);
  margin-bottom: 16px;
}
.step-illus { margin: 6px auto 14px; display: flex; justify-content: center; }
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

/* ═════════════════════════════════════════════
   6. LEAD FORM
   ═════════════════════════════════════════════ */
.lead-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .lead-inner { grid-template-columns: 60% 40%; } }

.lead-text .eyebrow { margin-bottom: 12px; }
.lead-text h2 { margin-bottom: 8px; }

.lead-form { margin-top: 24px; display: grid; gap: 16px; }

.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.req { color: var(--brand-orange); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #D1D5DB;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
}
.field input::placeholder,
.field textarea::placeholder { color: #9CA3AF; }

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.1);
}
.field textarea { resize: vertical; min-height: 96px; }

/* Custom select chevron */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.field select:invalid,
.field select option[value=""] { color: #9CA3AF; }
.field select option { color: var(--text-primary); }

/* Error message */
.field-error {
  display: none;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}
.field-error.is-visible { display: block; }

.lead-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 4px; }
.lead-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 20px; margin-top: 10px;
  font-size: 0.88rem; color: var(--text-muted);
}

.lead-visual { display: none; }
@media (min-width: 900px) { .lead-visual { display: block; } }
.lead-visual .float-a { animation: floatA 5s ease-in-out infinite; }
.lead-visual .float-b { animation: floatB 6s ease-in-out infinite 0.3s; }
.lead-visual .float-c { animation: floatA 5.5s ease-in-out infinite 0.6s; }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ═════════════════════════════════════════════
   7. CAROUSEL / TESTIMONIALS
   ═════════════════════════════════════════════ */
.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.carousel-track { position: relative; min-height: 400px; }
@media (max-width: 640px) {
  .carousel-track { min-height: 480px; }
}
.testimonial {
  position: absolute; inset: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 5vw, 64px) clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 90px;
  line-height: 1;
  color: var(--brand-orange);
  opacity: 0.12;
  pointer-events: none;
}
.testimonial.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testimonial-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.5rem;
}
.testimonial blockquote {
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  max-width: 600px;
  margin: 12px auto;
  text-align: center;
}
@media (min-width: 768px) {
  .testimonial blockquote { font-size: 1.2rem; }
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.testimonial cite strong { color: var(--text-primary); }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.carousel-dot.is-active { background: var(--brand-orange); transform: scale(1.2); }

/* ═════════════════════════════════════════════
   8. FAQ
   ═════════════════════════════════════════════ */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--brand-orange); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--brand-orange);
  transition: transform 0.25s, background-color 0.2s;
}
.faq-item summary::after {
  transition: transform 0.3s ease, background-color 0.2s, color 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--brand-orange);
  color: #fff;
}
.faq-body {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ═════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════ */
.footer {
  background: var(--text-primary);
  color: #D1D5DB;
  padding: 64px 0 0;
}
.footer a { color: #D1D5DB; transition: color 0.15s; }
.footer a:hover { color: var(--brand-orange); }
.footer h4, .footer .logo-text { color: #fff; }
.footer .italic-accent { color: var(--brand-orange); }

.footer-inner {
  display: grid; gap: 32px;
  padding-bottom: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-tag {
  margin-top: 14px;
  color: #9CA3AF;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 8px; font-size: 0.95rem; }
.footer-legal { margin-top: 20px; }
.footer-legal li a { font-size: 0.85rem; color: #9CA3AF; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background-color 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--brand-orange); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #9CA3AF;
  text-align: center;
}

/* ═════════════════════════════════════════════
   STATS BAR
   ═════════════════════════════════════════════ */
.stats-bar {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #FFFFFF;
  position: relative;
}
.stats-bar::before,
.stats-bar::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: min(1136px, calc(100% - 48px));
  height: 1px;
  background: var(--border);
}
.stats-bar::before { top: 0; }
.stats-bar::after  { bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0; top: 15%;
    width: 1px; height: 70%;
    background: var(--border);
  }
}
.stat strong {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-orange);
  letter-spacing: -0.03em;
}
.stat span {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═════════════════════════════════════════════
   FEATURES GRID (6 cards)
   ═════════════════════════════════════════════ */
.features { gap: 20px; }
.feature { text-align: left; padding: clamp(22px, 2vw, 28px); }
.feature__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 48px;
}
.feature__icon--orange { background: #FFEDD5; color: var(--brand-orange); box-shadow: 0 6px 16px rgba(249,115,22,0.15); }
.feature__icon--green  { background: #D1FAE5; color: var(--brand-green-dark); box-shadow: 0 6px 16px rgba(16,185,129,0.15); }
.feature__icon--blue   { background: #DBEAFE; color: #1D4ED8; box-shadow: 0 6px 16px rgba(29,78,216,0.12); }
.feature__icon--red    { background: #FEE2E2; color: var(--brand-red); box-shadow: 0 6px 16px rgba(220,38,38,0.12); }
.feature__icon--purple { background: #EDE9FE; color: #7C3AED; box-shadow: 0 6px 16px rgba(124,58,237,0.12); }
.feature__icon--teal   { background: #CCFBF1; color: #0D9488; box-shadow: 0 6px 16px rgba(13,148,136,0.12); }
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.08); }
.feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

/* ═════════════════════════════════════════════
   PROGRAM FLOATING BADGE
   ═════════════════════════════════════════════ */
.program { position: relative; }
.program-float-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(249,115,22,0.35);
  transform-origin: center;
  animation: badgeBob 3.5s ease-in-out infinite;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.program-float-badge--green {
  background: var(--brand-green);
  box-shadow: 0 8px 22px rgba(16,185,129,0.35);
  animation-delay: 0.6s;
}
@keyframes badgeBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

/* ═════════════════════════════════════════════
   GLOBAL AMBIENT BLUSH
   ═════════════════════════════════════════════ */
body {
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(249,115,22,0.06), rgba(249,115,22,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  bottom: -250px;
  left: -250px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(16,185,129,0.05), rgba(16,185,129,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.section-alt,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- RTL prep ---------- */
[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
