/* ============================================================
   Next Gen Admit — Design System
   Brand: warm, vibrant, educational, elite
   Palette + Poppins per brand book
   ============================================================ */

:root {
  /* Brand palette */
  --cream: #FEFBF3;
  --lime: #F1FE99;
  --lime-soft: #F6FFB6;
  --coral: #F95C40;
  --coral-soft: #FFEAE6;
  --coral-light: #FFBEB3;
  --lavender: #DDCCFF;
  --lavender-soft: #F2EBFF;
  --purple: #9569EF;
  --purple-deep: #B99BF6;
  --teal: #004347;
  --teal-deep: #002D30;
  --teal-muted: #597D82;
  --aqua: #D5F5EE;
  --olive: #7D8F00;

  /* Semantic tokens */
  --bg: var(--cream);
  --ink: var(--teal);
  --ink-soft: #2A5D61;
  --accent: var(--coral);
  --highlight: var(--lime);

  /* Type scale — professional, restrained */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.875rem, 3.4vw, 2.5rem);
  --fs-hero: clamp(2.25rem, 4.6vw, 3.375rem);

  /* Spacing (8px scale) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4rem; --s7: 5.5rem; --s8: 7rem;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(0, 67, 71, 0.08);
  --shadow-lift: 0 14px 40px rgba(0, 67, 71, 0.14);
  --container: 1240px;
  --container-wide: 1380px;
  --container-narrow: 880px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--s3);
  color: var(--teal);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--s2); }

a { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
@media (max-width: 720px) { .container { padding: 0 var(--s3); } }

/* ---------- Signature: highlighter swipe ---------- */
.hl {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -0.12em; right: -0.12em;
  bottom: 0.04em;
  height: 0.46em;
  background: var(--highlight);
  z-index: -1;
  transform: skewY(-1deg) scaleX(0);
  transform-origin: left center;
  border-radius: 3px;
  animation: swipe 0.7s var(--ease) 0.3s forwards;
}
.hl--lavender::after { background: var(--lavender); }
.hl--coral::after { background: var(--coral-light); }
@keyframes swipe { to { transform: skewY(-1deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hl::after { animation: none; transform: skewY(-1deg) scaleX(1); }
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Eyebrow labels (plain, no pill) ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s2);
}
.eyebrow--lavender { color: var(--purple); }
.eyebrow--coral { color: var(--coral); }
.eyebrow--lime { color: var(--olive); }
.section--teal .eyebrow { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.95em 2.1em;
  min-height: 48px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 92, 64, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(249, 92, 64, 0.42); background: #E84A2E; }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn--ghost:hover { background: var(--teal); color: var(--cream); }

.btn--quiet {
  background: var(--lavender-soft);
  color: var(--purple);
}
.btn--quiet:hover { background: var(--lavender); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(149, 105, 239, 0.22); }
.btn--quiet:active { transform: translateY(0) scale(0.98); }

.btn--lg { font-size: var(--fs-md); padding: 1.05em 2.5em; }

.btn-note {
  display: block;
  font-size: var(--fs-xs);
  color: var(--teal-muted);
  margin-top: var(--s1);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 251, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 67, 71, 0.08);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.nav__logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--coral); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a:not(.btn) {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 0.5em 0;
}
.nav__links a:not(.btn):hover { color: var(--coral); }
.nav .btn { padding: 0.6em 1.5em; min-height: 42px; font-size: var(--fs-sm); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle svg { display: block; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: var(--s3);
    gap: var(--s2);
    border-bottom: 1px solid rgba(0, 67, 71, 0.1);
    box-shadow: var(--shadow-card);
  }
  .nav__links.is-open { display: flex; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section--tight { padding: var(--s6) 0; }
.section--aqua { background: var(--aqua); }
.section--lavender { background: var(--lavender-soft); }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal h2, .section--teal h3 { color: var(--cream); }
.section--cream-deep { background: #FBF5E6; }

.section-head { max-width: 740px; margin: 0 auto var(--s5); text-align: center; }
.section-head--wide { max-width: 920px; }
.section-head p { font-size: var(--fs-md); color: var(--ink-soft); }
.section--teal .section-head p { color: var(--aqua); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-card);
}

/* ---------- Scroll reveal ----------
   Content is fully visible by default. JS adds .reveal-init
   (progressive enhancement), so the page never breaks without it. */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-init.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-deep);
  color: var(--aqua);
  padding: var(--s6) 0 var(--s4);
  font-size: var(--fs-sm);
}
.footer a { color: var(--aqua); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
.footer__brand { font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: var(--s2); }
.footer__brand span { color: var(--coral); }
.footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.6em; }
.footer__legal {
  border-top: 1px solid rgba(213, 245, 238, 0.15);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  color: var(--teal-muted);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--s4); }
}
