:root {
  --ink: #14161c;
  --night: #05060a;
  --night-2: #12141c;
  --paper: #f3efe6;
  --cream: #faf7f1;
  --card: #fffdf8;
  --gold: #e6a01a;
  --gold-deep: #8d5d09;
  --on-gold: #1a1204;
  --on-night: #f6f1e6;
  --muted: #5c6170;
  --muted-night: #b7b3a8;
  --line: #e2dacd;
  --line-night: #2c3040;
  --navy: #1a1648;
  --display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --wrap: 72rem;
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, [role="button"] { cursor: pointer; font-family: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.03em; margin: 0; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 0.75rem;
  z-index: 80;
  background: var(--gold);
  color: var(--on-gold);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid var(--line-night);
}
.header-row {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 3rem; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a { color: var(--muted-night); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--on-night);
  border-radius: 999px;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.mobile-nav {
  display: none;
  position: absolute;
  inset: 4rem 0 auto;
  height: calc(100dvh - 4rem);
  background: var(--night);
  padding: 1.5rem 1.25rem;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--on-night);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 700;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-night);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .phone { margin-top: 1.5rem; color: var(--muted-night); text-decoration: none; font-size: 0.875rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--night); color: var(--on-night); }
.btn-ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px var(--line-night); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn-night { background: var(--night); color: var(--on-night); }
.btn-night:hover { background: var(--navy); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-pad { padding-inline: 1rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
}
.back svg { width: 1rem; height: 1rem; }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kicker-gold { color: var(--gold); }
.muted { color: var(--muted); }
.muted-night { color: var(--muted-night); }
.lede { font-size: 1.125rem; line-height: 1.6; }

.hero { display: grid; background: var(--night); color: var(--on-night); }
.hero-copy { order: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 3rem 1.25rem; }
.hero-logo { display: block; width: 16rem; max-width: 100%; height: auto; margin-top: 1.25rem; align-self: flex-start; }
.hero h1 { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 0.92; font-weight: 800; max-width: 16ch; }
.hero-copy .lede { max-width: 36rem; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-night);
  max-width: 32rem;
}
.stats dt { font-family: var(--display); font-size: 1.875rem; font-weight: 800; }
.stats dt.gold { color: var(--gold); }
.stats dd { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted-night); }
.hero-photo { order: 1; position: relative; min-height: 24rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.marquee { overflow: hidden; background: var(--gold); color: var(--on-gold); }
.marquee-track { display: flex; width: max-content; animation: phoenix-marquee 80s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0.75rem 0; }
.marquee li { display: flex; align-items: center; font-size: 0.875rem; font-weight: 600; }
.marquee li span { padding: 0 1rem; }
@keyframes phoenix-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.accred { background: var(--cream); border-bottom: 1px solid var(--line); }
.accred-row { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem 0; }
.accred p { margin: 0; max-width: 18rem; font-size: 0.875rem; color: var(--muted); }
.accred ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.accred img { height: 3rem; width: auto; }
.accred img.saqa { height: 3.5rem; }

.section { padding: 4rem 0; }
.finder { display: grid; gap: 2.5rem; }
.finder h2, .block-title { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 0.95; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.chip[aria-pressed="true"], .chip.on { background: var(--night); color: var(--on-night); box-shadow: none; }
.results { margin-top: 1.5rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 0.875rem; overflow: hidden; }
.result { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; }
.result a { font-family: var(--display); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.result a:hover { color: var(--gold-deep); }
.result p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }

.night { background: var(--night); color: var(--on-night); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head a { color: var(--gold); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.families { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.family {
  display: block;
  overflow: hidden;
  border-radius: 0.875rem;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line-night);
  text-decoration: none;
  color: inherit;
}
.family img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.family div { padding: 1.25rem; }
.family h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.family p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted-night); }
.family .more { margin-top: 1rem; color: var(--on-night); font-size: 0.875rem; font-weight: 600; }

.split { display: grid; gap: 3rem; }
.photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.875rem; margin-top: 2rem; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.principles li:first-child { border-top: 0; }
.num { font-family: var(--display); font-size: 0.875rem; font-weight: 700; color: var(--gold-deep); }
.principles h3 { font-size: 1.5rem; }
.principles p, .service p, .card p { color: var(--muted); }

.cream { background: var(--cream); }
.services { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.service, .panel, .fact, .card {
  background: var(--card);
  border-radius: 0.875rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.service { padding: 1.5rem; }
.service h3 { font-size: 1.5rem; margin-top: 0.75rem; }
.ask { margin-top: 1.25rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; font-weight: 600; text-underline-offset: 4px; text-decoration: underline; text-decoration-color: var(--gold); }

.quote { position: relative; min-height: 24rem; }
.quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-shade { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.7); }
.quote blockquote { position: relative; width: min(56rem, calc(100% - 2.5rem)); margin: 0 auto; min-height: 24rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 4rem 0; color: var(--on-night); }
.quote p { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; margin: 0; }
.quote footer { margin-top: 1.5rem; color: var(--gold); font-size: 0.875rem; }

.page-intro { background: var(--night); color: var(--on-night); padding: 3.5rem 0 4rem; }
.page-intro h1 { font-size: clamp(2.6rem, 6vw, 3.75rem); line-height: 0.95; font-weight: 800; max-width: 16ch; }
.page-intro .lede { max-width: 40rem; margin-top: 1.25rem; }

.toolbar { display: flex; flex-direction: column; gap: 1rem; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted); }
.search input {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 1rem 0 2.4rem;
  font: inherit;
  color: var(--ink);
}
.count { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.card { overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card h2 { font-size: 1.5rem; margin-top: 0.5rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--gold-deep); }
.card-body > p { flex: 1; font-size: 0.875rem; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.steps { display: grid; gap: 1.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.steps h2 { font-size: 1.25rem; margin-top: 0.5rem; }
.steps p { font-size: 0.875rem; color: var(--muted); }

.course-hero { background: var(--night); color: var(--on-night); }
.course-grid { display: grid; gap: 2rem; padding: 3rem 0; }
.course-hero h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); line-height: 0.95; font-weight: 800; }
.course-hero .crumbs { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.course-hero .crumbs a { color: var(--gold); }
.focus { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.focus li { display: flex; gap: 0.75rem; margin-top: 1rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--gold); margin-top: 0.55rem; flex: none; }
.aside { padding: 1.5rem; height: fit-content; }
.aside h2 { font-size: 1.5rem; }
.related { background: var(--cream); border-top: 1px solid var(--line); padding: 3.5rem 0; }

.consult-item { display: grid; gap: 1.5rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.consult-item h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; margin-top: 0.5rem; }
.check { margin-top: 1.5rem; display: grid; gap: 2rem; background: var(--night); color: var(--on-night); border-radius: 0.875rem; padding: 1.5rem; }
.check h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.check-list button {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  background: transparent;
  color: inherit;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-night);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.check-list button:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.tick {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: none;
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 1px var(--muted-night);
}
.check-list button[aria-pressed="true"] .tick { background: var(--gold); box-shadow: none; }
.check-list strong { display: block; }
.check-list span { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-night); }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }

.about { display: grid; gap: 3rem; padding: 3.5rem 0; }
.facts { overflow: hidden; }
.facts div { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dd { margin: 0.5rem 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.prose { font-size: 1.125rem; }
.prose p { line-height: 1.7; }

.contact { display: grid; gap: 3rem; padding: 3.5rem 0; }
form { display: grid; gap: 1.25rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; }
label span.hint { font-weight: 400; color: var(--muted); margin-left: 0.4rem; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.pair { display: grid; gap: 1.25rem; }
.error { color: var(--gold-deep); font-size: 0.875rem; font-weight: 600; }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.consent input { width: 1rem; height: 1rem; margin-top: 0.2rem; }
.office { background: var(--night); color: var(--on-night); border-radius: 0.875rem; padding: 1.5rem; height: fit-content; }
.office a { color: inherit; }
.office dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.office dd { margin: 0.35rem 0 0; }
.office .big { font-family: var(--display); font-size: 1.875rem; font-weight: 800; text-decoration: none; }
.ready pre {
  white-space: pre-wrap;
  background: var(--paper);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  overflow-x: auto;
}
.policy { width: min(46rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0; display: grid; gap: 2.5rem; }
.policy h2 { font-size: 1.875rem; }
.policy p { color: var(--muted); }

.site-footer { background: var(--night); color: var(--on-night); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
.site-footer h2 { font-size: 1.125rem; }
.site-footer p, .site-footer a, .site-footer li { color: var(--muted-night); font-size: 0.875rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-night); }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.social { display: flex; gap: 0.75rem; margin-top: 1.25rem; list-style: none; padding: 0; }
.social a {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-night);
  color: var(--on-night);
}
.social svg, .contact-line svg { width: 1rem; height: 1rem; }
.contact-line { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-line svg { color: var(--gold); margin-top: 0.15rem; flex: none; }
.footer-base { border-top: 1px solid var(--line-night); }
.footer-meta { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.25rem 0; }
.footer-base p { margin: 0; font-size: 0.75rem; }
.dev-credit { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--muted-night); text-decoration: none; font-size: 0.75rem; }
.dev-credit img { height: 1.75rem; width: auto; }
.dev-credit:hover { color: var(--on-night); }

.pack-bar {
  position: sticky;
  top: 4rem;
  z-index: 30;
  background: var(--gold);
  color: var(--on-gold);
  border-bottom: 1px solid var(--gold-deep);
}
.pack-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; }
.pack-bar p { margin: 0; font-size: 0.875rem; font-weight: 600; }
.pack-bar button { background: none; border: 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 2.75rem; }
.pack-bar a { background: var(--night); color: var(--on-night); }

.empty { font-size: 1.125rem; max-width: 36rem; }

@media (min-width: 768px) {
  .accred-row, .result, .pair { align-items: center; }
  .result, .pair, .footer-grid { display: grid; }
  .result { grid-template-columns: 1fr auto; }
  .pair { grid-template-columns: 1fr 1fr; }
  .services, .steps, .grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .accred-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { order: 1; padding: 4rem 3rem; }
  .hero-photo { order: 2; min-height: 100dvh; }
  .finder, .split, .course-grid, .about, .contact, .check, .consult-item { grid-template-columns: 5fr 7fr; }
  .course-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
  .families, .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 18rem; }
  .hero-logo { width: 20rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .chip, .card, .family, .service, .back, .social a, .check-list button, .nav-desktop a, .text-link, .result a {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
  }
  .btn:hover, .chip:hover, .card:hover, .family:hover, .back:hover, .social a:hover, .check-list button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5, 6, 10, 0.16);
  }
  .nav-desktop a:hover, .text-link:hover, .result a:hover {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .marquee ul + ul { display: none; }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 70;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}
@media (max-width: 40rem) {
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 3.25rem; height: 3.25rem; }
}
