/* Kids Kingdom - shared design system
   Palette: mixed from Petals (warm coral) + Safari Kid (trust teal), AA contrast.
   One accent pair locked page-wide. Pill buttons, 20px cards, 24px images. */

:root {
  /* light theme (default) - mixed from Safari Kid (airy white + royal blue)
     and Petals (sunny yellow + orange CTA). --teal var name kept but now
     carries Safari's royal blue as the trust/structure colour. */
  --bg:        #FFFFFF;   /* airy white (Safari) */
  --surface:   #FFFFFF;
  --surface-2: #FFF7E6;   /* soft warm band (Petals warmth) */
  --ink:       #1B2340;   /* deep navy-black headlines (both refs) */
  --ink-soft:  #59607A;   /* muted body */
  --line:      #E8EAF2;   /* hairlines on white */

  --teal:      #1F4FA0;   /* Safari royal blue: trust / headings / links */
  --teal-deep: #163A78;
  --coral:     #F26A2E;   /* Petals orange: primary CTA */
  --coral-deep:#D8551C;
  --yellow:    #FFC01E;   /* Petals sunshine: hero band + highlights */
  --cyan:      #35B6D6;   /* Safari hand-drawn underline accent */
  --red:       #E63A5E;   /* Petals section-header pink (sparing eyebrows) */
  --green:     #46A45E;   /* sparing accent */

  --on-accent: #FFFFFF;   /* text on coral/blue fills */

  color-scheme: light;    /* light only, no auto dark */

  /* Safari Kid style: pill buttons, squared content for professionalism */
  --radius-card: 10px;
  --radius-img:  14px;
  --radius-pill: 999px;
  --radius-input:8px;

  --shadow-sm: 0 2px 8px rgba(207,76,29,.06);
  --shadow-md: 0 12px 32px rgba(34,48,82,.10);
  --shadow-lg: 0 24px 60px rgba(34,48,82,.14);

  --maxw: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1,h2,h3,h4 {
  font-family: "Satoshi", "Poppins", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--tint { background: var(--surface-2); }
.center { text-align: center; }
.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* eyebrow (used sparingly, <= 1 per 3 sections) */
.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  color: var(--coral);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }
.section-title .accent { color: var(--teal); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.02rem;
  padding: .7rem 1.4rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.985); }
/* Safari Kid: solid royal-blue pill primary */
.btn--primary { background: var(--teal); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--on-accent); transform: translateY(-2px); }
.btn--lg { font-size: 1.12rem; padding: .95rem 2rem; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-family: "Poppins", sans-serif; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--coral); transition: width .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: var(--shadow-md);
    /* fully hidden when closed (visibility + opacity so no link can peek at the top) */
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility .3s var(--ease);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { display: block; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- hero (Safari Kid: white, centered, cyan underline) ---------- */
.hero { position: relative; background: var(--surface); padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.hero h1 .kw { font-weight: 900; }
.hero h1 .accent {
  font-weight: 900; color: var(--ink); position: relative; white-space: nowrap; padding-bottom: .1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='14' viewBox='0 0 140 14'%3E%3Cpath d='M3 9 Q35 2 70 7 T137 6' stroke='%2335B6D6' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left bottom; background-size: 100% 10px;
}
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__media { position: relative; }
/* Safari-style: child photo on a solid colour block */
.hero__media .photo-block { position: relative; border-radius: var(--radius-img); overflow: hidden; background: var(--teal); box-shadow: var(--shadow-lg); }
.hero__media img { aspect-ratio: 4/5; object-fit: cover; width: 100%; mix-blend-mode: normal; }
.hero__badge {
  position: absolute; left: -18px; bottom: 24px; z-index: 2;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-pill); padding: .6rem 1.1rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .5rem; font-weight: 700; font-family: "Poppins", sans-serif;
}
.hero__badge .dot { color: var(--green); display: inline-flex; }

@media (max-width: 860px) {
  .hero { text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero h1 .accent { white-space: normal; }
  .hero__media { order: -1; max-width: 360px; margin: 0 auto; }
  .hero__badge { display: none; }
}

/* ---------- Safari-style faint pattern band divider ---------- */
.pattern-band {
  height: 118px; background-color: var(--surface-2);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(31,79,160,.06) 6px, transparent 7px),
    radial-gradient(circle at 60px 60px, rgba(230,58,94,.05) 5px, transparent 6px),
    radial-gradient(circle at 100px 30px, rgba(70,164,94,.05) 6px, transparent 7px);
  background-size: 120px 90px;
}

/* ---------- Safari-style whole-child pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: center; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; align-items: center; gap: 1rem; padding: 6px 0; }
.pillar__mark { width: 30px; height: 30px; flex: none; }
.pillar b { font-family: "Satoshi", "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.badge-ring {
  width: 260px; height: 260px; border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--teal); display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, var(--surface) 60%, var(--surface-2) 100%);
}
.badge-ring b { display: block; font-family: "Satoshi", "Poppins", sans-serif; font-weight: 900; color: var(--teal); font-size: 1.4rem; line-height: 1.1; }
.badge-ring span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- centered header (Safari: heavy black, no eyebrow) ---------- */
.head-center { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.head-center .kicker { color: var(--teal); font-weight: 700; font-size: .95rem; display: inline-block; margin-bottom: .4rem; }
.head-center h2 { position: relative; display: inline-block; font-weight: 900; }
.head-center .lede { margin: 1rem auto 0; }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust__item {
  display: flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5rem 1rem; font-weight: 600; font-family: "Poppins", sans-serif; box-shadow: var(--shadow-sm);
}
.trust__item svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 9px; display: grid; place-items: center;
  margin-bottom: 14px; color: var(--on-accent);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon.c1 { background: var(--coral); }
.card__icon.c2 { background: var(--teal); }
.card__icon.c3 { background: var(--green); }
.card__icon.c4 { background: var(--yellow); color: #5A3C00; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* feature list (why-us) grouped, not a long <ul> */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 34px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: .8rem; align-items: flex-start; }
.feature svg { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 3px; }
.feature b { font-family: "Poppins", sans-serif; display: block; }
.feature span { color: var(--ink-soft); font-size: .96rem; }

/* activity pills */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .6rem 1.15rem; font-weight: 600; font-family: "Poppins", sans-serif; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: .5rem;
}
.pill .num { color: var(--coral); font-weight: 800; }

/* ---------- Mother of Kids Kingdom ---------- */
.mother__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .mother__grid { grid-template-columns: 1fr; gap: 28px; } }
.mother__photo { position: relative; }
.mother__photo .frame {
  border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface); aspect-ratio: 4/5; background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-soft); text-align: center;
}
.mother__photo .frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.mother__photo .ribbon {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: var(--coral); color: var(--on-accent); font-family: "Poppins", sans-serif; font-weight: 700;
  padding: .45rem 1.1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); white-space: nowrap;
}
.mother__body h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.mother__name { color: var(--teal); font-family: "Poppins", sans-serif; font-weight: 600; margin-bottom: 1rem; }
.lang-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 1.2rem; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font-family: "Poppins", sans-serif; font-weight: 600;
  padding: .4rem 1rem; border-radius: var(--radius-pill); color: var(--ink-soft); transition: all .2s var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: var(--teal); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.mother__msg p:last-child { margin-bottom: 0; }
.mother__msg[hidden] { display: none; }
.mother__msg--hi { font-family: "Mukta", "Poppins", sans-serif; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600;
  background: linear-gradient(to top, rgba(20,15,10,.7), transparent);
}
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: 1/2; }
@media (max-width: 760px) { .gallery figure.tall { grid-row: span 1; } .gallery figure.tall img { aspect-ratio: 1/1; } }

/* ---------- testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.quote__mark { color: var(--yellow); font-family: "Poppins", sans-serif; font-size: 3rem; line-height: .6; display: block; margin-bottom: .3rem; }
.quote p { color: var(--ink); font-size: 1.05rem; }
.quote__by { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 700; flex: none; }
.quote__by b { font-family: "Poppins", sans-serif; display: block; line-height: 1.2; }
.quote__by span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 1rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 46px; height: 46px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--teal); display: grid; place-items: center; }
.info-row .ic svg { width: 24px; height: 24px; }
.info-row b { font-family: "Poppins", sans-serif; display: block; }
.info-row a, .info-row p { color: var(--ink-soft); margin: 0; }
.info-row a:hover { color: var(--coral); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius-img); box-shadow: var(--shadow-md); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: 12px; padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .btn--primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn--primary:hover { background: var(--yellow); color: #5A3C00; }

/* ---------- footer ---------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 { font-size: 1.05rem; }
.footer a { color: var(--ink-soft); display: block; padding: 4px 0; }
.footer a:hover { color: var(--coral); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .card, .btn, .gallery img { transition: none; }
}

/* page hero (interior pages) */
.page-head { padding: 48px 0 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .crumb { color: var(--ink-soft); font-weight: 600; font-family: "Poppins", sans-serif; }
.page-head .crumb a { color: var(--teal); }
