/* ==========================================================================
   KidSprouts — Grow. Explore. Thrive.
   ========================================================================== */

:root {
  --ks-teal: #008F7D;
  --ks-teal-dark: #075C50;
  --ks-green: #299676;
  --ks-coral: #FE3235;
  --ks-coral-light: #FBB39B;
  --ks-orange: #FF5B3F;
  --ks-purple: #B18DF7;
  --ks-cream: #FFFBF5;
  --ks-ink: #262626;
  --ks-white: #FFFFFF;

  --ks-yellow: #FFC93C;
  --ks-yellow-light: #FFF3D1;

  --shadow-soft: 0 10px 30px rgba(38, 38, 38, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 143, 125, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;

  --font-heading: "Baloo 2", "Fredoka", sans-serif;
  --font-body: "Nunito Sans", "Inter", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ks-ink);
  background: var(--ks-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ks-teal-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 1rem, 1.5rem); }
p { margin: 0 0 1em; }

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

section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ks-orange);
  margin-bottom: 12px;
}

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: #555; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ks-teal);
  color: var(--ks-white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--ks-teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--ks-teal-dark);
  border: 2px solid var(--ks-teal);
}
.btn-outline:hover { background: var(--ks-teal); color: var(--ks-white); }
.btn-light {
  background: var(--ks-white);
  color: var(--ks-teal-dark);
}
.btn-light:hover { background: var(--ks-yellow-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ks-white);
  box-shadow: 0 2px 14px rgba(38, 38, 38, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); }
.brand img { height: 78px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word { font-size: 1.3rem; font-weight: 700; color: var(--ks-ink); }
.brand-word .brand-accent { color: var(--ks-teal); }
.brand-tag { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ks-green); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  color: var(--ks-ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--ks-coral);
  transition: width 0.2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ks-teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--ks-teal-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--ks-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: 0 12px 20px rgba(38,38,38,0.08);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #f0e9dd; }
  .nav-links .btn { margin-top: 14px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--ks-yellow-light) 100%);
  padding: 0;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-inner > * { min-width: 0; }
.hero-copy p { font-size: 1.1rem; color: #444; max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { position: relative; z-index: 1; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  z-index: 0;
}
.hero-illustration {
  position: relative;
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  z-index: 2;
}
.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
}

.feature-strip {
  background: var(--ks-yellow);
  padding: 0 0 36px;
  margin-top: -2px;
}
.feature-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ks-teal-dark);
}
.feature-divider { width: 2px; height: 34px; background: rgba(7,92,80,0.25); }
.feature-icon {
  width: 42px; height: 42px;
  min-width: 42px;
  border-radius: 999px;
  background: var(--ks-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  overflow: hidden;
  transform: translateZ(0);
}
@media (max-width: 720px) {
  .feature-strip .container { flex-direction: column; gap: 18px; padding-top: 10px; }
  .feature-divider { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Illustration (CSS/SVG placeholder art) ---------- */
.illus-scene { width: 100%; aspect-ratio: 4/3; }

/* ---------- Welcome / generic split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split > * { min-width: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.2s ease;
}
.why-card:hover { transform: translateY(-6px); }
.why-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.why-card:nth-child(1) .why-icon { background: #DFF3EC; }
.why-card:nth-child(2) .why-icon { background: var(--ks-coral-light); }
.why-card:nth-child(3) .why-icon { background: #EDE3FC; }

/* ---------- Team ---------- */
.team-block {
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.team-block > * { min-width: 0; }
@media (max-width: 760px) {
  .team-block { grid-template-columns: 1fr; text-align: center; }
}
.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ks-white);
  margin: 0 auto;
  max-width: 220px;
}
.avatar-1 { background: linear-gradient(145deg, var(--ks-teal), var(--ks-green)); }
.avatar-2 { background: linear-gradient(145deg, var(--ks-orange), var(--ks-coral-light)); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ks-teal) 0%, var(--ks-teal-dark) 100%);
  color: var(--ks-white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--ks-white); }
.cta-banner p { color: #E7F6F2; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { background: var(--ks-white); color: var(--ks-teal-dark); }
.cta-banner .btn-primary:hover { background: var(--ks-yellow-light); }
.cta-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: var(--ks-yellow-light);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #444; font-size: 1.08rem; }

/* ---------- Values list ---------- */
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .values-list { grid-template-columns: 1fr; } }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--ks-white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  font-weight: 600;
  color: var(--ks-teal-dark);
}
.values-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ks-teal);
  color: var(--ks-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

/* ---------- Programmes ---------- */
.programme-group { margin-bottom: 56px; }
.programme-group-head { margin-bottom: 28px; }
.programme-group-head h2 { margin-bottom: 6px; }
.programme-group-head .badge {
  display: inline-block;
  background: var(--ks-purple);
  color: var(--ks-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) { .programme-grid { grid-template-columns: 1fr; } }

.programme-card {
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--ks-teal);
}
.programme-card:nth-child(2n) { border-top-color: var(--ks-orange); }
.programme-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.programme-card h3 { margin-bottom: 0; }
.age-badge {
  flex-shrink: 0;
  background: var(--ks-yellow-light);
  color: var(--ks-teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ks-coral);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.programme-card p { color: #444; font-size: 0.98rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-layout > * { min-width: 0; }
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ks-yellow-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.map-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  margin-top: 20px;
  aspect-ratio: 4/3;
}

.form-card {
  background: var(--ks-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--ks-teal-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-row .req { color: var(--ks-coral); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #EDE4D3;
  background: var(--ks-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ks-ink);
  transition: border-color 0.18s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ks-teal);
}
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: var(--ks-coral);
}
.field-error {
  color: var(--ks-coral);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}
.field-error.show { display: block; }
.form-note { font-size: 0.85rem; color: #777; margin-top: 18px; }
.form-success {
  display: none;
  background: #DFF3EC;
  border: 2px solid var(--ks-green);
  color: var(--ks-teal-dark);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ks-teal-dark);
  color: #EAF6F3;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 32px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 46px; width: auto; background: var(--ks-white); padding: 8px 12px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--ks-white); }
.site-footer h4 {
  color: var(--ks-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer a:hover { color: var(--ks-yellow); }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 10px; display: flex; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #B9DCD4;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.pulse { animation: wa-pulse 1.4s ease-out 3; }
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  .wa-float { bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; width: 56px; height: 56px; }
}

/* ---------- Line icons (pin/phone/heart/sun/smile) ---------- */
.feature-icon svg, .why-icon svg, .icon svg {
  width: 22px;
  height: 22px;
  color: var(--ks-teal-dark);
}
.ficon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--ks-yellow);
  margin-top: 2px;
}
.ficon svg { width: 18px; height: 18px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
