/* ==========================================================================
   ATIA — Attarbiyah International Academy
   Design system. Mobile-first: base styles are the phone layout, every
   media query is min-width.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep emerald and burnished gold, the two colours in the mark */
  --green-950: #04201a;
  --green-900: #072e26;
  --green-800: #0e3b31;
  --green-700: #144d45;
  --green-600: #19473c;
  --green-500: #23624f;
  --green-400: #4b8672;
  --green-300: #7fae9d;
  --green-200: #b6d6c8;
  --green-100: #dbeee6;
  --green-050: #f2f9f6;

  --gold-800: #7d5a10;
  --gold-700: #9a6f18;
  --gold-600: #b8862a;
  --gold-500: #c2912e;
  --gold-400: #d4a94a;
  --gold-300: #e7c97f;
  --gold-200: #f0dcac;
  --gold-100: #f6ecd5;
  --gold-050: #fdf8ec;

  /* Neutrals — warm, never grey */
  --ivory: #f7f4ed;
  --cream: #fbf8f2;
  --mint: #f4faf7;
  --paper: #ffffff;

  --ink-900: #0b1714;
  --ink-800: #172622;
  --ink-700: #2c3b37;
  --ink-500: #5a6b66;
  --ink-400: #7d8c88;
  --ink-300: #a9b5b1;
  --ink-200: #d9e0dd;
  --ink-100: #eef2f0;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink-700);
  --heading: var(--green-800);
  --accent: var(--gold-500);
  --line: rgba(14, 59, 49, 0.09);
  --line-strong: rgba(14, 59, 49, 0.16);

  /* Gradients — the whole palette is expressed through these eight */
  --grad-gold: linear-gradient(118deg, #a97a1c 0%, #d4a94a 42%, #f0dcac 78%, #c2912e 100%);
  --grad-gold-soft: linear-gradient(135deg, var(--gold-050) 0%, var(--gold-100) 100%);
  --grad-green: linear-gradient(140deg, #0b352c 0%, #14564a 55%, #1f6d58 100%);
  --grad-deep: linear-gradient(165deg, #04201a 0%, #0c3a30 42%, #165044 100%);
  --grad-emerald: linear-gradient(135deg, #0e3b31 0%, #1d6a56 100%);
  --grad-halo: radial-gradient(60% 60% at 50% 40%, rgba(194, 145, 46, 0.22), transparent 70%);
  --grad-sheen: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.62) 48%, transparent 78%);
  --grad-glass: linear-gradient(140deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.66) 100%);
  --grad-ivory: linear-gradient(180deg, #fdfbf7 0%, #f5f1e8 100%);
  --grad-aurora:
    radial-gradient(48% 62% at 12% 18%, rgba(212, 169, 74, 0.20) 0%, transparent 62%),
    radial-gradient(52% 58% at 88% 12%, rgba(31, 109, 88, 0.16) 0%, transparent 60%),
    radial-gradient(46% 52% at 68% 92%, rgba(212, 169, 74, 0.14) 0%, transparent 60%);

  /* Type — Montserrat sets the voice, Fraunces the display serif */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Montserrat", system-ui, -apple-system, sans-serif;
  --font-ui: "Montserrat", var(--font-body);
  --font-script: "Caveat", cursive;

  --fs-eyebrow: 0.7rem;
  --fs-body: clamp(0.938rem, 0.905rem + 0.17vw, 1.0625rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.175rem);
  --fs-h4: clamp(1.05rem, 0.99rem + 0.34vw, 1.28rem);
  --fs-h3: clamp(1.3rem, 1.12rem + 0.8vw, 1.85rem);
  --fs-h2: clamp(1.8rem, 1.42rem + 1.7vw, 3.1rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 4vw, 5.1rem);

  /* Space & shape */
  --gutter: 20px;
  --maxw: 1240px;
  --maxw-wide: 1400px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --r-pill: 999px;
  /* The mihrab arch — a rounded square with a pointed crown */
  --r-arch: 50% 50% 18px 18px / 38% 38% 18px 18px;

  --shadow-xs: 0 1px 2px rgba(7, 46, 38, 0.06);
  --shadow-sm: 0 4px 16px -4px rgba(7, 46, 38, 0.09);
  --shadow-md: 0 14px 40px -14px rgba(7, 46, 38, 0.2);
  --shadow-lg: 0 34px 80px -28px rgba(7, 46, 38, 0.3);
  --shadow-xl: 0 54px 120px -40px rgba(4, 32, 26, 0.42);
  --shadow-gold: 0 18px 44px -18px rgba(194, 145, 46, 0.5);
  --shadow-glass: 0 20px 60px -22px rgba(7, 46, 38, 0.28), 0 1px 0 rgba(255, 255, 255, 0.7) inset;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 66px;
}

@media (min-width: 992px) {
  :root {
    --gutter: 40px;
    --nav-h: 84px;
  }
}

@media (min-width: 1440px) {
  :root { --gutter: 56px; }
}


/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.has-smooth-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--green-800);
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--maxw-wide); }
.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 128px);
}

.section--tight { padding-block: clamp(40px, 6vw, 84px); }

.section--mint { background: var(--mint); }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }

.section--dark {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.stack > * + * { margin-top: var(--gap, 1rem); }

.grid { display: grid; gap: var(--gap, 20px); }

@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 3000;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--green-800);
  color: #fff;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--dark .eyebrow { color: var(--gold-300); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--ink-500);
}
.section--dark .lead { color: rgba(255, 255, 255, 0.74); }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.italic-accent {
  font-style: italic;
  color: var(--gold-500);
}

.text-center { text-align: center; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(-1px) scale(0.98); }

/* Primary — deep green */
.btn--primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary::after { background: var(--grad-gold); }
.btn--primary:hover { color: var(--green-900); box-shadow: var(--shadow-gold); }

/* Gold */
.btn--gold {
  background: var(--grad-gold);
  color: var(--green-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold::after { background: var(--grad-green); }
.btn--gold:hover { color: #fff; }

/* Ghost */
.btn--ghost {
  border: 1.5px solid rgba(14, 59, 49, 0.28);
  color: var(--green-800);
}
.btn--ghost::after { background: var(--green-800); }
.btn--ghost:hover { color: #fff; border-color: var(--green-800); }

.section--dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.section--dark .btn--ghost::after { background: #fff; }
.section--dark .btn--ghost:hover { color: var(--green-800); }

.btn--sm { padding: 11px 20px; font-size: 0.688rem; }
.btn--lg { padding: 18px 36px; font-size: 0.8rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Text link with animated rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
}
.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   6. Decorative elements
   -------------------------------------------------------------------------- */

.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow--gold { background: rgba(194, 145, 46, 0.22); }
.glow--green { background: rgba(25, 71, 60, 0.18); }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-500);
}
.divider-ornament svg {
  width: 34px;
  height: 34px;
  flex: none;
  stroke-width: 1.3;
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, currentColor);
}
.divider-ornament::after { background: linear-gradient(270deg, transparent, currentColor); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-halo);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 145, 46, 0.42);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px 16px 16px 16px / 26px 26px 16px 16px;
  background: var(--green-050);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }

.card:hover .card__icon {
  background: var(--grad-green);
  color: var(--gold-300);
  transform: rotate(-4deg) scale(1.06);
}

.card__title {
  margin-bottom: 8px;
  font-size: var(--fs-h4);
}

.card__text {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ink-500);
}

.card__index {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green-800);
  opacity: 0.07;
}

/* --------------------------------------------------------------------------
   8. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  transition: transform 0.55s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 247, 0.86);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

/* A hairline of gold that draws itself in as the header sticks */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 145, 46, 0.45), transparent);
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}

.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck::after { transform: scaleX(1); }
.site-header.is-stuck { box-shadow: 0 18px 50px -32px rgba(7, 46, 38, 0.5); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header.has-open-mega::before { opacity: 1; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--nav-h);
}

/* Brand lockup — the original arch mark beside a typeset wordmark */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.nav__brand:hover { transform: translateY(-1px); }

.nav__brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  flex: none;
}
.nav__brand-mark img {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
}
.nav__brand-mark::before {
  content: "";
  position: absolute;
  inset: -6px -4px -2px;
  border-radius: var(--r-arch);
  background: var(--grad-gold-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.nav__brand:hover .nav__brand-mark::before { opacity: 1; }

.nav__brand-text {
  display: none;
  line-height: 1;
}
@media (min-width: 480px) { .nav__brand-text { display: block; } }

.nav__brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-800);
}
.nav__brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
}

@media (min-width: 992px) {
  .nav__brand-mark { width: 40px; height: 44px; }
  .nav__brand-name { font-size: 1.42rem; }
  .nav__brand-sub { font-size: 0.5rem; letter-spacing: 0.2em; }
}

/* Centre menu */
.nav__menu { display: none; }

@media (min-width: 992px) {
  .nav__menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .nav__menu { gap: 0; }
  .nav__link { padding-inline: 10px; }
}

.nav__item { position: static; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink-700);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active,
.nav__item.is-open > .nav__link { color: var(--green-800); }
.nav__link:hover::after,
.nav__link.is-active::after,
.nav__item.is-open > .nav__link::after { transform: scaleX(1); }

.nav__chev {
  width: 12px; height: 12px;
  opacity: 0.6;
  transition: transform 0.45s var(--ease);
}
.nav__item.is-open .nav__chev { transform: rotate(180deg); opacity: 1; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Round ghost buttons (search, phone) */
.nav__icon-btn {
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--green-800);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease);
}
.nav__icon-btn svg { width: 19px; height: 19px; }
.nav__icon-btn:hover {
  background: var(--green-050);
  transform: translateY(-2px);
}
@media (min-width: 768px) { .nav__icon-btn { display: grid; } }

.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

/* Burger — phones and tablets only; the desktop menu is already complete */
.burger {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}
.burger:hover { background: var(--green-050); }
@media (min-width: 992px) { .burger { display: none; } }

/* Bars are absolutely centred so the open state is an exact X, whatever the
   button's padding or the browser's rounding. */
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px; height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--green-800);
  transform: translate(-50%, -50%) translateY(var(--bar-y, 0));
  transform-origin: center;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), width 0.5s var(--ease);
}
.burger span:nth-child(1) { --bar-y: -7px; }
.burger span:nth-child(2) { width: 13px; margin-left: 7px; }
.burger span:nth-child(3) { --bar-y: 7px; }
.burger:hover span:nth-child(2) { width: 20px; margin-left: 0; }

body.is-drawer-open .burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.is-drawer-open .burger span:nth-child(2) { opacity: 0; }
body.is-drawer-open .burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Search overlay ---------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 14vh var(--gutter) 0;
  background: rgba(7, 46, 38, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
body.is-search-open .search-overlay { opacity: 1; visibility: visible; }

.search-overlay__panel {
  width: min(680px, 100%);
  padding: 10px 10px 10px 22px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-18px) scale(0.97);
  transition: transform 0.55s var(--ease);
}
body.is-search-open .search-overlay__panel { transform: none; }

.search-overlay__panel > svg { width: 20px; height: 20px; color: var(--green-700); flex: none; }

.search-overlay input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink-800);
  background: transparent;
}

.search-overlay__hint {
  width: min(680px, 100%);
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-overlay__hint a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 500;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.search-overlay__hint a:hover { background: #fff; color: var(--green-800); }

/* --------------------------------------------------------------------------
   9. Mega menu
   -------------------------------------------------------------------------- */
.mega {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  width: min(var(--maxw-wide), calc(100vw - 48px));
  padding: 10px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 82% 0%, rgba(246, 236, 213, 0.6), transparent 62%),
    rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease), visibility 0.4s;
  pointer-events: none;
  z-index: 950;
}

/* The little caret that ties the panel to its trigger */
.mega::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--caret, 50%);
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 3px;
  background: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  transition: left 0.5s var(--ease);
}

.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.92fr);
  gap: 8px;
}

.mega__col {
  position: relative;
  padding: 20px 16px 16px;
  border-radius: var(--r-lg);
  transition: background 0.5s var(--ease);
}
.mega__col:hover { background: rgba(242, 249, 246, 0.9); }

.mega__col-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 13px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.mega__col-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 40px;
  border-radius: var(--r-arch);
  background: var(--grad-green);
  color: var(--gold-300);
  box-shadow: 0 8px 20px -10px rgba(7, 46, 38, 0.7);
}
.mega__col-icon svg { width: 17px; height: 17px; }

.mega__col-title {
  margin: 1px 0 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-800);
}

.mega__col-blurb {
  margin: 4px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink-400);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
}

.mega__list { margin: 0; padding: 0; list-style: none; }

.mega__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 20px;
  border-radius: 11px;
  font-size: 0.805rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-700);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.mega__link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--grad-gold);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-spring);
}

.mega__link:hover {
  background: #fff;
  color: var(--green-800);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.mega__link:hover::before { opacity: 1; transform: scale(1); }

.mega__link .tag-new {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--green-900);
  font-family: var(--font-ui);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: none;
}

.mega__col-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0 10px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.mega__col-more svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease); }
.mega__col-more:hover svg { transform: translateX(4px); }

/* The visual rail on the right ------------------------------------------- */
.mega__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: #fff;
  overflow: hidden;
  min-height: 100%;
}

.mega__promo-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mega__promo-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease);
}
.mega__promo:hover .mega__promo-media img { transform: scale(1.12); }

.mega__promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 32, 26, 0.1) 0%, rgba(4, 32, 26, 0.85) 92%);
}

.mega__promo-kicker {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--green-950);
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega__promo-body {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 0 18px 18px;
}

.mega__promo-body h4 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.25;
  color: #fff;
}

.mega__promo-body p {
  margin: 0 0 14px;
  font-size: 0.77rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.mega__promo-foot {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 9px;
}

.mega__promo-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
}
.mega__promo-fact svg { width: 15px; height: 15px; color: var(--gold-300); flex: none; }


/* --------------------------------------------------------------------------
   10. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}

body.is-drawer-open .drawer { transform: translateX(0); }

@media (min-width: 992px) { .drawer { display: none; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__head img { height: 42px; width: auto; }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px var(--gutter) 40px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 4px;
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-800);
  text-align: left;
}

.drawer__link svg { width: 16px; height: 16px; color: var(--gold-500); transition: transform 0.4s var(--ease); }
.drawer__group.is-open > .drawer__link svg { transform: rotate(180deg); }

.drawer__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s var(--ease);
}
.drawer__group.is-open .drawer__sub { max-height: 2400px; }

.drawer__sub-inner { padding: 6px 0 14px; }

.drawer__sub-title {
  margin: 14px 0 6px;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.drawer__sub-link {
  display: block;
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--ink-100);
  font-size: 0.9rem;
  color: var(--ink-500);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.drawer__sub-link:hover {
  border-color: var(--gold-400);
  color: var(--green-800);
  padding-left: 22px;
}

.drawer__foot {
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--green-050);
  flex: none;
}

.drawer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-500);
}
.drawer__contact a { display: inline-flex; align-items: center; gap: 7px; }
.drawer__contact svg { width: 14px; height: 14px; color: var(--gold-600); }

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + 18px);
  padding-bottom: 0;
  background: var(--cream);
  overflow: hidden;
}

/* The photograph. Its own layer so it can be parallaxed and feathered into
   the cream without the copy ever moving with it. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 62% 28%;
  will-change: transform;
}

/* Feather: cream on the left so the headline always has a clean field, a wash
   from the top so the fixed header reads, and a fade into the wave below. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, #fbf8f2 0%, rgba(251, 248, 242, 0.97) 24%, rgba(251, 248, 242, 0.7) 38%, rgba(251, 248, 242, 0.12) 52%, transparent 64%),
    linear-gradient(180deg, rgba(251, 248, 242, 0.62) 0%, transparent 22%),
    linear-gradient(0deg, rgba(251, 248, 242, 0.85) 0%, transparent 26%);
}

@media (max-width: 991px) {
  /* On a phone the copy sits over the sky, and the photograph is allowed to
     stay legible below it rather than being washed out end to end. */
  .hero__bg { background-position: 72% 18%; background-size: cover; }
  .hero__bg::after {
    background:
      linear-gradient(180deg,
        rgba(251, 248, 242, 0.94) 0%,
        rgba(251, 248, 242, 0.88) 30%,
        rgba(251, 248, 242, 0.55) 58%,
        rgba(251, 248, 242, 0.72) 80%,
        #fbf8f2 100%);
  }
}

/* A whisper of gold light over the whole frame */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38% 46% at 8% 34%, rgba(212, 169, 74, 0.13), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 0;
  align-items: center;
  padding-bottom: 214px;
}

@media (min-width: 992px) {
  .hero {
    padding-top: calc(var(--nav-h) + 8px);
    min-height: min(920px, 100vh);
    display: flex;
    align-items: center;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 30px;
    width: 100%;
    padding-bottom: 210px;
  }
}

@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding-bottom: 34px;
}
@media (min-width: 992px) { .hero__copy { padding-bottom: 0; } }

/* Eyebrow pill with the trailing rule from the reference */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 9px;
  margin-bottom: 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 59, 49, 0.08);
  box-shadow: 0 6px 20px -12px rgba(7, 46, 38, 0.4);
  font-family: var(--font-ui);
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--green-800);
}
.hero__eyebrow-dot {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-green);
  color: var(--gold-300);
}
.hero__eyebrow-dot svg { width: 13px; height: 13px; }

.hero__eyebrow-rule {
  position: relative;
  display: none;
  width: 118px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(14, 59, 49, 0.28), transparent);
}
.hero__eyebrow-rule::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}
@media (min-width: 560px) { .hero__eyebrow-rule { display: inline-block; } }

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.hero__eyebrow-row .hero__eyebrow { margin-bottom: 0; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--green-800);
  margin: 0;
}

.hero__title .line { display: block; }

/* The gold second line */
.hero__title--accent {
  margin-top: 0.02em;
  margin-bottom: 22px;
  font-weight: 700;
  background: linear-gradient(96deg, #a97a1c 0%, #c99435 38%, #b8862a 72%, #8f6714 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 40ch;
  margin: 0 0 26px;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-500);
}
.hero__sub b { color: var(--green-800); font-weight: 600; }

/* Three promise cards ----------------------------------------------------- */
.hero__pillars {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  max-width: 540px;
}

.pillar {
  position: relative;
  padding: 15px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px -18px rgba(7, 46, 38, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-sheen);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.pillar:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 22px 44px -22px rgba(7, 46, 38, 0.5);
}
.pillar:hover::after { transform: translateX(120%); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 11px;
  border-radius: 50%;
  background: var(--grad-gold-soft);
  border: 1px solid rgba(212, 169, 74, 0.35);
  color: var(--gold-700);
  transition: transform 0.55s var(--ease-spring), background 0.5s var(--ease), color 0.5s var(--ease);
}
.pillar__icon svg { width: 17px; height: 17px; }
.pillar:hover .pillar__icon {
  transform: rotate(-8deg) scale(1.06);
  background: var(--grad-gold);
  color: #fff;
}

.pillar__title {
  margin: 0 0 3px;
  font-family: var(--font-ui);
  font-size: 0.855rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--green-800);
}
.pillar__text {
  margin: 0 0 12px;
  font-size: 0.735rem;
  line-height: 1.45;
  color: var(--ink-400);
}

.pillar__go {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-300);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.pillar__go svg { width: 12px; height: 12px; }
.pillar:hover .pillar__go { transform: translateX(3px); background: var(--gold-600); color: #fff; }

/* CTA row ----------------------------------------------------------------- */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-800);
}
.watch-link__btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(7, 46, 38, 0.9);
  transition: transform 0.5s var(--ease-spring);
}
.watch-link__btn svg { width: 13px; height: 13px; margin-left: 2px; }
.watch-link:hover .watch-link__btn { transform: scale(1.09); }
.watch-link__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(194, 145, 46, 0.7);
  animation: ping 2.8s var(--ease-io) infinite;
}
.watch-link__arrow { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.watch-link:hover .watch-link__arrow { transform: translateX(5px); }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.85; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}

/* The stage that holds everything floating over the photo ----------------- */
.hero__stage {
  position: relative;
  display: none;
  align-self: stretch;
  min-height: 460px;
}
@media (min-width: 992px) { .hero__stage { display: block; } }

/* Handwritten line */
.hero__script {
  position: absolute;
  top: 4%;
  left: 6%;
  z-index: 4;
  max-width: 190px;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.15rem);
  line-height: 1.02;
  color: var(--green-800);
  transform: rotate(-6deg);
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.hero__script em { font-style: normal; color: var(--gold-600); }

/* Floating glass cards ---------------------------------------------------- */
.float-card {
  position: absolute;
  z-index: 5;
  border-radius: 18px;
  background: var(--grad-glass);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  will-change: transform;
}

/* Placement rule for all three: keep the student's face clear. She reads at
   roughly 55–70% across and 25–55% down the frame, so the cards live above
   her, to her right, and low-left over the desk. */
.float-card--tutor {
  top: 5%;
  right: 4%;
  width: 240px;
  padding: 13px 14px 12px;
  animation: floaty 7s var(--ease-io) infinite;
}

.float-card--subjects {
  top: 12%;
  right: -3%;
  width: 132px;
  padding: 13px 11px;
  animation: floaty 8.4s var(--ease-io) infinite reverse;
}

.float-card--review {
  bottom: 4%;
  left: -22%;
  width: 236px;
  padding: 13px;
  animation: floaty 9.2s var(--ease-io) 0.6s infinite;
}

@media (min-width: 1280px) {
  .float-card--tutor   { right: 8%; width: 256px; }
  .float-card--subjects{ right: 0%; }
  .float-card--review  { left: -16%; width: 252px; }
}

@media (min-width: 1500px) {
  .float-card--review  { left: -10%; }
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

/* — tutor card */
.tutor-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.tutor-card__avatar {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.tutor-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.tutor-card__role {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.tutor-card__name {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.25;
}
.tutor-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--green-500);
}
.tutor-card__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  70%  { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); }
}

.tutor-card__bubble {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(242, 249, 246, 0.95);
  font-size: 0.755rem;
  line-height: 1.45;
  color: var(--ink-700);
}

.tutor-card__wave {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.tutor-card__play {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #fff;
}
.tutor-card__play svg { width: 9px; height: 9px; margin-left: 1px; }

.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  flex: 1;
}
.waveform i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--green-300);
  animation: wavebar 1.1s var(--ease-io) infinite;
}
@keyframes wavebar {
  0%, 100% { height: 4px; opacity: 0.5; }
  50%      { height: 15px; opacity: 1; }
}

/* — subject rail */
.subject-card__head {
  display: block;
  margin: 0 0 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  text-align: center;
}

.subject-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--green-800);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.subject-row:hover { background: rgba(255, 255, 255, 0.9); transform: translateX(3px); }

.subject-row span:first-child {
  display: grid;
  place-items: center;
  width: 25px; height: 25px;
  flex: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.subject-row svg { width: 13px; height: 13px; }
.subject-row:nth-child(2) svg { color: var(--green-600); }
.subject-row:nth-child(3) svg { color: #3f7fd6; }
.subject-row:nth-child(4) svg { color: var(--gold-600); }

/* — review card */
.review-card__stars { display: flex; gap: 2px; margin-bottom: 8px; }
.review-card__stars svg { width: 12px; height: 12px; color: var(--gold-500); }

.review-card__body {
  display: flex;
  gap: 10px;
}
.review-card__avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.review-card__text {
  margin: 0;
  font-size: 0.755rem;
  line-height: 1.5;
  color: var(--ink-700);
}
.review-card__who {
  display: block;
  margin-top: 7px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-700);
}

/* The cream wave and the counters sitting on it --------------------------- */
.hero__foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
}

.hero__wave { line-height: 0; pointer-events: none; }
.hero__wave svg { display: block; width: 100%; height: clamp(58px, 9vw, 132px); }
.hero__wave path { fill: var(--cream); }

.hero__foot-bg {
  margin-top: -1px;
  padding-bottom: clamp(10px, 1.6vw, 22px);
  background: var(--cream);
}

.hero__counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 6px;
}

@media (min-width: 768px) {
  .hero__counters { grid-template-columns: repeat(4, 1fr); }
}

.hero-counter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 4px;
}

@media (min-width: 768px) {
  .hero-counter + .hero-counter::before {
    content: "";
    position: absolute;
    left: -3px; top: 12%;
    width: 1px; height: 76%;
    background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  }
}

.hero-counter__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-700);
  box-shadow: var(--shadow-xs);
  transition: transform 0.5s var(--ease-spring), color 0.4s var(--ease);
}
.hero-counter__icon svg { width: 18px; height: 18px; }
.hero-counter:hover .hero-counter__icon { transform: translateY(-3px) rotate(-6deg); color: var(--gold-600); }

.hero-counter__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green-800);
}
.hero-counter__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.615rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: max(var(--gutter), calc(50vw - (var(--maxw-wide) / 2) + var(--gutter)));
  bottom: 172px;
  z-index: 8;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-400);
}
@media (min-width: 1440px) { .scroll-cue { display: flex; } }

.scroll-cue__line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px; height: 14px;
  background: var(--green-700);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-16px); }
  100% { transform: translateY(46px); }
}

/* Mobile: the floating cards collapse into one honest proof strip */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (min-width: 992px) { .hero__proof { display: none; } }

.avatars { display: flex; }
.avatars img,
.avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -10px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-700);
}
.avatars > *:first-child { margin-left: 0; }

.proof__stat { line-height: 1.25; }
.proof__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-800);
}
.proof__stat span { font-size: 0.72rem; color: var(--ink-400); }

.stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.stars svg { width: 14px; height: 14px; }
.stars svg.is-dim { color: var(--ink-200); }


/* --------------------------------------------------------------------------
   12. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding-block: 18px;
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item svg { width: 14px; height: 14px; color: var(--gold-400); flex: none; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */
.stat {
  position: relative;
  padding: 26px 20px;
  border-radius: var(--r-md);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.stat__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   14. Course spotlight (alternating rows)
   -------------------------------------------------------------------------- */
.spotlight {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: clamp(34px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.spotlight:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .spotlight { grid-template-columns: 1fr 1fr; gap: 64px; }
  .spotlight--flip .spotlight__media { order: 2; }
}

.spotlight__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--green-050);
  aspect-ratio: 4 / 3;
}

.spotlight__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.spotlight:hover .spotlight__media img { transform: scale(1.06); }

.spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(7, 46, 38, 0.28));
  pointer-events: none;
}

.spotlight__badge {
  position: absolute;
  z-index: 2;
  left: 16px; top: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-800);
}

.spotlight__title { font-size: var(--fs-h2); margin-bottom: 14px; }
.spotlight__text { margin-bottom: 24px; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   15. Course cards (catalogue)
   -------------------------------------------------------------------------- */
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194, 145, 46, 0.4);
}

.course-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-050);
}

.course-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.course-card:hover .course-card__media img { transform: scale(1.08); }

.course-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 46, 38, 0.55));
}

.course-card__tag {
  position: absolute;
  z-index: 2;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-800);
  backdrop-filter: blur(6px);
}

.course-card__tag--new {
  background: var(--grad-gold);
  color: var(--green-900);
  box-shadow: var(--shadow-gold);
}

.course-card__level {
  position: absolute;
  z-index: 2;
  left: 16px; bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.course-card__title {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.course-card__tagline {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--ink-500);
}

.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}

.course-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ink-400);
}
.course-card__meta svg { width: 13px; height: 13px; color: var(--gold-500); }

/* Filter pills */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: none;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  transition: all 0.4s var(--ease);
}
.filter:hover { border-color: var(--gold-400); color: var(--green-800); }
.filter.is-active {
  background: var(--grad-green);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.course-card.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   16. Steps / process
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }

.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.step__num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

@media (min-width: 900px) {
  .step::after {
    content: "";
    position: absolute;
    top: 53px;
    right: -32px;
    width: 32px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--gold-400) 0 5px, transparent 5px 11px);
  }
  .step:last-child::after { display: none; }
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.testimonial__quote {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.16;
}

.testimonial__text {
  margin-bottom: 22px;
  font-size: 0.975rem;
  color: var(--ink-700);
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
}
.testimonial__person img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__name { font-weight: 600; color: var(--green-800); line-height: 1.3; }
.testimonial__loc { font-size: 0.75rem; color: var(--ink-400); }

/* --------------------------------------------------------------------------
   18. Pricing
   -------------------------------------------------------------------------- */
.price-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--green-050);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.price-tabs::-webkit-scrollbar { display: none; }

.price-tab {
  flex: none;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  white-space: nowrap;
  transition: all 0.45s var(--ease);
}
.price-tab.is-active {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.price-panel { display: none; }
.price-panel.is-active { display: grid; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194, 145, 46, 0.45);
}

.price-card--featured {
  background: var(--grad-deep);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}
.price-card--featured .price-card__title,
.price-card--featured .price-card__amount { color: #fff; }

.price-card__flag {
  position: absolute;
  top: 18px; right: -34px;
  padding: 5px 40px;
  transform: rotate(38deg);
  background: var(--grad-gold);
  color: var(--green-900);
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-card__title {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 6px;
}

.price-card__region {
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-bottom: 18px;
}
.price-card--featured .price-card__region { color: rgba(255, 255, 255, 0.6); }

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green-800);
  letter-spacing: -0.03em;
}
.price-card__amount del {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-400);
  opacity: 0.8;
}
.price-card__freq {
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-bottom: 24px;
}
.price-card--featured .price-card__freq { color: rgba(255, 255, 255, 0.6); }

.price-card__list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}
.price-card--featured .price-card__list { border-color: rgba(255, 255, 255, 0.14); }

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}
.price-card__list svg {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 3px;
  color: var(--gold-500);
}

.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   19. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.accordion + .accordion { margin-top: 12px; }

.accordion.is-open { border-color: rgba(194, 145, 46, 0.42); box-shadow: var(--shadow-sm); }

.accordion__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-800);
  transition: background 0.4s var(--ease);
}
.accordion__head:hover { background: var(--green-050); }

.accordion__sign {
  position: relative;
  flex: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-050);
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}
.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px; height: 1.5px;
  border-radius: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), background 0.4s var(--ease);
}
.accordion__sign::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion.is-open .accordion__sign { background: var(--grad-gold); transform: rotate(180deg); }
.accordion.is-open .accordion__sign::before,
.accordion.is-open .accordion__sign::after { background: var(--green-900); }
.accordion.is-open .accordion__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.accordion.is-open .accordion__panel { max-height: 700px; }

.accordion__body {
  padding: 0 22px 22px;
  font-size: 0.925rem;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   20. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }

.field { position: relative; display: grid; gap: 7px; }

.field label {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-200);
  background: var(--surface);
  color: var(--ink-900);
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  appearance: none;
}

.field textarea { min-height: 130px; resize: vertical; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b66' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(194, 145, 46, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.field__error {
  font-size: 0.72rem;
  color: #c0392b;
  min-height: 0;
}

@media (min-width: 640px) {
  .form--split { grid-template-columns: 1fr 1fr; }
  .form--split .field--full { grid-column: 1 / -1; }
}

/* Honeypot */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
}

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn .spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__label { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   21. Toasts — fixed top right
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 14px;
  left: 14px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 560px) {
  .toast-stack {
    left: auto;
    right: 20px;
    width: 370px;
  }
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 44px 16px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(110%) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), margin 0.45s var(--ease);
}

.toast.is-in { opacity: 1; transform: translateX(0) scale(1); }
.toast.is-out {
  opacity: 0;
  transform: translateX(110%) scale(0.94);
  margin-bottom: -68px;
}

.toast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: #fff;
}
.toast__icon svg { width: 19px; height: 19px; }

.toast--success .toast__icon { background: linear-gradient(140deg, #1c7a53, #37b27c); }
.toast--error   .toast__icon { background: linear-gradient(140deg, #a32c1e, #d9523f); }
.toast--info    .toast__icon { background: var(--grad-green); color: var(--gold-300); }

.toast__title {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: 0;
}

.toast__msg {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-500);
}

.toast__close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--ink-400);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.toast__close:hover { background: var(--ink-100); color: var(--ink-900); }
.toast__close svg { width: 13px; height: 13px; }

.toast__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  background: var(--grad-gold);
  animation: toast-bar linear forwards;
}
.toast--success .toast__bar { background: linear-gradient(90deg, #1c7a53, #37b27c); }
.toast--error   .toast__bar { background: linear-gradient(90deg, #a32c1e, #d9523f); }

@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   22. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(194, 145, 46, 0.6), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(127, 174, 157, 0.55), transparent 46%);
}

.cta-band h2 { color: #fff; }

/* --------------------------------------------------------------------------
   23. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(70% 90% at 80% 0%, rgba(219, 238, 230, 0.85), transparent 62%),
    radial-gradient(60% 80% at 0% 100%, rgba(246, 236, 213, 0.7), transparent 60%),
    linear-gradient(180deg, #fbfaf7, #f5f8f5);
  overflow: hidden;
}

.page-hero__title {
  font-size: clamp(2.1rem, 1.4rem + 3.3vw, 4.2rem);
  margin-bottom: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.breadcrumb a { color: var(--green-700); }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb svg { width: 11px; height: 11px; opacity: 0.6; }

/* --------------------------------------------------------------------------
   24. Course detail
   -------------------------------------------------------------------------- */
.course-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .course-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
  }
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}
.chip svg { width: 13px; height: 13px; color: var(--gold-500); }
.chip--gold { background: var(--grad-gold); color: var(--green-900); border-color: transparent; }
.chip--gold svg { color: var(--green-900); }

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  font-size: var(--fs-h3);
}
.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--ink-500); }

.learn-list { display: grid; gap: 14px; }

.learn-item {
  position: relative;
  padding: 20px 22px 20px 58px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.learn-item:hover {
  transform: translateX(5px);
  border-color: rgba(194, 145, 46, 0.4);
  box-shadow: var(--shadow-sm);
}

.learn-item::before {
  content: "";
  position: absolute;
  left: 20px; top: 24px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-050);
  border: 1px solid var(--green-100);
}
.learn-item::after {
  content: "";
  position: absolute;
  left: 27px; top: 31px;
  width: 8px; height: 5px;
  border-left: 1.8px solid var(--gold-600);
  border-bottom: 1.8px solid var(--gold-600);
  transform: rotate(-45deg);
}

.learn-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-800);
  font-weight: 600;
}
.learn-item span { font-size: 0.925rem; color: var(--ink-500); }

.check-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--green-050);
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.check-item:hover { background: var(--green-100); transform: translateY(-2px); }
.check-item svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-600); }

.benefit {
  position: relative;
  padding: 26px 24px 26px 26px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.benefit::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-gold);
}
.benefit__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.5;
  margin-bottom: 10px;
  display: block;
}
.benefit h4 { margin-bottom: 8px; font-size: 1.05rem; }
.benefit p { margin: 0; font-size: 0.9rem; color: var(--ink-500); }

.hadith-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  text-align: center;
}
.hadith-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(194, 145, 46, 0.3);
  filter: blur(60px);
}
.hadith-card blockquote {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: #fff;
}
.hadith-card cite {
  position: relative;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--gold-300);
}

/* Sticky enrol card */
.enrol-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

@media (min-width: 1000px) {
  .enrol-card { position: sticky; top: calc(var(--nav-h) + 24px); }
}

.enrol-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-gold);
}

.enrol-card__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--green-800);
  margin-bottom: 4px;
}

.enrol-card__note {
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-bottom: 20px;
}

.enrol-card__list {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.85rem;
}
.enrol-card__list li { display: flex; gap: 9px; align-items: flex-start; }
.enrol-card__list svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--gold-500); }

.urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(192, 57, 43, 0.08);
  color: #a83224;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.urgency::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.6s var(--ease-io) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* --------------------------------------------------------------------------
   25. E-book library
   -------------------------------------------------------------------------- */
.book-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 145, 46, 0.42);
}

.book-card__spine {
  position: relative;
  width: 58px; height: 78px;
  margin-bottom: 20px;
  border-radius: 4px 10px 10px 4px;
  background: var(--grad-green);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--gold-300);
  transition: transform 0.55s var(--ease);
}
.book-card__spine::before {
  content: "";
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.book-card__spine svg { width: 22px; height: 22px; }
.book-card:hover .book-card__spine { transform: rotate(-6deg) translateY(-3px); }

.book-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.book-card p { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.book-card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   26. Contact
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: start; }
}

.contact-panel {
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.contact-panel h3 { color: #fff; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-row:last-of-type { border-bottom: 0; }

.contact-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-300);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact-row:hover .contact-row__icon { background: var(--grad-gold); color: var(--green-900); transform: scale(1.06); }
.contact-row__icon svg { width: 18px; height: 18px; }

.contact-row__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 3px;
}
.contact-row__value { color: #fff; font-size: 0.925rem; word-break: break-word; }
.contact-row__value a:hover { color: var(--gold-300); }

.social-row { display: flex; gap: 10px; margin-top: 22px; }

.social-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.social-btn:hover { background: var(--grad-gold); color: var(--green-900); transform: translateY(-4px); }
.social-btn svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   27. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 104px);
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(31, 109, 88, 0.42) 0%, transparent 58%),
    radial-gradient(60% 80% at 92% 12%, rgba(194, 145, 46, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #072e26 0%, #04201a 100%);
  color: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

/* Arabesque lattice, drawn once and tiled */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 0 0, transparent 13px, rgba(255, 255, 255, 0.9) 13.6px, transparent 14.2px),
    radial-gradient(circle at 28px 28px, transparent 13px, rgba(255, 255, 255, 0.9) 13.6px, transparent 14.2px);
  background-size: 56px 56px;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(194, 145, 46, 0.12);
  filter: blur(110px);
  pointer-events: none;
}

/* The CTA card that overlaps the top edge of the footer */
.footer-cta {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(44px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 140% at 88% 10%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
    var(--grad-gold);
  color: var(--green-950);
  display: grid;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
@media (min-width: 880px) { .footer-cta { grid-template-columns: 1fr auto; gap: 40px; } }

.footer-cta::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.footer-cta h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.05rem);
  line-height: 1.16;
  color: var(--green-950);
}
.footer-cta p {
  position: relative;
  margin: 0;
  max-width: 54ch;
  font-size: 0.92rem;
  color: rgba(4, 32, 26, 0.72);
}
.footer-cta .btn-row { position: relative; }

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 38px;
  padding-bottom: 48px;
}

@media (min-width: 720px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.55fr 1fr 1fr 1.25fr; gap: 42px; } }

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-lockup img {
  width: 46px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(76%) sepia(37%) saturate(682%) hue-rotate(2deg) brightness(92%) contrast(90%);
}
.footer-brand-lockup b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.footer-brand-lockup span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer-brand p { font-size: 0.875rem; line-height: 1.75; max-width: 44ch; }

/* Trust badges under the blurb */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}
.footer-badge svg { width: 14px; height: 14px; color: var(--gold-300); }

.footer-title {
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer-links { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 0; height: 1px;
  background: var(--gold-400);
  transition: width 0.4s var(--ease);
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links a:hover::before { width: 10px; }

.footer-contact { display: grid; gap: 13px; font-size: 0.86rem; }
.footer-contact a { display: inline-flex; align-items: flex-start; gap: 10px; transition: color 0.3s var(--ease); }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-400); }

/* Rating pill in the footer */
.footer-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-rating > svg { width: 24px; height: 24px; flex: none; }
.footer-rating strong { display: block; color: #fff; font-family: var(--font-ui); font-size: 0.95rem; }
.footer-rating small { display: block; font-size: 0.68rem; color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}
.footer-bottom strong { color: var(--gold-300); font-weight: 600; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom nav a { transition: color 0.3s var(--ease); }
.footer-bottom nav a:hover { color: #fff; }

/* Newsletter */
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.newsletter:focus-within { border-color: var(--gold-400); background: rgba(255, 255, 255, 0.1); }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 8px 11px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter input:focus { outline: none; }

/* Social */
.social-row { display: flex; flex-wrap: wrap; gap: 9px; }
.social-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.45s var(--ease-spring), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
  transform: translateY(-4px);
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--green-950);
}


/* --------------------------------------------------------------------------
   28. Floating WhatsApp
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 800;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(18, 140, 126, 0.7);
  transition: transform 0.45s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08) rotate(6deg); }
.whatsapp-fab svg { width: 26px; height: 26px; }

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: ping 2.8s var(--ease-io) infinite;
}

@media (min-width: 992px) {
  .whatsapp-fab { right: 26px; bottom: 26px; width: 60px; height: 60px; }
}

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 950;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-gold);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   29. Animation primitives (GSAP + AOS friendly)
   -------------------------------------------------------------------------- */

/* Text that reveals line by line — each line is wrapped by JS. */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  will-change: transform;
}

[data-reveal] { will-change: transform, opacity; }

/* Before GSAP boots, keep content hidden only when we know JS will run. */
html.js-ready [data-reveal]:not(.is-revealed) { opacity: 0; }
html.js-ready .line-mask > span { transform: translateY(105%); }
html.js-ready .is-revealed .line-mask > span { transform: none; }

.parallax-media { will-change: transform; }

/* AOS-style utility fallbacks so nothing is invisible if a library fails. */
html:not(.js-ready) [data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  html.js-ready .line-mask > span { transform: none !important; }
}

/* --------------------------------------------------------------------------
   30. Locomotive Scroll
   -------------------------------------------------------------------------- */
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-smooth body { overflow: hidden; }

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: all;
}

/* Two panels that part to reveal the page */
.preloader__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background:
    radial-gradient(80% 120% at 50% 50%, rgba(31, 109, 88, 0.55) 0%, transparent 62%),
    #04201a;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }

.preloader.is-done .preloader__panel--top { transform: translateY(-101%); }
.preloader.is-done .preloader__panel--bottom { transform: translateY(101%); }
.preloader.is-done { pointer-events: none; }

/* The arabesque lattice, same motif as the footer */
.preloader__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 0 0, transparent 13px, rgba(255, 255, 255, 0.9) 13.6px, transparent 14.2px),
    radial-gradient(circle at 28px 28px, transparent 13px, rgba(255, 255, 255, 0.9) 13.6px, transparent 14.2px);
  background-size: 56px 56px;
}

.preloader__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(420px, 78vw);
  text-align: center;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.preloader.is-done .preloader__inner { opacity: 0; transform: translateY(-14px); }

/* The mihrab draws itself */
.preloader__arch {
  width: 74px;
  height: 96px;
  color: var(--gold-400);
  overflow: visible;
}
/* Drawn state is the default. The script sets the undrawn start and animates
   from there, so a missing or stalled GSAP leaves a finished mihrab rather
   than an empty box. */
.preloader__arch path { stroke-dasharray: none; stroke-dashoffset: 0; }

/* Wordmark rising out of a mask */
.preloader__word { display: grid; gap: 4px; }
.preloader__mask { display: block; overflow: hidden; }
.preloader__mask > * { display: block; }

.preloader__word b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.preloader__word i {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.preloader__meter {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 6px;
}
.preloader__rule {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.preloader__rule > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-gold);
  transition: width 0.45s var(--ease);
}
.preloader__pct {
  min-width: 3.4ch;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.preloader__pct::after { content: "%"; font-size: 0.6em; margin-left: 2px; opacity: 0.6; }



/* --------------------------------------------------------------------------
   31. Shape utilities
   Declared last so the arch always wins over a component's own radius.
   -------------------------------------------------------------------------- */

/* The mihrab arch from the logo, reused across the site as a shape language. */
.arch {
  border-radius: 46% 46% var(--r-lg) var(--r-lg) / 30% 30% var(--r-lg) var(--r-lg);
  overflow: hidden;
}

.arch--deep {
  border-radius: 50% 50% 16px 16px / 44% 44% 16px 16px;
}

@media (max-width: 599px) {
  /* A tall dome eats too much of a small image; soften it on phones. */
  .arch { border-radius: 38% 38% var(--r-md) var(--r-md) / 20% 20% var(--r-md) var(--r-md); }
}

/* A portrait poster is shown whole rather than cropped to fill. */
.media--poster {
  aspect-ratio: 5 / 6;
  background: linear-gradient(160deg, var(--gold-100), var(--green-050));
  border-radius: var(--r-lg);
  padding: 18px;
}
.media--poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.media--poster::after { display: none; }

@media (min-width: 900px) {
  .media--poster { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   32. Premium component layer
   Everything added for the redesign lives here so it always wins the cascade.
   ========================================================================== */

/* --- Icon chips ---------------------------------------------------------- */
.i-chip {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 56px;
  border-radius: var(--r-arch);
  isolation: isolate;
  transition: transform 0.6s var(--ease-spring), box-shadow 0.5s var(--ease);
}
.i-chip svg { position: relative; z-index: 2; width: 22px; height: 22px; stroke-width: 1.5; }

.i-chip__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.i-chip--gold {
  background: var(--grad-gold-soft);
  border: 1px solid rgba(212, 169, 74, 0.35);
  color: var(--gold-700);
  box-shadow: 0 10px 24px -16px rgba(194, 145, 46, 0.9);
}
.i-chip--gold .i-chip__glow { background: var(--grad-gold); }

.i-chip--green {
  background: var(--grad-green);
  color: var(--gold-300);
  box-shadow: 0 12px 28px -14px rgba(7, 46, 38, 0.8);
}
.i-chip--green .i-chip__glow { background: var(--grad-gold); }

.i-chip--glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.i-chip--glass .i-chip__glow { background: var(--grad-green); }

.i-chip--outline {
  border: 1.5px solid var(--line-strong);
  color: var(--green-700);
}
.i-chip--outline .i-chip__glow { background: var(--grad-green); }

.i-chip--sm { width: 40px; height: 43px; }
.i-chip--sm svg { width: 17px; height: 17px; }
.i-chip--lg { width: 64px; height: 70px; }
.i-chip--lg svg { width: 27px; height: 27px; }

/* On hover the glow takes over and the glyph flips to the contrast colour */
.card:hover .i-chip,
.i-chip:hover { transform: translateY(-5px) rotate(-4deg); }
.card:hover .i-chip__glow,
.i-chip:hover .i-chip__glow { opacity: 1; }
.card:hover .i-chip--gold,
.i-chip--gold:hover { color: #fff; border-color: transparent; }
.card:hover .i-chip--glass,
.card:hover .i-chip--outline,
.i-chip--glass:hover,
.i-chip--outline:hover { color: var(--gold-300); border-color: transparent; }

/* --- Section furniture --------------------------------------------------- */
.section--aurora { background: var(--cream); }
.section--aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  pointer-events: none;
}
.section--aurora > .container { position: relative; z-index: 1; }

/* Faint arabesque lattice behind a light section */
.lattice::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, transparent 15px, rgba(14, 59, 49, 0.055) 15.7px, transparent 16.4px),
    radial-gradient(circle at 32px 32px, transparent 15px, rgba(14, 59, 49, 0.055) 15.7px, transparent 16.4px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 8px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-800);
}
.badge-pill svg { width: 14px; height: 14px; }
.badge-pill i {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-gold-soft);
  color: var(--gold-700);
}

/* --- Google rating block ------------------------------------------------- */
.rating-panel {
  display: grid;
  gap: 26px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
@media (min-width: 820px) { .rating-panel { grid-template-columns: 240px 1fr; gap: 42px; align-items: center; } }

.rating-score { text-align: center; }
.rating-score__logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.rating-score__logo svg { width: 20px; height: 20px; }
.rating-score__logo span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.rating-score__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-score .stars { margin: 10px 0 6px; justify-content: center; }
.rating-score small { display: block; font-size: 0.76rem; color: var(--ink-400); }

.rating-bars { display: grid; gap: 9px; }
.rating-bar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 12px; }
.rating-bar__label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--ink-500); }
.rating-bar__label svg { width: 11px; height: 11px; color: var(--gold-500); }
.rating-bar__track { height: 7px; border-radius: 4px; background: var(--ink-100); overflow: hidden; }
.rating-bar__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-gold);
  width: 0;
  transition: width 1.4s var(--ease);
}
.rating-bar__pct { font-size: 0.72rem; font-weight: 600; color: var(--ink-400); text-align: right; }

/* --- Testimonial cards --------------------------------------------------- */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s var(--ease);
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.quote-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quote-card:hover::before { transform: scaleX(1); }

.quote-card__mark {
  position: absolute;
  top: 12px; right: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--green-050);
  pointer-events: none;
}

.quote-card__text {
  position: relative;
  margin: 14px 0 22px;
  font-size: 0.945rem;
  line-height: 1.72;
  color: var(--ink-700);
}

.quote-card__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card__person img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.quote-card__name { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; color: var(--green-800); }
.quote-card__loc { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: var(--ink-400); }
.quote-card__loc svg { width: 12px; height: 12px; }
.quote-card__verified {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--green-050);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green-600);
}
.quote-card__verified svg { width: 12px; height: 12px; }

/* --- Course tiles (the "All Courses" grid) ------------------------------- */
.tile-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-050);
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.08); }

.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 32, 26, 0.72) 100%);
}

.tile__dept {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-800);
}
.tile__dept svg { width: 12px; height: 12px; color: var(--gold-600); }

.tile__level {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.tile__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tile__title {
  margin: 0 0 7px;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--green-800);
  transition: color 0.35s var(--ease);
}
.tile:hover .tile__title { color: var(--gold-700); }
.tile__text { margin: 0 0 16px; font-size: 0.82rem; line-height: 1.6; color: var(--ink-500); }

.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tile__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--ink-400); }
.tile__meta svg { width: 13px; height: 13px; color: var(--gold-500); }
.tile__go {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tile__go svg { width: 14px; height: 14px; }
.tile:hover .tile__go { background: var(--grad-gold); color: #fff; transform: translateX(3px); }

/* Filter chips above the grid */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip:hover { transform: translateY(-2px); color: var(--green-800); border-color: var(--green-300); }
.filter-chip.is-active {
  background: var(--grad-green);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.filter-chip.is-active svg { color: var(--gold-300); }

.tile.is-hidden { display: none; }

/* --- Split feature band -------------------------------------------------- */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); } }
@media (min-width: 900px) { .split--flip > *:first-child { order: 2; } }

.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--arch { border-radius: var(--r-arch); }

/* A stat chip that overlaps the image corner */
.media-chip {
  position: absolute;
  bottom: 18px; left: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.media-chip svg { width: 20px; height: 20px; color: var(--gold-600); }
.media-chip strong { display: block; font-family: var(--font-ui); font-size: 1.02rem; color: var(--green-800); line-height: 1.1; }
.media-chip small { display: block; font-size: 0.68rem; color: var(--ink-400); }

/* --- Check list ---------------------------------------------------------- */
.check-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-700);
}
.check-list svg {
  flex: none;
  width: 21px; height: 21px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-600);
  stroke-width: 2.2;
}
.section--dark .check-list li { color: rgba(255, 255, 255, 0.8); }
.section--dark .check-list svg { background: rgba(255, 255, 255, 0.1); color: var(--gold-300); }

/* --- Numbered timeline --------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 26px; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.timeline::before {
  content: "";
  display: none;
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 7px, transparent 7px 15px);
}
@media (min-width: 900px) { .timeline::before { display: block; } }

.tl-step { position: relative; text-align: center; }
.tl-step__num {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-800);
  transition: transform 0.55s var(--ease-spring), background 0.5s var(--ease), color 0.5s var(--ease);
}
.tl-step:hover .tl-step__num { transform: translateY(-6px) scale(1.05); background: var(--grad-green); color: var(--gold-300); }
.tl-step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.tl-step p { margin: 0; font-size: 0.86rem; line-height: 1.66; color: var(--ink-500); }

/* --- FAQ accordion, premium --------------------------------------------- */
.faq-grid { display: grid; gap: 34px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 70px); align-items: start; } }

.faq-list { display: grid; gap: 10px; }

.faq-item {
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: transparent; }

.faq-q {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 17px 20px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.915rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--green-800);
  cursor: pointer;
  transition: color 0.35s var(--ease);
}
.faq-q:hover { color: var(--gold-700); }

.faq-q__n {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-600);
  flex: none;
}

.faq-q__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.5s var(--ease);
}
.faq-q__icon svg { width: 15px; height: 15px; }
.faq-item.is-open .faq-q__icon { background: var(--grad-gold); color: #fff; transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 20px 20px 46px;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-500);
}

/* The aside beside the FAQ list */
.faq-aside {
  position: relative;
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: var(--r-xl);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}
.faq-aside::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(194, 145, 46, 0.3);
  filter: blur(70px);
}
.faq-aside > * { position: relative; z-index: 1; }
.faq-aside h3 { color: #fff; margin-bottom: 12px; }
.faq-aside p { font-size: 0.9rem; line-height: 1.7; }

/* --- Contact / map ------------------------------------------------------- */
.map-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--green-050);
  min-height: 380px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

.map-card {
  position: absolute;
  left: 18px; bottom: 18px;
  right: 18px;
  max-width: 330px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.map-card h4 { margin: 0 0 6px; font-size: 1rem; }
.map-card p { margin: 0 0 12px; font-size: 0.8rem; color: var(--ink-500); }

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-tile h4 {
  margin: 0 0 4px;
  font-size: 0.66rem;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.contact-tile a, .contact-tile p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--green-800); }
.contact-tile a { display: block; }
.contact-tile a:hover { color: var(--gold-700); }

/* --- Value strip --------------------------------------------------------- */
.value-strip {
  display: grid;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .value-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .value-strip { grid-template-columns: repeat(4, 1fr); } }

.value-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  transition: background 0.5s var(--ease);
}
.value-cell:hover { background: var(--green-050); }
.value-cell strong { font-family: var(--font-ui); font-size: 0.92rem; color: var(--green-800); }
.value-cell span { font-size: 0.78rem; color: var(--ink-400); line-height: 1.55; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}

/* --- Page hero (inner pages), upgraded ----------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(44px, 6.5vw, 82px));
  padding-bottom: clamp(44px, 6vw, 78px);
  background:
    radial-gradient(56% 70% at 82% 6%, rgba(219, 238, 230, 0.8) 0%, transparent 62%),
    radial-gradient(48% 60% at 6% 92%, rgba(246, 236, 213, 0.72) 0%, transparent 62%),
    var(--grad-ivory);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, transparent 15px, rgba(14, 59, 49, 0.05) 15.7px, transparent 16.4px),
    radial-gradient(circle at 32px 32px, transparent 15px, rgba(14, 59, 49, 0.05) 15.7px, transparent 16.4px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(100deg, transparent, #000 55%, transparent);
  mask-image: linear-gradient(100deg, transparent, #000 55%, transparent);
}
.page-hero > .container { position: relative; z-index: 1; }

.page-hero__inner { max-width: 800px; }
.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .btn-row { justify-content: center; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-400);
}
.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--gold-700); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.5; }
.crumbs [aria-current] { color: var(--green-800); }
.page-hero--center .crumbs { justify-content: center; }

/* --- Utility ------------------------------------------------------------- */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.center-row { display: flex; justify-content: center; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Element-level corrections for the new markup ------------------------ */
.pillar { display: block; text-decoration: none; }
.pillar__icon,
.pillar__go { display: grid; }
.pillar__title,
.pillar__text { display: block; }

.hero__stage .subject-row { display: flex; }

.rating-bar__track,
.rating-bar__fill { display: block; }

.hero-counter > span:last-child { display: block; min-width: 0; }

.tile__title a { color: inherit; }
.tile__media { display: block; }

.mega__promo-media { display: block; }
.mega__promo-body { display: block; }
.mega__promo-foot { display: grid; }

.footer-brand-lockup > span { display: block; }

.quote-card .stars { align-self: flex-start; }

/* Cards get the new chip spacing */
.card .i-chip { margin-bottom: 18px; }

/* The hero photograph should never letterbox on very tall screens */
@media (min-width: 992px) and (max-height: 760px) {
  :root { --fs-h1: clamp(2.2rem, 1.5rem + 2.2vw, 3rem); }
  .hero { min-height: 100vh; }
  .hero__grid { padding-bottom: 142px; }
  .hero__pillars { margin-bottom: 14px; }
  .hero__proof { display: none; }
  .hero__wave svg { height: 62px; }
}

/* --- Tile kicker + softened media wash ----------------------------------- */
.tile__kicker {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.tile__media::after {
  background: linear-gradient(180deg, transparent 58%, rgba(4, 32, 26, 0.24) 100%);
}
.tile__media img { transform-origin: center 40%; }

/* The scroll cue has to clear the wave */
.scroll-cue { bottom: 196px; }

/* --- Ghost button on coloured grounds ------------------------------------ */
.cta-band .btn--ghost,
.faq-aside .btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.cta-band .btn--ghost::after,
.faq-aside .btn--ghost::after { background: #fff; }
.cta-band .btn--ghost:hover,
.faq-aside .btn--ghost:hover { color: var(--green-800); border-color: #fff; }

.footer-cta .btn--ghost {
  border-color: rgba(4, 32, 26, 0.38);
  color: var(--green-950);
}
.footer-cta .btn--ghost::after { background: var(--green-900); }
.footer-cta .btn--ghost:hover { color: #fff; border-color: var(--green-900); }

/* The open FAQ chevron sits on gold, so it needs the dark glyph */
.faq-item.is-open .faq-q__icon { color: var(--green-950); }

/* --- Inline glyph inside running text ------------------------------------ */
.inline-icon {
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  vertical-align: -0.2em;
  color: var(--gold-600);
  stroke-width: 1.8;
}

/* Safety net: an icon dropped straight into a paragraph must never expand */
.prose p > svg,
.lead > svg { width: 1.08em; height: 1.08em; vertical-align: -0.2em; }

/* The map card belongs on the side Google leaves free */
.map-card { left: auto; right: 18px; }
@media (max-width: 640px) { .map-card { left: 18px; max-width: none; } }

/* --- Icon sizing safety net ---------------------------------------------- */
/* :where() carries no specificity, so this only ever applies to an inline SVG
   that no component rule has sized — it can never fight a real rule. */
:where(svg) { width: 1.15em; height: 1.15em; }

.link-arrow svg { width: 15px; height: 15px; flex: none; }
.crumbs svg,
.breadcrumb svg { flex: none; }

/* --- Mega promo rail refinements ----------------------------------------- */
.mega__promo-media { aspect-ratio: 16 / 9; }
.mega__promo-body { margin-top: -40px; }
.mega__promo-body .btn { margin-top: 4px; }
.mega__promo-fact--link { transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.mega__promo-fact--link:hover { color: var(--gold-300); transform: translateX(3px); }

/* --- Hero on shorter laptop screens --------------------------------------
   The counters belong inside the first screenful. On a viewport that is not
   tall enough to hold the copy at full size, the hero tightens rather than
   pushing them under the fold. */
@media (min-width: 992px) and (max-height: 1000px) {
  :root { --fs-h1: clamp(2.5rem, 1.7rem + 3vw, 4.15rem); }
  .hero { padding-top: var(--nav-h); }
  .hero__grid { padding-bottom: 178px; }
  .hero__eyebrow-row { margin-bottom: 14px; }
  .hero__title--accent { margin-bottom: 16px; }
  .hero__sub { margin-bottom: 18px; }
  .hero__pillars { margin-bottom: 20px; }
  .pillar { padding: 13px 13px 12px; }
  .pillar__icon { width: 32px; height: 32px; margin-bottom: 9px; }
  .pillar__text { margin-bottom: 10px; }
  .hero__wave svg { height: clamp(58px, 8vw, 112px); }
  .hero__script { top: 2%; }
}

@media (min-width: 992px) and (max-height: 840px) {
  :root { --fs-h1: clamp(2.4rem, 1.6rem + 2.6vw, 3.5rem); }
  .hero__grid { padding-bottom: 158px; }
  .hero__sub { margin-bottom: 14px; font-size: 1rem; }
  .hero__pillars { margin-bottom: 16px; }
  .pillar__text { font-size: 0.7rem; margin-bottom: 8px; }
  .hero__wave svg { height: clamp(52px, 7vw, 92px); }
  .hero-counter__icon { width: 34px; height: 34px; }
}

/* --- Narrow screens: never let a grid item widen the page ---------------- */
.hero__grid > *,
.split > *,
.grid > *,
.faq-grid > * { min-width: 0; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 16px 22px; font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero__cta { gap: 12px 16px; }
  .hero__pillars { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
}

/* --- Mobile proof strip + brand ------------------------------------------ */
.proof__stat > span { display: block; }
.proof__stat .stars { display: flex; margin-bottom: 4px; }
.hero__proof .proof__stat strong { margin-bottom: 1px; }

@media (min-width: 380px) { .nav__brand-text { display: block; } }
@media (max-width: 479px) {
  .nav__brand { gap: 8px; }
  .nav__brand-mark { width: 32px; height: 36px; }
  .nav__brand-name { font-size: 1.15rem; }
  .nav__brand-sub { font-size: 0.42rem; letter-spacing: 0.16em; }
}

/* ==========================================================================
   33. One shape per section
   The rule for this file: no two sections may share a card. Each block below
   is the only place its treatment is used.
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Ledger — "Why choose us". No boxes at all: four columns divided by
   hairlines, a ghost numeral behind each, and a gold rule that draws itself
   along the bottom edge on hover.
   -------------------------------------------------------------------------- */
.ledger {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 680px) { .ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ledger { grid-template-columns: repeat(4, 1fr); } }

.ledger__item {
  position: relative;
  padding: 34px 26px 40px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.55s var(--ease);
}
@media (min-width: 680px) {
  .ledger__item { border-right: 1px solid var(--line); }
  .ledger__item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1000px) {
  .ledger__item { border-bottom: 0; border-right: 1px solid var(--line); }
  .ledger__item:nth-child(2n) { border-right: 1px solid var(--line); }
  .ledger__item:last-child { border-right: 0; }
}
.ledger__item:hover { background: rgba(255, 255, 255, 0.75); }

.ledger__item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease);
}
.ledger__item:hover::after { transform: scaleX(1); }

.ledger__n {
  position: absolute;
  top: 8px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 59, 49, 0.12);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.55s var(--ease), transform 0.7s var(--ease);
}
.ledger__item:hover .ledger__n {
  -webkit-text-stroke-color: rgba(194, 145, 46, 0.42);
  transform: translateY(-4px);
}

.ledger__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--green-700);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.55s var(--ease-spring);
}
.ledger__icon svg { width: 16px; height: 16px; }
.ledger__item:hover .ledger__icon {
  background: var(--grad-green);
  border-color: transparent;
  color: var(--gold-300);
  transform: rotate(-8deg);
}

.ledger__title {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--green-800);
}
.ledger__text {
  position: relative;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   B. Arc stats — the dark band. The number lives inside a conic ring that
   sweeps as it scrolls in; nothing is boxed.
   -------------------------------------------------------------------------- */
.arc-stats {
  display: grid;
  gap: 38px 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .arc-stats { grid-template-columns: repeat(4, 1fr); } }

.arc-stat {
  position: relative;
  padding-inline: 14px;
  text-align: center;
}
@media (min-width: 900px) {
  .arc-stat + .arc-stat::before {
    content: "";
    position: absolute;
    left: 0; top: 14%;
    width: 1px; height: 72%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }
}

.arc-stat__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px; height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold-400) 0deg, rgba(212, 169, 74, 0.55) 90deg, rgba(255, 255, 255, 0.07) 190deg, rgba(255, 255, 255, 0.07) 360deg);
  padding: 2px;
  transition: transform 0.7s var(--ease-spring);
}
.arc-stat:hover .arc-stat__ring { transform: translateY(-6px) rotate(6deg); }

.arc-stat__ring::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 169, 74, 0.28);
}

.arc-stat__ring > span {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #08322a;
}

.arc-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.arc-stat__label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.arc-stat__hint {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   C. Bento — the nine reasons. Mixed spans and two dark cells so the block
   reads as a composition rather than a nine-up grid.
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(6, 1fr); } }

.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 22px 22px 22px 4px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.bento__cell:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* 3 / 2 / 2 rhythm across six columns */
@media (min-width: 640px) {
  .bento__cell { grid-column: span 3; }
  .bento__cell:nth-child(3),
  .bento__cell:nth-child(4),
  .bento__cell:nth-child(5) { grid-column: span 2; }
}

/* Two cells invert so the eye has somewhere to land */
.bento__cell:nth-child(1),
.bento__cell:nth-child(7) {
  background: var(--grad-deep);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.74);
}
.bento__cell:nth-child(1) .bento__title,
.bento__cell:nth-child(7) .bento__title { color: #fff; }
.bento__cell:nth-child(1) .bento__text,
.bento__cell:nth-child(7) .bento__text { color: rgba(255, 255, 255, 0.68); }
.bento__cell:nth-child(1) .bento__n,
.bento__cell:nth-child(7) .bento__n { color: rgba(255, 255, 255, 0.12); }
.bento__cell:nth-child(1) .bento__icon,
.bento__cell:nth-child(7) .bento__icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--gold-300);
}

.bento__n {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(14, 59, 49, 0.07);
  pointer-events: none;
}

.bento__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 46px;
  margin-bottom: 16px;
  border-radius: var(--r-arch);
  background: var(--grad-gold-soft);
  border: 1px solid rgba(212, 169, 74, 0.3);
  color: var(--gold-700);
  transition: transform 0.55s var(--ease-spring);
}
.bento__icon svg { width: 19px; height: 19px; }
.bento__cell:hover .bento__icon { transform: translateY(-4px) rotate(-6deg); }

.bento__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--green-800);
}
.bento__text { margin: 0; font-size: 0.845rem; line-height: 1.66; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   D. Quote wall — testimonials. Slabs at three different heights, a serif
   glyph bleeding off the top edge and a dashed rule above the attribution.
   -------------------------------------------------------------------------- */
.quote-wall { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .quote-wall { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .quote-wall > :nth-child(2) { margin-top: 46px; }
  .quote-wall > :nth-child(3) { margin-top: 22px; }
}

.quote-slab {
  position: relative;
  margin: 0;
  padding: 40px 28px 26px;
  border-radius: 2px 26px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-400);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-left-color 0.5s var(--ease);
}
.quote-slab:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--green-700);
}

.quote-slab__glyph {
  position: absolute;
  top: -26px; left: 22px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-200);
  pointer-events: none;
  transition: color 0.5s var(--ease);
}
.quote-slab:hover .quote-slab__glyph { color: var(--gold-400); }

.quote-slab__text {
  margin: 0 0 20px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-700);
}

.quote-slab__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.quote-slab__foot img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-100);
}
.quote-slab__name {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-800);
}
.quote-slab__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--ink-400);
}
.quote-slab__loc svg { width: 12px; height: 12px; }
.quote-slab__stars { display: flex; gap: 2px; margin-left: auto; }
.quote-slab__stars svg { width: 13px; height: 13px; color: var(--gold-500); }

/* --------------------------------------------------------------------------
   E. Duo — the closing resource pair. One inverted, one paper, both with a
   diagonal corner rather than the house radius.
   -------------------------------------------------------------------------- */
.duo { display: grid; gap: 20px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1.1fr 0.9fr; } }

.duo__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}

.duo__panel--photo { color: #fff; }
.duo__panel--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}
.duo__panel--photo:hover img { transform: scale(1.09); }
.duo__panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(4, 32, 26, 0.28) 0%, rgba(4, 32, 26, 0.88) 78%);
}
.duo__panel--photo h3 { color: #fff; }
.duo__panel--photo p { color: rgba(255, 255, 255, 0.76); }

.duo__panel--paper {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.duo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.duo__panel--paper .duo__eyebrow { color: var(--gold-700); }
.duo__eyebrow svg { width: 14px; height: 14px; }

.duo__panel h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); }
.duo__panel p { margin: 0 0 22px; font-size: 0.92rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   F. Course tiles gain an index and an arched photo, so they cannot be
   confused with the bento cells above them.
   -------------------------------------------------------------------------- */
.tile__media { border-radius: 0 0 26px 0; }
.tile__index {
  position: absolute;
  right: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 10px rgba(4, 32, 26, 0.6);
}

/* --------------------------------------------------------------------------
   34. Scroll choreography support
   -------------------------------------------------------------------------- */
.wipe-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--cream);
  pointer-events: none;
}
.section--dark .wipe-panel,
.duo__panel--photo .wipe-panel { background: var(--green-950); }

[data-wipe] { position: relative; overflow: hidden; }
[data-scale-in] { will-change: transform; }
[data-depth] { will-change: transform; }

/* The rule drawn by [data-line] */
.rule-draw {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-500), rgba(194, 145, 46, 0));
  transform-origin: left center;
}

/* Skewed sections must not bleed into each other */
#scrollArea > main > section,
#scrollArea > main > div { will-change: transform; }

html.is-loading, html.is-loading body { overflow: hidden; }

/* --------------------------------------------------------------------------
   35. Forms, rebuilt
   The old fields were a stack of grey boxes with shouty uppercase labels.
   These sit on a tinted sheet, carry an icon, and float their own label.
   -------------------------------------------------------------------------- */
.form-sheet {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(246, 236, 213, 0.5) 0%, transparent 58%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-gold);
}

.form { display: grid; gap: 20px; }

/* --- floating-label field ------------------------------------------------ */
.field { position: relative; display: block; }

.field__control {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px 10px 46px;
  border-radius: 14px;
  background: var(--green-050);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(14, 59, 49, 0.07);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field__control:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gold-400), 0 0 0 4px rgba(194, 145, 46, 0.13);
}

.field__icon {
  position: absolute;
  left: 16px;
  top: 19px;
  width: 18px; height: 18px;
  color: var(--ink-400);
  pointer-events: none;
  transition: color 0.35s var(--ease), transform 0.4s var(--ease);
}
.field__control:focus-within .field__icon { color: var(--gold-600); transform: scale(1.08); }

.field label {
  position: absolute;
  left: 46px;
  top: 17px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-400);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.field__control:focus-within label,
.field__control.is-filled label {
  transform: translateY(-11px) scale(0.72);
  color: var(--gold-700);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; box-shadow: none; border: 0; }

/* The placeholder only appears once the label has moved out of the way */
.field input::placeholder,
.field textarea::placeholder { color: transparent; transition: color 0.3s var(--ease); }
.field__control:focus-within input::placeholder,
.field__control:focus-within textarea::placeholder { color: var(--ink-300); }

.field textarea { min-height: 116px; resize: vertical; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b66' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 15px;
  padding-right: 26px;
  cursor: pointer;
}

.field.has-error .field__control {
  background: #fdf3f2;
  box-shadow: inset 0 0 0 1px #d9534f;
}
.field.has-error .field__icon { color: #c0392b; }

.field__error {
  display: block;
  margin: 6px 0 0 4px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #c0392b;
}
.field__error:empty { margin: 0; }

@media (min-width: 640px) {
  .form--split { grid-template-columns: 1fr 1fr; }
  .form--split .field--full { grid-column: 1 / -1; }
}

/* --- submit row ---------------------------------------------------------- */
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.form__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-400);
}
.form__note svg { width: 15px; height: 15px; color: var(--green-500); flex: none; }

/* --------------------------------------------------------------------------
   36. Course prose, set properly
   The body copy on a course page is the thing that actually sells it, and it
   was running as undifferentiated paragraphs. This gives it a measure, a
   rhythm, a drop cap, marked-up headings and a pull quote.
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }

.prose h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.4em;
  margin-bottom: 0.75em;
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.prose h2::before {
  content: "";
  flex: none;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  color: var(--ink-500);
  font-size: 1.02rem;
  line-height: 1.82;
  margin-bottom: 1.15em;
}

/* The opening paragraph gets the drop cap and a larger measure */
.prose > p:first-of-type {
  font-size: 1.09rem;
  color: var(--ink-700);
}
.prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.04em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--gold-600);
}

.prose strong { color: var(--green-800); font-weight: 600; }

/* At-a-glance strip under the hero ---------------------------------------- */
.glance {
  display: grid;
  gap: 1px;
  margin-bottom: 36px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 560px) { .glance { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .glance { grid-template-columns: repeat(4, 1fr); } }

.glance__cell {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  background: #fff;
  transition: background 0.4s var(--ease);
}
.glance__cell:hover { background: var(--green-050); }
.glance__cell svg { width: 19px; height: 19px; color: var(--gold-600); flex: none; }
.glance__cell b {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.glance__cell span { display: block; font-size: 0.88rem; font-weight: 600; color: var(--green-800); }

/* Outcome callout --------------------------------------------------------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 26px 0;
  padding: 20px 24px;
  border-radius: 4px 18px 18px 4px;
  background: linear-gradient(100deg, var(--gold-050), rgba(253, 248, 236, 0.3));
  border-left: 3px solid var(--gold-500);
}
.callout svg { width: 22px; height: 22px; color: var(--gold-700); flex: none; margin-top: 2px; }
.callout b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.callout p { margin: 0 !important; font-size: 1rem !important; font-weight: 500; color: var(--green-800) !important; }

/* Numbered learn items ---------------------------------------------------- */
.learn-list { counter-reset: learn; }
.learn-item { counter-increment: learn; }
.learn-item::before {
  content: counter(learn, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  left: 18px; top: 21px;
  border-radius: 50%;
  background: var(--grad-green);
  border: 0;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--gold-300);
}
.learn-item::after { display: none; }
.learn-item { padding-left: 60px; }

/* Contents rail in the sidebar -------------------------------------------- */
.toc {
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--green-050);
  border: 1px solid var(--line);
}
.toc h4 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.toc ol { counter-reset: toc; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-700);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold-600);
}
.toc a:hover { color: var(--green-800); transform: translateX(3px); }

/* Hadith card, given the weight it deserves ------------------------------- */
.hadith-card {
  position: relative;
  padding: 30px 30px 26px 62px;
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.hadith-card::before {
  content: "\201C";
  position: absolute;
  left: 20px; top: 10px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.6;
}
.hadith-card blockquote {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
}
.hadith-card cite {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--gold-300);
}

/* Check items get a real tick and a hover lift */
.check-item svg { width: 17px; height: 17px; color: var(--green-600); flex: none; margin-top: 2px; }
.check-item:hover { background: var(--gold-050); transform: translateX(3px); }

/* Footer links carry their own glyph */
.footer-links a::before { display: none; }
.footer-links a svg {
  width: 14px; height: 14px;
  flex: none;
  color: var(--gold-400);
  opacity: 0.65;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.footer-links a:hover svg { opacity: 1; transform: translateX(2px); }

/* --------------------------------------------------------------------------
   37. Included rows — pricing only.
   A tick list rather than a card grid, so the pricing page never repeats the
   ledger on the home page or the bento above it.
   -------------------------------------------------------------------------- */
.incl {
  display: grid;
  gap: 0;
  max-width: 960px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) { .incl { grid-template-columns: 1fr 1fr; column-gap: 46px; } }

.incl__row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 22px 6px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}
.incl__row:hover { padding-left: 8px; }

.incl__tick {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #fff;
}
.incl__tick svg { width: 13px; height: 13px; stroke-width: 3; }

.incl__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--green-050);
  color: var(--green-700);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.incl__icon svg { width: 17px; height: 17px; }
.incl__row:hover .incl__icon { background: var(--grad-green); color: var(--gold-300); }

.incl__title { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; color: var(--green-800); }
.incl__text { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   38. Pillar panels — the three commitments on the about page.
   An arched crown holding the glyph, a hairline frame, and a numeral that
   sits in the top corner. Used here and nowhere else.
   -------------------------------------------------------------------------- */
.pillars { display: grid; gap: 22px; }
@media (min-width: 880px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar-panel {
  position: relative;
  padding: 52px 28px 30px;
  margin-top: 30px;
  border-radius: var(--r-arch);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.5s var(--ease);
}
.pillar-panel:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-panel__crown {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 60px; height: 66px;
  border-radius: var(--r-arch);
  background: var(--grad-green);
  color: var(--gold-300);
  box-shadow: 0 14px 30px -14px rgba(7, 46, 38, 0.8);
  transition: transform 0.6s var(--ease-spring), background 0.5s var(--ease), color 0.5s var(--ease);
}
.pillar-panel__crown svg { width: 24px; height: 24px; }
.pillar-panel:hover .pillar-panel__crown {
  transform: translateX(-50%) translateY(-5px) rotate(-6deg);
  background: var(--grad-gold);
  color: #fff;
}

.pillar-panel__n {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 59, 49, 0.14);
}

.pillar-panel h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.3;
}
.pillar-panel p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   39. Department rows — the catalogue page only. Horizontal bars rather than
   cards, so the page opens with a different rhythm to the grid below it.
   -------------------------------------------------------------------------- */
.depts { display: grid; gap: 12px; }

.dept {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.dept::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--ease);
}
.dept:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: transparent; }
.dept:hover::before { transform: scaleY(1); }

.dept__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 58px;
  flex: none;
  border-radius: var(--r-arch);
  background: var(--grad-gold-soft);
  border: 1px solid rgba(212, 169, 74, 0.3);
  color: var(--gold-700);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.55s var(--ease-spring);
}
.dept__icon svg { width: 23px; height: 23px; }
.dept:hover .dept__icon { background: var(--grad-green); color: var(--gold-300); transform: rotate(-6deg); }

.dept__body { display: block; min-width: 0; }
.dept__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.dept__head h2 { margin: 0; font-size: 1.18rem; line-height: 1.25; }
.dept__count {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.dept__blurb { display: block; font-size: 0.875rem; line-height: 1.6; color: var(--ink-500); }

.dept__go {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--green-700);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.dept__go svg { width: 16px; height: 16px; }
.dept:hover .dept__go { background: var(--grad-green); border-color: transparent; color: var(--gold-300); transform: translateX(4px); }
