/* ===========================================================
   Springfield Heights Nursery School — Site Stylesheet
   Brand: Rubik (body) / Fredoka One (display)
   Palette: teal #4DC8BE · yellow #FFD865 · terracotta #EAA889
            coral #FD5B43 · cream #FFF7C9
   =========================================================== */

:root {
  --teal: #4dc8be;
  --teal-dark: #349790;
  --yellow: #ffd865;
  --yellow-soft: #ffe9a8;
  --terracotta: #eaa889;
  --coral: #fd5b43;
  --coral-dark: #e14226;
  --cream: #fff7c9;
  --cream-soft: #fffdf2;
  --ink: #21201c;
  --ink-soft: #56534a;
  --white: #ffffff;
  --line: #eee6cf;

  --font-display: "Fredoka One", "Fredoka", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 34px -14px rgba(33, 32, 28, 0.25);
  --shadow-card: 0 8px 22px -10px rgba(33, 32, 28, 0.18);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

.section {
  padding: clamp(52px, 8vw, 96px) 0;
}

.section--tight { padding: clamp(36px, 5vw, 60px) 0; }

.bg-cream { background: var(--cream-soft); }
.bg-teal-tint { background: #eefbf9; }
.bg-ink { background: var(--ink); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: rgba(253, 91, 67, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(253, 91, 67, 0.55);
}
.btn--primary:hover { background: var(--coral-dark); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: #000; }

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

.btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn--outline-light:hover { background: var(--white); color: var(--ink); }

.btn--sm { padding: 10px 22px; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 46px;
  width: auto;
}

.brand__text {
  font-family: var(--font-display);
  line-height: 1.05;
  font-size: 1.05rem;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav__list a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--coral-dark);
  border-color: var(--coral);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream-soft);
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .nav__list a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open ~ .nav__toggle span:nth-child(1),
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav.is-open .nav__cta { display: inline-flex; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
  padding: clamp(48px, 8vw, 90px) 0 clamp(60px, 9vw, 110px);
}

.hero__rays {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--yellow) 0%, var(--yellow) 40%, rgba(255,216,101,0) 72%);
  opacity: 0.55;
  z-index: 0;
  border-radius: 50%;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.pill--teal { background: var(--teal); color: var(--white); border-color: transparent; }
.pill--coral { background: var(--coral); color: var(--white); border-color: transparent; }

.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--coral); }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--coral);
}

.hero__stats div span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Photo collage */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.collage__big { grid-row: span 2; aspect-ratio: 3/4; }
.collage__small { aspect-ratio: 1/1; }

.collage__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.collage__badge img { height: 34px; width: 34px; border-radius: 0; box-shadow: none; }
.collage__badge strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.collage__badge span { font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 500px) {
  .collage__badge { position: static; margin-top: -30px; margin-left: 12px; width: fit-content; }
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}

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

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: var(--cream);
}

.card__icon--teal { background: rgba(77, 200, 190, 0.18); }
.card__icon--coral { background: rgba(253, 91, 67, 0.14); }
.card__icon--yellow { background: rgba(255, 216, 101, 0.35); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Checklist */
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}

.checklist .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---------- Program cards ---------- */
.program-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.program-card--morning { background: var(--cream); }
.program-card--afternoon { background: #e9f9f7; }

.program-card .badge-time {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.program-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--coral-dark);
  margin: 10px 0 4px;
}

.program-card .price span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Timeline (History) ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 3px dashed var(--terracotta);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -46px;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coral);
  border: 4px solid var(--cream-soft);
  box-shadow: 0 0 0 2px var(--coral);
}

.timeline__year {
  font-family: var(--font-display);
  color: var(--coral-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: block;
}

/* ---------- Quote / Faith blocks ---------- */
.faith-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.faith-block + .faith-block { margin-top: 24px; }

.faith-grid.grid > .faith-block { margin-top: 0; }
.faith-grid .faith-block p:last-child { margin-bottom: 0; }

.faith-footnote {
  max-width: 820px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}
.faith-footnote h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.faith-footnote p { margin-bottom: 8px; }
.faith-footnote p:last-child { margin-bottom: 0; }

.scripture-ref {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 12px;
}

blockquote.verse {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal-dark);
  border-left: 4px solid var(--teal);
  padding-left: 20px;
  margin: 24px 0;
}

blockquote.verse cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-card);
}

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

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- FAQ Accordion ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.faq + .faq { margin-top: 14px; }

.faq__q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
}

.faq__q .plus {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  font-size: 1.1rem;
  color: var(--coral-dark);
}

.faq.is-open .faq__q .plus { transform: rotate(45deg); background: var(--coral); color: var(--white); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
  color: var(--ink-soft);
}

.faq.is-open .faq__a {
  max-height: 400px;
  padding-bottom: 22px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream-soft);
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

/* ---------- Contact ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: var(--cream); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.site-footer ul li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--cream);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-header__inner { position: relative; z-index: 1; max-width: 760px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a { text-decoration: none; color: var(--coral-dark); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1em; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.rounded-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coral);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }
