/* ============================================================
   Wonder Kids Academy — styles.css
   Vibrant, joyful, mobile-first. One stylesheet for all pages.
   ============================================================ */

:root {
  --sun: #ffc531;
  --sun-soft: #fff3cf;
  --coral: #ff6b5e;
  --coral-dark: #d63c30;
  --teal: #00a99d;
  --teal-dark: #007a72;
  --sky: #2f8fdd;
  --sky-dark: #1c6cb0;
  --grape: #7b61c9;
  --pink: #ef5da8;
  --grass: #58b368;
  --ink: #26324b;
  --ink-soft: #4a5875;
  --cream: #fff9ef;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(38, 50, 75, 0.13);
  --shadow-pop: 0 16px 40px rgba(38, 50, 75, 0.2);
  --font-head: "Baloo 2", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); text-align: center; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--sky-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 4.2rem 0; }
.section--white { background: var(--white); }
.section--sky { background: linear-gradient(180deg, #e8f5ff, #f4fbff); }
.section--sun { background: linear-gradient(180deg, var(--sun-soft), #fff8e3); }

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.4rem;
  font-size: 1.12rem;
}

.eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.eyebrow--coral { color: var(--coral-dark); }
.eyebrow--teal { color: var(--teal-dark); }
.eyebrow--grape { color: var(--grape); }
.eyebrow--sky { color: var(--sky-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--sun);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.05;
}
.brand img { width: 52px; height: 52px; border-radius: 14px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  text-transform: uppercase;
}
.nav-toggle {
  margin-left: auto;
  background: var(--sun);
  border: 0;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  color: var(--ink);
}
.main-nav { display: none; }
.main-nav.open {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 3px solid var(--sun);
  padding: 0.6rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.main-nav a:hover { color: var(--coral-dark); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    gap: 1.4rem;
    margin-left: auto;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .main-nav a { padding: 0.3rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 0 rgba(38, 50, 75, 0.18);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(38, 50, 75, 0.18); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffe9a8 0%, var(--sun-soft) 55%, var(--cream) 100%);
  padding: 3rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 0.15em;
}
.hero h1 .w1 { color: var(--coral-dark); }
.hero h1 .w2 { color: var(--teal-dark); }
.hero h1 .w3 { color: var(--grape); }
.jingle {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.hero-note { font-weight: 700; color: var(--teal-dark); margin-bottom: 2rem; }
.hero-art {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 30px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.hero-art img { width: 100%; }

/* ---------- Power words ribbon ---------- */
.power-ribbon {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  text-align: center;
  padding: 0.9rem 1rem;
}
.power-ribbon span { margin: 0 0.45em; white-space: nowrap; }
.power-ribbon .pw-sun { color: var(--sun); }
.power-ribbon .pw-coral { color: #ff9d94; }
.power-ribbon .pw-teal { color: #4fe3d4; }
.power-ribbon .pw-sky { color: #8ec9ff; }
.power-ribbon .pw-pink { color: #ffa8d2; }
.power-ribbon .pw-grape { color: #c3b2ff; }

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 8px solid var(--sun);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body p { color: var(--ink-soft); margin-bottom: 0; }
.card--coral { border-top-color: var(--coral); }
.card--teal { border-top-color: var(--teal); }
.card--sky { border-top-color: var(--sky); }
.card--grape { border-top-color: var(--grape); }
.card--pink { border-top-color: var(--pink); }
.card--grass { border-top-color: var(--grass); }

.catchphrase {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem !important;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.step-num {
  width: 54px; height: 54px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: var(--coral);
}
.step:nth-child(2) .step-num { background: var(--teal); }
.step:nth-child(3) .step-num { background: var(--sky); }
.step:nth-child(4) .step-num { background: var(--grape); }
.step:nth-child(5) .step-num { background: var(--pink); }
.step p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }
.step img { border-radius: 14px; margin-bottom: 0.8rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.step img.tall { aspect-ratio: 3/4; }

/* ---------- Certificates ---------- */
.cert-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 0.8rem 1.1rem;
  text-align: center;
}
.cert button {
  border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%;
}
.cert img { border-radius: 12px; width: 100%; }
.cert h3 { margin-top: 0.8rem; margin-bottom: 0.2rem; font-size: 1.15rem; }
.cert p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.rule-box {
  background: var(--white);
  border: 3px dashed var(--sun);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.rule-box p { margin: 0; }
.rule-box strong { color: var(--coral-dark); }

/* ---------- For Parents ---------- */
.parent-points {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 760px) { .parent-points { grid-template-columns: repeat(2, 1fr); } }
.parent-point {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  border-left: 8px solid var(--teal);
}
.parent-point:nth-child(2) { border-left-color: var(--coral); }
.parent-point:nth-child(3) { border-left-color: var(--grape); }
.parent-point:nth-child(4) { border-left-color: var(--sky); }
.parent-point h3 { margin-bottom: 0.3rem; }
.parent-point p { color: var(--ink-soft); margin: 0; }

/* ---------- Watch & Follow ---------- */
.follow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 620px) { .follow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .follow-grid { grid-template-columns: repeat(3, 1fr); } }
.follow-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  transition: transform 0.15s ease;
}
.follow-card:hover { transform: translateY(-3px); }
.follow-card .fc-emoji {
  font-size: 1.9rem;
  width: 56px; height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun-soft);
}
.follow-card small { display: block; font-weight: 700; color: var(--ink-soft); }

/* ---------- Academy join band / parent-list form ---------- */
.coming {
  background: linear-gradient(135deg, var(--grape), var(--sky));
  color: #fff;
  border-radius: 30px;
  padding: 2.6rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.coming h2 { color: #fff; }
.coming p { max-width: 620px; margin-inline: auto; }
.coming ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.8rem;
  max-width: 560px;
  text-align: left;
  font-weight: 700;
}
.coming ul li { padding: 0.3rem 0; }
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
.waitlist label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.waitlist input[type="email"] {
  flex: 1 1 260px;
  font: inherit;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 3px solid transparent;
  color: var(--ink);
}
.waitlist-note { font-size: 0.92rem; opacity: 0.92; margin-top: 1rem; }
.waitlist-success {
  display: none;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 700;
}
.waitlist-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #eef1f8;
  padding: 2.8rem 0 2rem;
  margin-top: 0;
}
.footer-in { text-align: center; }
.footer-in .brand { justify-content: center; color: #fff; }
.footer-in .brand small { color: var(--sun); }
.footer-links { margin: 1.1rem 0; }
.footer-links a {
  color: #fff;
  margin: 0 0.8rem;
  font-weight: 700;
}
.footer-enrich {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--sun);
  margin-bottom: 0.4rem;
}
.footer-fine { color: #b9c2d8; font-size: 0.92rem; max-width: 640px; margin: 0 auto; }

/* ---------- Simple pages (privacy / terms) ---------- */
.page-hero {
  background: linear-gradient(180deg, #ffe9a8, var(--cream));
  padding: 2.6rem 0 1.6rem;
  text-align: center;
}
.doc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem;
  max-width: 780px;
  margin: 2rem auto 3.4rem;
}
.doc h2 { text-align: left; font-size: 1.5rem; margin-top: 1.4em; }
.doc h2:first-child { margin-top: 0; }
.back-link { font-weight: 800; }

/* ---------- Certificate lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 31, 48, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--sun);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

/* ============================================================
   2026-10-23 additions — Learning Ladder, Academy, Pricing,
   join form status, daycare/doc polish
   ============================================================ */

/* ---------- Hero parent line ---------- */
.hero-parent {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 1.4rem;
}

/* ---------- Wider desktop nav ---------- */
@media (min-width: 860px) {
  .main-nav { gap: 1rem; font-size: 0.98rem; }
}

/* ---------- Learning Ladder ---------- */
.ladder-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto 1.6rem;
}
@media (min-width: 760px) { .ladder-grid { grid-template-columns: repeat(2, 1fr); } }
.ladder-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.5rem;
  border-top: 8px solid var(--sun);
}
.ladder-card--coral { border-top-color: var(--coral); }
.ladder-card--teal { border-top-color: var(--teal); }
.ladder-card h3 { text-align: left; }
.rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.rungs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
}
.rung-num {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--sky);
}
.ladder-card--coral .rung-num { background: var(--coral); }
.ladder-card--teal .rung-num { background: var(--teal); }

.method-box {
  background: var(--white);
  border: 3px dashed var(--grape);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.method-box h3 { margin-bottom: 0.4rem; }
.method-box p { color: var(--ink-soft); margin-bottom: 0.6rem; }
.method-box p:last-child { margin-bottom: 0; }
.method-box--white { margin-top: 1.8rem; text-align: left; }
.method-box--white h3 { text-align: center; }

/* ---------- Academy feature cards ---------- */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  border-top: 8px solid var(--sky);
}
.feature-card:nth-child(2) { border-top-color: var(--coral); }
.feature-card:nth-child(3) { border-top-color: var(--teal); }
.feature-card:nth-child(4) { border-top-color: var(--grape); }
.feature-card:nth-child(5) { border-top-color: var(--pink); }
.feature-card:nth-child(6) { border-top-color: var(--grass); }
.feature-card h3 { margin-bottom: 0.3rem; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Join form status / fallback ---------- */
.join-status {
  font-weight: 800;
  max-width: 560px;
  margin: 0.9rem auto 0;
  min-height: 1.2em;
}
.join-status:empty { margin: 0; min-height: 0; }
.join-fallback { color: #ffe9a8; font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  max-width: 1020px;
  margin: 0 auto 2.2rem;
}
@media (min-width: 820px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  text-align: center;
  border-top: 8px solid var(--sun);
  display: flex;
  flex-direction: column;
}
.price-card--featured { border-top-color: var(--coral); box-shadow: var(--shadow-pop); }
.price-amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.price-amount span { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  text-align: left;
  color: var(--ink-soft);
  font-weight: 700;
  display: grid;
  gap: 0.5rem;
}
.price-card ul li::before { content: "✓ "; color: var(--teal-dark); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.btn--disabled {
  background: #e8ecf4;
  color: var(--ink-soft);
  box-shadow: 0 6px 0 rgba(38, 50, 75, 0.1);
}

/* ---------- Doc lists (privacy / terms / daycare) ---------- */
.doc ul { color: var(--ink-soft); padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
