/* The Live Quran — design tokens */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-warm: #f4eee1;
  --ink: #12231f;
  --muted: #4f605b;
  --line: #e4dccb;
  --primary: #0e5c4b;
  --primary-deep: #073a30;
  --primary-soft: #e3efea;
  --gold: #d2a24c;
  --gold-ink: #7d5a17;
  --gold-soft: #f7ecd4;
  --on-dark: #f3efe4;
  --on-dark-muted: #b9cfc7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[lang="ar"] { font-family: var(--font-arabic); letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--warm { background: var(--surface-warm); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 19px; height: 19px; transition: transform 0.25s var(--ease); }
.btn:hover .icon--go { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: #24190a; }
.btn--gold:hover { background: #dfb362; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); }
.btn--ghost { border-color: rgba(243, 239, 228, 0.4); color: var(--on-dark); }
.btn--ghost:hover { background: rgba(243, 239, 228, 0.1); border-color: var(--on-dark); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary-soft); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; color: var(--primary); text-decoration: none;
}
.link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-stuck { border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 50px; height: 50px; object-fit: contain; flex: none; border-radius: 50%; }
.brand__name { font: 600 1.28rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__name em { font-style: italic; color: var(--primary); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover { color: var(--ink); background: rgba(14, 92, 75, 0.07); }
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover { color: var(--primary); font-weight: 700; background: none; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { min-height: 52px; font-size: 1.05rem; color: var(--ink); }
  .nav .btn { margin: 12px 0 0; }
}

/* Dark surfaces */
.dark { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: #0b4a3c; }
/* Islamic interlaced-circle tile, kept faint */
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09;
  background: url("pattern.svg") 0 0 / 92px 92px;
}
.footer::before { display: none; }
.dark .eyebrow { color: var(--gold); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(243, 239, 228, 0.16); }
.ticks li { display: inline-flex; align-items: center; gap: 9px; font-size: 0.97rem; font-weight: 600; }
.ticks .icon { width: 18px; height: 18px; color: var(--gold); stroke-width: 2.4; }

/* Live lesson card (hero visual) */
.lesson { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.lesson__arch {
  background: var(--bg); color: var(--ink);
  border-radius: 220px 220px var(--r-lg) var(--r-lg);
  padding: 58px 28px 28px; box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(210, 162, 76, 0.55); outline-offset: 9px;
}
.lesson__live {
  display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.lesson__live i { width: 8px; height: 8px; border-radius: 50%; background: #d64533; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.lesson__verse { margin-top: 26px; text-align: center; font-size: clamp(1.9rem, 4.4vw, 2.5rem); line-height: 1.9; color: var(--primary-deep); }
.lesson__verse b { font-weight: 400; color: #a9781f; }
.lesson__caption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.lesson__rows { margin-top: 24px; display: grid; gap: 10px; }
.lesson__row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 0.93rem; line-height: 1.35;
}
.lesson__row strong { display: block; font-size: 0.95rem; }
.lesson__row span { color: var(--muted); font-size: 0.85rem; }
.lesson__av { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.lesson__av--gold { background: var(--gold-soft); color: var(--gold-ink); }
.lesson__wave { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 22px; }
.lesson__wave i { width: 3px; border-radius: 2px; background: var(--primary); animation: wave 1.1s ease-in-out infinite; }
.lesson__wave i:nth-child(1) { height: 8px; } .lesson__wave i:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.lesson__wave i:nth-child(3) { height: 12px; animation-delay: 0.3s; } .lesson__wave i:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.lesson__wave i:nth-child(5) { height: 9px; animation-delay: 0.6s; }
@keyframes wave { 50% { transform: scaleY(0.45); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .lesson { max-width: 380px; margin-top: 12px; }
}

/* Fact strip */
.facts { margin-top: calc(var(--section) * -0.42); position: relative; z-index: 2; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.fact { padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact dt { font: 600 clamp(1.7rem, 3vw, 2.2rem)/1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; }
.fact dd { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 760px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 18px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.course {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.course:hover { border-color: var(--primary); }
.course__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.course__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: background-color 0.3s, color 0.3s; }
.course:hover .course__icon { background: var(--primary); color: #fff; }
.course__ar { font-size: 1.55rem; line-height: 1.4; color: #a9781f; }
.course h3 { margin-top: 22px; }
.course p { margin-top: 10px; color: var(--muted); font-size: 0.99rem; flex: 1; }
.course__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tag { white-space: nowrap; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.8rem; font-weight: 700; }
.course__go { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.course__go .icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.course:hover .course__go .icon { transform: translateX(4px); }

/* Why us */
.why { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.why__intro { position: sticky; top: 108px; }
.why__intro h2 { margin-top: 14px; }
.why__intro p { margin-top: 18px; color: var(--muted); }
.why__intro .btn { margin-top: 28px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.feature .icon { width: 26px; height: 26px; color: var(--primary); }
.feature h3 { margin-top: 14px; font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__intro { position: static; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font: 600 2.6rem/1 var(--font-display); color: var(--gold); }
.step h3 { margin-top: 16px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.99rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Principal */
.principal { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.principal__card { border-radius: 200px 200px var(--r-lg) var(--r-lg); padding: 12px 12px 30px; text-align: center; }
.principal__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 20%; border-radius: 190px 190px 14px 14px; }
.principal__card > :not(img) { margin-inline: 16px; }
.principal__card .mono { width: 92px; height: 92px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 239, 228, 0.12); border: 1px solid rgba(210, 162, 76, 0.6); font: 600 2rem/1 var(--font-display); color: var(--gold); }
.principal__card h3 { margin-top: 20px; font-size: 1.45rem; }
.principal__card p { color: var(--on-dark-muted); margin-top: 6px; font-size: 0.97rem; }
.principal__card ul { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(243, 239, 228, 0.18); display: grid; gap: 10px; font-size: 0.95rem; font-weight: 600; }
.principal__card li { display: flex; align-items: center; gap: 10px; text-align: left; }
.principal__card li .icon { width: 18px; height: 18px; color: var(--gold); }
.prose > * + * { margin-top: 18px; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 14px; }
.prose h2 + p { margin-top: 20px; }
@media (max-width: 820px) { .principal { grid-template-columns: 1fr; } .principal__card { max-width: 340px; margin-inline: auto; width: 100%; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: #bcd3c9; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }

/* CTA band */
.cta { border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); text-align: center; overflow: hidden; }
.cta h2 { max-width: 18em; margin-inline: auto; }
.cta p { margin: 18px auto 0; max-width: 36em; color: var(--on-dark-muted); font-size: 1.1rem; }
.cta .hero__cta { justify-content: center; }
.cta-wrap { padding-bottom: var(--section); }
.section--warm + .cta-wrap { padding-top: var(--section); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.8vw, 3.4rem); max-width: 17em; }
.page-hero p { margin-top: 18px; max-width: 40em; color: var(--on-dark-muted); font-size: 1.12rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; padding-block: 10px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.page-hero__ar { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.5; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(243, 239, 228, 0.1); border: 1px solid rgba(243, 239, 228, 0.2); font-size: 0.9rem; font-weight: 600; }
.chip .icon { width: 17px; height: 17px; color: var(--gold); }

/* Course detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.detail section + section { margin-top: 56px; }
.syllabus { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; counter-reset: syl; }
.syllabus li { display: flex; align-items: baseline; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: 0.98rem; line-height: 1.4; counter-increment: syl; }
.syllabus li::before { content: counter(syl, decimal-leading-zero); font: 600 0.95rem/1 var(--font-display); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.aside { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.aside h2 { font-size: 1.45rem; }
.aside > p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.aside ul { margin: 22px 0; display: grid; gap: 14px; }
.aside li { display: flex; gap: 12px; font-size: 0.96rem; line-height: 1.45; }
.aside li .icon { color: var(--primary); width: 20px; height: 20px; margin-top: 2px; }
.aside li strong { display: block; }
.aside li span { color: var(--muted); font-size: 0.9rem; }
.aside .btn + .btn { margin-top: 10px; }
@media (max-width: 940px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }
@media (max-width: 560px) { .syllabus { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.2s; }
.channel:hover { border-color: var(--primary); }
.channel__icon { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.channel strong { display: block; line-height: 1.3; }
.channel span { color: var(--muted); font-size: 0.93rem; overflow-wrap: anywhere; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-md); scroll-margin-top: 100px; }
.form h2 { font-size: 1.7rem; }
.form > p { margin-top: 8px; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.93rem; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(14, 92, 75, 0.14); }
.field .error { display: none; color: #a8301f; font-size: 0.88rem; font-weight: 600; }
.field.is-invalid input { border-color: #a8301f; }
.field.is-invalid .error { display: block; }
.form__note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.form .btn { margin-top: 24px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* Commitment */
.commit { border-left: 3px solid var(--gold); padding: 6px 0 6px clamp(20px, 3vw, 32px); max-width: 780px; }
.commit p { font: 500 clamp(1.25rem, 2.3vw, 1.6rem)/1.5 var(--font-display); color: var(--ink); }
.commit p + p { margin-top: 16px; font: 400 1.05rem/1.65 var(--font-body); color: var(--muted); }

/* Footer */
.footer { padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .brand__name, .footer .brand__name em { color: var(--on-dark); }
.footer .brand__name em { color: var(--gold); }
.footer__about { margin-top: 18px; color: var(--on-dark-muted); font-size: 0.97rem; max-width: 30em; }
.footer h2 { font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer li a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--on-dark-muted); text-decoration: none; font-size: 0.98rem; overflow-wrap: anywhere; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer li .icon { width: 18px; height: 18px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(243, 239, 228, 0.16); color: var(--on-dark-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Floating WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #128c4b; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.97rem;
  border: 2px solid #fff; transition: transform 0.25s var(--ease), background-color 0.2s;
}
.wa:hover { background: #0f7a41; }
.wa .icon { width: 24px; height: 24px; }
@media (max-width: 520px) { .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .wa { padding: 0; width: 56px; justify-content: center; } }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* Hero points on one line where there is room */
.ticks li { white-space: nowrap; }
@media (min-width: 1180px), (min-width: 640px) and (max-width: 900px) {
  .ticks { flex-wrap: nowrap; gap: 22px; }
  .ticks li { font-size: 0.92rem; gap: 7px; }
}

/* Founder block */
.principal { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); }
.founder { position: relative; margin: 0 0 14px 14px; }
.founder::before { content: ""; position: absolute; inset: 14px 14px -14px -14px; border: 1.5px solid var(--gold); border-radius: 20px; }
.founder img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 20px; }
.founder figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 3px; padding: 13px 18px; border-radius: 12px; background: #0b4a3c; color: var(--on-dark); }
.founder figcaption strong { font: 600 1.25rem/1.2 var(--font-display); }
.founder figcaption span { font-size: 0.9rem; color: var(--gold); }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.98rem; }
.creds li { display: flex; align-items: center; gap: 10px; }
.creds .icon { width: 19px; height: 19px; color: var(--gold-ink); stroke-width: 2.3; }
@media (max-width: 820px) {
  .principal { grid-template-columns: 1fr; }
  .founder { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 420px) { .creds { grid-template-columns: 1fr; } }

/* Current page in the mobile menu */
@media (max-width: 860px) {
  .nav a[aria-current="page"], .nav a[aria-current="page"]:hover { color: var(--primary); text-underline-offset: 6px; }
}

/* Student reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.review { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.review::before { content: "\201C"; font: 600 3.4rem/0.8 var(--font-display); color: var(--gold); }
.review blockquote { margin: 10px 0 0; flex: 1; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.review__by { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__by strong { font-weight: 700; }
.review__by span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 720px) { .reviews { grid-template-columns: 1fr; } }

/* Reviews carousel: swipe or use the arrows */
.reviews { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.carousel__btn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--primary); border-radius: 50%; background: none; color: var(--primary); cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.carousel__btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__btn[data-dir="-1"] .icon { rotate: 180deg; }
.carousel.is-static .carousel__nav { display: none; }
@media (max-width: 960px) { .review { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .review { flex-basis: 86%; } }
