/* =========================================================
   Curious Minds Daycare — design system
   Warm, trustworthy, parent-friendly
   ========================================================= */

:root {
  /* Colour palette */
  --color-sage:       #5b8a72;
  --color-sage-dark:  #3f6651;
  --color-sage-soft:  #e8f0ea;
  --color-coral:      #f08a6e;
  --color-coral-dark: #d96a4d;
  --color-sun:        #f4c95d;
  --color-cream:      #fdf8f1;
  --color-cream-2:    #f7eedf;
  --color-ink:        #2d2a26;
  --color-ink-soft:   #5b5751;
  --color-line:       #e5dccb;
  --color-white:      #ffffff;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(45, 42, 38, 0.12);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sage-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-coral-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--color-ink-soft); max-width: 60ch; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage-dark);
  background: var(--color-sage-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-coral-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
}
.btn-secondary:hover { background: var(--color-sage-dark); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-ink);
}
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  display: block;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.site-footer .brand-mark { background: #fff; }
.brand small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--color-sage-dark); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.98rem;
}
.nav-links a:hover { background: var(--color-sage-soft); color: var(--color-sage-dark); }
.nav-links a.active { background: var(--color-sage-soft); color: var(--color-sage-dark); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 100px) 0 clamp(56px, 9vw, 110px);
  background:
    radial-gradient(ellipse at top right, rgba(244, 201, 93, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(91, 138, 114, 0.14), transparent 50%),
    var(--color-cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: italic;
  color: var(--color-sage-dark);
  background: linear-gradient(180deg, transparent 60%, rgba(244, 201, 93, 0.35) 60%);
  padding: 0 4px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}
.hero-points svg { width: 22px; height: 22px; color: var(--color-sage); flex-shrink: 0; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--color-sage-soft);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  max-width: 280px;
}
.hero-badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-sun);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background:
    radial-gradient(ellipse at top, rgba(244, 201, 93, 0.18), transparent 60%),
    var(--color-sage-soft);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { max-width: 60ch; margin: 0 auto; color: var(--color-ink-soft); font-size: 1.1rem; }

/* ---------- Cards / Grids ---------- */
.section-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-ink-soft); margin-bottom: 0; }

/* Coloured icon variants */
.icon-sage  { background: var(--color-sage-soft); color: var(--color-sage-dark); }
.icon-coral { background: #fde4dc;                color: var(--color-coral-dark); }
.icon-sun   { background: #fdf1d0;                color: #a87a1a; }

/* Programs (image + content) cards */
.program {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-image {
  aspect-ratio: 4 / 3;
  background: var(--color-sage-soft);
  position: relative;
}
.program-image img { width: 100%; height: 100%; object-fit: cover; }
.program-image .badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  box-shadow: var(--shadow-sm);
}
.program-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.program-body h3 { margin-bottom: 6px; }
.program-meta { color: var(--color-ink-soft); font-size: 0.92rem; margin-bottom: 14px; font-weight: 600; }
.program-body p { color: var(--color-ink-soft); }
.program-body ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.program-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--color-ink-soft);
}
.program-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--color-sage-soft);
  border-radius: 50%;
  border: 3px solid var(--color-sage);
  box-sizing: border-box;
}
.program-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse > :first-child { order: 2; }

/* ---------- Banner / CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-sage-dark) 0%, var(--color-sage) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(244, 201, 93, 0.18);
  border-radius: 50%;
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(240, 138, 110, 0.18);
  border-radius: 50%;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 56ch; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Info strip (hours / address / phone) ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.info-strip > div {
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid var(--color-line);
}
.info-strip > div:last-child { border-right: 0; }
.info-strip h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage-dark);
  margin: 0 0 4px;
  font-weight: 700;
}
.info-strip p { margin: 0; font-weight: 600; color: var(--color-ink); }
.info-strip-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-sage-soft);
  color: var(--color-sage-dark);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-strip-icon svg { width: 22px; height: 22px; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--color-cream-2);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -10px; left: 36px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--color-sage);
  opacity: 0.35;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--color-ink);
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-sage-dark);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-ink);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 4px rgba(91, 138, 114, 0.15);
}
.field .hint { font-size: 0.85rem; color: var(--color-ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #d6d2cb;
  padding: 64px 0 28px;
  margin-top: 0;
}
.site-footer a { color: #d6d2cb; }
.site-footer a:hover { color: var(--color-sun); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #a8a39a; max-width: 32ch; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid #3a3631;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #8a857c;
}

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Decorative shapes ---------- */
.shape-divider {
  text-align: center;
  margin: 0 auto 20px;
}
.shape-divider span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background: var(--color-coral);
}
.shape-divider span:nth-child(2) { background: var(--color-sun); transform: scale(1.2); }
.shape-divider span:nth-child(3) { background: var(--color-sage); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 5 / 4; max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip > div { border-right: 0; border-bottom: 1px solid var(--color-line); }
  .info-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-points { gap: 12px 20px; }
}

/* ---------- WhatsApp floating widget ---------- */
.wa-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35), 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wa-widget:hover,
.wa-widget:focus-visible {
  background: #1ebe57;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 6px 14px rgba(0, 0, 0, 0.15);
}
.wa-widget-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.wa-widget-label {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .wa-widget {
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }
  .wa-widget-label {
    display: none;
  }
  .wa-widget-icon {
    width: 28px;
    height: 28px;
  }
}
