/* ============================================================
   Cocoon Preschool — landing page styles
   Palette: warm teal + coral + cream. Mobile-first.
   ============================================================ */

:root {
  --teal: #1f7a6e;
  --teal-dark: #155a51;
  --teal-soft: #e7f4f1;
  --coral: #ff7a59;
  --coral-dark: #ef5f3c;
  --sun: #ffc94d;
  --cream: #fff9f2;
  --ink: #243133;
  --ink-soft: #51636a;
  --white: #ffffff;
  --line: #ece6dd;
  --shadow: 0 18px 40px -18px rgba(31, 122, 110, .35);
  --shadow-sm: 0 8px 24px -12px rgba(36, 49, 51, .25);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Baloo 2", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(239,95,60,.7); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }

.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

.btn-call { background: var(--teal); color: #fff; padding: .6rem 1.1rem; }
.btn-call:hover { background: var(--teal-dark); }

.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 242, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 20px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-mark { font-size: 1.7rem; }
.brand-text { font-size: 1.35rem; color: var(--teal-dark); display: flex; flex-direction: column; line-height: 1; }
.brand-sub { font-family: "Nunito"; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-top: 3px; }
.main-nav { display: none; gap: 1.6rem; font-weight: 700; color: var(--ink-soft); }
.main-nav a:hover { color: var(--teal); }
.header-call .phone-ico { font-size: .95rem; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 2.4rem 0 3rem; background:
  radial-gradient(1200px 500px at 90% -10%, rgba(255,201,77,.18), transparent 60%),
  radial-gradient(900px 500px at -10% 10%, rgba(31,122,110,.10), transparent 55%); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; }
.hero-blob-1 { width: 260px; height: 260px; background: rgba(255,122,89,.18); top: -60px; right: -40px; }
.hero-blob-2 { width: 200px; height: 200px; background: rgba(31,122,110,.14); bottom: -50px; left: -30px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: start; }

.pill { display: inline-block; background: var(--sun); color: #6b4b00; font-weight: 800;
  font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; margin: 0 0 1rem; color: var(--ink); }
.hl { color: var(--teal); position: relative; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 36ch; }

.hero-points { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; font-weight: 600; }
.hero-points li { display: flex; gap: .55rem; align-items: center; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }

.trust-row { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; line-height: 1.1; }
.trust-item strong { font-family: "Baloo 2"; font-size: 1.25rem; color: var(--teal-dark); }
.trust-item span { font-size: .82rem; color: var(--ink-soft); }

/* ---------------- Google rating + Kreedo badges ---------------- */
.trust-google { flex-direction: row; align-items: center; gap: .5rem; text-decoration: none; }
.trust-google .g-logo { width: 28px; height: 28px; flex: none; }
.trust-google .g-meta { display: flex; flex-direction: column; line-height: 1.1; }
.trust-google:hover .g-meta strong { color: var(--coral-dark); }

.kreedo-line { display: inline-flex; align-items: center; gap: .35rem; margin: 1.1rem 0 0; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.kreedo-line b { color: #2a1b4a; }

.rating-line { display: flex; justify-content: center; margin: .2rem 0 0; }
.google-badge { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink); }
.google-badge img { width: 20px; height: 20px; }
.google-badge:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.footer-powered { margin: .7rem 0 0; font-weight: 800; color: #9fb0b2; }
.footer-powered b { color: #fff; }

/* ---------------- Lead form ---------------- */
.hero-form-wrap { position: relative; z-index: 2; }
.lead-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.lead-title { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--teal-dark); }
.lead-sub { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.lead-form { display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; }
.field-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input, .field select {
  font: inherit; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); background: #fff;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-or { text-align: center; color: var(--ink-soft); font-size: .85rem; margin: .4rem 0 .2rem; position: relative; }
.quick-contact { display: grid; gap: .6rem; }
.form-status { margin: .3rem 0 0; font-weight: 700; font-size: .92rem; text-align: center; min-height: 1px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--coral-dark); }
.form-fineprint { font-size: .78rem; color: var(--ink-soft); text-align: center; margin: .4rem 0 0; }

.lead-success { text-align: center; padding: 1rem .5rem; }
.success-ico { font-size: 3rem; }
.lead-success h3 { font-size: 1.6rem; margin: .3rem 0; color: var(--teal-dark); }
.lead-success p { color: var(--ink-soft); margin: 0 0 1.2rem; }

/* ---------------- Trust strip ---------------- */
.strip { background: var(--teal); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; padding: 1.1rem 20px; font-weight: 700; font-size: .95rem; }
.strip-item { display: flex; gap: .5rem; align-items: center; justify-content: center; text-align: center; }

/* ---------------- Sections ---------------- */
.section { padding: 3.4rem 0; }
.section-tint { background: var(--teal-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.eyebrow { display: inline-block; color: var(--coral); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .6rem; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------------- Program cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-emoji { font-size: 2rem; margin-bottom: .4rem; }
.card h3 { margin: 0 0 .15rem; font-size: 1.25rem; color: var(--teal-dark); }
.card-age { color: var(--coral); font-weight: 800; font-size: .85rem; margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card-wide { grid-column: 1 / -1; background: linear-gradient(120deg, #fff, var(--cream)); }

/* ---------------- Why grid ---------------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.why-item { background: #fff; border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.why-ico { font-size: 1.9rem; margin-bottom: .4rem; }
.why-item h3 { margin: 0 0 .3rem; font-size: 1.2rem; color: var(--teal-dark); }
.why-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.g-tile { position: relative; margin: 0; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; background: var(--teal-soft); box-shadow: var(--shadow-sm); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; }
.g-ph { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--teal); font-weight: 800; font-size: .9rem; }
.g-tile.g-empty img { display: none; }
.g-tile.g-empty .g-ph { display: flex; }

/* ---------------- Testimonials ---------------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stars { color: var(--sun); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: .5rem; }
.quote p { margin: 0 0 .8rem; font-size: 1.02rem; }
.quote cite { color: var(--ink-soft); font-style: normal; font-weight: 700; }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: #fff; padding: 3rem 0; }
.cta-inner { display: grid; gap: 1.4rem; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .5rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #cdd7d9; padding: 2.6rem 0 1.2rem; }
.footer-grid { display: grid; gap: 1.8rem; }
.brand-footer .brand-text { color: #fff; }
.footer-tag { color: #9fb0b2; margin: .8rem 0 0; max-width: 30ch; }
.footer-col h4 { color: #fff; margin: 0 0 .6rem; font-size: 1.1rem; }
.footer-col p { margin: .3rem 0; }
.footer-col a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.8rem; padding-top: 1.1rem; font-size: .85rem; color: #8b9b9d; }

/* ---------------- Mobile call bar ---------------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--coral); color: #fff; text-align: center; font-family: "Baloo 2"; font-weight: 700;
  padding: .9rem; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4); font-size: 1.05rem;
}
.mobile-callbar:active { background: var(--coral-dark); }

/* ---------------- Responsive ---------------- */
@media (min-width: 720px) {
  .strip-inner { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: auto; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-inner { grid-template-columns: 1.6fr 1fr; text-align: left; align-items: center; }
  .cta-actions { justify-content: flex-end; }
  .mobile-callbar { display: none; }
}

@media (min-width: 920px) {
  .main-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; padding-top: 1rem; }
  .hero { padding: 3.2rem 0 4rem; }
  .lead-card { padding: 2rem; }
}

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