:root {
  --red: #bd263b;
  --yellow: #f3c928;
  --blue: #1687ba;
  --orange: #ec6d31;
  --green: #4c9a50;
  --cream: #fffaf0;
  --ink: #27303d;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(39, 48, 61, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

h2 {
  color: var(--red);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
}

.container {
  width: min(1140px, 92%);
  margin: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 2.3rem;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0.3rem 0.4rem 0.3rem 0;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 7px 0 rgba(105, 16, 27, 0.2);
  color: white;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  background: #9d1f31;
  transform: translateY(-3px);
}

.btn-yellow {
  background: var(--yellow);
  box-shadow: 0 7px 0 rgba(130, 99, 0, 0.17);
  color: var(--ink);
}

.btn-yellow:hover {
  background: #e1b916;
}

/* Header */

.topbar {
  padding: 0.5rem 0;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: center;
}

.topbar a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 17px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.logo img {
  width: 128px;
  max-height: 74px;
  object-fit: contain;
}

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

nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--red);
}

.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: var(--yellow);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  place-items: center;
  color: white;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(22, 135, 186, 0.87), rgba(189, 38, 59, 0.78)),
    url("../images/hero-children-playing.jpg") center / cover fixed;
}

.hero .container {
  position: relative;
  max-width: 900px;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

/* Interior Page Banner */

.page-banner {
  padding: 6rem 0;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(39, 48, 61, 0.7), rgba(39, 48, 61, 0.7)),
    url("../images/backyard-play-area.jpg") center / cover fixed;
}

.page-banner h1 {
  margin-bottom: 0.8rem;
}

.page-banner p {
  max-width: 720px;
  margin: auto;
  font-size: 1.15rem;
}

/* Layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card,
.program-card,
.quote,
.blog-card,
.step {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.card-content,
.program-content,
.blog-content {
  padding: 1.5rem;
}

.card img,
.program-card img,
.blog-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.card {
  padding: 1.7rem;
}

.card.color-yellow {
  border-top: 7px solid var(--yellow);
}

.card.color-red {
  border-top: 7px solid var(--red);
}

.card.color-blue {
  border-top: 7px solid var(--blue);
}

.photo-box {
  min-height: 440px;
  border-radius: 32px;
  background: url("../images/nora-anthony.jpg") center / cover;
  box-shadow: var(--shadow);
}

/* Photo Collage */

.photo-story {
  background: #fff2bd;
}

.photo-collage {
  position: relative;
  min-height: 460px;
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.photo-collage img {
  border: 8px solid white;
  box-shadow: 0 16px 35px rgba(39, 48, 61, 0.18);
  object-fit: cover;
}

.photo-main {
  width: 78%;
  height: 420px;
  border-radius: 30px;
}

.photo-small {
  position: absolute;
  width: 48%;
  height: 180px;
  border-radius: 22px;
}

.photo-top {
  top: 0;
  right: 0;
  transform: rotate(4deg);
}

.photo-bottom {
  right: 2%;
  bottom: 0;
  transform: rotate(-5deg);
}

/* Feature Band */

.feature-band {
  padding: 6.5rem 0;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(39, 48, 61, 0.72), rgba(39, 48, 61, 0.72)),
    url("../images/arts-crafts.jpg") center / cover fixed;
}

.feature-band h2 {
  color: white;
}

.feature-band p {
  max-width: 820px;
  margin: auto;
  font-size: 1.16rem;
}

/* Lists */

.check-list {
  margin: 1.3rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid #eee4d3;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 900;
}

/* Enrollment */

.enrollment-section {
  background: #fff2bd;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  padding: 1.6rem;
}

.step::before {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  place-items: center;
  counter-increment: step;
  content: counter(step);
  background: var(--red);
  color: white;
  font-weight: 900;
}

/* FAQ */

.faq-list {
  max-width: 900px;
  margin: auto;
}

details {
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 20px rgba(39, 48, 61, 0.08);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

details p {
  margin: 1rem 0 0.3rem;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ddd;
  box-shadow: var(--shadow);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: white;
  font-weight: 800;
}

/* Testimonials */

.testimonials-section {
  background: #e6f5fb;
}

.quote {
  padding: 1.7rem;
}

.quote p {
  font-size: 1.05rem;
  font-style: italic;
}

.quote strong {
  color: var(--red);
}

/* Contact */

.contact-section {
  color: white;
  background:
    linear-gradient(rgba(189, 38, 59, 0.92), rgba(189, 38, 59, 0.88)),
    url("../images/driveway-front-home.jpg") center / cover fixed;
}

.contact-section h2 {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-box {
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.contact-box h3 {
  color: white;
}

.contact-box a {
  color: white;
  font-weight: 800;
}

/* Footer */

footer {
  padding: 2rem 1rem;
  background: #1f2732;
  color: white;
  text-align: center;
  font-size: 0.92rem;
}

footer img {
  width: 110px;
  margin: 0 auto 1rem;
}

footer a {
  color: #ffd944;
  font-weight: 800;
  text-decoration: none;
}

/* Scroll Animation */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile & Tablet */

@media (max-width: 860px) {
  .hero,
  .page-banner,
  .feature-band,
  .contact-section {
    background-attachment: scroll;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem 4%;
    background: white;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  }

  nav.open {
    display: block;
  }

  nav ul {
    display: grid;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    font-size: 1rem;
  }

  .split,
  .grid-3,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-box {
    min-height: 320px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .topbar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .topbar span {
    grid-column: 1 / -1;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .logo img {
    width: 105px;
    max-height: 62px;
  }

  nav {
    top: 74px;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 590px;
    padding: 4rem 0;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero .btn {
    width: min(100%, 330px);
    margin: 0.45rem auto;
  }

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

  .photo-collage {
    min-height: 355px;
  }

  .photo-main {
    width: 82%;
    height: 325px;
  }

  .photo-small {
    width: 48%;
    height: 125px;
  }
}