/* =============================================================================
   3D Cricket Academy — Bright theme layer
   White primary · blue secondary · red accent. Loads after styles.css and
   converts the dark navy surfaces to a bright, white-led design inspired by the
   In-Touch reference, and enlarges the brand logo throughout.
   ========================================================================== */

/* Self-hosted fonts (no CDN, privacy-friendly). Variable fonts: one file each. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora.woff2") format("woff2");
}

:root {
  --header-height: 96px;
  --blue: #1667d8;
  --blue-deep: #0f4fbf;
  --blue-ink: #0a2540;
  --band-blue: linear-gradient(135deg, #0f4fbf 0%, #1f74e6 100%);
  --footer-blue: linear-gradient(160deg, #0e357d 0%, #1a63d6 100%);
  /* Modern typography: Sora for headings, Inter for body (replaces Georgia serif). */
  --font-serif: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Headings: tighter, more confident display styling to match the new font. */
h1, h2, h3, .hero-slide__heading, .home-hero__copy h1 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  font-weight: 800;
}
body { font-family: var(--font-sans); }

/* -------------------------------------------------------------------------
   Header — solid white, sticky, dark navigation, larger logo
   ---------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(10, 37, 64, 0.06);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  height: 80px;
  background: #ffffff !important;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
}

/* Bigger, more prominent brand logo */
.site-header .brand img {
  width: auto !important;
  max-width: min(320px, 62vw);
  max-height: 64px;
  filter: none !important;
  transition: max-height 0.22s ease;
}
.site-header.is-scrolled .brand img {
  max-height: 52px;
}

/* Navigation links — dark on white */
.site-header .desktop-nav .nav-link {
  color: var(--blue-ink) !important;
  font-weight: 750;
}
.site-header .desktop-nav .nav-link:hover,
.site-header .desktop-nav .nav-link[aria-current="page"] {
  color: var(--blue) !important;
}
.site-header .desktop-nav .nav-link::after {
  background: var(--blue);
}
.scroll-progress {
  background: rgba(10, 37, 64, 0.08);
}
.menu-toggle.navbar-toggler {
  border-color: rgba(10, 37, 64, 0.2);
  background: rgba(10, 37, 64, 0.03);
}

/* -------------------------------------------------------------------------
   Offcanvas mobile menu — white
   ---------------------------------------------------------------------- */
.site-offcanvas {
  background: #ffffff !important;
  color: var(--blue-ink);
}
.site-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--line);
}
.site-offcanvas .offcanvas-brand img {
  width: auto !important;
  max-height: 56px;
}
.site-offcanvas .mobile-nav .nav-link {
  color: var(--blue-ink) !important;
  border-bottom: 1px solid var(--line);
}
.site-offcanvas .mobile-nav .nav-link[aria-current="page"] {
  color: var(--blue) !important;
}
.site-offcanvas .mobile-nav small {
  color: var(--blue);
}

/* -------------------------------------------------------------------------
   Home hero — keep the photo, lighten + blue-tint the overlay
   ---------------------------------------------------------------------- */
.home-hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 30, 61, 0.82) 0%, rgba(11, 48, 96, 0.6) 40%, rgba(13, 60, 120, 0.18) 72%, rgba(13, 60, 120, 0.04) 100%),
    linear-gradient(0deg, rgba(9, 30, 61, 0.55), transparent 46%);
}
.about-hero__shade,
.contact-hero__shade,
.partners-hero .media-hero__shade,
.media-hero__shade {
  background: linear-gradient(90deg, rgba(9, 30, 61, 0.82), rgba(11, 48, 96, 0.55) 52%, rgba(13, 60, 120, 0.12)) !important;
}

/* -------------------------------------------------------------------------
   Score strip — was navy, now a clean white stat band
   ---------------------------------------------------------------------- */
.score-strip {
  background: #ffffff !important;
  color: var(--blue-ink);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.score-item {
  border-right: 1px solid var(--line);
}
.score-item strong {
  color: var(--blue) !important;
}
.score-item span {
  color: var(--muted) !important;
}

/* -------------------------------------------------------------------------
   Programmes teaser — becomes a bold blue band (blue = secondary)
   ---------------------------------------------------------------------- */
.programmes-teaser {
  background: var(--band-blue) !important;
}

/* -------------------------------------------------------------------------
   Credentials band (About) — white with borders instead of navy
   ---------------------------------------------------------------------- */
.credentials-band {
  background: #ffffff !important;
  color: var(--blue-ink);
  border-block: 1px solid var(--line);
}
.credentials-band li {
  border-right: 1px solid var(--line);
  color: var(--blue-ink) !important;
}

/* -------------------------------------------------------------------------
   Story sections (About) — Cities & Sydney: navy -> light
   ---------------------------------------------------------------------- */
.cities,
.sydney {
  background: var(--off-white) !important;
  color: var(--muted) !important;
}
.cities h2,
.sydney h2,
.cities h3,
.sydney h3,
.city-row h3 {
  color: var(--blue-ink) !important;
}
.sydney {
  background-image: linear-gradient(135deg, rgba(22, 103, 216, 0.08), transparent 60%) !important;
}
.city-list {
  border-top: 1px solid var(--line);
}
.city-row {
  border-bottom: 1px solid var(--line);
}
.city-name {
  color: rgba(22, 103, 216, 0.22) !important;
}
.sydney .prose p,
.cities p,
.sydney p {
  color: var(--muted) !important;
}
.story-index--light {
  color: rgba(22, 103, 216, 0.18) !important;
}
.story-index--light small,
.cities .eyebrow--light,
.sydney .eyebrow--light,
.cities .section-heading--light p,
.sydney .section-heading--light p {
  color: var(--blue) !important;
}
.cities .section-heading--light h2,
.sydney .section-heading--light h2 {
  color: var(--blue-ink) !important;
}
.signature-placeholder {
  border-color: rgba(22, 103, 216, 0.35);
  color: var(--blue);
}

/* Programme stage (Programmes page) navy variant -> blue band */
.programme-stage--navy {
  background: var(--band-blue) !important;
}

/* Generic policy hero -> blue */
.policy-hero {
  background: var(--band-blue) !important;
}

/* -------------------------------------------------------------------------
   CTA bands — bold blue (secondary colour), white text kept
   ---------------------------------------------------------------------- */
.cta-band {
  background: var(--band-blue) !important;
  color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------------------
   Footer — brand blue instead of near-black
   ---------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-blue) !important;
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------------------
   Booking page — choice cards + hero
   ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--band-blue);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 380px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}
.page-hero h1 {
  color: #fff;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.book-choice {
  align-items: stretch;
}
.book-option {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.book-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 103, 216, 0.35);
}
.book-option--primary {
  background: linear-gradient(160deg, #f2f7ff, #ffffff);
  border-color: rgba(22, 103, 216, 0.35);
}
.book-option__index {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.book-option h2 {
  margin: 0.4rem 0 0.2rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.book-option p {
  color: var(--muted);
}
.book-option__list {
  display: grid;
  gap: 0.4rem;
  margin: 0.2rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.book-option__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--blue-ink);
}
.book-option__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}
.book-option .btn {
  margin-top: auto;
  align-self: flex-start;
}
.booking-form .form-label {
  font-weight: 700;
}
.book-form__note,
.form-privacy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------
   Shop band (home)
   ---------------------------------------------------------------------- */
.shop-band {
  position: relative;
  overflow: hidden;
}
.shop-band__inner {
  align-items: center;
}
.shop-band__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blue-soft);
  aspect-ratio: 16 / 11;
}
.shop-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-band__media--placeholder {
  display: grid;
  place-items: center;
}
.shop-band__badge {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 2rem;
  text-align: center;
  color: var(--blue);
}
.shop-band__badge svg {
  width: 64px;
  height: 64px;
}
.shop-band__badge span {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.shop-band .btn {
  margin-top: 0.5rem;
}
.shop-band__soon {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   About — restructured "Our Story" intro
   ---------------------------------------------------------------------- */
.story-intro__grid {
  align-items: center;
}
.story-intro__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--blue-ink);
}
.story-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.story-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.story-highlight__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-serif);
  font-weight: 700;
}
.story-highlight strong {
  display: block;
  color: var(--blue-ink);
  font-size: 1.05rem;
}
.story-highlight span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   Small polish
   ---------------------------------------------------------------------- */
.btn-primary {
  box-shadow: 0 10px 24px rgba(224, 48, 38, 0.22);
}
.section--pitch {
  background-color: var(--off-white);
}

/* =============================================================================
   Hero slider (image + video slides)
   ========================================================================== */
.hero-slider {
  position: relative;
  min-height: clamp(460px, 82vh, 820px);
  overflow: hidden;
  background: #05122a;
  isolation: isolate;
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide__media { position: absolute; inset: 0; }
.hero-slide__img,
.hero-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 15, 35, 0.72) 0%, rgba(5, 15, 35, 0.38) 42%, rgba(5, 15, 35, 0.05) 75%),
    linear-gradient(0deg, rgba(5, 15, 35, 0.78) 0%, rgba(5, 15, 35, 0.12) 42%, transparent 70%);
}
.hero-slide__inner {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: clamp(460px, 82vh, 820px);
  align-items: flex-end;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}
.hero-slide__copy { max-width: 820px; }
.hero-slide.is-align-center .hero-slide__inner { align-items: center; justify-content: center; text-align: center; }
.hero-slide.is-align-center .hero-slide__copy { margin-inline: auto; }
.hero-slide.is-align-right .hero-slide__inner { justify-content: flex-end; text-align: right; }
.hero-slide__eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
}
.hero-slide__heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-slide.is-size-s .hero-slide__heading { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-slide.is-size-m .hero-slide__heading { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.hero-slide.is-size-l .hero-slide__heading { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.hero-slide.is-size-xl .hero-slide__heading { font-size: clamp(3rem, 7.6vw, 6.2rem); }
.hero-slide__subtext {
  max-width: 640px;
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.94;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}
.hero-slide.is-align-center .hero-slide__subtext { margin-inline: auto; }
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.18s ease;
}
.hero-slider__arrow:hover { background: var(--red, #e03026); }
.hero-slider__arrow--prev { left: clamp(0.6rem, 2vw, 1.5rem); }
.hero-slider__arrow--next { right: clamp(0.6rem, 2vw, 1.5rem); }
.hero-slider__dots {
  position: absolute;
  z-index: 5;
  bottom: 1.1rem;
  left: 50%;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}
.hero-slider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.15); }
@media (max-width: 575px) {
  .hero-slider__arrow { width: 42px; height: 42px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* =============================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  z-index: 1200;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  width: min(420px, calc(100vw - 1.5rem));
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__inner {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6, 25, 46, 0.22);
}
.cookie-banner__title { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--blue-ink); }
.cookie-banner__text { margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-banner__actions .btn { flex: 1; min-height: 44px; padding-inline: 1rem; }

/* =============================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.gallery-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blue-soft);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem 0.9rem 0.7rem;
  background: linear-gradient(0deg, rgba(6, 25, 46, 0.78), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-item__cap,
.gallery-item:focus-visible .gallery-item__cap { opacity: 1; }
.gallery-empty { color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 12, 26, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__caption { margin-top: 0.6rem; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}
.lightbox__close { top: 1.1rem; right: 1.1rem; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; font-size: 2rem; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(0.6rem, 2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(0.6rem, 2vw, 1.6rem); }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red, #e03026); }

/* =============================================================================
   Page hero for standard pages (Gallery etc.)
   ========================================================================== */
.page-hero--plain {
  background: var(--band-blue);
  color: #fff;
}

/* =============================================================================
   Responsive polish (typography, spacing, header/logo)
   ========================================================================== */
/* Slightly larger, more prominent logo on desktop */
@media (min-width: 992px) {
  .site-header .brand img { max-height: 62px; max-width: 344px; }
}

/* Tablet + mobile: shorter header, proportional logo */
@media (max-width: 991px) {
  :root { --header-height: 76px; }
  .site-header .brand img { max-height: 48px; max-width: 60vw; }
  .site-header.is-scrolled { height: 68px; }
  .site-header.is-scrolled .brand img { max-height: 42px; }
}

/* Hero slider tuning on small screens */
@media (max-width: 575px) {
  .hero-slider,
  .hero-slide__inner { min-height: clamp(440px, 74vh, 620px); }
  .hero-slider__arrow { display: none; }           /* rely on dots + swipe */
  .hero-slide__inner { padding-bottom: 3.25rem; }
  .hero-slide.is-size-xl .hero-slide__heading { font-size: clamp(2.1rem, 8.4vw, 2.7rem); }
  .hero-slide.is-size-l  .hero-slide__heading { font-size: clamp(1.95rem, 7.6vw, 2.5rem); }
  .hero-slide.is-size-m  .hero-slide__heading { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .hero-slide.is-size-s  .hero-slide__heading { font-size: clamp(1.6rem, 6vw, 2rem); }
  .hero-slide__subtext { font-size: 1rem; }
  .hero-slide__eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
}

/* Tighten booking choice cards + gallery on small screens */
@media (max-width: 575px) {
  .book-option { padding: 1.35rem 1.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .story-highlight { grid-template-columns: 1fr; text-align: left; }
  .story-highlight__num { margin-bottom: 0.25rem; }
}

/* Cookie banner: full width strip on small screens */
@media (max-width: 480px) {
  .cookie-banner { left: 0.5rem; right: 0.5rem; width: auto; }
  .cookie-banner__actions .btn { min-height: 46px; }
}

/* Consistent section rhythm — avoid cramped stacking on mobile */
@media (max-width: 767px) {
  .section { padding-block: clamp(2.75rem, 9vw, 4rem); }
  h1 { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .lead { font-size: 1.05rem; }
}

/* =============================================================================
   Form success panel (prominent confirmation)
   ========================================================================== */
.form-success-panel {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid #bfe3cf;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #edfaf2, #ffffff);
  box-shadow: var(--shadow-sm);
  text-align: center;
  animation: successPop 0.4s ease both;
}
@keyframes successPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-success-panel__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #1f9d57;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 157, 87, 0.3);
}
.form-success-panel h3 { margin: 0; color: var(--blue-ink); font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.form-success-panel p { margin: 0; max-width: 460px; color: var(--muted); }

/* Make the inline error/status states clearer too */
.form-status.is-error {
  display: block;
  margin-top: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #f3c2be;
  background: #fdecea;
  color: #b32d2e;
  font-weight: 650;
}

/* =============================================================================
   Footer — rebuilt, professional layout
   ========================================================================== */
.site-footer { padding-top: 0; }
.footer-inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.footer-brand__logo { display: inline-block; margin-bottom: 1.1rem; }
.footer-brand__logo img {
  width: clamp(220px, 22vw, 280px);
  height: auto;
  display: block;
}
.footer-brand__tagline {
  max-width: 340px;
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.footer-heading {
  margin: 0 0 1.1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-contact a,
.footer-col__cta a,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover,
.footer-contact a:hover,
.footer-col__cta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact li { display: grid; gap: 0.2rem; }
.footer-contact li span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky, #b8d6ff);
}
.footer-contact li { color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-safeguarding {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-col__cta { margin: 0; }
.footer-col__cta a { font-weight: 700; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .footer-legal-links { display: flex; gap: 1.25rem; }
.footer-bottom .footer-legal-links a { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   Spacing / rhythm rework — more breathing room, less clutter
   ========================================================================== */
:root {
  --section-space: clamp(4rem, 7vw, 6.5rem);
}
/* Only widen the max-width + edge padding. Do NOT touch --bs-gutter-x here: several
   layout blocks carry BOTH .container and .row on the same element, so zeroing the
   gutter collapses the space between columns site-wide. */
.container { max-width: 1240px; }
.section { padding-block: var(--section-space); }
.section-heading { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
/* Give wrapped rows vertical breathing room without affecting column gutters. */
.row { --bs-gutter-y: 1.5rem; }

/* =============================================================================
   Appointment times (shown on Contact / coach pages)
   ========================================================================== */
.appointment-times { margin: 0.25rem 0 1.25rem; }
.appointment-times__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.appointment-times__slots { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.appointment-time {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(22, 103, 216, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.coach-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* =============================================================================
   Contact form — Enquiry / Book-an-appointment toggle + appointment fields
   ========================================================================== */
.form-intro { color: var(--muted); margin-bottom: 0.5rem; }
.mode-toggle {
  display: inline-flex;
  width: 100%;
  max-width: 460px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--off-white);
  gap: 4px;
}
.mode-toggle__btn {
  flex: 1;
  min-height: 46px;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-ink);
  font-weight: 750;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.mode-toggle__btn:hover { color: var(--blue); }
.mode-toggle__btn.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 103, 216, 0.28);
}
.appointment-fields {
  margin-top: 0.25rem;
  padding: 1.1rem 1.15rem 0.5rem;
  border: 1px solid rgba(22, 103, 216, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f2f7ff, #ffffff);
}
.appointment-fields[hidden] { display: none; }
.block-booking { margin-top: 0.35rem; }
.block-booking__count[hidden] { display: none; }
.block-booking__hint { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.appointment-fields__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (max-width: 575px) {
  .mode-toggle { max-width: none; }
  .mode-toggle__btn { font-size: 0.85rem; padding-inline: 0.5rem; }
}

/* =========================================================================
   Net bookings — public net hire (added with the Net bookings feature).
   Builds on the existing media-hero / book-option / mode-toggle patterns so
   the page matches the rest of the site without new design language.
   ========================================================================= */
.media-hero--nets .media-hero__image img {
  object-position: center 40%;
}

/* Third option in the enquire / book / net chooser. */
.book-option--nets {
  border: 1px solid rgba(7, 27, 49, 0.12);
  background: #fff;
}

/* "Net bookings" sits alongside the enquiry/booking toggle on Contact. */
.mode-toggle__btn--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.mode-toggle__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #5b6b7b);
}
.mode-toggle__hint a {
  font-weight: 700;
}

/* Info points above the net booking form. */
.nets-info__item {
  position: relative;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(7, 27, 49, 0.12);
}
.nets-info__num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.nets-info__item h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: 0.4rem;
}
.nets-info__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================================
   Logo sizing — driven by Customize → Site Identity → Header/Footer logo size.
   Values are multipliers (1 = the original size) printed into :root by the
   theme. Every breakpoint's original dimension is multiplied, so the responsive
   behaviour is preserved at any size, and the header grows to fit a larger logo
   instead of cropping it.
   ========================================================================= */
:root {
  --logo-scale-header: 1;
  --logo-scale-footer: 1;

  /* Original per-breakpoint dimensions, kept as variables so the calc() rules
     below stay readable and the defaults render byte-identically at 100%. */
  --logo-h: 64px;            /* header logo, at rest */
  --logo-h-scrolled: 52px;   /* header logo, after scrolling */
  --logo-w: 320px;
  --header-h: 96px;
  --header-h-scrolled: 80px;
}

.site-header .brand img {
  max-height: calc(var(--logo-h) * var(--logo-scale-header));
  max-width: min(calc(var(--logo-w) * var(--logo-scale-header)), 62vw);
}

.site-header.is-scrolled .brand img {
  max-height: calc(var(--logo-h-scrolled) * var(--logo-scale-header));
}

/* Grow the bar only when the logo needs more room than the default height. */
:root {
  --header-height: max(var(--header-h), calc(var(--logo-h) * var(--logo-scale-header) + 32px));
}

.site-header.is-scrolled {
  height: max(var(--header-h-scrolled), calc(var(--logo-h-scrolled) * var(--logo-scale-header) + 28px));
}

/* Mobile slide-out menu logo follows the header setting. */
.site-offcanvas .offcanvas-brand img {
  max-height: calc(56px * var(--logo-scale-header));
}

/* Footer logo. */
.footer-brand__logo img {
  width: clamp(
    calc(220px * var(--logo-scale-footer)),
    calc(22vw * var(--logo-scale-footer)),
    calc(280px * var(--logo-scale-footer))
  );
  max-width: 100%;
}

/* The footer brand column is a 1.6fr track (~337px), so without this the logo
   would stop growing once it filled the column and the slider would look dead
   past ~120%. Give the track a minimum that follows the slider, capped so the
   other footer columns keep usable space. */
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns:
      minmax(min(440px, calc(240px * var(--logo-scale-footer))), 1.6fr)
      1fr 1.2fr 1.2fr;
  }
}

@media (min-width: 992px) {
  :root {
    --logo-h: 62px;
    --logo-w: 344px;
  }
  .site-header .brand img {
    max-height: calc(var(--logo-h) * var(--logo-scale-header));
    max-width: calc(var(--logo-w) * var(--logo-scale-header));
  }
}

@media (max-width: 991px) {
  :root {
    --logo-h: 48px;
    --logo-h-scrolled: 42px;
    --header-h: 76px;
    --header-h-scrolled: 68px;
  }

  .site-header .brand img {
    max-height: calc(var(--logo-h) * var(--logo-scale-header));
    /* A wide logo on a narrow screen is limited by width, not height. Hold the
       default at 60vw so 100% renders exactly as before, then allow up to 72vw
       as the slider goes up — enough to grow, while leaving room for the menu
       button. */
    max-width: min(
      calc(var(--logo-w) * var(--logo-scale-header)),
      max(60vw, min(72vw, calc(60vw * var(--logo-scale-header))))
    );
  }

  /* Because width caps the logo here, the bar must not grow by the full slider
     amount or it would leave a band of empty space above and below the logo. */
  :root {
    --header-height: max(var(--header-h), calc(var(--logo-h) * min(var(--logo-scale-header), 1.35) + 28px));
  }

  .site-header.is-scrolled {
    height: max(var(--header-h-scrolled), calc(var(--logo-h-scrolled) * min(var(--logo-scale-header), 1.35) + 24px));
  }
}

/* =========================================================================
   Page-transition safety net.

   The theme fades the page out (body.page-leaving, opacity:0) before following
   an internal link. If that state ever survives — most commonly when the
   browser restores the page from its back/forward cache, which does not re-run
   any scripts — the visitor is left looking at a blank white screen and the
   previous page never appears.

   main.js now clears the class on pageshow/pagehide/popstate. This is the
   belt-and-braces layer: expressing the fade as a bounded animation means the
   page always returns to full opacity by itself, even with JavaScript broken
   or disabled mid-navigation. The page can never stay invisible.
   ========================================================================= */
body.page-leaving {
  animation: threedca-page-leave 2.6s ease forwards;
}

@keyframes threedca-page-leave {
  0%   { opacity: 1; }
  6%   { opacity: 0; }   /* ~156ms — matches the navigation delay in main.js */
  92%  { opacity: 0; }
  100% { opacity: 1; }   /* self-heals if the navigation never happened */
}

@media (prefers-reduced-motion: reduce) {
  body.page-leaving {
    animation: none;
    opacity: 1;
  }
}
