/* ---------- Hero (crossfade slideshow) ---------- */
.hero { min-height: min(86vh, 680px); border-radius: 0 0 40px 40px; }

.hero-slides {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit;
  clip-path: inset(0 round 0 0 40px 40px);
  /* Forces this clipping element onto its own compositor layer so its rounded clip is
     applied at the compositor level against the animated (also-composited) .hero-slide
     children, instead of Chromium/Edge falling back to a plain rectangular clip. */
  transform: translateZ(0);
  isolation: isolate;
}

.hero-slide {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(190deg, rgba(0, 40, 50, 0.1) 0%, rgba(0, 40, 50, 0.36) 62%, var(--bg) 100%),
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--sun) 14%, transparent)),
    var(--slide-img);
  background-size: cover; background-position: center;
  background-blend-mode: normal;
  filter: saturate(1.12) brightness(1.02);
  will-change: transform, opacity;
  opacity: 0;
  animation-name: heroFade, heroPanA;
  animation-duration: 25s, 25s;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: ease-in-out, ease-in-out;
}

.hero-slide:nth-child(1) { --slide-img: url("../images/kids-group-peace.jpg"); animation-delay: 0s, 0s; animation-name: heroFade, heroPanA; }

.hero-slide:nth-child(2) { --slide-img: url("../images/kids-dive-jump.jpg"); animation-delay: -5s, -5s; animation-name: heroFade, heroPanB; }

.hero-slide:nth-child(3) { --slide-img: url("../images/lesson-kickboard-smile.jpg"); animation-delay: -10s, -10s; animation-name: heroFade, heroPanC; }

.hero-slide:nth-child(4) { --slide-img: url("../images/lesson-water-confidence.jpg"); animation-delay: -15s, -15s; animation-name: heroFade, heroPanD; }

.hero-slide:nth-child(5) { --slide-img: url("../images/kids-poolside-group.jpg"); animation-delay: -20s, -20s; animation-name: heroFade, heroPanE; }

@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  16% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

/* Each slide is only actually visible for the first ~20% of its 25s cycle (see heroFade),
   so the pan/zoom must finish within that same window or it's imperceptible. It holds its
   end position while hidden, then snaps back to 0% during the invisible portion of the loop. */
@keyframes heroPanA { 0% { transform: scale(1.06) translate(0%, 0%); } 20% { transform: scale(1.3) translate(-3%, -2.5%); } 100% { transform: scale(1.3) translate(-3%, -2.5%); } }

@keyframes heroPanB { 0% { transform: scale(1.08) translate(1%, -1%); } 20% { transform: scale(1.3) translate(3%, 2.5%); } 100% { transform: scale(1.3) translate(3%, 2.5%); } }

@keyframes heroPanC { 0% { transform: scale(1.06) translate(-1%, 1%); } 20% { transform: scale(1.32) translate(-2.5%, 3%); } 100% { transform: scale(1.32) translate(-2.5%, 3%); } }

@keyframes heroPanD { 0% { transform: scale(1.09) translate(0%, -1%); } 20% { transform: scale(1.3) translate(3%, -3%); } 100% { transform: scale(1.3) translate(3%, -3%); } }

@keyframes heroPanE { 0% { transform: scale(1.07) translate(1%, 1%); } 20% { transform: scale(1.31) translate(0%, 3.5%); } 100% { transform: scale(1.31) translate(0%, 3.5%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation-name: heroFade; animation-duration: 25s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.2em;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.scroll-cue svg { width: 14px; height: 14px; animation: bob 1.8s ease-in-out infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------- Schedule CTA ---------- */
.schedule-cta { text-align: center; }

.schedule-cta h2 { margin: 0; }

.schedule-lead { color: var(--ink-soft); margin: 14px auto 0; max-width: 52ch; font-size: 0.94rem; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.btn-outline { background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent-deep); }

.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-row .btn { min-width: 232px; justify-content: center; }

.btn svg { width: 18px; height: 18px; }

/* ---------- Quick nav (sticky) ---------- */
.quick-nav { position: sticky; top: 79px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }

.quick-nav .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 14px; justify-content: center; }

.quick-nav a {
  display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
  font-size: 0.88rem; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  background: var(--surface-alt); transition: background 0.15s ease, color 0.15s ease;
}

.quick-nav a svg { width: 14px; height: 14px; color: var(--accent); }

.quick-nav a:hover { background: var(--accent); color: #fff; }

.quick-nav a:hover svg { color: #fff; }

/* ---------- About ---------- */
.about { background: var(--surface-alt); }

.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

.about-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.about-text p { color: var(--ink-soft); }

.about-text .pullquote {
  margin-top: 20px; padding: 18px 22px; border-left: 3px solid var(--sun); background: var(--surface);
  border-radius: 0 12px 12px 0; font-family: "Zen Maru Gothic", sans-serif; font-weight: 500;
  color: var(--ink); font-size: 0.98rem; line-height: 1.9;
}

@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Trial & campaign ---------- */
.campaigns { background: var(--surface); }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin-inline: auto; }
.campaign-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); transition: border-color .2s; }
.campaign-card:hover { border-color: var(--accent-deep); }
.campaign-card:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
.campaign-card > img { display: block; width: 100%; height: auto; object-fit: contain; }
.campaign-copy { padding: 20px 24px; }
.campaign-copy h3 { margin: 0 0 8px; font-size: 1.15rem; }
.campaign-copy p { margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); }
.campaign-copy span { color: var(--accent-deep); font-size: .88rem; font-weight: 700; }
.campaign-short { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 640px) {
  .campaign-grid { grid-template-columns: 1fr; gap: 20px; }
  .campaign-short { grid-column: auto; grid-template-columns: 1fr; }
  .campaign-copy { padding: 18px 20px; }
}

/* ---------- News ---------- */
.news-panel { padding: clamp(20px, 4vw, 40px); border: 2px solid var(--line);
  border-radius: 24px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  box-shadow: var(--shadow); }
.news-panel .news-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }

.news-card time {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.06em; font-weight: 700;
  color: var(--accent-deep); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

.news-card h4 { margin: 0; font-size: 0.96rem; letter-spacing: 0.01em; line-height: 1.6; }
.news-card { display: block; transition: border-color .2s, background .2s; }
.news-card-body { display: flex; align-items: flex-start; gap: 12px; }
.news-card-body h4 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.news-thumbnail { width: 56px; height: 76px; flex: none; object-fit: contain;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.news-card:hover { border-color: var(--accent-deep); }
.news-card:hover h4 { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }
.news-category { display: inline-block; margin-left: 8px; font-size: .72rem; color: var(--ink-soft); }
.news-status { text-align: center; font-size: .82rem; color: var(--ink-soft); }
.news-status:empty { display: none; }
.news-actions { margin-top: 28px; text-align: center; }
.news-actions button { font-family: inherit; cursor: pointer; }
.news-actions button[hidden] { display: none; }

/* ---------- Teaser (facility / program / admission) ---------- */
.teaser-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.teaser-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }

.teaser-head .eyebrow { margin-bottom: 8px; }

.teaser-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  color: var(--accent-deep); text-decoration: none; white-space: nowrap;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--surface); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.teaser-link svg { transition: transform 0.15s ease; }

.teaser-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.teaser-link:hover svg { transform: translateX(3px); }

.photo-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 90px; gap: 8px; }

.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.photo-mosaic .m1 { grid-column: span 3; grid-row: span 3; }

.photo-mosaic .m2 { grid-column: span 3; grid-row: span 2; }

.photo-mosaic .m3 { grid-column: span 3; grid-row: span 2; }

.photo-mosaic .m4 { grid-column: span 2; grid-row: span 2; }

.photo-mosaic .m5 { grid-column: span 2; grid-row: span 2; }

.photo-mosaic .m6 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 720px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .photo-mosaic .m1, .photo-mosaic .m2, .photo-mosaic .m3, .photo-mosaic .m4, .photo-mosaic .m5, .photo-mosaic .m6 { grid-column: span 1; grid-row: span 2; }
}

.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.lesson-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease; }

.lesson-card:hover { transform: translateY(-4px); }

.lesson-card .lc-media { aspect-ratio: 4 / 3; }

.lesson-card .lc-media img { width: 100%; height: 100%; object-fit: cover; }

.lesson-card .lc-body { padding: 16px 18px; }

.lesson-card .lc-kicker { font-size: 0.66rem; letter-spacing: 0.06em; color: var(--accent-deep); font-weight: 700; margin-bottom: 4px; }

.lesson-card h4 { margin: 0; font-size: 0.98rem; }

/* ---------- Admission teaser ---------- */
.admission { background: var(--surface-alt); }

.admission-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }

.admission-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.admission-text p { color: var(--ink-soft); margin: 0 0 20px; }

.price-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.price-tag { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }

.price-tag .pt-name { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.price-tag .pt-amt { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) { .admission-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery wall ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- Access ---------- */
.access-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 48px); align-items: stretch; }

.access-map { display: block; flex: 1 1 380px; min-width: 0; min-height: 280px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; position: relative; transition: opacity 0.15s ease; }

.access-map:hover { opacity: 0.92; }

.access-map img { width: 100%; height: 100%; object-fit: cover; }

.access-map .map-badge {
  position: absolute; right: 14px; bottom: 14px; background: var(--surface); color: var(--ink);
  font-size: 0.78rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
}

.access-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }

.access-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }

.access-card .ac-label { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent-deep); font-weight: 700; margin-bottom: 8px; }

.access-card p { margin: 0; font-size: 0.94rem; color: var(--ink); line-height: 1.8; }
