:root {
  --ink: #17324d;
  --muted: #5c6f82;
  --paper: #fffaf2;
  --white: #ffffff;
  --sun: #ffd166;
  --coral: #ff6b6b;
  --aqua: #28c7c0;
  --leaf: #74c69d;
  --violet: #7b61ff;
  --orange: #ff9f1c;
  --blue: #2684ff;
  --shadow: 0 18px 48px rgba(23, 50, 77, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 209, 102, 0.35), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(40, 199, 192, 0.22), transparent 24rem),
    linear-gradient(180deg, #fff8e9 0%, #f9fdff 44%, #fffaf2 100%);
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.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: 20;
  padding: 14px 18px;
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.nav-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 260px;
}

.brand img {
  width: 235px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #28445d;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(38, 132, 255, 0.1);
  color: #0f62ca;
}

.nav-phone {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 900;
  color: var(--white);
  background: var(--ink);
  padding: 11px 15px;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.1);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
}

.section-pad {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 38px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f8b8d;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
}

h1,
h2 {
  font-family: "Baloo 2", cursive;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.85rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(2.05rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-copy {
  max-width: 610px;
  margin: 18px 0 0;
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.btn.primary {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 12px 28px rgba(255, 159, 28, 0.27);
}

.btn.secondary {
  color: var(--white);
  background: var(--aqua);
  box-shadow: 0 12px 28px rgba(40, 199, 192, 0.24);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
  max-width: 620px;
}

.hero-stats span {
  min-height: 74px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.28rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0 12%;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(38, 132, 255, 0.18));
  transform: rotate(3deg);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.compact {
  max-width: 760px;
}

.mission-grid,
.program-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mission-grid article,
.program-card,
.event-card,
.note-panel,
.feature-card,
.team-panel,
.hours-card,
.contact-form {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.mission-grid article {
  padding: 24px;
}

.icon-bubble {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 18px;
}

.yellow {
  background: var(--sun);
}

.coral {
  background: #ffb3ab;
}

.mint {
  background: #b8f2d1;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.program-card {
  min-height: 270px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.28;
  background: currentColor;
}

.program-card span {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 42px;
}

.program-card.reading span {
  background: var(--blue);
}

.program-card.writing span {
  background: var(--coral);
}

.program-card.math span {
  background: var(--orange);
}

.program-card.focus span {
  background: var(--leaf);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 28px;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1fr);
}

.note-panel,
.feature-card,
.team-panel,
.hours-card {
  padding: 30px;
}

.note-panel {
  border-top: 7px solid var(--coral);
}

.text-link {
  color: #0f62ca;
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps article {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  min-height: 245px;
}

.steps article:nth-child(2) {
  background: #0f8b8d;
}

.steps article:nth-child(3) {
  background: #573fd6;
}

.steps article:nth-child(4) {
  background: #df5a43;
}

.steps span,
.steps h3,
.steps p {
  color: var(--white);
}

.steps span {
  font-family: "Baloo 2", cursive;
  font-size: 2.1rem;
  font-weight: 800;
}

.check-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  color: #304a60;
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--leaf);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-list article {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.26), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(23, 50, 77, 0.08);
}

.team-panel {
  background: #18324d;
}

.team-panel h3,
.team-panel p {
  color: var(--white);
}

.team-panel .eyebrow {
  color: var(--sun);
}

.journey-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.journey-strip span {
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.08);
}

.event-grid {
  grid-template-columns: repeat(2, 1fr);
}

.event-card {
  padding: 28px;
  border-left: 7px solid var(--violet);
}

.event-card:nth-child(2) {
  border-left-color: var(--orange);
}

.event-card time,
.event-card span {
  color: #0f8b8d;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: start;
}

address {
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.7;
  font-style: normal;
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: block;
  margin: 16px 0 7px;
  color: #304a60;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid rgba(23, 50, 77, 0.12);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fffdf8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(40, 199, 192, 0.28);
  border-color: var(--aqua);
}

.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.contact-form small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thank-you-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 50, 77, 0.48);
  backdrop-filter: blur(8px);
}

.thank-you-modal[hidden] {
  display: none;
}

.thank-you-card {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 28px 28px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(23, 50, 77, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--white);
  background: var(--leaf);
  font-size: 1.6rem;
  font-weight: 900;
}

.thank-you-card p {
  margin: 12px 0 22px;
}

.hours {
  padding-top: 0;
}

.hours-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 16px;
  max-width: 380px;
  margin: 22px auto 0;
  text-align: left;
}

.hours-grid span {
  color: var(--muted);
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: #1fa855;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(31, 168, 85, 0.32);
}

.footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border-top: 1px solid rgba(23, 50, 77, 0.12);
}

.footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: grid;
  gap: 7px;
  text-align: right;
}

.footer-links a {
  color: #0f62ca;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    inset: 72px 18px auto 18px;
    display: none;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-phone {
    display: none;
  }

  .hero,
  .split,
  .split.reverse,
  .service-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .mission-grid,
  .program-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-layout {
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    min-width: 188px;
  }

  .brand img {
    width: 188px;
    height: 42px;
  }

  .section-pad {
    width: min(100% - 28px, var(--max));
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .hero-stats,
  .mission-grid,
  .program-grid,
  .steps,
  .service-list,
  .event-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-stats span {
    min-height: auto;
  }

  .program-card {
    min-height: 210px;
  }

  .steps article {
    min-height: auto;
  }

  .contact-form,
  .note-panel,
  .feature-card,
  .team-panel,
  .hours-card {
    padding: 22px;
  }

  .footer-links {
    text-align: left;
  }

  .whatsapp-float {
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}
