/* ==========================================================================
   QURAN ACADEMY — SHARED DESIGN SYSTEM
   One CSS file for all 5 sites. Set data-theme on <html>:
     hifz    → Hifz Academy        (green & gold)
     recite  → Quran Recitation    (teal & gold)
     arabic  → Arabic Language     (blue & gold)
     nizami  → Darse Nizami        (maroon & gold)
     hub     → Main Hub            (emerald & gold)
   Usage: <html lang="en" data-theme="hifz">
   Fonts: Poppins (Latin headings), Inter (Latin body), Amiri (Arabic).
   Add Google Fonts link in <head> (see README).
   Mobile-first. All interactive targets >= 44px.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Gold accent — shared across the whole brand family */
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-dark: #9a7a1c;
  --gold-soft: rgba(201, 162, 39, 0.12);

  /* Neutrals */
  --white: #ffffff;
  --ink: #14201a;
  --ink-soft: #3d4a43;
  --muted: #6b7a71;
  --line: #e6ebe7;
  --bg: #fafbf9;
  --bg-alt: #f1f5f1;
  --dark: #0e1512;
  --dark-2: #16211b;

  /* WhatsApp */
  --wa: #25d366;
  --wa-dark: #1da851;

  /* Theme slots — overridden per data-theme below */
  --primary: #0d5c34;
  --primary-dark: #083d22;
  --primary-deep: #062b19;
  --primary-light: #12805a;
  --primary-soft: rgba(13, 92, 52, 0.08);
  --primary-glow: rgba(13, 92, 52, 0.25);
  --on-primary: #ffffff;
  --hero-grad-1: #0d5c34;
  --hero-grad-2: #062b19;

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;
  --shadow-sm: 0 2px 8px rgba(14, 21, 18, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 21, 18, 0.10);
  --shadow-lg: 0 20px 60px rgba(14, 21, 18, 0.16);
  --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;

  /* Type */
  --font-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
}

/* ---------- 2. THEMES ---------- */
[data-theme="hifz"] {
  --primary: #0d5c34; --primary-dark: #083d22; --primary-deep: #052a17;
  --primary-light: #149a5c; --primary-soft: rgba(13, 92, 52, 0.08);
  --primary-glow: rgba(13, 92, 52, 0.28);
  --hero-grad-1: #0f6b3d; --hero-grad-2: #052a17;
}
[data-theme="recite"] {
  --primary: #0e6e6e; --primary-dark: #084c4c; --primary-deep: #053333;
  --primary-light: #17a3a3; --primary-soft: rgba(14, 110, 110, 0.08);
  --primary-glow: rgba(14, 110, 110, 0.28);
  --hero-grad-1: #108080; --hero-grad-2: #053333;
}
[data-theme="arabic"] {
  --primary: #1a4b8f; --primary-dark: #12345f; --primary-deep: #0c2340;
  --primary-light: #2f6fd0; --primary-soft: rgba(26, 75, 143, 0.08);
  --primary-glow: rgba(26, 75, 143, 0.28);
  --hero-grad-1: #2059a8; --hero-grad-2: #0c2340;
}
[data-theme="nizami"] {
  --primary: #7a2e2e; --primary-dark: #571f1f; --primary-deep: #3c1414;
  --primary-light: #a84444; --primary-soft: rgba(122, 46, 46, 0.08);
  --primary-glow: rgba(122, 46, 46, 0.28);
  --hero-grad-1: #8c3838; --hero-grad-2: #3c1414;
}
[data-theme="hub"] {
  --primary: #0a6e4f; --primary-dark: #074f39; --primary-deep: #043526;
  --primary-light: #12a173; --primary-soft: rgba(10, 110, 79, 0.08);
  --primary-glow: rgba(10, 110, 79, 0.28);
  --hero-grad-1: #0c7f5c; --hero-grad-2: #043526;
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.ar { font-family: var(--font-ar); direction: rtl; }
::selection { background: var(--gold-soft); }

/* ---------- 4. LAYOUT ---------- */
.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #eef3ef; }
.section--dark .section-sub { color: #b9c6bf; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dark); background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 8px 18px; border-radius: var(--r-full); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px); line-height: 1.2;
  margin: 0 0 14px; color: var(--ink);
}
.section--dark .section-title { color: #fff; }
.section-title .hl { color: var(--primary); position: relative; white-space: nowrap; }
.section-title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
  background: var(--gold-soft); z-index: -1; border-radius: 4px;
}
.section-sub { font-size: clamp(15px, 2vw, 18px); color: var(--muted); margin: 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.2;
  border-radius: var(--r-full); border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur);
  text-align: center; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
  color: var(--on-primary);
  box-shadow: 0 10px 26px var(--primary-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px var(--primary-glow); color: var(--on-primary); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #231a03; box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201,162,39,0.5); color: #231a03; }
.btn--secondary {
  background: var(--white); color: var(--primary);
  border-color: var(--primary); box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--primary-soft); transform: translateY(-3px); color: var(--primary-dark); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
.btn--whatsapp:hover { background: var(--wa-dark); transform: translateY(-3px); color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.22); color: #fff; transform: translateY(-3px); }
.btn--lg { min-height: 60px; padding: 17px 40px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .btn-icon { font-size: 1.25em; line-height: 1; }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 6px 16px var(--primary-glow);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: none; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-soft); position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--gold); border-radius: 2px; transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 22px; color: var(--ink);
}
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 4% 20px; background: var(--white); border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 12px; font-weight: 600; font-size: 16px; color: var(--ink-soft); border-radius: var(--r-sm); }
.nav-mobile a:hover, .nav-mobile a:active { background: var(--primary-soft); color: var(--primary); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--hero-grad-1), var(--hero-grad-2));
  padding: 84px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(201,162,39,0.22), transparent 60%),
    radial-gradient(500px 400px at 5% 90%, rgba(255,255,255,0.06), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 840px; margin: 0 auto; }
.hero-ar {
  font-family: var(--font-ar); font-size: clamp(30px, 6vw, 52px);
  color: var(--gold-light); margin: 0 0 10px; text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 5.5vw, 56px); line-height: 1.15; margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero-title .gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 2.2vw, 19px); color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.85); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .tick {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(201,162,39,0.25); border: 1px solid var(--gold); font-size: 12px; color: var(--gold-light);
}

/* ---------- 8. TRUST BADGES ROW ---------- */
.trust-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--shadow-md); margin-top: -58px; position: relative; z-index: 2;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-ic {
  width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 26px;
  background: var(--primary-soft); border: 1px solid var(--line);
}
.trust-item b { display: block; font-family: var(--font-head); font-size: 15px; }
.trust-item small { color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0; transition: opacity var(--dur);
}
.card:hover::before { opacity: 1; }
.card-ic {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  font-size: 32px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 8px 20px var(--primary-glow);
}
.card h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Feature list card (course includes) */
.tick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.tick-list .t {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); margin-top: 1px;
}

/* ---------- 10. PRICING ---------- */
.pricing-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 30px; text-align: center; position: relative;
  display: flex; flex-direction: column; gap: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--gold); box-shadow: var(--shadow-gold); transform: scale(1.02);
  background: linear-gradient(180deg, #fffdf6, var(--white) 40%);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-8px); }
.pricing-flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #231a03; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 22px; border-radius: var(--r-full); white-space: nowrap; box-shadow: var(--shadow-gold);
}
.pricing-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 6px 0 4px; }
.pricing-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.pricing-price { font-family: var(--font-head); font-weight: 800; font-size: 46px; color: var(--primary); line-height: 1; }
.pricing-price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.pricing-per { font-size: 13px; color: var(--muted); margin: 6px 0 22px; }
.pricing-feats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; text-align: left; }
.pricing-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.pricing-feats .t { color: var(--primary); font-weight: 800; }
.pricing-card .btn { margin-top: auto; }

/* ---------- 11. TESTIMONIALS ---------- */
.testi-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.testi-track { overflow: hidden; border-radius: var(--r-lg); }
.testi-slide { display: none; animation: testiIn 0.6s var(--ease); }
.testi-slide.active { display: block; }
@keyframes testiIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px 36px; box-shadow: var(--shadow-md); text-align: center;
}
.testi-stars { color: var(--gold); font-size: 22px; letter-spacing: 4px; margin-bottom: 16px; }
.testi-text { font-size: clamp(16px, 2.4vw, 20px); font-style: italic; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.7; }
.testi-who { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-av {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}
.testi-who b { display: block; font-size: 16px; }
.testi-who small { color: var(--muted); font-size: 13px; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.testi-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 20px; color: var(--primary);
  display: grid; place-items: center; transition: all var(--dur) var(--ease);
}
.testi-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: all var(--dur); min-width: 10px; min-height: 10px; }
.testi-dot.active { background: var(--gold); transform: scale(1.35); }

/* ---------- 12. FAQ ACCORDION ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow var(--dur), border-color var(--dur);
}
.faq-item.open { border-color: var(--gold); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 18px 22px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); text-align: left;
}
.faq-q .fi {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 400; color: var(--primary);
  background: var(--primary-soft); transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur);
}
.faq-item.open .fi { transform: rotate(45deg); background: var(--gold); color: #231a03; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); font-size: 15px; }

/* ---------- 13. FORMS ---------- */
.lead-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px 34px; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.lead-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.form-title { font-family: var(--font-head); font-size: 24px; margin: 0 0 6px; text-align: center; }
.form-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink-soft); }
.form-control {
  width: 100%; min-height: 54px; padding: 14px 18px; font-size: 16px; font-family: var(--font-body);
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
  color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  appearance: none;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b7a71' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px;
}
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-control::placeholder { color: #9aa7a0; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.form-note b { color: var(--primary); }

/* ---------- 14. STATS / COUNTERS ---------- */
.stats-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep)); border-radius: var(--r-lg); padding: 48px 32px; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; text-align: center; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5vw, 52px); color: var(--gold-light); line-height: 1; }
.stat-num .suffix { font-size: 0.65em; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 8px; }

/* ---------- 15. COUNTDOWN ---------- */
.countdown { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cd-cell {
  min-width: 84px; padding: 18px 10px; text-align: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(201,162,39,0.45);
  border-radius: var(--r-md); backdrop-filter: blur(6px);
}
.cd-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 42px); color: var(--gold-light); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 6px; }
.countdown--light .cd-cell { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.countdown--light .cd-num { color: var(--primary); }
.countdown--light .cd-lbl { color: var(--muted); }

/* ---------- 16. CTA BAND ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--hero-grad-1), var(--hero-grad-2));
  padding: 56px 32px; text-align: center; color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, rgba(201,162,39,0.25), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(24px, 4vw, 38px); margin: 0 0 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-band .hero-ctas { margin-bottom: 0; position: relative; }

/* ---------- 17. FOOTER ---------- */
.site-footer { background: var(--dark); color: #c8d2cc; padding: 64px 0 0; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #8a978f; }
.footer-brand p { font-size: 14px; color: #8a978f; margin: 16px 0 0; max-width: 300px; }
.footer-h { font-family: var(--font-head); font-size: 16px; color: #fff; margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: #a9b6af; font-size: 14px; transition: color var(--dur), padding-left var(--dur); }
.footer-links a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.4);
  color: #7ce8a4; font-weight: 600; padding: 12px 22px; border-radius: var(--r-full);
  min-height: 48px; transition: background var(--dur);
}
.footer-wa:hover { background: rgba(37,211,102,0.25); color: #a5f3c0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  font-size: 13px; color: #7d8a83;
}

/* ---------- 18. FLOATING UI: back-to-top + sticky mobile CTA ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); color: #fff; font-size: 22px;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 290;
  display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(14,21,18,0.12);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 52px; padding: 12px 10px; font-size: 15px; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- 19. SCROLL REVEAL ---------- */
/* Only applied when JS is present (html.js added by features.js) — no-JS fallback stays visible. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal--left { transform: translateX(-36px); }
html.js .reveal--right { transform: translateX(36px); }
html.js .reveal--zoom { transform: scale(0.94); }
html.js .reveal.in.reveal--left,
html.js .reveal.in.reveal--right,
html.js .reveal.in.reveal--zoom { transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.3s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- 20. MISC ---------- */
.divider-ar { text-align: center; font-family: var(--font-ar); font-size: 28px; color: var(--gold); margin: 8px 0 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary); border-radius: var(--r-full); padding: 8px 18px;
}
.pill--gold { background: var(--gold-soft); color: var(--gold-dark); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }

/* Dark hero wave divider helper */
.wave-sep { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

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

/* ==========================================================================
   22. PREMIUM LAYER — Islamic luxury aesthetic
   Added 2026-10-20: Marcellus display font, rich gradients, arch frames,
   gold dividers, AI-generated photographic hero backgrounds.
   Updated 2026-10-20: SVG geometric patterns removed (readability) —
   heroes now use dark photographic backgrounds with theme overlays.
   Applies to all 5 themes.
   ========================================================================== */

/* ---------- 22a. Display font token (Marcellus loaded via Google Fonts in <head>) ---------- */
:root {
  --font-display: "Marcellus", "Poppins", "Inter", system-ui, serif;
  --gold-gradient: linear-gradient(120deg, #f3dd9a 0%, var(--gold-light) 25%, var(--gold) 55%, var(--gold-dark) 100%);
}

/* ---------- 22b. Display typography ---------- */
.hero-title, .section-title, .cta-band h2, .form-title, .pricing-name {
  font-family: var(--font-display);
  letter-spacing: 0.4px;
}
.hero-title { line-height: 1.18; text-wrap: balance; }
.section-title { line-height: 1.25; text-wrap: balance; font-weight: 400; }
.section-title .hl {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title .hl::after { display: none; }
.card h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.3px; }

/* ---------- 22c. Hero — photographic background + dark theme overlay ---------- */
/* Each theme gets its own AI-generated Islamic hero image (shared/images/).
   A heavy dark gradient overlay guarantees white/gold text readability. */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
[data-theme="hifz"] .hero {
  background-image:
    linear-gradient(160deg, rgba(5,42,23,0.94) 0%, rgba(8,61,34,0.89) 55%, rgba(5,42,23,0.95) 100%),
    url("images/hero-hifz.jpg");
}
[data-theme="recite"] .hero {
  background-image:
    linear-gradient(160deg, rgba(5,51,51,0.94) 0%, rgba(8,76,76,0.89) 55%, rgba(5,51,51,0.95) 100%),
    url("images/hero-tajweed.jpg");
}
[data-theme="arabic"] .hero {
  background-image:
    linear-gradient(160deg, rgba(12,35,64,0.94) 0%, rgba(18,52,95,0.89) 55%, rgba(12,35,64,0.95) 100%),
    url("images/hero-arabi.jpg");
}
[data-theme="nizami"] .hero {
  background-image:
    linear-gradient(160deg, rgba(60,20,20,0.94) 0%, rgba(87,31,31,0.89) 55%, rgba(60,20,20,0.95) 100%),
    url("images/hero-alim.jpg");
}
[data-theme="hub"] .hero {
  background-image:
    linear-gradient(160deg, rgba(4,53,38,0.94) 0%, rgba(7,79,57,0.89) 55%, rgba(4,53,38,0.95) 100%),
    url("images/hero-hub.jpg");
}
.hero::before {
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(201,162,39,0.22), transparent 60%),
    radial-gradient(500px 400px at 5% 90%, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0.9;
}
/* soft top sheen */
.hero-inner::before {
  content: ""; position: absolute; top: -84px; left: 50%; transform: translateX(-50%);
  width: min(720px, 90%); height: 200px; pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(232,199,102,0.16), transparent 70%);
}

/* ---------- 22d. Islamic arch frame around Bismillah ---------- */
.hero-ar-frame {
  display: inline-block; position: relative;
  padding: 22px 54px 18px; margin-bottom: 26px;
  border: 1.5px solid rgba(201,162,39,0.55);
  border-radius: 130px 130px 22px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.08));
  box-shadow: inset 0 0 0 6px rgba(201,162,39,0.10), 0 10px 40px rgba(0,0,0,0.25);
}
.hero-ar-frame::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(232,199,102,0.35);
  border-radius: 122px 122px 16px 16px; pointer-events: none;
}
.hero-ar-frame .hero-ar { margin: 0; }
.hero-ar {
  font-size: clamp(34px, 6.5vw, 56px);
  background: linear-gradient(175deg, #fdf6dd 20%, var(--gold-light) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,0.4));
  line-height: 1.5; padding: 0.1em 0;
}

/* ---------- 22e. Premium buttons — richer gradients + sheen sweep ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%);
  box-shadow: 0 12px 28px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--gold {
  background: linear-gradient(135deg, #f3dd9a 0%, var(--gold-light) 30%, var(--gold) 65%, var(--gold-dark) 100%);
  box-shadow: 0 12px 30px rgba(201,162,39,0.45), inset 0 1px 0 rgba(255,255,255,0.55);
  border: 1px solid rgba(154,122,28,0.4);
}
.btn--whatsapp {
  background: linear-gradient(135deg, #2fe07a 0%, var(--wa) 55%, var(--wa-dark) 100%);
  box-shadow: 0 12px 28px rgba(37,211,102,0.42), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--secondary {
  border: 1.5px solid var(--primary);
  background: linear-gradient(180deg, #ffffff, #f4f8f5);
}

/* ---------- 22f. Gold gradient dividers ---------- */
.gold-divider {
  width: 96px; height: 3px; margin: 0 auto 26px; border: 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light) 20%, var(--gold) 50%, var(--gold-light) 80%, transparent);
}
.gold-divider--left { margin-left: 0; }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------- 22g. Premium cards — gold glow hover ---------- */
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(14,21,18,0.14), 0 0 0 1.5px rgba(201,162,39,0.55), 0 8px 28px rgba(201,162,39,0.18);
  border-color: rgba(201,162,39,0.55);
}
.card::before { height: 5px; background: var(--gold-gradient); }

/* ---------- 22h. Eyebrow — premium pill ---------- */
.eyebrow {
  background: linear-gradient(180deg, rgba(201,162,39,0.16), rgba(201,162,39,0.08));
  border: 1px solid rgba(201,162,39,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 14px rgba(201,162,39,0.12);
  letter-spacing: 3px;
}

/* ---------- 22i. Section backgrounds — clean gradient rhythm ---------- */
.section--alt {
  background: linear-gradient(180deg, var(--bg-alt), #ecefec);
}
.section--dark {
  background: linear-gradient(150deg, var(--dark-2), var(--dark));
}
.stats-band {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-deep) 100%);
  border: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 24px 60px rgba(14,21,18,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}
.cta-band {
  background: linear-gradient(150deg, var(--hero-grad-1) 0%, var(--primary-dark) 55%, var(--hero-grad-2) 100%);
  border: 1px solid rgba(201,162,39,0.4);
  box-shadow: 0 24px 60px rgba(14,21,18,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ---------- 22j. Trust row — elevated premium ---------- */
.trust-row {
  border: 1px solid rgba(201,162,39,0.3);
  background: linear-gradient(180deg, #ffffff, #fafbf9);
  box-shadow: 0 20px 50px rgba(14,21,18,0.12), 0 4px 16px rgba(201,162,39,0.08);
}
.trust-ic {
  background: linear-gradient(135deg, var(--primary-soft), rgba(201,162,39,0.14));
  border: 1px solid rgba(201,162,39,0.35);
}

/* ---------- 22k. Pricing — featured card luxury ---------- */
.pricing-card.featured {
  background: linear-gradient(180deg, #fffdf4 0%, #ffffff 45%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 24px 60px rgba(201,162,39,0.25), 0 12px 32px rgba(14,21,18,0.1);
}
.pricing-price {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 22l. FAQ — refined ---------- */
.faq-item.open {
  border-color: rgba(201,162,39,0.6);
  box-shadow: 0 12px 32px rgba(14,21,18,0.08), 0 0 0 1px rgba(201,162,39,0.25);
}
.faq-q { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.3px; }

/* ---------- 22m. Footer — gold top border ---------- */
.site-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent) 1;
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
}

/* ---------- 22n. Lead form — premium ---------- */
.lead-form {
  border: 1px solid rgba(201,162,39,0.35);
  box-shadow: 0 28px 70px rgba(14,21,18,0.16), 0 8px 24px rgba(201,162,39,0.1);
}
.lead-form::before { height: 6px; background: var(--gold-gradient); }

/* ---------- 22o. Reveal — enhanced with subtle scale + stagger ---------- */
html.js .reveal { transform: translateY(32px) scale(0.985); }
html.js .reveal.in { transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
html.js .reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- 22p. Countdown — premium cells ---------- */
.cd-cell {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(201,162,39,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 28px rgba(0,0,0,0.25);
}
.cd-num {
  background: linear-gradient(175deg, #fdf6dd 15%, var(--gold-light) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 22q. Header brand mark — richer ---------- */
.brand-mark {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #231a03;
  box-shadow: 0 8px 20px rgba(201,162,39,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ---------- 22r. Mobile refinements ---------- */
@media (max-width: 480px) {
  .hero { padding: 64px 0 88px; }
  .hero-ar-frame { padding: 16px 34px 12px; border-radius: 100px 100px 18px 18px; }
  .hero-ar-frame::before { border-radius: 92px 92px 13px 13px; }
  .hero-title { font-size: clamp(27px, 7.4vw, 34px); }
  .hero-sub { font-size: 15.5px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- 22s. Touch target hardening (44px minimum) ---------- */
.footer-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 6px 10px 0;
}
.footer-links { gap: 2px; }
/* Quiz + misc buttons */
.quiz-restart, .quiz-back { min-height: 44px; }
.testi-dot { position: relative; }
.testi-dot::after {
  content: ""; position: absolute; inset: -17px;
}

/* ---------- 22t. Remaining touch target fixes ---------- */
/* Footer links: full-width rows for easy tapping */
.footer-links a {
  display: flex; align-items: center;
  min-height: 44px; min-width: 44px;
  padding: 10px 12px 10px 0;
}
/* Quiz buttons: ensure 44px+ */
.quiz-restart, .quiz-back {
  min-height: 46px !important;
  box-sizing: border-box;
}
/* Card "learn more" links: make them proper pill buttons */
.card .card-link, a.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; margin-top: 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--primary); color: var(--primary);
  font-weight: 600; font-size: 15px;
  transition: all var(--dur) var(--ease);
}
.card .card-link:hover, a.card-link:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}
