/* ============================================================
   St. Thomas Kids — modern uplift
   Palette drawn from the logo heart: green / red / blue / gold
   ============================================================ */

:root {
  --green: #2e9e63;
  --green-dark: #1f7a4b;
  --green-soft: #e3f4ea;
  --red: #e4573d;
  --red-soft: #fdeae5;
  --blue: #2f7fb8;
  --blue-soft: #e4f0f8;
  --gold: #f5b940;
  --gold-soft: #fdf3dd;
  --ink: #253238;
  --ink-soft: #5b6b74;
  --cream: #faf7f0;
  --white: #ffffff;
  --line: #eadfcd;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(37, 50, 56, .18);
  --shadow-lg: 0 24px 50px -20px rgba(37, 50, 56, .28);
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.section-head p:last-child { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(46, 158, 99, .55);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: #d8cfc0;
}
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-outline {
  background: transparent; color: var(--green-dark);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-soft); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -14px rgba(37, 50, 56, .25);
}
.nav-wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
}
.brand img { border-radius: 12px; }
.brand-name { font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; }
.site-nav {
  display: flex; align-items: center; gap: 1.4rem;
  margin-left: auto;
}
.site-nav > a:not(.btn) {
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: .98rem;
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%;
  bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--green);
  transition: right .2s ease;
}
.site-nav > a:not(.btn):hover::after { right: 0; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem;
  cursor: pointer; margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 3px; border-radius: 3px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--blue-soft), transparent 60%),
    radial-gradient(50rem 26rem at -15% 110%, var(--green-soft), transparent 55%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .eyebrow { background: var(--gold-soft); color: #8a6114; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-copy h1 em, .hero-copy h1 span.accent { color: var(--green); font-style: normal; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin: 1.6rem 0 1.4rem;
}
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  color: var(--ink-soft); font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.hero-facts li:nth-child(2)::before { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.hero-facts li:nth-child(3)::before { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* hero photo collage */
.hero-art {
  position: relative;
  min-height: 460px;
}
.photo-blob {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.photo-blob img { width: 100%; height: 100%; object-fit: cover; }
.pb-1 {
  width: 62%; aspect-ratio: 5/4;
  top: 0; left: 0; z-index: 2;
  border-radius: 58% 42% 46% 54% / 48% 52% 48% 52%;
  animation: floaty 7s ease-in-out infinite;
}
.pb-2 {
  width: 44%; aspect-ratio: 4/4.4;
  bottom: 4%; left: 26%; z-index: 3;
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  animation: floaty 8s ease-in-out .8s infinite;
}
.pb-3 {
  width: 46%; aspect-ratio: 1/1;
  top: 16%; right: 0; z-index: 1;
  border-radius: 54% 46% 52% 48% / 46% 54% 46% 54%;
  animation: floaty 9s ease-in-out 1.6s infinite;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.hero-dot {
  position: absolute; border-radius: 50%; z-index: 0;
}
.d-1 { width: 90px; height: 90px; background: var(--gold-soft); top: -10px; right: 8%; }
.d-2 { width: 46px; height: 46px; background: var(--red-soft); bottom: 12%; left: 4%; }
.d-3 { width: 26px; height: 26px; background: var(--blue-soft); bottom: -4px; right: 30%; }

/* ---------- Cards / programs ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.program-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.program-card .card-body { padding: 1.1rem 1.2rem 1.3rem; }
.program-card h3 { margin-bottom: .3rem; }
.program-card p { color: var(--ink-soft); font-size: .95rem; margin: .5rem 0 0; }
.age-chip {
  display: inline-block;
  font-size: .78rem; font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: .18rem .7rem;
  margin: 0 0 .4rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  border-radius: 30px 60px 30px 60px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; object-fit: cover; width: 100%;
}
.about-badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--red); color: #fff;
  border-radius: 18px;
  padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--shadow-lg);
  font-size: .8rem; line-height: 1.3; font-weight: 700;
}
.about-badge .num { font-size: 1.5rem; font-weight: 900; }
.about-copy blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.3rem;
  border-left: 5px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-copy blockquote p { margin: 0 0 .3rem; font-weight: 700; font-size: 1.1rem; }
.about-copy cite { font-style: normal; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Staff ---------- */
.section-staff {
  background:
    radial-gradient(45rem 22rem at 110% 0%, var(--red-soft), transparent 55%),
    var(--white);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.staff-card > img {
  width: 100%;
  aspect-ratio: 4/3.6;
  object-fit: cover;
  object-position: top;
}
.staff-body { padding: 1.2rem 1.3rem 1.4rem; }
.staff-role {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: .22rem .75rem;
  margin-bottom: .5rem;
}
.role-director { background: var(--gold-soft); color: #8a6114; }
.role-preschool { background: var(--blue-soft); color: var(--blue); }
.role-toddler { background: var(--red-soft); color: var(--red); }
.staff-card h3 { margin-bottom: .4rem; }
.staff-bio { color: var(--ink-soft); font-size: .93rem; margin-bottom: .9rem; }
.staff-favs {
  list-style: none;
  margin: 0; padding: .8rem .9rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: grid; gap: .3rem;
}
.staff-favs li { display: flex; gap: .6rem; }
.staff-favs span {
  font-weight: 800;
  color: var(--green-dark);
  min-width: 3.8rem;
}

/* ---------- Tuition ---------- */
.tuition-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.tuition-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: .95rem;
}
.tuition-table th, .tuition-table td {
  padding: .85rem .9rem;
  text-align: center;
  vertical-align: middle;
}
.tuition-table thead th {
  background: var(--green);
  color: #fff;
  font-size: .92rem;
  line-height: 1.3;
  padding: 1rem .9rem;
}
.tuition-table thead th span {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  opacity: .85;
}
.tuition-table tbody th {
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: .88rem;
}
.tuition-table tbody tr:nth-child(even) td { background: #fcfbf7; }
.tuition-table .price { font-weight: 900; display: block; font-size: 1.02rem; }
.tuition-table .tag {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  font-weight: 700;
}
.tuition-notes { padding: 1.4rem 1.5rem; }
.tuition-notes h3 { margin-bottom: .7rem; }
.tuition-notes ul {
  margin: 0 0 1.2rem; padding-left: 1.2rem;
  color: var(--ink-soft); font-size: .95rem;
}
.tuition-notes li { margin-bottom: .5rem; }
.tuition-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Doc cards (For Parents) ---------- */
.doc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 1.4rem;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--line);
  background: var(--white);
}
.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.doc-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  font-size: 1.5rem;
  background: var(--green-soft);
  border-radius: 16px;
  margin-bottom: .9rem;
}
.doc-card:nth-child(2n) .doc-icon { background: var(--blue-soft); }
.doc-card:nth-child(3n) .doc-icon { background: var(--gold-soft); }
.doc-card:nth-child(5n) .doc-icon { background: var(--red-soft); }
.doc-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.doc-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: .7rem; bottom: .7rem;
  background: rgba(37, 50, 56, .78);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(40rem 20rem at -10% 0%, var(--gold-soft), transparent 55%),
    var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-list {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; gap: 1.1rem;
}
.contact-list li {
  display: flex; gap: .9rem; align-items: flex-start;
}
.c-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.contact-list a { font-weight: 700; }
.fineprint { color: var(--ink-soft); font-size: .88rem; }
.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd8dc;
  padding: 2.6rem 0;
  font-size: .92rem;
}
.footer-wrap { display: grid; gap: 1rem; }
.footer-brand {
  display: flex; gap: .9rem; align-items: center;
  color: #fff;
}
.footer-brand img { border-radius: 10px; }
.footer-brand span {
  display: block; color: #9fb0b8; font-size: .88rem;
}
.footer-fine { max-width: 60em; color: #8ba0aa; font-size: .82rem; margin: 0; }
.footer-copy { color: #8ba0aa; margin: 0; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .6s ease, translate .6s ease;
}
.reveal.visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tuition-wrap { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr 1fr; }
  .about-badge { right: 8px; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: .6rem 1.2rem 1.2rem;
    display: none;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    padding: .9rem .2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav > a.btn {
    margin-top: 1rem;
    justify-content: center;
  }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .card-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.4rem; }
  .hero-art { min-height: 320px; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tuition-table { font-size: .82rem; }
  .tuition-table th, .tuition-table td { padding: .6rem .45rem; }
}
