:root {
  --navy: #08283f;
  --navy-deep: #041b2b;
  --red: #de2635;
  --red-dark: #b81827;
  --cream: #f7f1e8;
  --white: #ffffff;
  --ink: #15202a;
  --muted: #61707c;
  --line: rgba(8, 40, 63, 0.14);
  --shadow: 0 20px 55px rgba(4, 27, 43, 0.16);
  --radius: 1.25rem;
  --container: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 2rem), var(--container)); 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; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; transform: translateY(-150%); background: white; padding: 0.75rem 1rem; border-radius: 0.5rem; }
.skip-link:focus { transform: translateY(0); }

.hero {
  min-height: clamp(38rem, 78vh, 52rem);
  position: relative;
  isolation: isolate;
  color: var(--white);
  background-image: url("assets/header-placeholder.svg"); /* Replace this file with your hero image. */
  background-position: center;
  background-size: cover;
}
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,27,43,.72) 0%, rgba(4,27,43,.32) 45%, rgba(4,27,43,.85) 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 2rem; }
.nav__brand { font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links > a:not(.button) { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__links > a:not(.button):hover { color: #ffd7db; }
.nav__toggle { display: none; border: 0; background: transparent; padding: .4rem; }
.nav__toggle span:not(.sr-only) { width: 1.6rem; height: 2px; background: white; display: block; margin: .32rem; }

.hero__content { min-height: calc(clamp(38rem, 78vh, 52rem) - 5rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 4rem 6rem; }
.hero__logo { width: min(20rem, 62vw); max-height: 12rem; object-fit: contain; margin-bottom: 1.5rem; }
.hero__eyebrow, .section__kicker { margin: 0 0 .55rem; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; }
.hero__eyebrow { color: #ff8992; }
.hero h1 { max-width: 14ch; margin: 0; font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.06em; }
.hero__intro { max-width: 42rem; margin: 1.4rem auto 0; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .78rem 1.2rem; border: 2px solid var(--red); border-radius: 999px; background: var(--red); color: white; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(222,38,53,.25); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--red-dark); border-color: var(--red-dark); }
.button--small { min-height: 2.5rem; padding: .55rem 1rem; }
.button--ghost { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); box-shadow: none; backdrop-filter: blur(8px); }
.button--ghost:hover { background: white; color: var(--navy); border-color: white; }
.button--light { background: white; color: var(--navy); border-color: white; box-shadow: none; }

.quick-facts { position: relative; z-index: 2; margin-top: -2.6rem; }
.quick-facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.quick-facts article { display: flex; flex-direction: column; padding: 1.4rem 1.65rem; border-right: 1px solid var(--line); }
.quick-facts article:last-child { border-right: 0; }
.quick-facts__label { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .11em; font-size: .7rem; }
.quick-facts strong { margin-top: .1rem; color: var(--navy); font-size: 1.15rem; }
.quick-facts article > span:last-child { color: var(--muted); font-size: .92rem; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--dark { background: var(--navy-deep); color: white; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
h2 { margin: 0; color: var(--navy); font-size: clamp(2.15rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.055em; }
.section--dark h2 { color: white; }
.prose { color: var(--muted); font-size: 1.05rem; }
.section--dark .prose { color: rgba(255,255,255,.72); }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.feature-card { min-height: 18rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.58); }
.feature-card__number { color: var(--red); font-family: "Permanent Marker", cursive; font-size: 2rem; }
.feature-card h3 { margin: 2.2rem 0 .6rem; color: var(--navy); font-size: 1.4rem; }
.feature-card p { margin: 0; color: var(--muted); }

.section-heading { max-width: 46rem; margin-bottom: 3rem; }
.section-heading > p:last-child { color: rgba(255,255,255,.68); }
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.teacher-card { overflow: hidden; border-radius: var(--radius); background: white; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.teacher-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #d9e0e5; }
.teacher-card__body { padding: 1.4rem; }
.teacher-card h3 { margin: 0; color: var(--navy); font-size: 1.6rem; }
.teacher-card p { margin: .55rem 0 0; color: var(--muted); }

.level-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 7rem); padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) * 1.3); background: white; box-shadow: var(--shadow); }
.level-card strong { color: var(--navy); }

.cta { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--red); color: white; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta .section__kicker { color: #ffe4e6; }
.cta h2 { color: white; }
.cta p { max-width: 40rem; color: rgba(255,255,255,.84); }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; flex: 0 0 auto; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .18em; }

.footer { background: #02131f; color: rgba(255,255,255,.67); }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }

@media (max-width: 780px) {
  .nav__toggle { display: block; color: white; }
  .nav__links { position: absolute; top: 4.4rem; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .7rem; border-radius: 1rem; background: rgba(4,27,43,.97); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .75rem; }
  .nav__links .button { margin-top: .3rem; }
  .quick-facts__grid, .feature-grid, .teacher-grid { grid-template-columns: 1fr; }
  .quick-facts article { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-facts article:last-child { border-bottom: 0; }
  .split, .level-card { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .cta__inner { align-items: flex-start; flex-direction: column; }
}

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