/* ==========================================================================
   Sai Kids Preschool — design system
   Brand: the logo's red + gold star, extended with a playful nursery palette.
   ========================================================================== */

:root {
  /* Brand */
  --red:        #e63946;
  --red-deep:   #b5121b;
  --red-soft:   #ffe5e7;
  --gold:       #ffb703;
  --gold-deep:  #f48c06;
  --sun:        #ffd60a;

  /* Playful accents */
  --teal:   #2a9d8f;
  --blue:   #457b9d;
  --purple: #9b5de5;
  --pink:   #f15bb5;
  --sky:    #00bbf9;

  /* Neutrals */
  --ink:       #241f24;
  --ink-soft:  #5b525c;
  --line:      #efe6ee;
  --cream:     #fff9f3;
  --tint:      #fff4ec;
  --white:     #ffffff;
  /* Shared by the footer background and the CTA wave that rises into it. */
  --footer:    #2b1f26;

  /* Type */
  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body:    'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(36, 31, 36, .06);
  --shadow-md: 0 10px 30px rgba(36, 31, 36, .10);
  --shadow-lg: 0 24px 60px rgba(36, 31, 36, .16);

  --wrap: 1180px;
  --header-h: 84px;
}

/* --------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

svg { width: 1em; height: 1em; fill: currentColor; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------- layout */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100%, 780px); margin-inline: auto; }
.center { text-align: center; }
.center-actions { justify-content: center; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section--tint { background: var(--tint); }
/* Pastel section washes, for colour variety down the page. */
.section--mint { background: #eaf7f3; }
.section--lav  { background: #f4eefc; }
.section--sky  { background: #eaf4fb; }

.section__head { text-align: center; max-width: 700px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section__head--split {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1.5rem; text-align: left; max-width: none;
}
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .3em; }
.section__sub { color: var(--ink-soft); margin: 0; }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
  color: var(--red);
  margin: 0 0 .4em;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .12);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary { --btn-bg: var(--red); box-shadow: 0 6px 0 var(--red-deep); }
.btn--primary:hover { box-shadow: 0 9px 0 var(--red-deep); }

.btn--sun { --btn-bg: var(--gold); --btn-fg: #40260a; box-shadow: 0 6px 0 var(--gold-deep); }
.btn--sun:hover { box-shadow: 0 9px 0 var(--gold-deep); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--red);
  border: 2.5px solid var(--red); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--red); --btn-fg: #fff; box-shadow: none; }

.btn--outline-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 2.5px solid rgba(255, 255, 255, .8); box-shadow: none;
}
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--red); box-shadow: none; }

.btn--lg { font-size: 1.08rem; padding: 1rem 1.9rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- topbar */

.topbar {
  background: linear-gradient(90deg, var(--red-deep), var(--red) 55%, var(--gold-deep));
  color: #fff; font-size: .86rem;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--sun); }
.topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__note { display: inline-flex; align-items: center; gap: 1.2rem; font-weight: 700; }
.topbar__admissions { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__app {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255, 255, 255, .18); padding: .15rem .7rem; border-radius: 999px;
}
.topbar__app:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 214, 10, .8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 214, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); }
}

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
/* flex:none — otherwise the long nav shrinks the logo to zero width. */
.brand { flex: none; display: block; }
.brand img { width: auto; height: 58px; }

.nav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__cta { flex: none; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--ink); padding: .55rem .7rem; border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover, .nav__item:hover > .nav__link { background: var(--red-soft); color: var(--red-deep); }
.nav__link.is-active { color: var(--red); background: var(--red-soft); }
.caret { width: .9em; height: .9em; transition: transform .2s ease; }
.nav__item:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + .4rem); left: 0;
  min-width: 260px; max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: .5rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item:hover > .submenu, .nav__item:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block; padding: .55rem .8rem; border-radius: var(--r-sm);
  color: var(--ink); font-size: .93rem; font-weight: 600;
}
.submenu a:hover, .submenu a.is-active { background: var(--tint); color: var(--red); }

.submenu-toggle { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--red-soft); cursor: pointer;
  padding: 12px 11px;
}
.nav-toggle span {
  display: block; height: 3px; border-radius: 3px; background: var(--red);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.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); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 15% -10%, #fff2d6 0%, transparent 60%),
    radial-gradient(900px 460px at 95% 10%, #ffe3e6 0%, transparent 60%),
    linear-gradient(180deg, var(--cream), #fff);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: hidden;
}
.hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  position: relative; z-index: 2;
}

/* ------------------------------------------------------- hero slider ---
   Slides are stacked and cross-faded. The track keeps its height from the
   tallest slide (each is in the same grid cell), so nothing jumps on change. */

.hero__track { display: grid; position: relative; z-index: 2; }

.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
  /* Inactive slides must not swallow clicks meant for the live one. */
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}

/* Stagger the copy in as each slide arrives. */
.hero__slide .hero__copy > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero__slide.is-active .hero__copy > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__copy > *:nth-child(1) { transition-delay: .10s; }
.hero__slide.is-active .hero__copy > *:nth-child(2) { transition-delay: .18s; }
.hero__slide.is-active .hero__copy > *:nth-child(3) { transition-delay: .26s; }
.hero__slide.is-active .hero__copy > *:nth-child(4) { transition-delay: .34s; }
.hero__slide.is-active .hero__copy > *:nth-child(5) { transition-delay: .42s; }

.hero__arrow {
  position: absolute; top: 50%; z-index: 5;
  transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--red);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  transition: background .2s, transform .2s, color .2s;
}
.hero__arrow svg { width: 26px; height: 26px; }
.hero__arrow:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.08); }
.hero__arrow--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.hero__arrow--next { right: clamp(.5rem, 2vw, 1.5rem); }

.hero__dots {
  position: absolute; z-index: 5;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(4.5rem, 8vw, 6.5rem);
  display: flex; gap: .5rem;
}
.hero__dot {
  width: 11px; height: 11px; padding: 0; border-radius: 999px;
  border: 2px solid var(--red); background: transparent; cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero__dot.is-active { width: 30px; background: var(--red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 2px solid var(--red-soft);
  color: var(--red-deep); font-weight: 700; font-family: var(--display);
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
}

.hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: .35em; font-weight: 800; }

/* Hand-drawn underline on the emphasised phrase. */
.squiggle { position: relative; color: var(--red); white-space: nowrap; }
.squiggle::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c30-7 60 5 95-1s70-6 101 2' stroke='%23ffb703' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero__badges li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .86rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero__badges strong { color: var(--ink); }

.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
/* Default: a photograph, cropped into an organic blob so it sits with the playful
   shapes rather than reading as a plain rectangle. */
.hero__img {
  position: relative; z-index: 2;
  width: min(100%, 480px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 9px solid #fff;
  border-radius: 46% 54% 38% 62% / 55% 42% 58% 45%;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite, blobShift 16s ease-in-out infinite;
}

/* A pre-masked transparent PNG already has its own silhouette — framing it would
   draw a white ring around nothing, so it floats bare. */
.hero__img--cutout {
  aspect-ratio: auto;
  object-fit: contain;
  width: min(100%, 500px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(36, 31, 36, .22));
  animation: float 7s ease-in-out infinite;
}

/* Slowly wanders the blob outline so the crop never looks like a static mask. */
@keyframes blobShift {
  33% { border-radius: 60% 40% 55% 45% / 45% 58% 42% 55%; }
  66% { border-radius: 40% 60% 45% 55% / 58% 40% 60% 42%; }
}
@keyframes float {
  50% { transform: translateY(-14px); }
}

.blob { position: absolute; border-radius: 46% 54% 38% 62% / 55% 42% 58% 45%; filter: blur(2px); z-index: 1; }
.blob--a { width: 78%; aspect-ratio: 1; background: rgba(255, 183, 3, .35); animation: morph 14s ease-in-out infinite; }
.blob--b { width: 62%; aspect-ratio: 1; background: rgba(230, 57, 70, .22); animation: morph 18s ease-in-out infinite reverse; }
@keyframes morph {
  33%  { border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%; transform: rotate(12deg) scale(1.05); }
  66%  { border-radius: 40% 60% 62% 38% / 60% 40% 60% 40%; transform: rotate(-10deg) scale(.97); }
}

.hero__chip {
  position: absolute; z-index: 3;
  background: #fff; border-radius: var(--r-md);
  padding: .7rem 1rem; box-shadow: var(--shadow-md);
  display: grid; text-align: center; line-height: 1.2;
  font-size: .78rem; color: var(--ink-soft);
  animation: float 5.5s ease-in-out infinite;
}
.hero__chip-num { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--red); }
.hero__chip--students { left: -2%; bottom: 14%; }
.hero__chip--years { right: -1%; top: 10%; animation-delay: 1.2s; }
.hero__chip--years .hero__chip-num { color: var(--teal); }

/* Decorative sky */
.hero__sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.cloud {
  position: absolute; background: #fff; border-radius: 100px;
  width: 90px; height: 30px; opacity: .85;
  box-shadow: 30px 8px 0 -4px #fff, -28px 6px 0 -6px #fff;
}
.cloud--1 { top: 12%; left: 4%;  animation: drift 26s linear infinite; }
.cloud--2 { top: 6%;  left: 46%; transform: scale(.7); opacity: .6; animation: drift 34s linear infinite reverse; }
.cloud--3 { top: 8%;  right: 12%; transform: scale(1.15); animation: drift 30s linear infinite; }
@keyframes drift {
  from { transform: translateX(-40px); }
  to   { transform: translateX(40px); }
}

.balloon {
  position: absolute; width: 34px; height: 42px; border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
}
.balloon::after {
  content: ''; position: absolute; top: 100%; left: 50%; width: 1px; height: 34px;
  background: rgba(0, 0, 0, .18);
}
/* Balloons stay clear of the hero copy column — they drift only over the art side. */
.balloon--1 { background: var(--red);    top: 14%; right: 34%; animation: rise 9s ease-in-out infinite; }
.balloon--2 { background: var(--purple); top: 62%; right: 6%;  animation: rise 11s ease-in-out infinite 1s; opacity: .8; }
@keyframes rise {
  50% { transform: translateY(-22px) rotate(6deg); }
}

.sun {
  position: absolute; top: 6%; right: 6%;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun), var(--gold));
  box-shadow: 0 0 50px rgba(255, 183, 3, .55);
  animation: float 9s ease-in-out infinite;
}

.hero__wave, .page-hero__wave { position: absolute; left: 0; right: 0; line-height: 0; }
.hero__wave { bottom: -1px; }
.hero__wave svg { width: 100%; height: 90px; fill: #fff; }

/* -------------------------------------------------------------- ticker */

.ticker {
  background: linear-gradient(90deg, var(--red), var(--gold-deep));
  color: #fff; overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 3;
}
.ticker__in { display: flex; align-items: center; gap: 0; }

.ticker__label {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  font-family: var(--display); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .7rem 1rem .7rem 0;
}
.ticker__label svg { width: 1.1em; height: 1.1em; }
.ticker__label::after {
  content: ''; display: inline-block; width: 2px; height: 20px;
  background: rgba(255, 255, 255, .4); margin-left: .6rem;
}

.ticker__viewport { flex: 1; overflow: hidden; }
.ticker__track {
  display: inline-flex; align-items: center; white-space: nowrap;
  /* Two copies sit side by side; shifting by 50% loops seamlessly. */
  animation: ticker 40s linear infinite; will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; font-size: .9rem; font-weight: 600;
  padding: .7rem 1.6rem .7rem 1rem;
}
.ticker__item:hover { color: #fff; text-decoration: underline; }
.ticker__item time { font-weight: 800; opacity: .85; font-size: .8rem; }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); flex: none; }

.ticker__all {
  flex: none; color: #fff; font-weight: 800; font-size: .82rem;
  padding: .7rem 0 .7rem 1rem;
}
.ticker__all:hover { color: var(--sun); }

@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 620px) {
  .ticker__label { font-size: .78rem; }
  .ticker__all { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* No auto-scroll; let the row scroll manually instead. */
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
}

/* ------------------------------------------------------------- welcome */

.welcome__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.welcome__art { position: relative; }
.welcome__art img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-xl);
  border: 8px solid #fff; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.welcome__sticker {
  position: absolute; top: -18px; right: -14px;
  width: 74px; height: 74px; display: grid; place-items: center;
  background: var(--sun); color: var(--red-deep);
  border-radius: 50%; font-size: 2rem;
  box-shadow: var(--shadow-md);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- facilities */

.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.fac-grid--page { margin-top: 2.5rem; }

.fac-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--r-lg);
  padding: 1.8rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.fac-card:hover {
  transform: translateY(-8px); color: var(--ink);
  box-shadow: var(--shadow-lg); border-color: var(--accent);
}
/* Accent wash that blooms from the corner on hover. */
.fac-card__glow {
  position: absolute; top: -60px; right: -60px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--accent); opacity: .1;
  transition: transform .4s ease, opacity .3s ease;
}
.fac-card:hover .fac-card__glow { transform: scale(2.6); opacity: .16; }

.fac-card__icon {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  transition: transform .3s ease;
}
.fac-card:hover .fac-card__icon { transform: rotate(-6deg) scale(1.06); }
.fac-card__icon img { width: 46px; height: 46px; object-fit: contain; }

.fac-card__title { position: relative; z-index: 1; font-size: 1.18rem; margin-bottom: .3em; }
.fac-card__text { position: relative; z-index: 1; font-size: .9rem; color: var(--ink-soft); flex: 1; margin-bottom: .8rem; }
.fac-card__more {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  color: var(--accent);
}
.fac-card__more svg { transition: transform .25s ease; }
.fac-card:hover .fac-card__more svg { transform: translateX(4px); }

/* --------------------------------------------------------------- stats */

/* Colourful band behind the achievement counters. */
.stats {
  background:
    radial-gradient(600px 300px at 10% 10%, #ffe3e6 0%, transparent 60%),
    radial-gradient(600px 300px at 90% 90%, #d9f2ec 0%, transparent 60%),
    radial-gradient(500px 300px at 90% 10%, #fff0d6 0%, transparent 55%),
    linear-gradient(180deg, #fff, var(--cream));
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat {
  --stat-accent: var(--red);
  text-align: center; padding: 2.2rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--stat-accent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:nth-child(1) { --stat-accent: #e63946; }
.stat:nth-child(2) { --stat-accent: #2a9d8f; }
.stat:nth-child(3) { --stat-accent: #f4a259; }
.stat:nth-child(4) { --stat-accent: #9b5de5; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__icon { width: 62px; height: 62px; object-fit: contain; margin: 0 auto .8rem; }
.stat__num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1;
  color: var(--stat-accent); margin: 0 0 .2em;
}
.stat__label { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* ------------------------------------------------------------ chairman */

.section--chair { background: var(--tint); }
.chair__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.chair__art img {
  width: 100%; border-radius: var(--r-xl);
  border: 8px solid #fff; box-shadow: var(--shadow-lg);
}
.chair__quote {
  margin: 0; padding: 1.6rem 1.6rem 1.6rem 3.2rem;
  background: #fff; border-radius: var(--r-lg);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow-sm);
  position: relative; color: var(--ink-soft); font-size: 1.02rem;
}
.chair__quote::before {
  content: '“'; position: absolute; left: .7rem; top: .1rem;
  font-family: var(--display); font-size: 4rem; color: var(--gold); line-height: 1;
}

/* -------------------------------------------------------- photo strip */

/* Fixed 4 columns so the 8 photos always land as two even rows, never 7 + orphan. */
.photo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .9rem; margin-bottom: 2.2rem;
}
.photo-strip__item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 1; box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
}
.photo-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-strip__item:hover img { transform: scale(1.12); }
.photo-strip__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(230, 57, 70, .5));
  opacity: 0; transition: opacity .3s ease;
}
.photo-strip__item:hover::after { opacity: 1; }

/* ------------------------------------------------------------- notices */

.notice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }

.notice-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); color: var(--ink);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.notice-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--red), var(--gold));
}
.notice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }

.notice-card__date {
  display: inline-grid; place-items: center;
  background: var(--red-soft); color: var(--red-deep);
  border-radius: var(--r-sm); padding: .4rem .7rem; margin-bottom: .9rem;
  /* The card is a flex column, so align-self (not justify-self) stops the
     badge stretching to full width. */
  align-self: flex-start; line-height: 1.1;
}
.notice-card__day { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.notice-card__mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.notice-card__title { font-size: 1.1rem; margin-bottom: .35em; }
.notice-card__text { font-size: .9rem; color: var(--ink-soft); flex: 1; margin-bottom: .7rem; }
.notice-card__more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--red);
}
.notice-card:hover .notice-card__more svg { transform: translateX(4px); }
.notice-card__more svg { transition: transform .25s ease; }

.notice-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.notice-single__meta {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink-soft); font-size: .9rem;
  background: var(--tint); padding: .4rem .9rem; border-radius: 999px;
}
.notice-aside {
  background: var(--tint); border-radius: var(--r-lg); padding: 1.5rem;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.notice-aside h2 { font-size: 1.15rem; }
.notice-aside ul { list-style: none; padding: 0; margin: 0; }
.notice-aside li + li { border-top: 1px solid var(--line); }
.notice-aside a { display: block; padding: .7rem 0; color: var(--ink); }
.notice-aside a:hover strong { color: var(--red); }
.notice-aside strong { display: block; font-size: .92rem; font-weight: 700; }
.notice-aside small { color: var(--ink-soft); font-size: .78rem; }

/* -------------------------------------------------------- testimonials */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.quote-card {
  margin: 0; background: #fff; border-radius: var(--r-lg);
  padding: 1.8rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote-card__stars { color: var(--gold); letter-spacing: .12em; margin-bottom: .6rem; }
.quote-card blockquote { margin: 0 0 1.2rem; color: var(--ink-soft); font-style: italic; }
.quote-card figcaption { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.quote-card__avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem;
}
.quote-card small { color: var(--ink-soft); }

/* ----------------------------------------------------------------- CTA */

.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red-deep), var(--red) 45%, var(--gold-deep));
  color: #fff;
  /* Extra bottom padding leaves room for the wave without it touching the buttons. */
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(5rem, 8vw, 6.5rem);
}

.cta__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.cta__wave svg { width: 100%; height: clamp(40px, 5vw, 70px); display: block; fill: var(--footer); }
.cta__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; position: relative; z-index: 2;
}
.cta__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .25em; }
.cta__sub { margin: 0; opacity: .92; max-width: 52ch; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.cta__confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta__confetti span {
  position: absolute; width: 12px; height: 12px; border-radius: 3px;
  background: rgba(255, 255, 255, .3);
  animation: confetti 9s linear infinite;
}
.cta__confetti span:nth-child(1) { left: 8%;  top: -20px; animation-delay: 0s;   background: var(--sun); }
.cta__confetti span:nth-child(2) { left: 26%; top: -20px; animation-delay: 1.6s; }
.cta__confetti span:nth-child(3) { left: 48%; top: -20px; animation-delay: 3.1s; background: var(--sun); }
.cta__confetti span:nth-child(4) { left: 67%; top: -20px; animation-delay: 4.4s; }
.cta__confetti span:nth-child(5) { left: 82%; top: -20px; animation-delay: 2.3s; background: var(--sun); }
.cta__confetti span:nth-child(6) { left: 94%; top: -20px; animation-delay: 5.8s; }
@keyframes confetti {
  to { transform: translateY(460px) rotate(520deg); opacity: 0; }
}

/* ----------------------------------------------------------- page hero */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 20% 0%, #fff2d6, transparent 65%),
    linear-gradient(135deg, var(--tint), var(--red-soft));
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.page-hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.page-hero__in { position: relative; z-index: 2; text-align: center; }
.page-hero__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .2em; }
.page-hero__sub { color: var(--ink-soft); margin: 0 auto; max-width: 60ch; }
.page-hero__wave { bottom: -1px; }
.page-hero__wave svg { width: 100%; height: 60px; fill: #fff; }

.crumbs {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem;
  background: rgba(255, 255, 255, .7); padding: .35rem 1rem; border-radius: 999px;
}
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------- prose */

.prose { font-size: 1.05rem; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--r-md); box-shadow: var(--shadow-sm); margin: 1.5rem 0; }
.prose figure { margin: 1.5rem 0; }
.prose figure img { margin: 0 0 .6rem; }
.prose figcaption { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
/* Legacy WordPress alignment classes still present in migrated content. */
.prose .alignleft  { float: left;  margin: .4rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ''; display: block; clear: both; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.prose ul li::before {
  content: '★'; position: absolute; left: 0; top: -.1em;
  color: var(--gold); font-size: 1rem;
}
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); }
.lede-prose { font-size: 1.15rem; text-align: center; }

.empty-note {
  background: var(--tint); border: 2px dashed var(--red-soft);
  border-radius: var(--r-lg); padding: 2rem; text-align: center; color: var(--ink-soft);
}
.empty-note p { margin: 0; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.3rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--ink); }
.mini-card h3 { font-size: 1.05rem; margin-bottom: .3em; }
.mini-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .6rem; }
.mini-card__more {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--red);
}

/* ----------------------------------------------------------------- FAQ */

.faq { display: grid; gap: .8rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: var(--red); box-shadow: var(--shadow-md); }
.faq h3 { margin: 0; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.1rem 1.3rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq__q:hover { color: var(--red); }
.faq__chev { flex: none; width: 1.4em; height: 1.4em; color: var(--red); transition: transform .25s ease; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq__a p { margin: 0; }
.faq__foot {
  margin-top: 2.5rem; text-align: center;
  background: var(--tint); border-radius: var(--r-lg); padding: 2rem;
}
.faq__foot p { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

/* -------------------------------------------------------------- videos */

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.video-card { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.video-card__facade {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; aspect-ratio: 16 / 9;
}
.video-card__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.video-card__facade:hover img { transform: scale(1.06); opacity: .75; }
.video-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: transform .25s ease;
}
.video-card__play svg { width: 30px; height: 30px; }
.video-card__facade:hover .video-card__play { transform: scale(1.14); }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ------------------------------------------------------------- gallery */

.gal-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.gal-filter {
  border: 2px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  padding: .5rem 1.2rem; border-radius: 999px;
  transition: all .2s ease;
}
.gal-filter:hover { border-color: var(--red); color: var(--red); }
.gal-filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* CSS columns give a masonry look without JS. */
.masonry { columns: 4 220px; column-gap: 1rem; }
.masonry__item {
  position: relative; display: block; break-inside: avoid;
  margin-bottom: 1rem; border-radius: var(--r-md); overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.masonry__item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); z-index: 2; }
.masonry__item img { width: 100%; }
.masonry__item.is-hidden { display: none; }
.masonry__zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(230, 57, 70, .55); color: #fff;
  opacity: 0; transition: opacity .25s ease;
}
.masonry__zoom svg { width: 34px; height: 34px; }
.masonry__item:hover .masonry__zoom { opacity: 1; }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 18, .93);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 1.5rem; gap: 1rem;
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.lightbox__figure { margin: 0; display: grid; place-items: center; gap: 1rem; min-width: 0; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh; border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__figure figcaption { color: #fff; font-size: .9rem; opacity: .85; text-align: center; }

.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; line-height: 1;
}
.lightbox__close:hover { background: var(--red); }

.lightbox__nav {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 2rem; line-height: 1;
  transition: background .2s ease;
}
.lightbox__nav:hover { background: var(--red); }

/* ------------------------------------------------------------- contact */

.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: start; }
.contact__ico {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__list small { color: var(--ink-soft); }

.contact__form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg);
}
.contact__form-card h2 { font-size: 1.5rem; }

.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem;
  padding: .8rem 1rem; border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
}
.field textarea { resize: vertical; }
.field span { color: var(--red); }

.form-note { font-size: .8rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

/* Honeypot — visually gone, still reachable to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: .92rem; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert--ok  { background: #e6f7f2; border: 1.5px solid var(--teal); color: #14624f; }
.alert--err { background: var(--red-soft); border: 1.5px solid var(--red); color: var(--red-deep); }

.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: 460px; border: 0; }

/* -------------------------------------------------------------- portal */

.portal-card {
  text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--shadow-md);
}
.portal-card__icon {
  width: 82px; height: 82px; margin: 0 auto 1.2rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.portal-card__icon svg { width: 40px; height: 40px; }
.portal-card p { color: var(--ink-soft); }
.portal-card__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 1rem; }
.portal-card__note { font-size: .85rem; }

/* ----------------------------------------------------------- 404 page */

.error-page__art { position: relative; height: 170px; display: grid; place-items: center; }
.error-page__code {
  font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1; margin: 0;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  background: var(--footer);
  color: #cdbfc7;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: clamp(1.8rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__col h3 {
  color: #fff; font-size: 1rem; margin-bottom: 1.1rem;
  text-transform: uppercase; letter-spacing: .08em;
}
/* Small gold rule under each column heading. */
.footer__col h3::after {
  content: ''; display: block; width: 32px; height: 3px; border-radius: 3px;
  background: var(--gold); margin-top: .5rem;
}
.site-footer p { font-size: .9rem; line-height: 1.65; }

/* The logo art is dark red on transparent, so it needs a light plate to sit on.
   Width is pinned — fit-content would fall back to the 460px intrinsic size. */
.footer__logo {
  background: #fff; border-radius: var(--r-md);
  padding: .6rem .8rem; margin-bottom: 1.1rem;
  width: 172px; height: auto;
}

.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__links a {
  color: #cdbfc7; font-size: .92rem; display: inline-block; padding: .32rem 0;
  transition: color .2s, transform .2s;
}
.footer__links a:hover { color: var(--sun); transform: translateX(4px); }

.footer__contact li { display: flex; gap: .7rem; margin-bottom: 1rem; font-size: .88rem; line-height: 1.55; }
.footer__contact svg { flex: none; width: 17px; height: 17px; color: var(--gold); margin-top: .25rem; }
.footer__contact a { color: #cdbfc7; }
.footer__contact a:hover { color: var(--sun); }

.footer__socials { display: flex; gap: .6rem; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.footer__socials a svg { width: 16px; height: 16px; }
.footer__socials a:hover { background: var(--red); transform: translateY(-3px); }

.footer__map {
  border-radius: var(--r-md); overflow: hidden; margin-bottom: .9rem; line-height: 0;
  border: 2px solid rgba(255, 255, 255, .12);
}
.footer__map iframe { width: 100%; height: 165px; border: 0; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; }
.footer__bar-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bar p { margin: 0; font-size: .84rem; }
.footer__bar a { color: var(--sun); }

/* ------------------------------------------------------------ call FAB */

/* Floating action buttons (WhatsApp + call), stacked bottom-right. */
.fab-stack {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: flex; flex-direction: column; gap: .7rem; align-items: flex-end;
}
.fab {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; padding: .8rem 1.2rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700;
}
.fab:hover { color: #fff; transform: translateY(-2px); }
.fab svg { width: 1.4em; height: 1.4em; }
.fab--whatsapp { background: #25d366; box-shadow: 0 10px 26px rgba(37, 211, 102, .5); }
.fab--call {
  background: var(--red); box-shadow: 0 10px 26px rgba(230, 57, 70, .5);
  width: 52px; height: 52px; justify-content: center; padding: 0;
}
.fab--call span { display: none; }

/* WhatsApp-styled form button. */
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: #fff; box-shadow: 0 6px 0 #128c3e; }
.btn--whatsapp:hover { box-shadow: 0 9px 0 #128c3e; color: #fff; }
.btn--whatsapp .wa-icon { width: 1.3em; height: 1.3em; }

/* ------------------------------------------------------- reveal on scroll */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav__list { gap: 0; }
  .nav__link { padding: .5rem .5rem; font-size: .9rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .hero__in, .welcome__grid, .chair__grid, .contact__grid, .notice-layout {
    grid-template-columns: 1fr;
  }
  .hero__art { order: -1; }
  .hero__img { width: min(80%, 340px); }
  /* Arrows would sit on top of the stacked art; dots + swipe carry the slider. */
  .hero__arrow { display: none; }
  .hero__dots { bottom: clamp(3rem, 9vw, 4.5rem); }
  /* Once the hero stacks, the art no longer shields the copy from the floating
     decorations — so the balloons come out rather than sit over the text. */
  .hero__sky .balloon { display: none; }
  .welcome__art img, .chair__art img { transform: none; }
  .notice-aside { position: static; }
  .masonry { columns: 3 180px; }

  /* Mobile drawer */
  .nav-toggle { display: block; }

  /* backdrop-filter makes an element a containing block for its fixed-position
     descendants, which would trap the drawer inside the header. Drop it here so
     the drawer positions against the viewport. */
  .site-header { backdrop-filter: none; background: #fff; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 5rem 1.2rem 2rem; gap: .5rem;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; z-index: 110;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: .85rem .6rem; font-size: 1rem; border-radius: var(--r-sm); }
  .caret { display: none; }

  /* Submenus become tap-to-expand accordions. */
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; max-height: 0; overflow: hidden;
    padding: 0 0 0 .8rem; transition: max-height .3s ease;
  }
  .nav__item.is-open > .submenu { max-height: 60vh; overflow-y: auto; padding-bottom: .5rem; }
  .nav__item:hover > .submenu { opacity: 1; visibility: visible; }

  .submenu-toggle {
    display: block; position: absolute; right: .3rem; top: .5rem;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--tint); cursor: pointer;
  }
  .submenu-toggle::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 9px; height: 9px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
    transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
  }
  .nav__item.is-open .submenu-toggle::after { transform: translateY(1px) rotate(225deg); }

  .nav__cta { margin-top: 1rem; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(20, 12, 18, .5); z-index: 105;
    opacity: 0; animation: fade .25s ease forwards;
  }

  .fab--call span { display: none; }
  .section__head--split { flex-direction: column; align-items: start; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .topbar__email, .topbar__note { display: none; }
  .topbar__in { justify-content: center; }
  .hero__chip--students { left: -4%; bottom: 6%; }
  .hero__chip--years { right: -4%; top: 4%; }
  .field-row { grid-template-columns: 1fr; }
  .masonry { columns: 2 130px; column-gap: .6rem; }
  .masonry__item { margin-bottom: .6rem; border-width: 3px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox { grid-template-columns: 1fr; padding: .8rem; }
  .lightbox__nav { position: absolute; bottom: 1.5rem; }
  .lightbox__nav--prev { left: 25%; }
  .lightbox__nav--next { right: 25%; }
  .cta__in { flex-direction: column; align-items: start; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------- motion */

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

@media print {
  .topbar, .site-header, .site-footer, .cta, .fab-stack, .lightbox { display: none !important; }
}
