/* ============================================================
   ROOTS TO WINGS — Boutique Pre-school
   Design tokens
   ============================================================ */
:root{
  --cream:      #FBF6E7;   /* warm parchment background */
  --cream-2:    #F3ECD4;   /* slightly deeper parchment for cards */
  --teal:       #2B98A6;   /* MAIN brand colour */
  --teal-dark:  #1E7480;   /* darker teal for hover/text-on-light */
  --teal-light: #D3ECEF;   /* pale teal tint for badges/backgrounds */
  --sage:       #75906A;   /* secondary green — nature accents */
  --sage-dark:  #384A31;   /* deep forest — headings / text */
  --sage-light: #DCE6C9;   /* pale leaf — section backgrounds */
  --sky:        #A9CFDE;   /* sky blue — supporting accent */
  --sky-dark:   #4F86A0;   /* deeper sky — supporting accent */
  --marigold:   #E7A53B;   /* sun / honey — CTAs */
  --marigold-dark:#C97F1F;
  --berry:      #C96A88;   /* berry pink — small accents */
  --paper:      #FFFDF6;   /* card white-ish */
  --ink:        #2B3324;   /* near-black green-grey for body text */

  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --font-note: "Caveat", cursive;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 30px -12px rgba(56,74,49,0.28);
  --shadow-tiny: 0 4px 12px -4px rgba(56,74,49,0.22);
  --maxw: 1180px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--teal-dark);
  margin: 0 0 0.4em;
  line-height: 1.12;
  font-weight: 700;
}

h1{ font-size: clamp(2.4rem, 5vw, 4rem); }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size: 1.35rem; }

p{ margin: 0 0 1em; }

a{ color: var(--teal-dark); }

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

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow svg{ width:16px; height:16px; }

.section{
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
}
.section--sage{ background: var(--teal-light); }
.section--cream{ background: var(--cream); }
.section--dark{ background: var(--teal-dark); color: #EAF6F7; }
.section--dark h2, .section--dark h3{ color: #F6F1DE; }

.section-watermark{
  position: absolute;
  width: 260px; height:260px;
  opacity: .12;
  pointer-events:none;
  animation: floatSpin 40s ease-in-out infinite;
  z-index:0;
}

.section-head{
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.lede{
  font-size: 1.12rem;
  color: #4C5A42;
  max-width: 640px;
}
.section--dark .lede{ color: #D7E0C6; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration:none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-3px) rotate(-1deg); }
.btn:active{ transform: translateY(0) rotate(0); }

.btn--primary{
  background: var(--marigold);
  color: #3A2708;
  box-shadow: var(--shadow-tiny);
}
.btn--primary:hover{ background: var(--marigold-dark); box-shadow: var(--shadow-soft); }

.btn--ghost{
  background: transparent;
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}
.btn--ghost:hover{ background: var(--teal-dark); color: var(--cream); }

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

/* ---------- nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251,246,231,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56,74,49,0.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
  white-space: nowrap;
}
.brand img{ height: 84px; width:auto; transition: transform .4s cubic-bezier(.34,1.6,.5,1); }
.brand:hover img{ transform: rotate(-8deg) scale(1.08); }
.brand span{ display:flex; flex-direction:column; line-height:1.15; }
.brand small{ font-family: var(--font-body); font-weight:600; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color: var(--teal-dark); }

.nav-links{
  display:flex;
  align-items:center;
  gap: 6px;
  list-style:none;
  margin:0; padding:0;
  flex-wrap: wrap;
}
.nav-links a{
  text-decoration:none;
  color: var(--teal-dark);
  font-weight:600;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover{ background: var(--teal-light); color: var(--teal-dark); }

.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-cta .btn{ padding: 10px 20px; font-size: .9rem; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 42px; height:42px;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width: 22px; height: 2.5px; background: var(--teal-dark); border-radius: 2px;
  position:relative; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

@media (max-width: 980px){
  .nav-links{
    position:fixed; inset: 100px 14px auto 14px;
    flex-direction: column; align-items:stretch;
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    transform-origin: top right;
    transform: scale(.96); opacity:0; pointer-events:none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open{ transform: scale(1); opacity:1; pointer-events:auto; }
  .nav-links a{ padding: 12px 14px; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn span.label{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FDF9EC 0%, #F6EFDA 55%, var(--teal-light) 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items:center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 0;
  position:relative;
  z-index: 3;
}
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-scene{ height: 300px; }
}
.hero h1{ margin-bottom: 20px; }
.hero .lede{ margin-bottom: 30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 20px;}
.hero-note{
  font-family: var(--font-note);
  font-size: 1.35rem;
  color: var(--berry);
  transform: rotate(-2deg);
  display:inline-block;
}

.hero-scene{ position:relative; height: 420px; overflow: visible; }
.hero-logo{
  position:absolute;
  left:50%; top:42%;
  width: 220px;
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 16px 24px rgba(56,74,49,.18));
  animation: heroLogoFloat 6s ease-in-out infinite;
  z-index: 3;
}
@keyframes heroLogoFloat{
  0%,100%{ transform: translate(-50%,-50%) translateY(0); }
  50%{ transform: translate(-50%,-50%) translateY(-14px); }
}
@media (max-width: 860px){
  .hero-logo{ width: 160px; }
}
.cloud{
  position:absolute;
  opacity:.85;
  animation: drift linear infinite;
}

/* ---- scattered field of free-floating, rotating Kandinsky-style circle clusters ---- */
.kcluster{
  position:absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  animation: floatSpin var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 10px 16px rgba(56,74,49,.14));
}

.hero-logo{
  position:absolute;
  left:50%; top:50%;
  width: 210px;
  transform: translate(-50%,-50%);
  animation: heroLogoFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 16px 22px rgba(56,74,49,.22));
  z-index: 3;
}
@keyframes heroLogoFloat{ 0%,100%{ transform: translate(-50%,-50%) translateY(0); } 50%{ transform: translate(-50%,-50%) translateY(-14px); } }
@media (max-width: 860px){ .hero-logo{ width: 160px; } }

.hill-divider{
  display:block; width:100%; line-height:0;
  position: relative; z-index:2; margin-top: -2px;
}

@keyframes drift{ from{ transform: translateX(-10%);} to{ transform: translateX(10vw);} }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.85; transform:scale(1.06);} }
@keyframes spin{ to{ transform: rotate(360deg);} }
@keyframes bob{ 0%,100%{ transform: translateY(0) rotate(-2deg);} 50%{ transform: translateY(-16px) rotate(2deg);} }
@keyframes floatSpin{
  0%{ transform: translateY(0) rotate(0deg); }
  25%{ transform: translateY(-14px) rotate(90deg); }
  50%{ transform: translateY(0) rotate(180deg); }
  75%{ transform: translateY(14px) rotate(270deg); }
  100%{ transform: translateY(0) rotate(360deg); }
}

/* ---------- section dividers (torn hill / leaf edges) ---------- */
.divider{ display:block; width:100%; line-height:0; }
.divider svg{ width:100%; height:auto; display:block; }

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

.card{
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-tiny);
  border: 2px solid transparent;
  transition: transform .3s cubic-bezier(.34,1.4,.5,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal-light);
}
.card .icon{
  width: 52px; height:52px;
  margin-bottom: 16px;
  color: var(--teal);
  transition: transform .4s cubic-bezier(.34,1.6,.5,1);
}
.card:hover .icon{ transform: rotate(-10deg) scale(1.12); }
.card h3{ margin-bottom:.4em; }
.card p{ color:#54604A; font-size:.97rem; margin-bottom:0;}

/* reveal-on-scroll */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- age badges ---------- */
.age-badges{
  display:grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
  margin: 46px 0 10px;
}
@media (max-width: 980px){ .age-badges{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .age-badges{ grid-template-columns: repeat(2,1fr);} }
.age-badge{
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 20px 12px 16px;
  text-align:center;
  box-shadow: var(--shadow-tiny);
  transition: transform .3s cubic-bezier(.34,1.5,.5,1);
}
.age-badge:hover{ transform: translateY(-6px) scale(1.03); }
.age-badge .emoji{
  font-size: 2rem;
  display:inline-block;
  margin-bottom: 8px;
  animation: bob 3.6s ease-in-out infinite;
}
.age-badge h4{ margin:0 0 2px; font-family: var(--font-display); font-size: 1rem; color: var(--teal-dark); }
.age-badge span{ font-size: .8rem; color:#6B7860; }

/* ---------- checklist ---------- */
.checklist{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.checklist li{
  display:flex; gap:12px; align-items:flex-start;
  font-size: 1.01rem;
}
.checklist svg{ flex:none; width:24px; height:24px; color: var(--teal); margin-top:2px; }

/* ---------- gallery ---------- */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px){ .gallery{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 600px){ .gallery{ grid-template-columns: repeat(2,1fr);} }
.gallery figure{
  margin:0; overflow:hidden; border-radius: var(--radius-sm);
  position:relative;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-tiny);
}
.gallery img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.gallery figure:hover img{ transform: scale(1.09) rotate(1deg); }
.gallery figure::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(56,74,49,0) 60%, rgba(56,74,49,.45) 100%);
  opacity:0; transition: opacity .35s ease;
}
.gallery figure:hover::after{ opacity:1; }

/* ---------- testimonials ---------- */
.testi-track{
  display:flex;
  gap: 26px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.testi-track::-webkit-scrollbar{ height:8px; }
.testi-track::-webkit-scrollbar-thumb{ background: var(--teal); border-radius:8px; }
.testi-card{
  scroll-snap-align: start;
  flex: 0 0 min(480px, 86vw);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-tiny);
  position: relative;
}
.testi-card .quote-mark{
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--teal-light);
  line-height:0.6;
  display:block;
  margin-bottom: 10px;
  transition: transform .4s cubic-bezier(.34,1.6,.5,1), color .3s ease;
}
.testi-card:hover .quote-mark{ transform: scale(1.15) rotate(-4deg); color: var(--teal); }
.testi-card p.quote{ font-size: 1.08rem; color: var(--teal-dark); }
.testi-card .who{ display:flex; align-items:center; gap:12px; margin-top: 18px; }
.testi-card .who img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.testi-card .who strong{ display:block; font-family: var(--font-display); color: var(--teal-dark); }
.testi-card .who span{ font-size:.82rem; color:#6B7860; }

/* ---------- FAQ accordion ---------- */
.faq-list{ display:grid; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq-item{
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tiny);
  overflow:hidden;
}
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 20px 24px;
  background:none; border:none; cursor:pointer;
  font-family: var(--font-display); font-weight:600; font-size: 1.02rem;
  color: var(--teal-dark); text-align:left;
}
.faq-q .caterpillar{ flex:none; width:30px; height:30px; transition: transform .4s cubic-bezier(.34,1.5,.5,1); }
.faq-item.open .caterpillar{ transform: rotate(180deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .4s ease;
  padding: 0 24px;
  color:#4C5A42;
}
.faq-a-inner{ padding-bottom: 22px; }
.faq-item.open .faq-a{ max-height: 600px; }
.faq-a ul{ margin:0; padding-left: 20px; }

/* ---------- contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items:start;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info{ display:grid; gap:18px; margin-bottom: 26px; }
.contact-info .row{ display:flex; gap:14px; align-items:flex-start; }
.contact-info svg{ flex:none; width:26px; height:26px; color: var(--marigold-dark); margin-top:2px; }
.contact-info strong{ display:block; font-family: var(--font-display); color: var(--teal-dark); }

.map-frame{
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: var(--shadow-tiny);
  border: none;
  width:100%; height: 280px;
}

.form-card{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.field{ margin-bottom: 18px; display:grid; gap:6px; }
.field label{ font-weight:700; font-size:.86rem; color: var(--teal-dark); }
.field input, .field textarea, .field select{
  border: 2px solid var(--teal-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43,152,166,.18);
}
.form-note{ font-size:.84rem; color:#6B7860; margin-top: 6px; }
.form-status{ font-size:.9rem; font-weight:700; margin-top:10px; min-height: 1.2em; }

/* ---------- footer ---------- */
.footer{
  background: var(--teal-dark);
  color: #CBE9EC;
  padding: 64px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer h4{ color:#F6F1DE; font-family: var(--font-display); font-size:1rem; margin-bottom: 14px; }
.footer .brand{ color:#F6F1DE; margin-bottom: 12px; }
.footer .brand small{ color: #A9D8DC; }
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.footer a{ color:#CBE9EC; text-decoration:none; font-size:.94rem; }
.footer a:hover{ color:#fff; text-decoration:underline; }
.footer-social{ display:flex; gap:12px; margin-top:6px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  transition: background .2s ease, transform .3s cubic-bezier(.34,1.5,.5,1);
}
.footer-social a:hover{ background: var(--marigold); transform: translateY(-3px) rotate(-6deg); }
.footer-social svg{ width:18px; height:18px; color:#F6F1DE; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color: #AEBE9C;
}

/* ---------- back to top ---------- */
.to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 54px; height:54px; border-radius:50%;
  background: var(--marigold);
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft);
  opacity:0; transform: translateY(14px) scale(.8); pointer-events:none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.5,.5,1);
}
.to-top.show{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
.to-top:hover{ transform: translateY(-4px) rotate(-8deg); }
.to-top svg{ width:22px; height:22px; color:#3A2708; }

/* ---------- confetti ---------- */
.confetti-piece{
  position: fixed;
  top: -12px;
  width: 9px; height: 14px;
  border-radius: 2px;
  z-index: 900;
  pointer-events:none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall{
  to{ transform: translateY(105vh) rotate(540deg); opacity:.9; }
}

/* ---------- misc ---------- */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items:center;
}
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; } }
.two-col img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.note{ font-family: var(--font-note); font-size: 1.4rem; color: var(--berry); }

.tag-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 22px; }
.tag{
  background: var(--teal-light); color: var(--teal-dark);
  font-size: .82rem; font-weight:700; padding: 7px 14px; border-radius:999px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--teal-dark); color:#fff; padding:10px 16px; border-radius:8px; z-index:1000;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{ outline: 3px solid var(--teal); outline-offset: 2px; }
