/* Magic Kids Nursery — concept by Beans Digital
   Storybook palette drawn from their real logo: rainbow castle
   (coral red, teal, sunshine yellow, magenta) on a soft sky field. */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

@view-transition { navigation: auto; }

:root {
  --cream: #FFF9EF;
  --sky: #DDF1FA;
  --ink: #3B2C45;
  --ink-soft: #6B5B76;
  --coral: #EB4960;
  --coral-dark: #C93149;
  --teal: #11948A;
  --teal-dark: #0B6F68;
  --yellow: #FFC53D;
  --purple: #7B5EA7;
  --pink: #E86BA6;
  --card: #FFFFFF;
  --radius: 26px;
  --shadow: 0 10px 30px rgba(59, 44, 69, .10);
  --font-display: "Baloo 2", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  text-align: center;
  padding: 8px 16px;
}
.concept-banner a { color: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--yellow);
  view-transition-name: site-header;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 92px; height: auto; view-transition-name: brand-logo; }

.nav-toggle-box { display: none; }
.nav-toggle {
  display: none;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 6px 12px;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--yellow);
  user-select: none;
}

.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: .95rem;
  transition: background .2s, color .2s, transform .2s;
}
.main-nav a:hover { background: var(--sky); transform: translateY(-2px); }
.main-nav a.active { background: var(--coral); color: #fff; }
.main-nav a.nav-cta { background: var(--teal); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--teal-dark); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--yellow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .main-nav a { text-align: center; }
  .nav-toggle-box:checked ~ .main-nav { max-height: 420px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  padding: 70px 0 110px;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero h1 .hl-coral { color: var(--coral); }
.hero h1 .hl-teal { color: var(--teal); }
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 3px solid var(--yellow);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.rating-pill .stars { color: var(--yellow); letter-spacing: 2px; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 3px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

/* floating decorative shapes (pure CSS, original) */
.shape { position: absolute; pointer-events: none; }
.shape-sun {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 14px rgba(255, 197, 61, .25);
  top: 48px; right: 8%;
  animation: floaty 7s ease-in-out infinite;
}
.shape-ball {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink);
  top: 130px; left: 7%;
  animation: floaty 5.5s ease-in-out infinite reverse;
}
.shape-block {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--purple);
  bottom: 120px; right: 14%;
  transform: rotate(12deg);
  animation: spinny 11s linear infinite;
}
.shape-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 10px solid var(--teal);
  bottom: 150px; left: 12%;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes spinny {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* scalloped divider */
.scallop {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 28px;
  background:
    radial-gradient(circle at 50% 0, transparent 14px, var(--cream) 15px);
  background-size: 56px 28px;
  background-position: 0 0;
}
.section-sky { position: relative; background: var(--sky); padding: 70px 0 90px; }
.section-sky .scallop { background: radial-gradient(circle at 50% 0, transparent 14px, var(--cream) 15px); background-size: 56px 28px; }

/* ---------- generic sections ---------- */
section { padding: 64px 0; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.kicker.k-coral { background: var(--coral); }
.kicker.k-teal { background: var(--teal); }
h2.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 14px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-weight: 600; }

/* stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  border-bottom: 6px solid var(--yellow);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 26px 16px;
}
.stat:nth-child(2) { border-color: var(--coral); }
.stat:nth-child(3) { border-color: var(--teal); }
.stat:nth-child(4) { border-color: var(--purple); }
.stat .num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; }
.stat .lbl { color: var(--ink-soft); font-weight: 700; font-size: .92rem; }

/* cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--yellow); }
.card .emoji-dot {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  font-size: 1.7rem;
  margin-bottom: 16px;
  background: var(--sky);
}
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

/* reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.review::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--yellow);
  position: absolute;
  top: 10px; left: 20px;
}
.review p { margin-top: 26px; font-weight: 600; color: var(--ink-soft); font-style: italic; }
.review .who { margin-top: 14px; font-weight: 800; color: var(--ink); font-style: normal; font-size: .9rem; }
.review .who .stars { color: var(--yellow); }

/* image feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row .pic {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 14px;
}
.feature-row h3 { font-size: 1.6rem; margin-bottom: 10px; }
.feature-row p { color: var(--ink-soft); font-weight: 600; margin-bottom: 10px; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 22px; }
  .feature-row.flip .pic { order: -1; }
}
@media (min-width: 761px) {
  .feature-row.flip .pic { order: 2; }
}

/* checklist */
.checklist { list-style: none; }
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  clip-path: none;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 7px; height: 4px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

/* branches */
.branch-card { border-top: 8px solid var(--teal); }
.branch-card:nth-child(2) { border-top-color: var(--coral); }
.branch-card:nth-child(3) { border-top-color: var(--yellow); }
.branch-card:nth-child(4) { border-top-color: var(--purple); }
.branch-card:nth-child(5) { border-top-color: var(--pink); }
.branch-card .areas { font-size: .9rem; }
.badge-here {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

/* hours table */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table th, .hours-table td { padding: 12px 18px; text-align: left; font-weight: 700; }
.hours-table thead th { background: var(--teal); color: #fff; font-family: var(--font-display); }
.hours-table tbody tr:nth-child(even) { background: var(--sky); }
.hours-table .closed { color: var(--coral-dark); }

/* contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.contact-card h3 { margin-bottom: 12px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 600; color: var(--ink-soft); }
.contact-line .ico {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(120deg, var(--coral), var(--pink));
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  padding: 54px 28px;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 10px; }
.cta-strip p { font-weight: 600; margin-bottom: 24px; opacity: .95; }
.cta-strip .btn-outline { border-color: #fff; background: #fff; }

/* footer */
.site-footer {
  margin-top: 60px;
  background: var(--ink);
  color: #EFE6F5;
  padding: 54px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 34px;
}
.site-footer h4 { color: var(--yellow); margin-bottom: 12px; font-size: 1.1rem; }
.site-footer a { color: #EFE6F5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  opacity: .85;
}

/* floating whatsapp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--sky), var(--cream));
  padding: 56px 0 70px;
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); font-weight: 600; max-width: 640px; margin: 0 auto; }

/* reveal on scroll (JS adds .is-visible; without JS everything stays visible) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 90px; }
  section { padding: 44px 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
