/* ==========================================================================
   Tiny Sprouts Play School — stylesheet
   Palette: sky / sunshine / coral / leaf-green / plum ink
   Type: Baloo 2 (display) + Nunito (body)
   Signature: scalloped "bunting" divider between sections
   ========================================================================== */

:root {
  --sky: #eaf6ff;
  --cream: #fffbf2;
  --sunshine: #ffc845;
  --sunshine-deep: #f4a900;
  --coral: #ff7d6b;
  --leaf: #4caf7d;
  --leaf-deep: #368a5e;
  --ink: #3a2e39;
  --ink-soft: #6a5b68;
  --white: #ffffff;

  --font-display: "Baloo 2", "Comic Sans MS", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1140px;
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--leaf-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------------------- eyebrow -------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 0.7em;
  display: inline-block;
}

/* -------------------- header / nav -------------------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--sunshine);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.brand:hover { text-decoration: none; }
.brand .crest { width: 250px; height: 100%; flex-shrink: 0; border-radius: 0%; object-fit: cover; border: 0px solid var(--sunshine); }
.brand .school-name strong { display: block; font-weight: 700; }
.brand .school-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  font-weight: 700;
  margin-top: 1px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--sunshine);
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle { display: none; }

/* -------------------- scallop divider (signature element) -------------------- */
.scallop {
  width: 100%;
  height: 26px;
  display: block;
  line-height: 0;
}
.scallop-sky-to-cream { background: var(--sky); }
.scallop-cream-to-sky { background: var(--cream); }

/* -------------------- hero -------------------- */
.hero {
  background: var(--white);
  padding: 64px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-actions { display: flex; gap: 14px; margin-top: 1.6em; flex-wrap: wrap; }

.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  /*box-shadow: 0 8px 0 rgba(58, 46, 57, 0.1);*/
  background: var(--sky);
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slideshow .slide.active { opacity: 1; }

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 16px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9ecf7;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots button.active {
  background: var(--coral);
  transform: scale(1.2);
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 6px 0 #d9584a; }
.btn-primary:hover { background: #ff8d7d; }

.btn-secondary { background: var(--sunshine); color: var(--ink); box-shadow: 0 6px 0 var(--sunshine-deep); }
.btn-secondary:hover { background: #ffd469; }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* -------------------- sections -------------------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-cream { background: var(--cream); }
.section-leaf { background: var(--leaf); color: var(--white); }
.section-leaf h2 { color: var(--white); }
.section-leaf .eyebrow { color: var(--sunshine); }

.center-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }

/* -------------------- grids / cards -------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: none;
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: 0 4px 0 rgba(58, 46, 57, 0.08);
}

.card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-row .stat-num { font-family: var(--font-display); font-size: 2.3rem; color: var(--white); display: block; }
.stat-row .stat-label { font-size: 0.82rem; letter-spacing: 0.03em; color: #eafff2; }

/* -------------------- process steps (franchise) -------------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 22px;
  padding: 24px 0; border-bottom: 2px dashed #d9ecf7;
}
.step:last-child { border-bottom: none; }
.step .step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--sunshine); color: var(--ink);
  font-family: var(--font-display); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 0.3em; }

/* -------------------- pull quote -------------------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  max-width: 60ch;
  box-shadow: 0 4px 0 rgba(58,46,57,0.08);
}

/* -------------------- forms -------------------- */
.form-card { background: var(--white); border: none; padding: 38px; border-radius: var(--radius); box-shadow: 0 6px 0 rgba(58,46,57,0.08); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 7px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e3edf5;
  background: var(--sky); font-family: var(--font-body); font-size: 0.98rem;
  border-radius: var(--radius-sm); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }

.notice { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.95rem; font-weight: 600; }
.notice-success { background: #e4f7ec; border: 2px solid var(--leaf); color: var(--leaf-deep); }
.notice-error { background: #fdeae7; border: 2px solid var(--coral); color: #c5392a; }
.error-text { color: #c5392a; font-size: 0.82rem; margin-top: 4px; display: block; }

/* -------------------- info list -------------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 2px dashed #d9ecf7; }
.info-list .label { font-weight: 700; color: var(--coral); min-width: 100px; font-family: var(--font-display); font-size: 0.85rem; }

/* -------------------- map -------------------- */
.map-frame { border-radius: var(--radius); overflow: hidden; height: 300px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* -------------------- gallery -------------------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 2.4rem; }
.gallery-filters button {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; border: 2px solid var(--leaf);
  background: var(--white); color: var(--leaf-deep); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-filters button:hover { background: #eafff2; }
.gallery-filters button.active { background: var(--leaf); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.gallery-item {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 0 rgba(58,46,57,0.08);
  transition: transform 0.15s ease;
}
.gallery-item:hover { transform: translateY(-4px); }

.gallery-item .photo-wrap { aspect-ratio: 4/3; background: var(--sky); overflow: hidden; }
.gallery-item .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .caption { padding: 16px 18px; }
.gallery-item .caption .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--coral); font-weight: 700; margin-bottom: 4px; display: block;
}
.gallery-item .caption h3 { font-size: 1.02rem; margin-bottom: 0; }

.gallery-item.hidden { display: none; }

/* -------------------- footer -------------------- */
.site-footer { background: var(--ink); color: #cabbc6; padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-display); font-size: 1rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cabbc6; }
.footer-grid a:hover { color: var(--sunshine); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand .crest { width: 38px; height: 38px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sunshine); }
.footer-bottom {
  border-top: 1px solid rgba(202,187,198,0.2); padding-top: 18px;
  font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* -------------------- responsive -------------------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; }
  .grid-3, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
  .grid-4, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  nav.main-nav { display: none; width: 100%; order: 3; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; padding: 12px 0; }
  nav.main-nav a { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle {
    display: block; background: var(--sunshine); border: none; color: var(--ink);
    padding: 9px 14px; border-radius: 999px; font-family: var(--font-display);
    font-weight: 700; cursor: pointer;
  }
  .step { grid-template-columns: 46px 1fr; }
  .step .step-num { width: 42px; height: 42px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .gallery-item:hover { transform: none; }
}
