/* ==========================================================================
   Lughah — lughah.com.my
   Shared stylesheet for all pages.
   Palette: cream, deep green, warm gold, charcoal.
   Mobile-first. No build tools required.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --cream:        #F8F3E7;   /* page background */
  --cream-soft:   #FDFBF4;   /* card background */
  --cream-deep:   #EFE7D2;   /* alt section band */
  --line:         #E3DBC5;   /* hairline borders */
  --line-strong:  #D3C9AB;

  --green:        #1E4D3B;   /* primary */
  --green-hover:  #173D2F;
  --green-deep:   #12352A;   /* dark sections */
  --green-footer: #0F2C22;
  --green-tint:   #E5EDE6;

  --gold:         #C49A45;   /* buttons, accents */
  --gold-hover:   #B0873A;
  --gold-ink:     #8F6E2B;   /* gold as small text on cream (AA) */
  --gold-bright:  #D9B96A;   /* gold on dark green */
  --gold-tint:    #F3E9CE;

  --ink:          #26251E;   /* charcoal text */
  --ink-soft:     #5C594B;   /* muted text */
  --on-dark:      #F3EEDF;
  --on-dark-soft: #C9CDB9;

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-arabic:  'Amiri', serif;

  /* Shape & shadow */
  --radius:    20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 43, 33, .05), 0 2px 8px rgba(18, 43, 33, .04);
  --shadow-md: 0 2px 6px rgba(18, 43, 33, .06), 0 14px 34px rgba(18, 43, 33, .10);

  --header-h: 72px;
}

/* ---------- 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: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

a { color: var(--green); text-decoration-color: rgba(30, 77, 59, .35); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }

::selection { background: var(--gold-tint); color: var(--ink); }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

/* Arabic accents */
.arabic {
  font-family: var(--font-arabic);
  font-weight: 400;
  direction: rtl;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--green);
  color: var(--cream-soft);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--cream-soft); }

/* Eyebrow label above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold-bright); }

/* Eight-pointed star (two rotated squares — a quiet Islamic-geometry nod) */
.star8 {
  position: relative;
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--gold);
  flex: none;
}
.star8::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform: rotate(45deg);
}
.section--dark .star8 { background: var(--gold-bright); }

/* Small pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream-soft);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge--gold { background: var(--gold); color: var(--ink); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn--green { background: var(--green); color: var(--cream-soft); }
.btn--green:hover { background: var(--green-hover); color: var(--cream-soft); }

.btn--gold { background: var(--gold); color: #221D0F; }
.btn--gold:hover { background: var(--gold-hover); color: #221D0F; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--green);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.section--dark .btn--ghost {
  border-color: rgba(243, 238, 223, .35);
  color: var(--on-dark);
}
.section--dark .btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }

.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 231, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header::before {
  /* thin gold thread across the very top */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(18, 43, 33, .06);
}

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

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand-ar {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green);
}
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 14px 22px 22px;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px rgba(18, 43, 33, .08);
}
.nav__links.is-open { display: flex; }

.nav__link {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__link:hover { background: var(--cream-deep); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--green); background: var(--green-tint); }

.nav__cta { margin-top: 8px; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__link { padding: 10px 14px; }
  .nav__cta { margin: 0 0 0 10px; }
}

/* ---------- 6. Floating language toggle ---------- */
.float-lang {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--green-deep);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 44, 34, .35);
}
.float-lang__opt {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-soft);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.float-lang__opt:hover { color: var(--on-dark); }
.float-lang__opt.is-active {
  background: var(--gold);
  color: #221D0F;
}

/* ---------- 7. Hero (homepage) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(196, 154, 69, .14), transparent 62%),
    radial-gradient(760px 480px at -12% 108%, rgba(30, 77, 59, .10), transparent 60%),
    var(--cream);
}
.hero__calligraphy {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-54%);
  font-family: var(--font-arabic);
  font-size: clamp(240px, 34vw, 460px);
  line-height: 1;
  color: rgba(30, 77, 59, .06);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__kicker .arabic { font-size: 1.25rem; color: var(--green); }
.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.55rem);
  margin-bottom: 18px;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Featured teachers — the hero visual */
.hero__feature {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.teacher-feature {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(18, 53, 42, .14);
  border-radius: var(--radius);
  background: var(--green-deep);
  box-shadow: var(--shadow-md);
}
.teacher-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 44, 34, .78) 100%);
  pointer-events: none;
}
.teacher-feature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.teacher-feature__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: var(--cream-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}
.teacher-feature__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(253, 251, 244, .82);
}
.teacher-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
}

@media (max-width: 899px) {
  .hero {
    display: grid;
    min-height: calc(100svh - var(--header-h));
    padding: 0;
    background:
      linear-gradient(180deg, rgba(15, 44, 34, .52) 0%, rgba(15, 44, 34, .42) 38%, rgba(15, 44, 34, .82) 100%),
      url("assets/featured-teachers.png") center top / cover no-repeat,
      var(--green-deep);
  }
  .hero__calligraphy {
    top: 62%;
    right: -28%;
    color: rgba(253, 251, 244, .08);
  }
  .hero__inner {
    min-height: calc(100svh - var(--header-h));
    align-items: end;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .hero__content {
    max-width: 640px;
  }
  .hero__feature {
    display: none;
  }
  .hero__kicker,
  .hero__sub {
    color: rgba(253, 251, 244, .88);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
  }
  .hero__kicker .arabic {
    color: var(--gold-bright);
  }
  .hero__title {
    color: var(--cream-soft);
    text-shadow: 0 3px 24px rgba(0, 0, 0, .34);
  }
  .hero__meta .chip {
    background: rgba(253, 251, 244, .86);
    border-color: rgba(253, 251, 244, .42);
    color: var(--ink);
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .teacher-feature__caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero__inner {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 56px;
  }
  .hero__feature { justify-self: end; }
}

/* ---------- 8. Trust strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--cream-deep);
}
.strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
}
.strip__label { font-weight: 700; font-size: .95rem; display: block; }
.strip__sub { font-size: .84rem; color: var(--ink-soft); display: block; }

@media (min-width: 640px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
}
@media (min-width: 1000px) {
  .strip__grid { grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
}

/* ---------- 9. Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--cream-deep); border-block: 1px solid var(--line); }
.section--dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(217, 185, 106, .10), transparent 60%),
    var(--green-deep);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }
.section--dark a { color: var(--gold-bright); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.section__lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 0; }
.section--dark .section__lead { color: var(--on-dark-soft); }

@media (min-width: 900px) { .section { padding: 96px 0; } }

/* ---------- 10. Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px)  { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card__ar {
  display: block;
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--gold-ink);
  margin-bottom: 10px;
}

/* Track cards (homepage) */
.track-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  color: inherit;
}
.track-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.track-card__go {
  font-weight: 700;
  font-size: .9rem;
  color: var(--green);
}

/* Outcome checklists */
.outcomes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 10px;
}
.outcomes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
}
.outcomes .tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
}
.section--dark .outcomes .tick { background: rgba(217, 185, 106, .18); color: var(--gold-bright); }

/* ---------- 11. Level roadmap ---------- */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.roadmap__step {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 0 0 30px 0;
}
.roadmap__step::before {
  /* vertical connector on mobile */
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}
.roadmap__step:last-child::before { display: none; }
.roadmap__chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.roadmap__step--gold .roadmap__chip { background: var(--gold); color: #221D0F; }
.roadmap__body h3 { font-size: 1.15rem; margin-bottom: .2em; }
.roadmap__body p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

@media (min-width: 900px) {
  .roadmap {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .roadmap__step {
    flex-direction: column;
    gap: 14px;
    padding: 0;
  }
  .roadmap__step::before {
    left: 68px;
    right: -24px;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}
.roadmap__note {
  margin-top: 26px;
  font-size: .9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* ---------- 12. Tutor cards (dark section) ---------- */
.tutor-card {
  background: rgba(253, 251, 244, .05);
  border: 1px solid rgba(217, 185, 106, .28);
  border-radius: 150px 150px var(--radius) var(--radius); /* arch silhouette */
  padding: 48px 28px 30px;
  text-align: center;
}
.tutor-card__ar {
  font-family: var(--font-arabic);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 14px;
}
.tutor-card h3 { font-size: 1.35rem; margin-bottom: .3em; }
.tutor-card p { font-size: .93rem; margin-bottom: 0; }

.tutor-points {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tutor-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--on-dark-soft);
  font-size: .95rem;
}
.tutor-points strong { color: var(--on-dark); }

@media (min-width: 900px) {
  .tutor-points { grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
}

/* ---------- 13. Early-bird offer band ---------- */
.offer {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(196, 154, 69, .22), transparent 60%),
    var(--gold-tint);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 36px 28px;
  display: grid;
  gap: 26px;
}
.offer__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.offer__price {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--green);
}
.offer__price-note { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.offer__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.offer__points li { display: flex; gap: 12px; align-items: baseline; font-size: .95rem; }
.offer__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .offer { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px; }
}

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 1.1rem;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { color: var(--green); }
.faq__body { padding: 0 20px 20px; }
.faq__body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--green-footer);
  color: var(--on-dark-soft);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  gap: 36px;
  margin-bottom: 44px;
}
.footer__brand-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__brand-ar { font-size: 1.9rem; color: var(--gold-bright); line-height: 1; }
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--on-dark);
}
.footer__tagline { font-size: .95rem; max-width: 30em; }
.footer__heading {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 14px;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__links a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: .95rem;
}
.footer__links a:hover { color: var(--on-dark); text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid rgba(243, 238, 223, .14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .84rem;
}
.footer__bottom a { color: var(--on-dark-soft); }

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 24px; }
}

/* ---------- 16. Sub-page hero ---------- */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(196, 154, 69, .13), transparent 62%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero__title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .35em; }
.page-hero__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 38em; margin-bottom: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; }

/* ---------- 17. Programme cards (programmes.html) ---------- */
.prog-card {
  display: grid;
  gap: 8px;
  padding: 32px 28px;
}
.prog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.prog-card__ar {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-ink);
}
.prog-card h2 { font-size: 1.65rem; margin-bottom: .2em; }
.prog-card__who { color: var(--ink-soft); font-size: .98rem; }
.prog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.prog-card__label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 6px 0 10px;
}
.prog-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 900px) {
  .prog-card { padding: 40px; }
}

/* ---------- 18. Quiz ---------- */
.quiz-shell { max-width: 720px; margin-inline: auto; }
.quiz-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 26px 22px;
}
@media (min-width: 640px) { .quiz-card { padding: 38px; } }

.quiz__progress-text {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.quiz__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
  margin-bottom: 28px;
}
.quiz__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .3s ease;
}

.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
fieldset.quiz__fieldset { border: 0; padding: 0; margin: 0; }

.quiz__options { display: grid; gap: 10px; }
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  cursor: pointer;
  font-size: .97rem;
  font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease;
}
.option-card:hover { border-color: var(--line-strong); background: var(--cream-deep); }
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card__dot {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--cream-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.option-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint);
}
.option-card:has(input:checked) .option-card__dot {
  border-color: var(--green);
  box-shadow: inset 0 0 0 5px var(--green);
}
.option-card:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

/* Quiz result */
.result-card { text-align: left; }
.result-card__eyebrow { margin-bottom: 6px; }
.result-card__name { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 6px; }
.result-card__ar {
  font-family: var(--font-arabic);
  font-size: 1.7rem;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 10px;
}
.result-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.result-card__note {
  background: var(--gold-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: 20px;
}
.result-card__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.quiz__restart {
  margin-top: 18px;
  font-size: .88rem;
}
.quiz__restart button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 19. Pricing (early-bird.html) ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
}
.price-card h3 { font-size: 1.3rem; margin: 8px 0 2px; }
.price-card__who { font-size: .88rem; color: var(--ink-soft); min-height: 2.6em; }
.price-card__range {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--green);
  margin: 10px 0 2px;
}
.price-card__range-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.price-card__duration { font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.price-card .btn { margin-top: auto; }
.price-card--featured { border-color: var(--gold); box-shadow: var(--shadow-md); }

/* How-it-works steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step__num {
  flex: none;
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: .2em; }
.step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { flex-direction: column; }
}

/* Note box (beta payment note) */
.note-box {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: var(--gold-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--ink);
}

/* ---------- 20. Thank-you page ---------- */
.ty-hero {
  padding: 80px 0 56px;
  text-align: center;
}
.ty-hero__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.ty-hero__title { font-size: clamp(2rem, 4.6vw, 2.9rem); max-width: 17em; margin-inline: auto; }
.ty-hero__lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 36em; margin: 0 auto; }

/* ---------- 21. CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 72px 0;
}
.cta-band__title { font-size: clamp(1.8rem, 3.8vw, 2.5rem); max-width: 18em; margin-inline: auto; }
.cta-band__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 22. Reveal-on-scroll (JS adds .is-visible) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media print {
  .site-header, .float-lang, .nav__toggle { display: none; }
}
