/* ==========================================================================
   Wonderland Pre-Primary School — design system
   ========================================================================== */

:root {
  /* Brand palette */
  --teal: #059EA4;
  --teal-dark: #04737A;
  --teal-soft: #E1F4F5;
  --coral: #F0231A;
  --coral-dark: #C81910;
  --coral-soft: #FDE6E4;
  --sun: #FFC94D;
  --sun-soft: #FFF3D6;
  --sky: #7BC4E2;
  --sky-soft: #E8F5FB;

  /* Neutrals */
  --cream: #FDF8F0;
  --white: #FFFFFF;
  --ink: #2B2B33;
  --ink-soft: #5A5A66;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 6px 24px rgba(43, 43, 51, 0.08);
  --shadow-lift: 0 12px 32px rgba(43, 43, 51, 0.14);

  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-2); }

a { color: var(--teal); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: var(--space-1);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }

.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-soft); }

.btn-light { background: var(--white); color: var(--teal-dark); }
.btn-light:hover { background: var(--sun-soft); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 43, 51, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 48px; height: 48px; object-fit: contain; background: var(--white); border-radius: 12px; padding: 2px; box-shadow: var(--shadow); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav-links a[aria-current="page"] { background: var(--teal); color: var(--white); }
.nav-links .nav-cta a { background: var(--coral); color: var(--white); }
.nav-links .nav-cta a:hover { background: var(--coral-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid rgba(43, 43, 51, 0.08);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-5);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 820px) {
  .hero { padding-block: var(--space-5) var(--space-4); }
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 .accent { color: var(--coral); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
}
.hero-badges li {
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.hero-art { position: relative; text-align: center; }
.hero-art .blob { position: absolute; z-index: -1; }
.hero-logo {
  width: min(400px, 85%);
  height: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lift);
}
.hero-flyer {
  width: min(520px, 100%);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a:hover .hero-flyer { transform: scale(1.02); box-shadow: 0 16px 40px rgba(43, 43, 51, 0.2); }

/* Decorative floating shapes */
.float-slow { animation: float 7s ease-in-out infinite; }
.float-fast { animation: float 5s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-5); }
.section-alt { background: var(--white); }
.section-teal { background: var(--teal); color: var(--white); }
.section-teal h2, .section-teal h3 { color: var(--white); }
.section-teal .lede { color: rgba(255, 255, 255, 0.85); }

.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Wavy divider */
.wave { display: block; width: 100%; height: 60px; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: var(--space-2);
  font-size: 1.6rem;
}
.icon-coral { background: var(--coral-soft); }
.icon-teal { background: var(--teal-soft); }
.icon-sun { background: var(--sun-soft); }
.icon-sky { background: var(--sky-soft); }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.card .card-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--coral-dark);
}
.card .card-link:hover { text-decoration: underline; }

/* Class cards with colored tops */
.class-card { border-top: 6px solid var(--teal); }
.class-card.coral { border-top-color: var(--coral); }
.class-card.sun { border-top-color: var(--sun); }
.class-card.sky { border-top-color: var(--sky); }
.class-age {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: var(--space-1);
}

/* --------------------------------------------------------------------------
   Split layout (text + art)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
.split.reverse > .split-art { order: -1; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-art { order: 0; }
}

/* Photo placeholder — swap for real photography */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  font-weight: 700;
  color: var(--teal-dark);
}
.photo-frame.f-teal { background: linear-gradient(135deg, var(--teal-soft), var(--sky-soft)); }
.photo-frame.f-coral { background: linear-gradient(135deg, var(--coral-soft), var(--sun-soft)); color: var(--coral-dark); }
.photo-frame.f-sun { background: linear-gradient(135deg, var(--sun-soft), var(--teal-soft)); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Checklist & stats
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center / 62% no-repeat;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--sun);
  line-height: 1;
}
.stat-label { font-weight: 700; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.quote-card blockquote {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  flex-grow: 1;
}
.quote-card blockquote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.4rem; line-height: 0; vertical-align: -0.35em; color: var(--coral); margin-right: 0.15rem; }
.quote-card cite { font-style: normal; font-weight: 800; color: var(--teal-dark); }

/* --------------------------------------------------------------------------
   Staff
   -------------------------------------------------------------------------- */
.staff-card { text-align: center; }
.staff-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.staff-role {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: var(--space-1);
}

/* --------------------------------------------------------------------------
   Tables & info panels
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th, .info-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(43, 43, 51, 0.08);
}
.info-table th { background: var(--teal); color: var(--white); font-weight: 800; }
.info-table tr:last-child td { border-bottom: 0; }

.panel {
  background: var(--sun-soft);
  border-radius: var(--radius);
  padding: var(--space-3);
  border-left: 6px solid var(--sun);
}
.panel.teal { background: var(--teal-soft); border-left-color: var(--teal); }
.panel.coral { background: var(--coral-soft); border-left-color: var(--coral); }

/* --------------------------------------------------------------------------
   Steps (admissions)
   -------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3) var(--space-3) var(--space-3) 5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.4rem;
  top: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--coral), var(--coral-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 40rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label { font-weight: 800; display: block; margin-bottom: 0.35rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(43, 43, 51, 0.14);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-5) var(--space-3);
  margin-top: var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }

.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-2); }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; background: var(--white); border-radius: 12px; padding: 2px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); }

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding-block: var(--space-5);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255, 255, 255, 0.88); }
.page-hero .deco {
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: 0.16;
  width: 280px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
