/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 76px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2933;
  background-color: #f7fafc;
  line-height: 1.5;
  /* Snap is gentle (proximity, not mandatory) so tall sections never trap
     the user. Disabled entirely on touch/small screens further down. */
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
  /* Prevent the 140%-wide hero wave from creating sideways scroll on phones */
  overflow-x: hidden;
}

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

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #1a365d;
  min-width: 0;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 0.1rem;
}

.nav-list a:hover {
  color: #2b6cb0;
}

/* Active nav link */
.nav-list a.active {
  color: #2b6cb0;
  position: relative;
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: #2b6cb0;
  border-radius: 999px;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Comfortable, thumb-friendly tap target */
  min-height: 44px;
}

/* Nav CTA button */
.nav-cta {
  background: #f6ad55;
  color: #1a202c;
  border-color: #f6ad55;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.nav-cta:hover {
  background: #ed8936;
  border-color: #ed8936;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a365d;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, #ebf8ff, #fefcbf);
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  margin-bottom: 1rem;
  color: #1a365d;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #2d3748;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #2f855a;
}

.slides {
  position: relative;
}

.slide {
  /* svh tracks the visible viewport so the mobile address bar doesn't
     leave a gap or clip content; vh is the fallback for old browsers. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-height);
  /* Vertical breathing room so content is never glued to the edges */
  padding-block: 2rem;
}

/* Primary + secondary buttons (reuse) */
.primary-btn {
  background: #2b6cb0;
  color: white;
}

.primary-btn:hover {
  background: #2c5282;
}

.secondary-btn {
  background: #fff;
  color: #2b6cb0;
  border-color: #2b6cb0;
}

.secondary-btn:hover {
  background: #ebf8ff;
}

/* Amber "enroll" accent button — ties to the header CTA identity */
.accent-btn {
  background: #f6ad55;
  color: #1a202c;
  border-color: #f6ad55;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.accent-btn:hover {
  background: #ed8936;
  border-color: #ed8936;
}

.full-width {
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #edf2f7;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.section-header {
  text-align: center;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  color: #1a365d;
}

.section-header p {
  color: #4a5568;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 1.75rem;
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-list h3 {
  margin-bottom: 0.5rem;
  color: #2b6cb0;
}

.about-list ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #4a5568;
}

/* Cards (Programs) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-bottom: 0.25rem;
  color: #2c5282;
}

.card .age-range {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #718096;
}

.card p {
  margin-bottom: 0.75rem;
  color: #4a5568;
}

.card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #4a5568;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 1.75rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 0.75rem 0 0.5rem;
  color: #4a5568;
}

.contact-details li + li {
  margin-top: 0.3rem;
}

.contact-form {
  background: #fff;
  padding: 1.25rem 1.4rem;
  border-radius: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
}

.form-row input,
.form-row textarea {
  border-radius: 0.55rem;
  border: 1px solid #cbd5e0;
  padding: 0.65rem 0.7rem;
  /* 16px keeps iOS Safari from auto-zooming when a field is focused */
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #2b6cb0;
  outline-offset: 1px;
  border-color: #2b6cb0;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Slide dots */
.slide-dots {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  z-index: 20;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #cbd5e0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slide-dot:hover {
  background: #a0aec0;
}

.slide-dot.active {
  background: #2b6cb0;
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.18);
  transform: scale(1.08);
}

/* Footer */
.site-footer {
  background: #1a365d;
  color: #e2e8f0;
  padding: 1.25rem 0;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Make hero feel like a big banner */
.hero.hero-banner {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

/* Soft wave strip at the bottom, like the slider background */
.hero-bg-wave {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  width: 140%;
  height: 220px;
  background: #fef3c7; /* pale yellow / cream */
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

/* Make sure content sits above the wave */
.hero-inner {
  position: relative;
  z-index: 1;
}

/* Left side text tweaks */
.hero-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97373; /* playful pink */
  margin-bottom: 0.5rem;
}

.hero-banner h1 {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.1rem);
  line-height: 1.1;
  color: #033b62; /* deep blue similar to Darling */
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 1.4rem;
}

/* Right side illustration block */
.hero-illustration {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-illustration-main {
  /* Was a fixed 450x520 box that overflowed phones. Now it scales with the
     viewport while holding its shape via aspect-ratio. */
  width: min(450px, 80vw);
  aspect-ratio: 450 / 520;
  max-height: 70vh;
  background-image: url("images/Young-Black-King-1.jpg");
  background-size: cover;
  background-position: center top;
  background-color: #cfe8ff; /* shows if the image is missing */
  border-radius: 50% 30% 60% 40%;
}

/* Floating badges like the small graphics in the slider */
.hero-badge {
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #033b62;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.hero-badge-top {
  top: 10%;
  right: 5%;
}

.hero-badge-bottom {
  bottom: 5%;
  left: 0%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet / small laptop: stack the two-column layouts */
@media (max-width: 900px) {
  .hero-banner {
    padding-top: 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    order: 0; /* image now follows the headline + CTA instead of leading */
    min-height: auto;
    margin-top: 1.5rem;
  }

  .hero-bg-wave {
    bottom: -90px;
  }

  .about-grid,
  .cards-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    gap: 1.25rem;
  }
}

/* Phones: switch the header to a slide-down menu, relax full-height snap */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.75rem;
    display: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.25rem;
    font-size: 1rem;
  }

  .nav-list a.active::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }

  /* Let content-tall sections grow naturally instead of being forced to a
     full screen and clipped. Disable snap so nothing traps the scroll. */
  body {
    scroll-snap-type: none;
  }

  .slide {
    min-height: auto;
    scroll-snap-align: none;
    padding-block: 3rem;
  }

  /* Mobile-first hero: headline + enroll CTA land above the fold,
     the photo is demoted to a small accent below them. */
  .hero.hero-banner {
    padding: 1.75rem 0 2.5rem;
  }

  .hero-inner {
    gap: 1.25rem;
  }

  .hero-kicker {
    margin-bottom: 0.4rem;
  }

  .hero-banner h1 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
    margin-bottom: 0.6rem;
  }

  .hero-lead {
    margin-bottom: 1rem;
  }

  /* Stack the buttons full-width so "Pre-Enroll Now" is big and unmissable */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-cta {
    font-size: 1.05rem;
    padding-block: 0.9rem;
  }

  .hero-highlights {
    margin-top: 0.25rem;
    font-size: 0.9rem;
  }

  /* Smaller, centered photo so the badges hug it */
  .hero-illustration {
    width: min(260px, 66vw);
    margin: 0.5rem auto 0;
  }

  .hero-illustration-main {
    width: 100%;
    max-height: 320px;
  }

  .section,
  .section-header h2 {
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Dots would crowd a narrow screen now that sections aren't snapped */
  .slide-dots {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo-text {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
  }

  .contact-form,
  .card {
    padding: 1rem 1.1rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}