:root {
  color-scheme: light;
  --ink: #24313f;
  --soft: #fff7dc;
  --paper: #fffdf5;
  --coral: #f05d5e;
  --teal: #087f8c;
  --sun: #ffd166;
  --leaf: #3bb273;
  --berry: #7b2cbf;
  --muted: #64748b;
  --line: #eadfca;
  --panel: #ffffff;
  --shadow: 0 20px 55px rgba(36, 49, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.22) 12%, transparent 12% 24%, rgba(8, 127, 140, 0.12) 24% 36%, transparent 36%),
    var(--paper);
  background-size: 220px 220px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 253, 245, 0.94);
  border-bottom: 3px solid var(--sun);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.sun-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--sun);
  color: #3b2d00;
  border: 3px solid #3b2d00;
  border-radius: 50%;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.brand small {
  margin-top: 3px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.primary-nav a {
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  color: #38495a;
  font-weight: 900;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--coral);
  border-color: var(--coral);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.header-cta,
.button.coral {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--coral);
}

.button.teal {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.button.outline {
  background: #ffffff;
  color: var(--teal);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 42px 0;
}

.hero-copy {
  padding: clamp(26px, 5vw, 58px);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--sun);
}

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6.8vw, 78px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

p,
li,
span {
  line-height: 1.7;
}

p,
li {
  color: var(--muted);
}

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

.hero-collage {
  position: relative;
  min-height: 560px;
}

.main-photo,
.small-photo,
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--ink);
}

.main-photo {
  min-height: 560px;
  box-shadow: var(--shadow);
}

.small-photo {
  position: absolute;
  right: -12px;
  top: 32px;
  width: 190px;
  height: 190px;
  transform: rotate(4deg);
  box-shadow: 8px 8px 0 var(--teal);
}

.mini-note {
  position: absolute;
  left: -18px;
  bottom: 34px;
  max-width: 270px;
  padding: 18px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 8px;
  transform: rotate(-2deg);
}

.mini-note strong,
.mini-note span {
  display: block;
}

.mini-note span {
  margin-top: 5px;
  color: #4b3a00;
}

.parent-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.parent-promises article {
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.parent-promises article:nth-child(1) {
  box-shadow: 8px 8px 0 var(--coral);
}

.parent-promises article:nth-child(2) {
  box-shadow: 8px 8px 0 var(--leaf);
}

.parent-promises article:nth-child(3) {
  box-shadow: 8px 8px 0 var(--berry);
}

.parent-promises span {
  color: var(--coral);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.day-rhythm,
.program-peek,
.site-tools,
.closing-banner,
.inside-hero,
.age-tabs,
.classroom-matrix,
.communication-strip,
.faq-area,
.about-hero,
.belief-strip,
.teacher-feature,
.safety-note,
.gallery-ribbon,
.room-tour,
.tour-layout,
.enrollment-steps {
  margin: clamp(52px, 8vw, 96px) 0;
}

.day-rhythm {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
  align-items: center;
}

.rhythm-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rhythm-track div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.rhythm-track div:nth-child(even) {
  margin-top: 34px;
  background: #e7fbfb;
}

.rhythm-track strong {
  color: var(--coral);
  font-size: 28px;
}

.program-peek {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.peek-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.peek-list {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 5vw, 44px);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.peek-list a {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--soft);
  border-left: 8px solid var(--teal);
  border-radius: 6px;
  color: var(--muted);
}

.peek-list span {
  color: var(--ink);
  font-weight: 950;
}

.site-tools {
  padding: clamp(24px, 5vw, 48px);
  background: #e7fbfb;
  border: 3px solid var(--teal);
  border-radius: 8px;
}

.tool-grid,
.matrix-grid,
.room-grid,
.teacher-grid,
.belief-strip,
.enrollment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tool-grid article,
.matrix-grid article,
.room-grid article,
.teacher-grid article,
.belief-strip article,
.enrollment-steps article,
.tour-form,
.contact-details {
  padding: 20px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.closing-banner {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.closing-banner img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.closing-banner div {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 520px;
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.inside-hero {
  padding: clamp(42px, 8vw, 74px) 0 18px;
  border-bottom: 3px solid var(--ink);
}

.inside-hero p {
  max-width: 780px;
  font-size: 18px;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.tab-button.active {
  background: var(--sun);
}

.tab-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.communication-strip,
.safety-note {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.faq-question {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  text-align: left;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 18px 10px;
}

.faq-question.open + .faq-answer {
  display: block;
}

.about-hero,
.teacher-feature,
.tour-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.about-hero img {
  min-height: 430px;
}

.belief-strip {
  grid-template-columns: repeat(3, 1fr);
}

.belief-strip strong,
.belief-strip span,
.contact-details strong,
.contact-details span {
  display: block;
}

.teacher-grid {
  grid-template-columns: repeat(3, 1fr);
}

.teacher-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-ribbon {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 230px;
  gap: 12px;
}

.gallery-photo {
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
}

.gallery-photo.tall {
  grid-row: span 2;
}

.gallery-photo.wide {
  grid-column: span 2;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-form {
  display: grid;
  gap: 13px;
}

.contact-details {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf5;
}

textarea {
  resize: vertical;
}

.enrollment-steps {
  grid-template-columns: repeat(3, 1fr);
}

.enrollment-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  background: var(--coral);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 950;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 950;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(36, 49, 63, 0.88);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(940px, 94vw);
  max-height: 76vh;
  object-fit: contain;
  border: 4px solid #ffffff;
  border-radius: 8px;
}

.lightbox p {
  color: #ffffff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 54px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer span {
  color: #d8e0ea;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    justify-self: end;
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 950;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #ffffff;
    border: 2px solid var(--ink);
    border-radius: 8px;
  }

  .site-header.nav-open .primary-nav {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .home-hero,
  .day-rhythm,
  .program-peek,
  .tab-panel,
  .communication-strip,
  .about-hero,
  .teacher-feature,
  .safety-note,
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .matrix-grid,
  .room-grid,
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rhythm-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

  .parent-promises,
  .tool-grid,
  .matrix-grid,
  .room-grid,
  .teacher-grid,
  .belief-strip,
  .enrollment-steps,
  .rhythm-track {
    grid-template-columns: 1fr;
  }

  .rhythm-track div:nth-child(even) {
    margin-top: 0;
  }

  .small-photo,
  .mini-note {
    position: static;
    width: auto;
    transform: none;
    margin-top: 12px;
  }

  .hero-collage,
  .main-photo {
    min-height: auto;
  }

  .gallery-ribbon {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-photo.tall,
  .gallery-photo.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

.gallery-return {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  box-shadow: 7px 7px 0 var(--sun);
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery-return:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--sun);
}

@media (max-width: 520px) {
  .gallery-return {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}
