/* Thalir Play School: public stylesheet
   Palette: mint, sky, peach, cream, sunshine yellow. Text colours meet WCAG 2.1 AA. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Palette sampled from the Thalir logo: tree green, teal ring, sun orange, deep blue-teal book */
  --cream: #fbfaf2;
  --cream-2: #f3f0df;
  --surface: #ffffff;
  --mint: #bfe3c8;
  --mint-soft: #e7f4ea;
  --mint-deep: #2a7d3f;     /* logo green, 5:1 on white */
  --sky: #a6dcd9;
  --sky-soft: #e2f3f2;
  --sky-deep: #17687a;      /* logo teal / blue, 6:1 on white */
  --peach: #f7b97a;
  --peach-soft: #fdeedd;
  --peach-deep: #a8460a;    /* orange-brown, 5.9:1 on white; also used for errors */
  --sun: #f5a02a;           /* logo sun orange */
  --sun-soft: #fdeacb;
  --sun-deep: #7a4a00;
  --ink: #17384a;
  --muted: #4d6270;
  --white: #fff;
  --input-border: #bfd0cb;
  --header-bg: rgba(251, 250, 242, .92);
  --btn-bg: #2a7d3f;
  --btn-fg: #ffffff;
  --btn-hover: #1f6531;
  --sec-bg: #f5a02a;
  --sec-fg: #17384a;
  --sec-hover: #e8901a;
  --ghost-bg: rgba(255, 255, 255, .7);
  --hero-1: #dff2f0;
  --hero-2: #ecf6ec;
  --footer-bg: #123a45;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(23, 56, 74, .09);
  --shadow-lg: 0 18px 44px rgba(23, 56, 74, .14);
  --font-head: "Fredoka", ui-rounded, "Segoe UI Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 72px;
}

/* Dark mode: same logo hues, on deep teal surfaces. Switched with the header toggle (default is light). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0f1c22;
  --cream-2: #14262d;
  --surface: #182a32;
  --mint: #2d6b43;
  --mint-soft: #173326;
  --mint-deep: #6fd08a;
  --sky: #1f6670;
  --sky-soft: #123238;
  --sky-deep: #6fd3d3;
  --peach: #9a5a1c;
  --peach-soft: #35230f;
  --peach-deep: #ffb36b;
  --sun: #f5a02a;
  --sun-soft: #382a0e;
  --sun-deep: #ffc978;
  --ink: #e9f2ef;
  --muted: #a8bcb7;
  --input-border: #3b565d;
  --header-bg: rgba(15, 28, 34, .92);
  --btn-bg: #5cc47a;
  --btn-fg: #0a1a10;
  --btn-hover: #7bd694;
  --sec-bg: #f5a02a;
  --sec-fg: #17202a;
  --sec-hover: #ffb552;
  --ghost-bg: rgba(255, 255, 255, .06);
  --hero-1: #112b33;
  --hero-2: #10242a;
  --footer-bg: #081419;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.5vw + .5rem, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw + .6rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg); padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--btn-fg); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1.2 var(--font-body);
  padding: .9rem 1.5rem; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-secondary { background: var(--sec-bg); color: var(--sec-fg); }
.btn-secondary:hover { background: var(--sec-hover); color: var(--sec-fg); }
.btn-ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--sky-soft); color: var(--ink); }
.btn-sm { padding: .55rem 1.1rem; min-height: 42px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(23, 56, 74, .1); border-color: var(--mint); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.primary-nav ul { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.primary-nav a:not(.btn) {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.primary-nav a:not(.btn):hover, .primary-nav a.is-active { background: var(--mint-soft); color: var(--mint-deep); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle .nav-toggle__open, .nav-toggle .nav-toggle__close { line-height: 0; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 3px solid var(--mint);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1rem 1.25rem;
    display: none;
  }
  .js .primary-nav.is-open { display: block; }
  .js .primary-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .js .primary-nav a:not(.btn) { padding: .85rem 1rem; font-size: 1.1rem; }
  .js .primary-nav .nav-cta { margin-top: .6rem; }
  .js .primary-nav .nav-cta .btn { width: 100%; }
  .brand-name { font-size: 1.2rem; }
}

/* ------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: 4rem 0 9rem;
  background: linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--cream) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 24, 34, .74) 0%, rgba(14, 24, 34, .52) 55%, rgba(14, 24, 34, .38) 100%); }
/* light text on the darker overlay when a hero image or video is used */
.hero--media h1, .hero--media .lead, .hero--media .lead p { color: #fff; }
.hero--media h1, .hero--media .lead { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.parallax-layer { position: absolute; inset: -6% 0 -6%; will-change: transform; }
.hero-art { width: 100%; height: 100%; display: block; }
.hero-hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(110px, 18vw, 220px); display: block; }
.hero__inner { position: relative; max-width: 1120px; }
.hero__inner > * { max-width: 40rem; }
.hero h1 { margin-bottom: .4em; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* CSS scroll-driven parallax where supported; JS fallback otherwise */
@keyframes parallax-shift { to { transform: translate3d(0, var(--shift, -40px), 0); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax-layer {
      animation: parallax-shift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}
.parallax-layer[data-speed="0.10"] { --shift: -50px; }
.parallax-layer[data-speed="0.22"] { --shift: -110px; }

/* ------------------------------------------------ sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section--cream { background: var(--cream-2); }
.section--mint { background: var(--mint-soft); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head.center { text-align: center; }
.section-head:not(.center) { margin-left: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 .6rem; padding: .25rem .9rem;
  background: var(--sun-soft); color: var(--sun-deep);
  font: 700 .85rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px;
}
.cta-row { margin-top: 2.25rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.media-img, .media-art svg { border-radius: 36px; box-shadow: var(--shadow-lg); width: 100%; }
.media-art svg { display: block; background: var(--mint-soft); }

/* cards */
.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: .9rem; }
.card p:last-child { margin-bottom: 0; }
.program__img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }

.icon-bubble {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
}
.icon-bubble--lg { width: 68px; height: 68px; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
.tone-0 .icon-bubble { background: var(--mint-soft); color: var(--mint-deep); }
.tone-1 .icon-bubble { background: var(--sky-soft); color: var(--sky-deep); }
.tone-2 .icon-bubble { background: var(--peach-soft); color: var(--peach-deep); }
.tone-3 .icon-bubble { background: var(--sun-soft); color: var(--sun-deep); }
.tone-0.card { border-top: 6px solid var(--mint); }
.tone-1.card { border-top: 6px solid var(--sky); }
.tone-2.card { border-top: 6px solid var(--peach); }
.tone-3.card { border-top: 6px solid var(--sun); }
.badge {
  display: inline-block; margin: 0 0 .75rem; padding: .15rem .75rem;
  background: var(--sky-soft); color: var(--sky-deep); border-radius: 999px; font-weight: 700; font-size: .9rem;
}

.highlights { display: grid; gap: 1rem; margin: 1.5rem 0 1.75rem; }
@media (min-width: 560px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlight, .feature { display: flex; gap: 1rem; align-items: flex-start; }
.highlight h3, .feature h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.highlight p, .feature p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }

.feature-grid { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 1.25rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------------------------ gallery */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font: 700 .95rem/1 var(--font-body); padding: .65rem 1.15rem; min-height: 44px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--mint); border-radius: 999px; cursor: pointer;
}
.chip:hover { background: var(--mint-soft); }
.chip[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 920px) { .gallery { columns: 3; } }
.g-item { break-inside: avoid; margin: 0 0 1rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.g-item[hidden] { display: none; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-open img { width: 100%; height: auto; transition: transform .35s ease; }
.g-open:hover img { transform: scale(1.03); }
.g-item { position: relative; }
.g-open { overflow: hidden; }
.g-item figcaption { padding: .65rem .9rem .8rem; font-size: .95rem; color: var(--muted); }

.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; background: rgba(20, 30, 42, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.lightbox::backdrop { background: rgba(20, 30, 42, .94); }
.lb-figure { margin: 0; text-align: center; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lb-figure figcaption { margin-top: .75rem; font-size: 1.05rem; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline-color: var(--sun); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
}

/* ------------------------------------------------ enquiry CTA band */
.cta-band { background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%); overflow: hidden; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); z-index: 0;
}
.cta-band::before { width: 260px; height: 260px; left: -80px; top: -90px; }
.cta-band::after { width: 200px; height: 200px; right: -50px; bottom: -80px; background: rgba(245, 160, 42, .35); }
.cta-band .container { position: relative; z-index: 1; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }

/* ------------------------------------------------ contact */
.contact-grid { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-grid .card:hover { transform: none; box-shadow: var(--shadow); }
.info-list { display: grid; gap: 1rem; margin: 1rem 0 1.25rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list svg { flex: none; margin-top: .2rem; color: var(--mint-deep); }
.map { border-radius: var(--radius-sm); overflow: hidden; margin: 1rem 0; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 280px; border: 0; display: block; }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; margin-bottom: .35rem; }
.req { color: var(--peach-deep); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"],
select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; min-height: 48px;
  background: var(--surface); border: 2px solid var(--input-border); border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 130px; }
input:hover, select:hover, textarea:hover { border-color: var(--mint-deep); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 1px; border-color: var(--sky-deep); }
[aria-invalid="true"] { border-color: var(--peach-deep); background: var(--peach-soft); }
.error { color: var(--peach-deep); font-weight: 700; font-size: .93rem; margin: .35rem 0 0; }
.error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: start; }
.field--check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: .2rem; accent-color: var(--mint-deep); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .error { grid-column: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { background: var(--mint-soft); color: var(--ink); border: 2px solid var(--mint-deep); }
.form-status.is-error { background: var(--peach-soft); color: var(--ink); border: 2px solid var(--peach-deep); }
.notice { background: var(--sun-soft); border: 2px solid var(--sun); border-radius: var(--radius-sm); padding: .9rem 1.1rem; color: var(--ink); }
.fine-print { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }
.recaptcha-fallback { max-width: 302px; }
.recaptcha-response { width: 250px; height: 40px; margin-top: .5rem; font-family: monospace; }
.g-recaptcha { max-width: 100%; overflow-x: auto; }

/* ------------------------------------------------ footer */
.site-footer { background: var(--footer-bg); color: #e8f3ee; padding-top: 3.5rem; margin-top: 0; }
.site-footer a { color: #e8f3ee; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-title { font-size: 1.1rem; color: #fff; margin-bottom: .75rem; }
.footer-col li { margin-bottom: .45rem; }
.footer-col p { margin-top: .9rem; color: #cfe3da; }
.social-list { display: flex; gap: .6rem; margin-top: 1rem; }
.social-list a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.social-list a:hover { background: rgba(255, 255, 255, .25); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.25rem 0 1.75rem; font-size: .95rem; color: #cfe3da;
}
.footer-bottom p { margin: 0; }

.site-footer .brand img { background: var(--cream); border-radius: 12px; padding: 4px; }

/* ------------------------------------------------ inner pages */
.page-main { padding: 3.5rem 0 4rem; min-height: 60vh; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.notfound { padding: 3rem 0; }
.notfound__code { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--font-head); color: var(--mint-deep); margin: 0; }

/* ------------------------------------------------ motion */
.js .will-reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.js .will-reveal { transition: opacity .6s ease, transform .6s ease; }
.js .will-reveal.in { opacity: 1; transform: none; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-art--toys { animation: bob 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .will-reveal:not(.in) { opacity: 1; transform: none; }
  .parallax-layer { transform: none !important; }
}
@media print {
  .site-header, .hero__bg, .cta-band, .lightbox, .nav-toggle { display: none !important; }
}

.gallery-cat-title { text-align: center; margin: 0 0 1.25rem; }
.g-cat { position: absolute; left: .6rem; top: .6rem; background: var(--surface); color: var(--mint-deep); font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; pointer-events: none; box-shadow: var(--shadow); }

/* gallery category tabs */
.gtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin-bottom: 1.75rem; border-bottom: 2px solid var(--mint); }
.gtab { font: 700 1rem/1 var(--font-body); padding: .85rem 1.3rem; min-height: 44px; background: transparent; color: var(--ink); border: 0; border-radius: 12px 12px 0 0; cursor: pointer; margin-bottom: -2px; border-bottom: 4px solid transparent; }
.gtab:hover { background: var(--mint-soft); }
.gtab[aria-selected="true"] { background: var(--surface); color: var(--mint-deep); border-bottom-color: var(--mint-deep); }

/* hero background video */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

.hero__embed { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__embed { display: none; } }

/* ------------------------------------------------ theme toggle + dark-mode details */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; line-height: 0; cursor: pointer;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
}
.theme-toggle:hover { background: var(--mint-soft); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: inline-flex; }
.header-tools { display: flex; align-items: center; gap: .6rem; }
.hero-hills .hh-1 { fill: var(--mint); }
.hero-hills .hh-2 { fill: var(--cream); }
:root[data-theme="dark"] .media-art svg { filter: brightness(.7) saturate(.9); }
:root[data-theme="dark"] .hero__photo, :root[data-theme="dark"] .program__img, :root[data-theme="dark"] .media-img { filter: brightness(.92); }
:root[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .5); }
@media (max-width: 900px) {
  .js .header-inner { flex-wrap: nowrap; }
}.header-tools { order: 3; }
.primary-nav { order: 2; margin-left: auto; }

/* footer links: no underline, small arrow / icon on every list item */
.site-footer a { text-decoration: none; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: flex-start; gap: .55rem; }
.footer-links a::before { content: ""; flex: none; width: .45em; height: .45em; margin: .6em .1rem 0 0; border-top: 2px solid var(--sun); border-right: 2px solid var(--sun); transform: rotate(45deg); transition: transform .15s ease; }
.footer-links a:hover::before { transform: translateX(3px) rotate(45deg); }
.footer-contact a .icon { flex: none; margin-top: .3em; color: var(--sun); }
.footer-contact a:hover .icon { transform: translateX(2px); }

.brand img { width: auto; height: 44px; max-width: 200px; object-fit: contain; }

.footer-title--social { margin: 1.25rem 0 0; }
.footer-title--social + .social-list { margin-top: .6rem; }

/* ------------------------------------------------ header "More" dropdown */
.nav-more { position: relative; }
.more-toggle {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  padding: .55rem .9rem; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); font: 700 1.0625rem/1.65 var(--font-body);
}
.more-toggle:hover, .more-toggle.is-active, .nav-more.is-open .more-toggle { background: var(--mint-soft); color: var(--mint-deep); }
.more-caret { transition: transform .15s ease; }
.nav-more.is-open .more-caret { transform: rotate(180deg); }
.primary-nav .more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + .35rem); z-index: 120;
  min-width: 13rem; flex-direction: column; align-items: stretch; gap: .1rem; flex-wrap: nowrap;
  margin: 0; padding: .5rem; list-style: none;
  background: var(--surface); border: 2px solid var(--mint); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.nav-more.is-open .more-menu { display: flex; }
.primary-nav .more-menu a:not(.btn) { border-radius: 10px; white-space: nowrap; }
@media (max-width: 900px) {
  .js .more-toggle { display: none; }
  .js .primary-nav .more-menu { display: flex; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
}
/* ------------------------------------------------ gallery: scrollable category tabs + More / Less */
.gtabs-wrap { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; border-bottom: 2px solid var(--mint); }
.gtabs {
  flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: .25rem;
  margin: 0; border: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gtabs::-webkit-scrollbar { display: none; }
.gtab { flex: none; white-space: nowrap; margin-bottom: 0; }
.gtab:first-child { margin-left: auto; }
.gtab:last-child { margin-right: auto; }
.gt-nav {
  flex: none; display: inline-flex; align-items: center; gap: .25rem; cursor: pointer;
  min-height: 40px; padding: .35rem .9rem; border-radius: 999px;
  border: 2px solid var(--mint); background: var(--surface); color: var(--mint-deep); font: 700 .95rem/1 var(--font-body);
}
.gt-nav:hover { background: var(--mint-soft); }
.gt-nav[hidden] { display: none; }
.gt-prev { font-size: 1.4rem; padding: .2rem .8rem .35rem; }
.g-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.5rem; }
.g-more[hidden], .g-more .btn[hidden] { display: none; }

/* ------------------------------------------------ loading effects + hover effects */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.icon-bubble { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.g-open { position: relative; }
.g-open::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 44px no-repeat,
    linear-gradient(180deg, rgba(14, 24, 34, 0) 40%, rgba(14, 24, 34, .55) 100%);
}
.g-item:hover .g-open::after, .g-open:focus-visible::after { opacity: 1; }
.contact-info.card:hover, .contact-form.card:hover { transform: none; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .5s ease both; }
  .hero__inner > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__inner > :nth-child(2) { animation-delay: .1s; }
  .hero__inner > :nth-child(3) { animation-delay: .2s; }
  .hero__inner > :nth-child(4) { animation-delay: .3s; }
  .g-in { animation: fadeUp .5s ease both; }

  .js img.fade-img { transition: opacity .55s ease; }
  .js img.fade-img:not(.is-loaded) { opacity: 0; }
  .g-open:has(img.fade-img:not(.is-loaded)) {
    background: linear-gradient(100deg, var(--cream-2) 30%, var(--mint-soft) 50%, var(--cream-2) 70%) 0 0 / 200% 100%;
    animation: shimmer 1.4s linear infinite; min-height: 160px;
  }

  .card:hover .icon-bubble, .feature:hover .icon-bubble, .highlight:hover .icon-bubble { transform: scale(1.12) rotate(-7deg); }
  .card h3, .feature h3, .highlight h3 { transition: color .2s ease; }
  .card:hover h3, .feature:hover h3, .highlight:hover h3 { color: var(--mint-deep); }
  .program__img { transition: transform .4s ease; }
  .card:hover .program__img { transform: scale(1.03); }
  .feature { transition: transform .2s ease, box-shadow .2s ease; }
  .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .g-item { transition: transform .25s ease, box-shadow .25s ease; }
  .g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .g-open:hover img { transform: scale(1.07); }
  .social-list a { transition: transform .2s ease, background-color .2s ease; }
  .social-list a:hover { transform: translateY(-3px); }
  .btn-primary:hover, .btn-secondary:hover { box-shadow: 0 10px 24px rgba(23, 56, 74, .22); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .feature:hover, .g-item:hover { transform: none; }
}

/* School name next to the header logo: 26px, ITC Benguiat BT, button green.
   ITC Benguiat BT is a licensed font: put the licensed web font file at assets/fonts/itc-benguiat-bt.woff2 (see README),
   otherwise it uses a copy installed on the visitor's device, then a serif fallback. */
@font-face {
  font-family: "ITC Benguiat BT";
  src: local("ITC Benguiat BT"), local("ITCBenguiatBT-Book"), local("Benguiat Bk BT"), url("../fonts/itc-benguiat-bt.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
.site-header .brand-name {
  font-family: "ITC Benguiat BT", "ITC Benguiat", "Benguiat", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--btn-bg);
}
@media (max-width: 480px) { .site-header .brand-name { font-size: 20px; } }

.info-list .phones { display: inline-flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
