/* Magical Handprints Preschool — shared styles for About, Testimonials, Contact, Gallery */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal-950: #132A28;
  --teal-900: #015450;
  --teal-700: #397F77;
  --teal-500: #02BDB4;
  --teal-300: #96FEF9;
  --teal-200: #B4DDD9;
  --mint:     #D7F7FC;
  --cream:    #FFFBF3;
  --sun:      #FFC857;
  --coral:    #FF7A6B;
  --berry:    #B76BD8;
  --leaf:     #7BC47F;
  --ink:      #1F2D2C;
  --muted:    #55706D;
  --white:    #FFFFFF;
  --radius:   22px;
  --shadow:   0 10px 30px rgba(1, 84, 80, .12);
  --display:  'Fredoka', 'Work Sans', system-ui, sans-serif;
  --body:     'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-900); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--teal-900); line-height: 1.2; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3, h4 { font-size: 1.3rem; }
/* Section titles kept at H2 size but marked up as H3 for a lean H2 outline */
h3.h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
p  { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mint { background: var(--mint); }
.section--teal { background: var(--teal-900); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--white);
  border: 2px dashed var(--teal-200);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--teal-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--teal-900); line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 2px solid var(--teal-200); border-radius: 12px; padding: 8px 12px; font: 600 .95rem var(--body); color: var(--teal-900); cursor: pointer; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 500; color: var(--teal-900);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: var(--teal-900); color: var(--white); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--teal-200); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 18px; }
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--mint) 0%, var(--cream) 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; border-radius: 50%; opacity: .55;
}
.page-hero::before { width: 320px; height: 320px; background: var(--sun); right: -90px; top: -110px; }
.page-hero::after  { width: 200px; height: 200px; background: var(--teal-300); left: -70px; bottom: -90px; }
.handprints { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.handprints svg { position: absolute; opacity: .18; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem var(--body);
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--teal-900); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); }
.btn--sun { background: var(--sun); color: var(--teal-950); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(1, 84, 80, .06);
}
.card h3, .card h4 { margin-top: 4px; }
.icon-bubble {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--mint); color: var(--teal-900);
}
.icon-bubble svg { width: 30px; height: 30px; }
.c-sun   { background: #FFF1CC; color: #A26A00; }
.c-coral { background: #FFE2DE; color: #B23A2C; }
.c-berry { background: #F2E3FA; color: #7A2FA0; }
.c-leaf  { background: #E1F4E2; color: #2F7A34; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Quote / feature panel ---------- */
.panel {
  position: relative; background: var(--teal-900); color: var(--white);
  border-radius: 32px; padding: clamp(32px, 5vw, 56px); overflow: hidden;
}
.panel h2, .panel h3 { color: var(--white); }
.panel::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: var(--teal-500); opacity: .25; right: -80px; bottom: -100px;
}
.panel > * { position: relative; z-index: 1; }

/* ---------- Day timeline (About) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.timeline li::before {
  counter-increment: step; content: counter(step);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.4rem var(--display); color: var(--white); background: var(--teal-500);
}
.timeline li:nth-child(4n+2)::before { background: var(--coral); }
.timeline li:nth-child(4n+3)::before { background: var(--sun); color: var(--teal-950); }
.timeline li:nth-child(4n+4)::before { background: var(--berry); }
.timeline h3, .timeline h4 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 34px 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: -18px; left: 22px;
  font: 700 5rem/1 var(--display); color: var(--teal-500);
}
.testimonial blockquote { margin: 0 0 20px; font-size: 1.05rem; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--teal-200); padding-top: 16px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 700 1.05rem var(--display); color: var(--white); background: var(--teal-700);
}
.testimonial cite { font-style: normal; font-weight: 600; color: var(--teal-900); display: block; line-height: 1.3; }
.testimonial small { color: var(--muted); }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 8px; }
.featured-quote { font: 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.45 var(--display); margin: 0 0 18px; }

.stat { text-align: center; }
.stat strong { display: block; font: 700 2.6rem/1.1 var(--display); color: var(--teal-500); }
.stat span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-item .icon-bubble { margin: 0; flex: none; width: 50px; height: 50px; border-radius: 14px; }
.info-item .icon-bubble svg { width: 24px; height: 24px; }
.info-item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info-item p { margin: 0; color: var(--muted); }
.info-item a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-item a:hover { text-decoration: underline; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--teal-900); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: 13px 16px; border-radius: 14px; border: 2px solid var(--teal-200); background: var(--cream);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }

.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

.faq details {
  background: var(--white); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font: 600 1.08rem var(--display); color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.filter-btn {
  font: 600 .95rem var(--body); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--teal-200); background: var(--white); color: var(--teal-900); transition: all .2s;
}
.filter-btn:hover { border-color: var(--teal-500); }
.filter-btn.active { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); }

.gallery { columns: 3 280px; column-gap: 20px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .2s;
}
.gallery figure:hover { transform: translateY(-4px); }
.gallery figure.hidden { display: none; }
.gallery img { width: 100%; height: auto; background: var(--mint); }
.gallery figcaption { padding: 14px 18px 16px; }
.gallery figcaption strong { display: block; font-family: var(--display); color: var(--teal-900); }
.gallery figcaption span { font-size: .9rem; color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(19, 42, 40, .88);
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox-inner { margin: 0; max-width: 900px; width: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.lightbox-inner img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--teal-950); }
.lightbox-inner figcaption { padding: 18px 22px; }
.lightbox-inner figcaption strong { display: block; font-family: var(--display); color: var(--teal-900); font-size: 1.15rem; }
.lightbox-inner figcaption span { color: var(--muted); }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--teal-900); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Photos ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.hero-split .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.photo-frame {
  border-radius: 28px; overflow: hidden; border: 10px solid var(--white);
  box-shadow: 0 18px 40px rgba(1, 84, 80, .18); transform: rotate(1.5deg); background: var(--white);
}
.photo-frame.tilt-left { transform: rotate(-1.5deg); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame.tall img { aspect-ratio: 4 / 5; }

.program-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.program-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mint); }
.program-card .body { padding: 24px 26px 28px; }
.program-card p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; font: 600 .75rem var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; background: var(--mint); color: var(--teal-900);
}

.highlights { margin-top: -44px; position: relative; z-index: 2; }
.highlights .card { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.highlights .icon-bubble { margin: 0; flex: none; width: 50px; height: 50px; border-radius: 14px; }
.highlights .icon-bubble svg { width: 26px; height: 26px; }
.highlights strong { display: block; font-family: var(--display); color: var(--teal-900); font-size: 1.05rem; line-height: 1.25; }
.highlights span { font-size: .9rem; color: var(--muted); }

.owner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 760px) { .owner { grid-template-columns: 1fr; text-align: center; } }
.owner-photo {
  width: clamp(200px, 28vw, 280px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-inline: auto;
  border: 10px solid var(--white); box-shadow: 0 0 0 4px var(--teal-500), var(--shadow);
}
.owner blockquote {
  margin: 0 0 18px; font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.55 var(--display); color: var(--teal-900);
}
.owner .signature { font-family: var(--display); font-weight: 600; color: var(--teal-700); }

.link-cards a { text-decoration: none; color: inherit; display: block; transition: transform .2s; }
.link-cards a:hover { transform: translateY(-4px); }
.link-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.link-cards .more { font-weight: 600; color: var(--teal-700); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--teal-900); color: var(--white); border-radius: 32px;
  padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta h2, .cta .h2 { color: var(--white); }
.cta p { color: var(--teal-200); max-width: 40rem; margin: 0 auto 26px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: var(--teal-200); padding: 56px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: var(--teal-300); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .bottom { border-top: 1px solid rgba(180, 221, 217, .2); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
