/* =========================================================
   FREE QURAN ACADEMY — STYLESHEET
   Author: FQA Team   |   Vanilla CSS, no frameworks
   Edit colors / fonts in :root variables below
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --teal: #0F4C3A;
  --teal-dark: #0a3528;
  --teal-soft: #e8f0ec;
  --gold: #C9A84C;
  --gold-soft: #f6efd9;
  --bg: #FAFAF8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #555;
  --line: #e6e3da;

  /* Typography */
  --font-arabic: "Amiri", "Scheherazade New", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (mobile-first, big & legible) */
  --fs-base: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;        /* 20px */
  --fs-xl: 1.5rem;         /* 24px */
  --fs-h3: 1.75rem;        /* 28px */
  --fs-h2: 2.25rem;        /* 36px */
  --fs-h1: 3rem;           /* 48px */
  --fs-hero: 3.5rem;       /* 56px */

  /* Layout */
  --maxw: 1180px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(15, 76, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 76, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 76, 58, 0.12);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  color: var(--teal);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1em; color: var(--ink-muted); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip-to-content for screen readers */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: .75rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(100% - 2*var(--gutter), var(--maxw));
  margin-inline: auto;
}
section { padding: 5rem 0; }
.section-narrow { padding: 3.5rem 0; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .9rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { font-size: var(--fs-lg); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 8px 20px rgba(15,76,58,.25);
}
.btn-primary:hover {
  background: var(--teal-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,76,58,.32);
}
.btn-ghost {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-gold {
  background: var(--gold); color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(201,168,76,.3);
}
.btn-gold:hover { background: #b8973e; color: #1a1a1a; transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 248, 0.95);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; color: var(--teal);
  font-size: 1.15rem;
}
.logo svg { width: 38px; height: 38px; }
.logo-text { line-height: 1; }
.logo-text small { display:block; color: var(--gold); font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-top:2px; }

.nav-links {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); font-weight: 600; padding: .25rem 0;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--teal); }

.nav-cta { display: inline-flex; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--teal);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--surface);
    padding: 1rem 1.5rem 2rem;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display:block; padding: 1rem 0; font-size: 1.1rem; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, var(--fs-hero));
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  flex-wrap: wrap;
}
.trust-item strong {
  display: block;
  font-size: 2rem; color: var(--teal); line-height: 1;
}
.trust-item span { font-size: .95rem; color: var(--ink-muted); }

.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-art .arabic-display {
  font-family: var(--font-arabic);
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--teal);
  text-align: center;
  line-height: 1.2;
  direction: rtl;
  font-weight: 700;
}
.hero-art .arabic-translit {
  font-size: 1rem; color: var(--gold); font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  margin-top: 1rem;
  text-align: center;
}
.hero-decor {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, var(--gold-soft) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, var(--teal-soft) 0%, transparent 50%);
  z-index: -1;
  border-radius: 50%;
}

/* Photo hero card */
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15,76,58,.18), 0 10px 24px rgba(15,76,58,.10);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.hero-photo:hover img { transform: scale(1.03); }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(to top, rgba(15,76,58,.45), transparent);
  pointer-events: none;
}
.hero-photo-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: .65rem 1rem; border-radius: 14px;
  font-weight: 700; color: var(--teal);
  font-size: .95rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.hero-photo-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #25D366; box-shadow: 0 0 0 4px rgba(37,211,102,.25);
}
@media (max-width: 880px) {
  .hero-photo { aspect-ratio: 4/5; max-width: 420px; margin: 0 auto; }
}

/* Image+text two-column section */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
  position: relative;
}
.split-image img { width:100%; height:100%; object-fit: cover; display:block; }
.split-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,76,58,.0), rgba(15,76,58,.15));
  z-index: 1; pointer-events: none;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-image { max-width: 460px; margin: 0 auto; aspect-ratio: 4/3; }
}

/* Sub-page hero with photo background */
.page-hero-photo {
  position: relative;
  padding: 6rem 0 5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: var(--bg-image);
  z-index: -2;
}
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,76,58,.55) 0%, rgba(15,76,58,.85) 100%);
  z-index: -1;
}
.page-hero-photo h1 { color: #fff; }
.page-hero-photo p { color: rgba(255,255,255,.9); font-size: var(--fs-lg); max-width: 640px; margin: 0 auto; }
.page-hero-photo .eyebrow { color: var(--gold); }
.page-hero-photo .arabic-mini { color: var(--gold); margin-bottom: .5rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { aspect-ratio: auto; min-height: 240px; }
}

/* ---------- 7. Feature highlights ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--teal-soft); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.feature-card p { margin: 0; }

@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- 8. How It Works ---------- */
.bg-soft { background: var(--surface); border-block: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
  list-style: none; padding: 0; margin: 0;
}
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  background: var(--bg); padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--line);
}
.step-num {
  width: 76px; height: 76px;
  background: var(--teal); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  margin: 0 auto 1.2rem;
  box-shadow: 0 8px 20px rgba(15,76,58,.25);
}
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { margin: 0; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* ---------- 9. Testimonials ---------- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.t-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.t-card blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  padding-left: 1.5rem;
}
.t-card blockquote::before {
  content: "\201C";
  position: absolute; left: 0; top: -.4rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.t-meta { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.t-meta strong { display: block; color: var(--ink); }
.t-meta span { font-size: .9rem; color: var(--ink-muted); }
.stars { color: var(--gold); letter-spacing: 2px; }

@media (max-width: 880px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---------- 10. Big CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-band::before {
  content: "ﷲ";
  position: absolute;
  font-family: var(--font-arabic);
  font-size: 16rem;
  color: rgba(201,168,76,.08);
  top: -3rem; right: -2rem;
  pointer-events: none;
}

/* ---------- 11. Course cards ---------- */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-tag {
  display: inline-block;
  background: var(--gold-soft); color: #8b6f1c;
  font-size: .8rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 99px;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.course-arabic {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--gold);
  direction: rtl;
  text-align: right;
  line-height: 1;
  margin-bottom: .5rem;
}
.course-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.course-card ul {
  list-style: none; padding: 0; margin: 1rem 0 1.5rem;
  font-size: 1rem;
}
.course-card ul li {
  padding: .35rem 0 .35rem 1.5rem;
  position: relative;
  color: var(--ink-muted);
}
.course-card ul li::before {
  content: "✓";
  position: absolute; left: 0; top: .3rem;
  color: var(--gold); font-weight: 800;
}
.course-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 12. About / Teachers ---------- */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.value {
  background: var(--surface); border: 1px solid var(--line);
  padding: 2rem; border-radius: var(--radius-lg);
}
.value h3 { font-size: 1.25rem; }
.teachers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.teacher {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
}
.teacher-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-soft), var(--gold-soft));
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  margin: 0 auto 1rem;
  font-family: var(--font-arabic);
}
.teacher h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.teacher .role { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.teacher p { font-size: .98rem; }

@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- 13. Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  align-items: start;
}
.contact-info { display: grid; gap: 1.2rem; }
.contact-item {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
  display: flex; gap: 1rem; align-items: flex-start;
}
.contact-item .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.contact-item p, .contact-item a { margin: 0; font-size: 1rem; color: var(--ink-muted); }
.contact-item a { color: var(--teal); font-weight: 700; }

form.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row label {
  display: block; font-weight: 700; color: var(--teal);
  margin-bottom: .35rem; font-size: .95rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color .25s, background .25s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--gold); background: #fff;
}
.form-row textarea { resize: vertical; min-height: 130px; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}

/* ---------- 14. Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 60px; height: 60px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.4);
  z-index: 95;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: wa-pulse 2.4s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); color:#fff; }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  50%      { box-shadow: 0 12px 28px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.78);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,.7); margin: 1rem 0; max-width: 320px; }
.footer-brand .logo, .footer-brand .logo-text { color:#fff; }
.footer-brand .logo-text small { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .9rem;
}
.footer-arabic { font-family: var(--font-arabic); color: var(--gold); font-size: 1.4rem; direction: rtl; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 16. Scroll-reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

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

/* ---------- 17. Sub-page hero (smaller) ---------- */
.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-hero .arabic-mini {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: .5rem;
  direction: rtl;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-hero p { font-size: var(--fs-lg); max-width: 640px; margin: 0 auto; }

/* ---------- 18. Tiny utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.success-msg {
  background: var(--teal-soft); color: var(--teal);
  padding: 1rem 1.25rem; border-radius: 10px;
  border-left: 4px solid var(--teal);
  font-weight: 700;
}

/* ===================== HERO MICROLINK ===================== */
.hero-microlink {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem;
  font-size: .92rem; font-weight: 600;
  color: var(--gold-dark, #8a6f1f);
  text-decoration: none;
  border-bottom: 1px dashed rgba(201,168,76,.45);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-microlink:hover {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateX(2px);
}

/* ===================== FOR KIDS SECTION (HOME) ===================== */
.kids-section {
  background:
    radial-gradient(1100px 480px at 85% 0%, rgba(201,168,76,.10), transparent 60%),
    radial-gradient(900px 420px at 0% 100%, rgba(15,76,58,.08), transparent 60%),
    var(--soft-white, #FAFAF8);
  padding: 5rem 0 5.5rem;
  position: relative;
}
.kids-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.kids-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(15,76,58,.35), 0 8px 20px -10px rgba(15,76,58,.18);
  aspect-ratio: 4 / 3;
  background: var(--teal);
}
.kids-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s ease;
}
.kids-image:hover img { transform: scale(1.03); }
.kids-image-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(15,76,58,.92); color: var(--soft-white, #FAFAF8);
  padding: .55rem 1rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.kids-pills {
  list-style: none; padding: 0; margin: 1.5rem 0 1.75rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1rem;
}
.kids-pills li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .98rem; line-height: 1.45;
  color: var(--ink, #1c2624);
}
.kids-pills li span {
  flex: 0 0 22px; height: 22px; width: 22px;
  background: var(--teal); color: var(--soft-white, #FAFAF8);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; margin-top: 2px;
}
.kids-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===================== KIDS FLAGSHIP (COURSES PAGE) ===================== */
.kids-feature-section { padding-bottom: 1rem; }
.kids-feature {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fcf9f0 100%);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15,76,58,.3), 0 6px 18px -8px rgba(15,76,58,.12);
}
.kids-feature-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--teal);
  overflow: hidden;
}
.kids-feature-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.kids-feature-body {
  padding: 2.5rem 2.75rem;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
}
.kids-feature-body > * { max-width: 100%; }
.kids-feature-body .course-tag-gold {
  align-self: flex-start;
  width: auto;
  margin-bottom: 1rem;
}
.kids-feature-body h2 {
  margin: .25rem 0 .9rem;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.15;
}
.kids-feature-body .course-arabic {
  font-size: 1.6rem; color: var(--gold-dark, #8a6f1f); margin-bottom: .35rem;
}
.course-tag-gold {
  background: linear-gradient(135deg, #f3e0a3 0%, #e2c46f 100%) !important;
  color: #5b4612 !important;
  border: 1px solid rgba(201,168,76,.5);
  font-weight: 700;
  letter-spacing: .02em;
}
.kids-feature-points {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem;
  display: grid; gap: .55rem;
}
.kids-feature-points li {
  position: relative; padding-left: 1.4rem;
  font-size: .98rem; line-height: 1.5;
  color: var(--ink, #1c2624);
}
.kids-feature-points li::before {
  content: "•";
  position: absolute; left: .25rem; top: -2px;
  color: var(--gold, #C9A84C);
  font-size: 1.4rem; font-weight: 700;
}
.kids-feature-points li strong { color: var(--teal); }
.kids-feature-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===================== KIDS — RESPONSIVE ===================== */
@media (max-width: 880px) {
  .kids-section { padding: 3.5rem 0; }
  .kids-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kids-pills { grid-template-columns: 1fr; }

  .kids-feature { grid-template-columns: 1fr; }
  .kids-feature-image { aspect-ratio: 16 / 10; }
  .kids-feature-body { padding: 1.75rem 1.5rem 2rem; }
}

/* Anchor scroll offset for sticky nav */
#for-kids, #kids { scroll-margin-top: 90px; }

/* ===================== IQRA BAR ===================== */
.iqra-bar {
  position: relative;
  background:
    radial-gradient(420px 90px at 50% 50%, rgba(201,168,76,.22), transparent 70%),
    linear-gradient(180deg, #fbf7eb 0%, #faf6e6 60%, #f8f1d8 100%);
  border-bottom: 1px solid rgba(201,168,76,.32);
  padding: 1.05rem 1rem .95rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.iqra-bar::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 140px at 50% 120%, rgba(255,224,140,.55), transparent 65%);
  opacity: .6; z-index: -1;
  filter: blur(14px);
}
.iqra-inner {
  display: inline-flex; align-items: center; gap: 1.1rem;
}
.iqra-word {
  font-family: var(--font-arabic, "Amiri", "Scheherazade New", serif);
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #8a6f1f;
  background: linear-gradient(180deg, #d4af3d 0%, #b78f2c 50%, #d4af3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 22px rgba(255, 215, 130, .55),
    0 0 40px rgba(201, 168, 76, .35);
  line-height: 1; letter-spacing: 0;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.3));
}
.iqra-orn {
  display: inline-block;
  width: 56px; height: 10px;
  color: rgba(201,168,76,.55);
}
.iqra-orn svg { width: 100%; height: 100%; display: block; }
.iqra-translit {
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .35em;
  color: rgba(138, 111, 31, .85);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .iqra-bar { padding: .85rem .75rem .75rem; }
  .iqra-orn { width: 36px; }
  .iqra-inner { gap: .75rem; }
  .iqra-translit { font-size: .62rem; letter-spacing: .3em; }
}

/* ===================== FOOTER AYAH ===================== */
.footer-ayah {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(201,168,76,.22);
}
.footer-arabic {
  font-family: var(--font-arabic, "Amiri", serif);
  font-size: 1.4rem;
  line-height: 1.9;
  color: #e9d59a !important;
  margin: 0 0 .55rem !important;
  text-align: center;
  letter-spacing: 0;
}
.footer-ayah-translation {
  font-size: .82rem;
  font-style: italic;
  color: rgba(250, 250, 248, .7);
  text-align: center;
  line-height: 1.55;
  margin: 0 !important;
}
.footer-ayah-ref {
  display: block;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(201, 168, 76, .8);
  margin-top: .25rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===================== NAV CTA GLOW (Start Free Today) ===================== */
.nav-cta-glow {
  position: relative;
  background: linear-gradient(135deg, #0F4C3A 0%, #146952 60%, #0F4C3A 100%) !important;
  box-shadow:
    0 0 0 0 rgba(201, 168, 76, .55),
    0 6px 20px -6px rgba(15, 76, 58, .45),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  border: 1px solid rgba(201, 168, 76, .55) !important;
  overflow: hidden;
  animation: navCtaPulse 2.6s ease-in-out infinite;
}
.nav-cta-glow::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg,
    transparent 20%,
    rgba(255, 224, 140, .35) 50%,
    transparent 80%);
  transform: skewX(-22deg);
  animation: navCtaShine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.nav-cta-glow:hover {
  animation: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, .25),
    0 10px 28px -8px rgba(15, 76, 58, .55);
}
.nav-cta-spark { display: none; } /* reserved for future use */

@keyframes navCtaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(201, 168, 76, .45),
      0 6px 20px -6px rgba(15, 76, 58, .45);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(201, 168, 76, 0),
      0 6px 24px -4px rgba(15, 76, 58, .55);
  }
}
@keyframes navCtaShine {
  0%, 65%, 100% { left: -120%; }
  82% { left: 140%; }
}

/* Reduced motion: kill the pulse + shine */
@media (prefers-reduced-motion: reduce) {
  .nav-cta-glow { animation: none; }
  .nav-cta-glow::before { animation: none; opacity: 0; }
}
