/* Barclay Preschool — public site
   Palette shared with the CMS: terracotta & sage (logo), cream/wood (classroom), pastel mural accents. */
:root {
  --cream: #faf6ef;
  --cream-2: #f4ece0;
  --paper: #ffffff;
  --wood: #e9cfa3;
  --ink: #3b2f28;
  --ink-2: #5f5249;
  --muted: #8c7e72;
  --line: #ede4d6;
  --terracotta: #bf6543;
  --terracotta-dark: #a5532f;
  --terracotta-soft: #f9e9e0;
  --sage: #7d8b6a;
  --sage-soft: #ebefe3;
  --mustard: #e2b04a;
  --mustard-soft: #fbf0d6;
  --teal: #7fa9a6;
  --teal-soft: #e4efee;
  --peach: #ef9f86;
  --peach-soft: #fbe5dc;
  --sky: #a9c7dc;
  --brown: #4a3a30;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(91, 62, 38, .35);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Zilla Slab", Rockwell, Georgia, serif;
  --font-script: "Caveat", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  border: 2px solid transparent;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 22px -10px rgba(191, 101, 67, .7); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--terracotta); border-color: rgba(191, 101, 67, .35); }
.btn-ghost:hover { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.btn-light { background: var(--cream); color: var(--brown); }
.btn-light:hover { background: #fff; color: var(--terracotta); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(91, 62, 38, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-size: 23px; line-height: 1.05; color: var(--terracotta); font-weight: 500; }
.brand-text b { font-weight: 700; }
.brand-text small { display: block; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-top: 4px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: var(--ink-2); font-weight: 700; font-size: 15.5px;
  padding: 9px 15px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.primary-nav a:hover { background: var(--cream-2); color: var(--ink); }
.primary-nav a.current { color: var(--terracotta); }
.primary-nav a.nav-cta { background: var(--terracotta); color: #fff; margin-left: 8px; padding: 10px 20px; }
.primary-nav a.nav-cta:hover { background: var(--terracotta-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Skyline (shared SVG) ---------- */
.skyline { display: block; width: 100%; height: 100%; }
.skyline-hero .b { fill: #ecdcc8; }
.skyline-hero .f { fill: #e7c0aa; }
.skyline-hero .fa { fill: #efd3c3; }
.skyline-hero .ln { fill: none; stroke: #e7c0aa; stroke-width: 2; }
.skyline-line .b, .skyline-line .f { fill: none; stroke: rgba(250, 246, 239, .16); stroke-width: 1.5; }
.skyline-line .fa { fill: rgba(250, 246, 239, .05); }
.skyline-line .ln { fill: none; stroke: rgba(250, 246, 239, .16); stroke-width: 1.5; }
.skyline-footer .b { fill: #6a564a; }
.skyline-footer .f { fill: var(--brown); }
.skyline-footer .fa { fill: #57463b; }
.skyline-footer .ln { fill: none; stroke: var(--brown); stroke-width: 2; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; background: linear-gradient(180deg, var(--cream) 0%, #fbf3e8 100%); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 40px; left: 46%; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, #f6cf7a 0 58%, rgba(246, 207, 122, .25) 60% 100%); }
.cloud { position: absolute; height: 34px; border-radius: 40px; background: #dfeaf2; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 46%; height: 150%; left: 16%; top: -60%; }
.cloud::after { width: 34%; height: 120%; right: 14%; top: -38%; }
.cloud-1 { width: 130px; top: 70px; left: 6%; }
.cloud-2 { width: 96px; top: 150px; left: 38%; opacity: .8; }
.cloud-3 { width: 150px; top: 60px; right: 5%; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-bottom: 110px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); background: var(--sage-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -.01em; margin-bottom: 22px; }
.hero h1 span { color: var(--terracotta); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.arch {
  aspect-ratio: 4 / 4.6;
  border-radius: 260px 260px 28px 28px;
  overflow: hidden;
  border: 10px solid #fff;
  box-shadow: var(--shadow);
  background: var(--wood);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 18px; line-height: 1.3; font-size: 13.5px; color: var(--muted);
}
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.hero-badge-1 { left: -36px; bottom: 90px; border-left: 6px solid var(--mustard); }
.hero-badge-2 { right: -18px; top: 70px; border-left: 6px solid var(--teal); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 18.06vw, 300px); z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.script { font-family: var(--font-script); font-size: 30px; line-height: 1; color: var(--terracotta); margin-bottom: 8px; font-weight: 700; }
.title { font-size: clamp(32px, 3.8vw, 46px); }

/* Intro */
.intro { background: var(--paper); }
.intro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.photo-cluster { position: relative; height: 470px; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble-lg { width: 300px; height: 300px; left: 40px; top: 0; }
.bubble-md { width: 210px; height: 210px; right: 20px; top: 150px; }
.bubble-sm { width: 170px; height: 170px; left: 110px; bottom: 0; }
.dot { position: absolute; border-radius: 50%; }
.dot-1 { width: 30px; height: 30px; background: var(--mustard); left: 0; top: 260px; }
.dot-2 { width: 18px; height: 18px; background: var(--teal); right: 60px; top: 90px; }
.dot-3 { width: 46px; height: 46px; background: var(--peach-soft); right: 140px; bottom: 30px; }
.intro-copy p:not(.script) { color: var(--ink-2); }
.intro-copy .btn { margin-top: 12px; }

/* Programs */
.programs { background: var(--cream); }
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 56px; }
.program {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--paper); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program h3 { font-size: 25px; color: var(--terracotta); margin-bottom: 2px; }
.program-age { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.program p:last-child { color: var(--ink-2); margin: 0; font-size: 16px; }
.program-icon, .feature-icon, .team-photo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.program-icon { width: 68px; height: 68px; }
.program-icon svg, .feature-icon svg, .team-photo svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tone-peach { background: var(--peach-soft); color: #c96a4d; }
.tone-mustard { background: var(--mustard-soft); color: #b9862a; }
.tone-teal { background: var(--teal-soft); color: #4f8783; }
.tone-sage { background: var(--sage-soft); color: #5f7a4e; }

/* Bands */
.band { padding: 110px 0; position: relative; overflow: hidden; }
.band-mustard { background: #f3d58f; }
.band-mustard::before, .band-mustard::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.band-mustard::before { width: 360px; height: 360px; left: -120px; top: -140px; }
.band-mustard::after { width: 260px; height: 260px; right: -80px; bottom: -120px; }
.band-mustard .script { color: var(--terracotta-dark); }
.team-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.team-photo { width: 168px; height: 168px; border: 8px solid #fff; margin: 0 auto 22px; box-shadow: 0 14px 30px -18px rgba(91, 62, 38, .5); }
.team-photo svg { width: 38%; height: 38%; }
.team h3 { font-size: 24px; margin-bottom: 8px; }
.team p { color: var(--ink-2); max-width: 300px; margin: 0 auto; font-size: 16px; }

/* Gallery */
.gallery { background: var(--paper); }
.gallery-grid {
  display: grid; gap: 16px; margin-bottom: 56px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  grid-template-areas: "a b c" "a d e";
}
.gallery-grid figure { border-radius: 18px; overflow: hidden; background: var(--wood); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }

/* City band */
.band-city { background: var(--brown); color: #efe4d6; padding-bottom: 150px; }
.band-city .title { color: #fff; }
.band-city .script { color: var(--mustard); }
.band-city p { color: #dccdbd; }
.band-city-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 18.06vw, 300px); pointer-events: none; }
.city-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.city-copy .btn { margin-top: 10px; }
.city-photos { position: relative; height: 380px; }
.polaroid { position: absolute; background: #fff; padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
.polaroid img { width: 100%; height: 220px; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { font-family: var(--font-script); font-size: 24px; color: var(--ink-2); text-align: center; padding: 6px 0 8px; }
.p-1 { width: 300px; left: 10px; top: 0; transform: rotate(-5deg); }
.p-2 { width: 280px; right: 0; top: 110px; transform: rotate(4deg); }

/* Features */
.features { background: var(--cream); padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.feature-icon { width: 84px; height: 84px; margin-bottom: 18px; }
.feature h3 { font-size: 24px; color: var(--terracotta); margin-bottom: 6px; }
.feature p { color: var(--ink-2); max-width: 300px; margin: 0 auto; font-size: 16px; }

/* CTA */
.cta { background: var(--cream); padding: 0 0 100px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--terracotta-soft);
  border: 2px dashed rgba(191, 101, 67, .35);
  border-radius: 28px; padding: 44px 52px;
}
.cta h2 { font-size: 32px; margin-bottom: 6px; }
.cta p { color: var(--ink-2); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 404 */
.notfound { min-height: 50vh; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #dccdbd; background: var(--cream); }
.footer-skyline { height: clamp(80px, 18.06vw, 300px); margin-bottom: -2px; }
.footer-body { background: var(--brown); padding: 36px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 4px; margin-bottom: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 18px; }
.footer-nav a { color: #f3e9dc; font-weight: 700; font-size: 15px; }
.footer-nav a:hover { color: var(--mustard); }
.footer-meta { font-size: 14px; color: #bcae9f; margin-bottom: 4px; }
.footer-copy { font-size: 13px; color: #9e9083; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav a { padding: 8px 10px; font-size: 15px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 16px; right: 16px; top: 84px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-radius: 20px; padding: 12px;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { padding: 12px 16px; font-size: 16px; }
  .primary-nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .hero-inner, .intro-inner, .city-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: center; }
  .hero-inner { padding-bottom: 150px; }
  .photo-cluster { max-width: 480px; margin: 0 auto; width: 100%; }
  .program-grid { grid-template-columns: 1fr; }
  .city-photos { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 76px; }
  .brand img { width: 52px; height: 52px; }
  .brand-text { font-size: 20px; }
  .primary-nav { top: 72px; }
  .hero { padding-top: 36px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .sun { width: 56px; height: 56px; top: 16px; left: auto; right: 18px; }
  .cloud-1 { width: 90px; top: 30px; left: auto; right: 60px; }
  .cloud-2, .cloud-3 { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-badge-1 { left: -6px; }
  .hero-badge-2 { right: -6px; }
  .hero-inner { padding-bottom: 110px; }
  .section, .band { padding: 76px 0; }
  .band-city { padding-bottom: 120px; }
  .photo-cluster { height: 360px; }
  .bubble-lg { width: 220px; height: 220px; left: 0; }
  .bubble-md { width: 160px; height: 160px; right: 0; top: 120px; }
  .bubble-sm { width: 130px; height: 130px; left: 60px; }
  .program { padding: 24px; gap: 16px; }
  .program-icon { width: 56px; height: 56px; }
  .team-grid, .feature-grid { grid-template-columns: 1fr; gap: 44px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; grid-template-areas: "a a" "b c" "d e"; gap: 10px; }
  .city-photos { height: 340px; }
  .p-1 { width: 230px; } .p-2 { width: 220px; }
  .polaroid img { height: 170px; }
  .cta-inner { padding: 32px 24px; }
  .cta h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 0; background: linear-gradient(180deg, var(--cream) 0%, #fbf3e8 100%); text-align: center; }
.page-hero .sun { left: auto; right: 14%; top: 34px; width: 72px; height: 72px; }
.page-hero-inner { position: relative; z-index: 2; padding-bottom: clamp(130px, 15.5vw, 250px); }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 14px; }
.page-hero .lead { margin: 0 auto; }
.page-hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 14vw, 220px); z-index: 1; opacity: .85; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-card, .form-card { background: var(--cream); border-radius: var(--radius); padding: 36px; }
.info-card h2, .form-card h2 { font-size: 30px; }
.info-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.info-icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.info-label { display: block; font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 2px; }
.info-list address { font-style: normal; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.info-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
.info-value { font-size: 20px; font-weight: 800; color: var(--ink); }
.info-value:hover { color: var(--terracotta); }
.info-link { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 15px; }
.map-card { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--cream); background: var(--cream-2); }
.map-card iframe { display: block; width: 100%; height: 300px; border: 0; }
.form-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-intro { color: var(--ink-2); }
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); padding: 0; }
.req { color: var(--terracotta); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 2px solid transparent; border-radius: 14px;
  padding: 12px 16px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { background: var(--cream-2); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(191, 101, 67, .14); }
.field.has-error input, .field.has-error textarea { border-color: #c0473a; background: #fdf1ee; }
.field-error { color: #b23a2e; font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.form-alert { background: #fbe8e3; color: #9b3529; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { background: var(--cream-2); }
.chip input:checked + span { background: var(--terracotta-soft); border-color: var(--terracotta); color: var(--terracotta-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; justify-content: center; }
button.btn { cursor: pointer; font-family: inherit; }
.form-success { text-align: center; padding: 30px 10px; }
.success-icon { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); align-items: center; justify-content: center; margin-bottom: 18px; }
.success-icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* footer contact line */
address.footer-meta { font-style: normal; }
.footer-meta a { color: #f3e9dc; font-weight: 700; }
.footer-meta a:hover { color: var(--mustard); }
.footer-meta .sep { margin: 0 8px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { order: -1; }
}
@media (max-width: 720px) {
  .page-hero { padding-top: 44px; }
  .page-hero .cloud { display: none; }
  .page-hero .sun { width: 48px; height: 48px; top: 18px; right: 18px; }
  .info-card, .form-card { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-meta .sep { display: none; }
  .footer-meta a { display: block; margin-top: 2px; }
}

/* ---------- About ---------- */
.highlights { background: var(--paper); padding: 0; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; transform: translateY(-50%); margin-bottom: -60px; position: relative; z-index: 3; }
.highlight { background: #fff; border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.highlight-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.highlight-icon svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.highlight h3 { font-size: 21px; margin-bottom: 4px; }
.highlight p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.about-intro { background: var(--paper); padding-top: 60px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy p:not(.script) { color: var(--ink-2); }
.split-art { position: relative; display: flex; justify-content: center; }
.arch-sm { width: 100%; max-width: 420px; }
.split-art .dot-a { width: 34px; height: 34px; background: var(--mustard); left: 4%; bottom: 14%; }
.split-art .dot-b { width: 20px; height: 20px; background: var(--teal); right: 6%; top: 8%; }

.approach { background: var(--cream); }
.section-sub { color: var(--ink-2); margin-top: 6px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -36px; top: -36px; background: rgba(255, 255, 255, .45); }
.pillar h3 { font-size: 25px; margin-bottom: 10px; position: relative; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 16px; position: relative; }
.pillar-peach { background: var(--peach-soft); }
.pillar-teal { background: var(--teal-soft); }
.pillar-sage { background: var(--sage-soft); }

.band-mustard .split { position: relative; z-index: 1; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 36px; font-weight: 700; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23bf6543' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.bubble-about { position: relative; width: 360px; height: 360px; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: var(--shadow); }
.bubble-about img { width: 100%; height: 100%; object-fit: cover; }

.day { background: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; border-top: 3px dashed var(--wood); }
.timeline li { text-align: center; position: relative; }
.t-dot { display: block; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 16px; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--line); position: relative; }
.t-dot.tone-peach { background: var(--peach); } .t-dot.tone-mustard { background: var(--mustard); }
.t-dot.tone-teal { background: var(--teal); } .t-dot.tone-sage { background: var(--sage); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }

.city-card { background: rgba(250, 246, 239, .08); border: 1px solid rgba(250, 246, 239, .18); border-radius: var(--radius); padding: 34px; justify-self: end; width: 100%; max-width: 380px; }
.city-card .info-label { color: var(--mustard); }
.city-card address { font-style: normal; font-family: var(--font-head); font-size: 26px; line-height: 1.3; color: #fff; margin: 6px 0 14px; }
.city-phone { display: block; font-size: 20px; font-weight: 800; color: #f3e9dc; margin-bottom: 8px; }
.city-phone:hover { color: var(--mustard); }
.city-card .info-link { color: var(--mustard); }
.cta-top { padding-top: 100px; }

@media (max-width: 960px) {
  .highlight-grid { grid-template-columns: 1fr 1fr; transform: none; margin: -50px auto 0; }
  .about-intro { padding-top: 70px; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 44px; }
  .split-reverse .split-copy { order: 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .city-card { justify-self: start; }
}
@media (max-width: 720px) {
  .highlight-grid { gap: 12px; }
  .highlight { padding: 20px 14px; }
  .highlight h3 { font-size: 18px; }
  .highlight p { font-size: 14px; }
  .bubble-about { width: 260px; height: 260px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .city-card { padding: 26px; }
  .cta-top { padding-top: 70px; }
}

/* ---------- Gallery page ---------- */
.gallery-page { background: var(--paper); }
.masonry { column-count: 3; column-gap: 18px; }
.m-item { break-inside: avoid; margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: var(--cream-2); position: relative; }
.m-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.m-open img { width: 100%; height: auto; display: block; transition: transform .5s; }
.m-item:hover .m-open img { transform: scale(1.04); }
.m-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(59, 47, 40, .75), transparent);
  color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; pointer-events: none;
}
.gallery-more { margin-top: 24px; }
.gallery-empty { text-align: center; padding: 30px 0; }
.gallery-empty h2 { font-size: 30px; }
.gallery-empty p { color: var(--ink-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 23, 19, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px 72px;
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-stage figcaption { color: #f3e9dc; font-size: 15px; display: flex; gap: 14px; align-items: baseline; text-align: center; }
.lb-count { color: #a99a8c; font-size: 13px; font-weight: 700; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: rgba(250, 246, 239, .12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(250, 246, 239, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 720px) {
  .masonry { column-gap: 10px; }
  .m-item { margin-bottom: 10px; border-radius: 12px; }
  .m-item figcaption { font-size: 13px; padding: 24px 10px 10px; }
  .lightbox { padding: 60px 8px 20px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lb-stage img { max-height: calc(100vh - 170px); }
}
.gallery-grid figure a { display: block; width: 100%; height: 100%; }

/* ---------- School News ---------- */
.news-page { background: var(--paper); }
.news-container { max-width: 860px; }
.news-list { display: grid; gap: 20px; }
.news-card {
  background: var(--cream); border-radius: var(--radius); padding: 30px 34px;
  border: 1px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.news-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow); background: #fff; }
.news-card.is-announcement { background: var(--mustard-soft); }
.news-card h2 { font-size: 28px; margin: 8px 0 10px; }
.news-card h2 a { color: var(--ink); }
.news-card h2 a:hover { color: var(--terracotta); }
.news-card p { color: var(--ink-2); margin-bottom: 12px; }
.news-more { font-weight: 800; font-size: 15px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 700; }
.news-cat { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--sage-soft); color: #4f6a42; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.news-card.is-announcement .news-cat, .news-cat.is-announcement { background: #f6dfa3; color: #8a6418; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { min-width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-2); background: var(--cream); }
.pager a:hover { background: var(--cream-2); color: var(--ink); }
.pager a.current { background: var(--terracotta); color: #fff; }

.article-hero { background: linear-gradient(180deg, var(--cream) 0%, #fbf3e8 100%); padding: 56px 0 48px; }
.article-head { max-width: 860px; }
.back-link { display: inline-block; font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.article-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 14px 0 14px; }
.article-head .lead { margin: 0; max-width: 720px; }
.article-section { background: var(--paper); padding-top: 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.article-body { font-size: 18px; line-height: 1.8; color: var(--ink); max-width: 720px; }
.article-body h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.article-body p { margin: 0 0 1.2em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body img { height: auto; border-radius: 16px; margin: 1.4em 0; }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-body blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 5px solid var(--peach); background: var(--cream); border-radius: 0 14px 14px 0; font-family: var(--font-head); font-size: 22px; line-height: 1.5; }
.article-body .embed, .article-body .media { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; }
.article-body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.article-aside { position: sticky; top: 112px; display: grid; gap: 16px; }
.article-aside h2 { font-size: 22px; margin: 0; }
.article-aside ul { list-style: none; margin: 0; padding: 0; display: grid; }
.article-aside li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; line-height: 1.4; }
.article-aside li a:hover span { color: var(--terracotta); }
.article-aside li time { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.article-aside ul:empty { display: none; }
.aside-card { background: var(--terracotta-soft); border-radius: var(--radius); padding: 22px; margin-top: 8px; }
.aside-card .script { margin-bottom: 4px; }
.aside-card p:not(.script) { color: var(--ink-2); font-size: 15px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; }
}
@media (max-width: 720px) {
  .news-card { padding: 24px 20px; }
  .news-card h2 { font-size: 24px; }
  .article-hero { padding: 36px 0 32px; }
  .article-body { font-size: 17px; }
}

/* ---------- Calendar ---------- */
.calendar-page { background: var(--paper); }
.cal-block + .cal-block { margin-top: 90px; padding-top: 90px; border-top: 2px dashed var(--line); }
.cal-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.cal-head p { color: var(--ink-2); margin: 10px 0 0; }
.cal-figure {
  max-width: 1040px; margin: 0 auto; background: #fff; border-radius: 22px; padding: clamp(10px, 2vw, 22px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cal-zoom { display: block; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.cal-zoom img { width: 100%; height: auto; display: block; }
.cal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cal-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-updated { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
@media (max-width: 720px) {
  .cal-block + .cal-block { margin-top: 60px; padding-top: 60px; }
  .cal-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media print {
  .site-header, .site-footer, .page-hero, .cal-actions, .cal-updated { display: none !important; }
  .cal-figure { box-shadow: none; border: 0; padding: 0; }
}

/* Three program cards side by side, icon above text */
.program-grid-3 { grid-template-columns: repeat(3, 1fr); }
.program-grid-3 .program { flex-direction: column; gap: 16px; }
@media (max-width: 960px) {
  .program-grid-3 { grid-template-columns: 1fr; }
  .program-grid-3 .program { flex-direction: row; }
}

/* Real staff photos inside the round team frames */
.team-photo { overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* About: wide classroom photo instead of a circle */
.split-wide-art { grid-template-columns: 1.15fr .85fr; gap: 56px; }
.photo-wide { margin: 0; width: 100%; border-radius: 26px; overflow: hidden; border: 10px solid #fff; box-shadow: var(--shadow); background: var(--wood); }
.photo-wide img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .split-wide-art { grid-template-columns: 1fr; } }

/* Bigger team circles so faces are not cropped */
.team-photo { width: 240px; height: 240px; }
@media (max-width: 960px) { .team-photo { width: 210px; height: 210px; } }

/* Large logo above the sub-page title (About Us) */
.page-hero-logo { display: block; width: clamp(170px, 20vw, 250px); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 12px 22px rgba(91, 62, 38, .16)); }
