/* ============================================================
   Toronto Smashers — style.css
   All shared/common CSS: reset, tokens, base, components, responsive.
   Page-specific styles live in css/pages/<page>.css.
   ============================================================ */


/* ==================== reset ==================== */
/* Modern CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep hash targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}

a {
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==================== variables ==================== */
:root {
  /* Brand colours */
  --color-primary: #e30613;
  --color-primary-dark: #b8040e;
  --color-primary-soft: #fff0f1;

  --color-navy: #081c3a;
  --color-navy-light: #16345e;
  --color-navy-soft: #eef3f8;

  --color-gold: #c9982a;
  --color-text: #202631;
  --color-muted: #5f6a7d;
  --color-white: #ffffff;
  --color-background: #f2f3f6;    /* page: soft grey so white cards/header lift */
  --color-surface: #e9ebef;       /* alt section band (a step below the page) */
  --color-border: #e0e3e8;        /* borders, dividers, wells */

  /* Theme-aware semantic surfaces/text (flip in dark mode).
     These form an elevation ramp — background < surface < header < card —
     so the sticky header and cards always read as separate planes rather
     than merging into the page. */
  --surface-card: #ffffff;        /* cards, panels */
  --surface-header: #ffffff;      /* sticky header */
  --text-heading: var(--color-navy);
  color-scheme: light;

  --color-success: #1d7a46;
  --color-error: #c62828;

  /* Program accent colours */
  --accent-regular: var(--color-primary);
  --accent-kings: #0f2a52;
  --accent-queens: #8d1d4a;
  --accent-royal: #5b2d8f;
  --accent-kids: #1d6b3c;
  --accent-adults: #16345e;

  /* Typography */
  --font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --text-hero: clamp(2.4rem, 5vw, 3.75rem);
  --text-page-title: clamp(2.25rem, 5vw, 3.75rem);
  --text-section-title: clamp(1.6rem, 3.2vw, 2.5rem);
  --text-card-title: clamp(1.1rem, 1.6vw, 1.3rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-tiny: 0.78rem;

  --line-tight: 1.1;
  --line-snug: 1.3;
  --line-body: 1.65;

  /* Layout */
  --container-max-width: 1440px;
  --container-padding: 48px;
  --header-height: 78px;
  --section-spacing: 64px;

  /* Radius */
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-small: 0 4px 16px rgba(8, 28, 58, 0.06);
  --shadow-medium: 0 12px 32px rgba(8, 28, 58, 0.1);
  --shadow-large: 0 24px 60px rgba(8, 28, 58, 0.14);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
}

/* Tablet: 768px – 1199px */
@media (max-width: 1199px) {
  :root {
    --container-padding: 32px;
    --section-spacing: 52px;
  }
}

/* Mobile: below 768px */
@media (max-width: 767px) {
  :root {
    --container-padding: 20px;
    --header-height: 64px;
    --section-spacing: 44px;
  }
}


/* ==================== global ==================== */
/* clip (not hidden) keeps position: sticky working while preventing the
   off-canvas mobile menu from creating horizontal scroll */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--color-text);
  background: var(--color-background);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--line-tight);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--text-page-title);
  font-weight: 700;
}

h2 {
  font-size: var(--text-section-title);
  font-weight: 600;
}

h3 {
  font-size: var(--text-card-title);
  font-weight: 600;
}

p {
  max-width: 65ch;
}

a {
  transition: color var(--transition-fast);
}

strong {
  font-weight: 600;
}

.text-red {
  color: var(--color-primary);
}

/* Layout primitives */
.container {
  width: min(100%, var(--container-max-width));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: calc(var(--section-spacing) / 2);
}

/* The hero contributes no bottom padding, so the first section after it would
   otherwise sit at half the normal inter-section gap. Give it a full top gap
   so the hero→first-section rhythm matches every other section boundary. */
.page-hero + .section {
  padding-top: var(--section-spacing);
}

.section:last-of-type {
  padding-bottom: var(--section-spacing);
}

.section--surface {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section-header p {
  color: var(--color-muted);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.section-eyebrow--bar {
  border-left: 3px solid var(--color-primary);
  padding-left: 0.65rem;
  color: var(--text-heading);
}

.section-title {
  font-size: var(--text-section-title);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 0 0 var(--radius-small) var(--radius-small);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

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

:focus-visible {
  outline: 3px solid var(--color-navy-light);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

/* Icon sizing (inline SVGs use currentColor) */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Reveal-on-scroll (only when JS is available) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Scroll lock while the mobile menu is open */
body.nav-open {
  overflow: hidden;
}

/* Simple text pages (privacy, terms) */
.prose-page {
  max-width: 70ch;
  padding-block: var(--section-spacing);
}

.prose-page h1 {
  margin-bottom: 1rem;
}

.prose-page p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.prose-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.prose-page ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
  color: var(--color-muted);
}

.prose-page li {
  margin-bottom: 0.4rem;
}

.prose-page a:not(.btn):not(.text-link) {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 404 page: centred recovery layout */
.error-page {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}

.error-page .hero-actions {
  justify-content: center;
}


/* ==================== components ==================== */
/* ============ Site header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--surface-header);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-medium);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  height: 52px;
  width: auto;
  display: block;
}

/* Header crest badge: at the top of the page the logo sits larger on a white
   card that overhangs the dark hero, like a club crest pinned to the banner.
   When the page is scrolled the card dissolves and the logo tucks back into
   the compact bar. (Header only — the footer logo stays inline.) */
.site-header .site-logo {
  align-self: flex-start;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
  transition: padding 0.35s ease, box-shadow 0.35s ease,
    background-color 0.35s ease, border-color 0.35s ease;
}

.site-header .site-logo__img {
  height: 88px;
  transition: height 0.35s ease;
}

.site-header.is-scrolled .site-logo {
  padding: 6px 14px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.site-header.is-scrolled .site-logo__img {
  height: 44px;
}

@media (max-width: 767px) {
  .site-header .site-logo {
    margin-top: 7px;
    padding: 8px 10px;
  }

  .site-header .site-logo__img {
    height: 60px;
  }

  .site-header.is-scrolled .site-logo {
    padding: 4px 10px;
  }

  .site-header.is-scrolled .site-logo__img {
    height: 40px;
  }
}

/* Logo light shimmer: every few seconds a diagonal white sheen glides across
   the mark. The sheen is white-on-white over the header/footer background, so
   it only reads where it crosses the artwork — light passing over the logo.
   Skipped for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .site-logo {
    position: relative;
    overflow: hidden;
  }

  .site-logo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 70%;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 15%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 85%
    );
    animation: logo-shine 5.5s ease-in-out 1.2s infinite;
  }

  @keyframes logo-shine {
    0% {
      transform: translateX(0);
    }
    22% {
      transform: translateX(260%);
    }
    100% {
      transform: translateX(260%);
    }
  }
}

/* The club name is part of the logo artwork, so the text lockup
   is hidden to avoid showing the name twice. */
.site-logo__text {
  display: none;
}

.site-logo__city {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-heading);
}

.site-logo__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-logo__text small {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-muted);
}

/* Primary navigation */
.site-navigation {
  margin-inline: auto;
}

.site-navigation__close {
  display: none;
}

.site-navigation__list {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.site-navigation__list a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-heading);
  border-bottom: 2px solid transparent;
}

.site-navigation__list a:hover {
  color: var(--color-primary);
}

.site-navigation__list a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Sliding active-link indicator (desktop). When JS mounts it, the static
   per-link underline is suppressed and this bar glides between links. */
.site-navigation__list {
  position: relative;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.site-navigation__list.has-indicator a[aria-current="page"] {
  border-bottom-color: transparent;
}

/* ============ SPA navigation (router.js) ============ */

/* Page transition: old content blurs out, new content focuses in —
   the same motif as the hero intro. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes page-blur-out {
    to {
      opacity: 0;
      filter: blur(8px);
      transform: translateY(6px);
    }
  }

  @keyframes page-focus-in {
    from {
      opacity: 0;
      filter: blur(8px);
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: none;
    }
  }

  main.is-leaving {
    animation: page-blur-out 0.28s ease both;
    pointer-events: none;
  }

  main.is-entering {
    animation: page-focus-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* Thin loading bar above the header while the next page fetches */
.spa-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #ff5a63);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}

.spa-progress.is-active {
  opacity: 1;
  transition: transform 0.4s ease;
}

.spa-progress.is-done {
  transition: transform 0.15s ease, opacity 0.3s ease 0.15s;
  opacity: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-navigation__actions {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-small);
  border: 1px solid var(--color-border);
  color: var(--text-heading);
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-small);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.28);
}

.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-navy-light);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: var(--surface-card);
  border-color: var(--color-border);
  color: var(--text-heading);
}

.btn-outline:hover {
  border-color: var(--text-heading);
}

.btn--light {
  background: var(--surface-card);
  color: var(--color-primary);
}

.btn--light:hover {
  background: var(--color-primary-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-primary);
  text-decoration: none;
}

.text-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Arrow suffix for buttons and links */
.has-arrow::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 8h12M9 3l5 5-5 5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M1 8h12M9 3l5 5-5 5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    no-repeat center / contain;
  transition: transform var(--transition-fast);
}

.has-arrow:hover::after {
  transform: translateX(3px);
}

/* ============ Page hero (full-bleed banner) ============ */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  height: clamp(440px, 58vh, 500px); /* fixed so every page's hero is identical */
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

/* Banner image fills the whole hero */
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  z-index: -2;
}

/* Dark scrim: heaviest at the lower-left where the text overlay sits */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 33, 0.85) 0%, rgba(6, 16, 33, 0.6) 42%, rgba(6, 16, 33, 0.18) 72%, rgba(6, 16, 33, 0.03) 100%),
    linear-gradient(0deg, rgba(6, 16, 33, 0.82) 0%, rgba(6, 16, 33, 0) 58%);
}

/* Inner keeps the site container's max-width + centering (via the .container
   class) so hero text aligns with the rest of the page; only the background
   image is full-bleed. */
.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
}

.page-hero__inner > * {
  min-width: 0;
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 {
  font-size: var(--text-hero);
  line-height: 1.05;
  margin-bottom: 0.85rem;
  color: #fff;
}

.hero-content h1 .text-red {
  display: inline-block;
}

.hero-content__rule {
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  margin: 0 0 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero intro: blur-to-focus on load. Pure CSS (no JS gate) so it begins the
   moment the hero paints — not after scripts finish loading — and always ends
   visible. Each line focuses in with a gentle, slightly slow cascade. Skipped
   for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-focus-in {
    from {
      opacity: 0;
      filter: blur(12px);
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: none;
    }
  }

  .page-hero .hero-content > * {
    animation: hero-focus-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .page-hero .hero-content > *:nth-child(1) { animation-delay: 0.08s; }
  .page-hero .hero-content > *:nth-child(2) { animation-delay: 0.22s; }
  .page-hero .hero-content > *:nth-child(3) { animation-delay: 0.36s; }
  .page-hero .hero-content > *:nth-child(4) { animation-delay: 0.50s; }
  .page-hero .hero-content > *:nth-child(5) { animation-delay: 0.64s; }
  .page-hero .hero-content > *:nth-child(6) { animation-delay: 0.78s; }
}

/* Glass stat panel floating over the banner (home + about) */
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.55rem;
  margin: 0;
  padding: 0.85rem;
  max-width: 390px;
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(6, 16, 33, 0.4);
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem;
}

.hero-stats .icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  color: #fff;
}

.hero-stats b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.05;
}

.hero-stats span {
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.info-card {
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: 1.6rem;
  box-shadow: var(--shadow-small);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.info-card h3 {
  margin-bottom: 0.4rem;
}

.info-card p {
  color: var(--color-muted);
  font-size: var(--text-small);
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.info-card__icon .icon {
  width: 26px;
  height: 26px;
}

.info-card .text-link {
  margin-top: 0.9rem;
}

/* Statistics card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
}

.stat-card .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-primary);
}

.stat-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.05;
}

.stat-card__label {
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-heading);
}

/* Checklist */
.checklist {
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--text-small);
}

.checklist .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--color-success);
  transform: translateY(0.15em);
}

.checklist--red .icon {
  color: var(--color-primary);
}

/* ============ Gallery ============ */
.gallery {
  position: relative;
}

/* Frames a gallery section in a card, matching the home page's
   community-moments treatment. Used on About and Tournaments. */
.moments-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-small);
  background: linear-gradient(150deg, var(--surface-card) 60%, var(--color-primary-soft));
}

.moments-card .section-header {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.gallery__track figure {
  scroll-snap-align: start;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-small);
}

.gallery__track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery__track figure:hover img {
  transform: scale(1.04);
}

.gallery__track figcaption {
  padding: 0.6rem 0.9rem;
  font-size: var(--text-tiny);
  font-weight: 600;
  color: var(--color-muted);
  background: var(--surface-card);
}

.gallery__controls {
  display: flex;
  gap: 0.5rem;
}

.gallery__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--surface-card);
  color: var(--text-heading);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.gallery__btn:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* At the scroll extremes: look disabled but stay keyboard-focusable
   (aria-disabled, not the native disabled property — see gallery.js). */
.gallery__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery__btn[aria-disabled="true"]:hover {
  background: var(--surface-card);
  color: var(--text-heading);
}

/* <main> receives programmatic focus after SPA navigation (router.js); it is
   a container, not a control, so it should not show a focus ring. */
main[tabindex="-1"]:focus {
  outline: none;
}

.gallery__btn .icon {
  width: 18px;
  height: 18px;
}

/* ============ Featured image slider (featured.js) ============ */
.featured {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-height: 240px;
}

.featured__main {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  background: var(--color-surface);
}

.featured__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.featured__slide.is-active {
  opacity: 1;
}

.featured__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title + date over a bottom scrim */
.featured__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.75rem 1.1rem 0.9rem;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 16, 33, 0.85), rgba(6, 16, 33, 0.1) 65%, transparent);
}

.featured__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.featured__date {
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Auto-advance progress bar */
.featured__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.featured__progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-primary);
}

/* Up-next thumbnails: three stacked down the right side */
.featured__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: clamp(92px, 24%, 148px);
  flex-shrink: 0;
}

.featured__thumb {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.featured__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 33, 0.18);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.featured__thumb:hover {
  border-color: var(--color-primary);
}

.featured__thumb:hover img {
  transform: scale(1.06);
}

.featured__thumb:hover::after,
.featured__thumb:focus-visible::after {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .featured__slide.is-active img {
    animation: featured-kenburns 8s ease-out both;
  }

  @keyframes featured-kenburns {
    from {
      transform: scale(1.01);
    }
    to {
      transform: scale(1.1);
    }
  }

  .featured__progress span {
    animation: featured-progress var(--featured-interval, 5500ms) linear both;
  }

  @keyframes featured-progress {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  /* Thumbnails rise up from below (staggered) each time the photos change.
     featured.js restarts this animation on every render. */
  .featured__thumb {
    animation: featured-thumb-rise 0.5s ease both;
  }

  .featured__thumbs .featured__thumb:nth-child(2) {
    animation-delay: 0.07s;
  }

  .featured__thumbs .featured__thumb:nth-child(3) {
    animation-delay: 0.14s;
  }

  @keyframes featured-thumb-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ============ CTA banner ============ */
.cta-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: linear-gradient(105deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-large);
}

.cta-banner--red {
  background: linear-gradient(105deg, #7a0009 0%, var(--color-primary) 100%);
}

.cta-banner__copy {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.cta-banner__copy .section-eyebrow {
  color: #ffb3b8;
}

.cta-banner__copy h2 {
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.cta-banner__copy p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.cta-banner__media {
  height: 100%;
  min-height: 220px;
}

.cta-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-banner__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-card);
  color: var(--text-heading);
  border-radius: var(--radius-small);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-banner__date b {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.cta-banner__date span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ Tournament bar (slim single-row banner) ============ */
.tourney-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(10px);
}

.tourney-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--color-navy-light) 0%, rgba(22, 52, 94, 0.8) 100%);
}

/* Red variant (e.g. the "book a free session" CTA) — same slim size,
   different accent. Image fades into the red instead of the navy. */
.tourney-bar--red {
  background: linear-gradient(135deg, #a8001a 0%, var(--color-primary) 50%, #e30613 100%);
  box-shadow: 0 8px 32px rgba(210, 0, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tourney-bar--red:hover {
  box-shadow: 0 16px 56px rgba(210, 0, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #c21f2f 0%, #e30613 50%, #ff3d47 100%);
}

.tourney-bar--red .tourney-bar__eyebrow {
  color: #fff5f5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tourney-bar--red:hover .tourney-bar__eyebrow {
  color: #ffffff;
}

/* Player photo bleeds in from the right, fading into the background */
.tourney-bar__media {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: clamp(320px, 45%, 560px);
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 35%, #000 65%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 35%, #000 65%);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  filter: brightness(1.05);
}

.tourney-bar--red .tourney-bar__media {
  filter: brightness(1.1) contrast(1.05);
}

.tourney-bar:hover .tourney-bar__media {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.tourney-bar--red:hover .tourney-bar__media {
  filter: brightness(1.2) contrast(1.1);
}

/* Calendar chip */
.tourney-bar__cal {
  flex-shrink: 0;
  width: 76px;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  background: var(--surface-card);
  color: var(--text-heading);
  font-family: var(--font-heading);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  order: 1;
}

.tourney-bar:hover .tourney-bar__cal {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tourney-bar__cal-month {
  display: block;
  padding: 0.35rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #c21f2f 100%);
  color: var(--color-white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tourney-bar__cal-day {
  display: block;
  padding: 0.35rem 0 0.45rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

/* Copy block */
.tourney-bar__copy {
  flex: 1;
  min-width: 0;
  order: 3;
}

.tourney-bar__eyebrow {
  margin: 0 0 0.4rem;
  color: #ffb3b8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.95;
  transition: color 0.3s ease;
}

.tourney-bar:hover .tourney-bar__eyebrow {
  color: #ffd0d5;
}

.tourney-bar__title {
  margin: 0 0 0.6rem;
  color: var(--color-white);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tourney-bar--red .tourney-bar__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.tourney-bar:hover .tourney-bar__title {
  transform: translateX(4px);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.tourney-bar--red:hover .tourney-bar__title {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tourney-bar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tourney-bar__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  transition: all 0.3s ease;
}

.tourney-bar:hover .tourney-bar__meta li {
  color: rgba(255, 255, 255, 1);
}

.tourney-bar__meta svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.tourney-bar:hover .tourney-bar__meta svg {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.tourney-bar__cta {
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  order: 2;
}

.tourney-bar--red .tourney-bar__cta {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.tourney-bar--red .tourney-bar__cta:hover {
  background: var(--color-white);
  color: #a8001a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transform: translateX(3px) scale(1.02);
}

.tourney-bar:hover .tourney-bar__cta {
  transform: translateX(2px);
}

/* ============ Forms ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--text-tiny);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--surface-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy-light);
  box-shadow: 0 0 0 3px rgba(22, 52, 94, 0.15);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-field__error {
  font-size: var(--text-tiny);
  font-weight: 600;
  color: var(--color-error);
}

.form-field__error:empty {
  display: none;
}

.form-status {
  grid-column: 1 / -1;
  font-size: var(--text-small);
  font-weight: 600;
  border-radius: var(--radius-small);
}

.form-status--success {
  background: #e8f5ee;
  color: var(--color-success);
  padding: 0.85rem 1.1rem;
}

.form-status--error {
  background: #fdecea;
  color: var(--color-error);
  padding: 0.85rem 1.1rem;
}

/* ============ Tooltip ============ */
.tooltip {
  position: absolute;
  z-index: 20;
  max-width: 240px;
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-medium);
  padding: 0.7rem 0.9rem;
  font-size: var(--text-small);
  pointer-events: none;
}

.tooltip b {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-heading);
}

.tooltip[hidden] {
  display: none;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.25rem;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 2 * var(--container-padding));
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-large);
  font-size: var(--text-small);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal),
    visibility var(--transition-normal);
  z-index: 150;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* ============ Empty state ============ */
.empty-state {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-small);
}

/* ============ Site footer ============ */
.site-footer {
  background: linear-gradient(180deg, var(--surface-card) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  padding-block: clamp(0.75rem, 1.5vw, 1rem) clamp(0.6rem, 1vw, 0.85rem);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__brand p {
  margin-top: 0;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  color: var(--color-muted);
  display: none;
  max-width: 28ch;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.site-footer__brand p:hover {
  color: var(--text-heading);
}

.site-footer__brand .site-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
}

.site-footer h4 {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  letter-spacing: 0.15em;
  margin-bottom: clamp(0.2rem, 0.5vw, 0.4rem);
  color: var(--text-heading);
  font-weight: 700;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.site-footer h4:hover {
  color: var(--color-primary);
}

.site-footer__links {
  display: grid;
  gap: clamp(0.3rem, 0.8vw, 0.45rem);
}

.site-footer__links a {
  display: inline-block;
  padding-block: 0.1rem;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.site-footer__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.site-footer__links a:hover {
  color: var(--color-primary);
}

.site-footer__links a:hover::after {
  width: 100%;
}

.site-footer__links li {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.site-footer__links li:hover {
  color: var(--text-heading);
}

.site-footer__links nav {
  display: grid;
  gap: 0;
}

.site-footer__links .icon {
  width: 1em;
  height: 1em;
  margin-right: 0.35rem;
  transform: translateY(0.12em);
  display: inline-block;
}

.site-footer__social {
  display: flex;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
  margin-top: 0.3rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 3vw, 32px);
  height: clamp(28px, 3vw, 32px);
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.site-footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.2);
}

.site-footer__social .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.site-footer__social a:hover .icon {
  transform: scale(1.15);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
  padding-block: clamp(0.75rem, 1.5vw, 1rem);
  border-top: 1px solid var(--color-border);
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  color: var(--color-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.site-footer__legal a {
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.site-footer__legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.site-footer__legal a:hover {
  color: var(--color-primary);
}

.site-footer__legal a:hover::after {
  width: 100%;
}

.site-footer__credit {
  font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-footer__credit a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(227, 6, 19, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.site-footer__credit a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes arrowFloatBounce {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateX(2px) translateY(-2px) rotate(15deg) scale(1.05);
    opacity: 0.9;
  }
  50% {
    transform: translateX(4px) translateY(-4px) rotate(45deg) scale(1.15);
    opacity: 1;
  }
  75% {
    transform: translateX(2px) translateY(-2px) rotate(30deg) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes arrowGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(227, 6, 19, 0));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(227, 6, 19, 0.6));
  }
}

.site-footer__credit a::after {
  content: '↗';
  display: inline-block;
  font-size: 0.7em;
  margin-left: 0.2rem;
  position: relative;
  animation: arrowFloatBounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite,
             arrowGlow 2s ease-in-out infinite;
  opacity: 0.7;
}

.site-footer__credit a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.site-footer__credit a:hover::before {
  width: 100%;
}

.site-footer__credit a:hover::after {
  animation: arrowFloatBounce 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite,
             arrowGlow 2s ease-in-out infinite;
  opacity: 1;
}


/* ==================== responsive ==================== */
/* Shared responsive transforms. Strategy: desktop-first (see README). */

/* ============ Large desktop ============ */
@media (min-width: 1920px) {
  .page-hero {
    height: 520px;
  }
}

/* ============ Below 1200px (tablet landscape) ============ */
@media (max-width: 1199px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ============ Below 992px (tablet portrait): mobile navigation ============ */
@media (max-width: 991px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__actions {
    display: none;
  }

  .site-navigation {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    background: var(--surface-card);
    box-shadow: var(--shadow-large);
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    overflow-y: auto;
    z-index: 120;
    margin-inline: 0;
  }

  .site-navigation.is-open {
    transform: none;
    visibility: visible;
  }

  .site-navigation__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 1rem auto;
    border-radius: var(--radius-small);
    border: 1px solid var(--color-border);
    color: var(--text-heading);
  }

  .site-navigation__close .icon {
    width: 20px;
    height: 20px;
  }

  .site-navigation__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-navigation__list a {
    display: block;
    padding: 0.8rem 0.75rem;
    font-size: 1.05rem;
    border-bottom: none;
    border-radius: var(--radius-small);
  }

  .site-navigation__list a[aria-current="page"] {
    background: var(--color-primary-soft);
  }

  .site-navigation__actions {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  /* Must stay below .site-header (z-index: 100). The header is a sticky
     stacking context, so the drawer inside it can never paint above a
     root-level sibling with a higher z-index — a backdrop above 100 would
     swallow every tap on a nav link. */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 28, 58, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 90;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Hero: once the text overlay stacks above the glass stats, let the
     banner grow with its content instead of clipping to a fixed height */
  .page-hero {
    height: auto;
    min-height: clamp(420px, 60vh, 480px);
  }

  .page-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-stats {
    width: 100%;
    max-width: 460px;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }

  .cta-banner__media {
    order: -1;
    max-height: 240px;
  }
}

/* ============ Below 768px (mobile) ============ */
@media (max-width: 767px) {
  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* Stat grids: cap tracks at the available width and stack card content
     so long uppercase labels cannot force horizontal overflow */
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.9rem 1rem;
  }

  .stat-card > div {
    min-width: 0;
  }

  .stat-card__label {
    letter-spacing: 0.05em;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .btn {
    width: 100%;
  }

  .cta-banner__actions .btn {
    flex: 1 1 auto;
  }

  /* Tournament bar: stack the calendar + copy, drop the photo, full-width CTA */
  .tourney-bar {
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
  }

  .tourney-bar__title {
    font-size: 1.2rem;
    overflow-wrap: break-word;
  }

  .tourney-bar__media {
    display: none;
  }

  .tourney-bar__cta {
    flex: 1 0 100%;
    justify-content: center;
  }

  /* Mobile footer: brand + contact on right, hide links */
  .site-footer__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
    padding-block: clamp(1rem, 2vw, 1.5rem);
    align-items: flex-end;
    text-align: right;
  }

  .site-footer__grid > nav,
  .site-footer__grid > div:nth-child(2),
  .site-footer__grid > div:nth-child(3),
  .site-footer__grid > div:nth-child(4) {
    display: none !important;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
  }

  .site-footer__brand .site-logo {
    flex-direction: row-reverse;
    gap: 0.6rem;
  }

  .site-footer__brand p {
    display: none;
  }

  .site-footer__brand .site-logo__text {
    text-align: right;
  }

  .site-footer__brand .site-logo__img {
    width: 32px;
    height: auto;
  }

  .site-footer h4 {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
  }

  .site-footer__grid > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
  }

  .site-footer__grid > div:last-child .site-footer__links {
    gap: 0.4rem;
    text-align: right;
  }

  .site-footer__grid > div:last-child .site-footer__links a,
  .site-footer__grid > div:last-child .site-footer__links li {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .site-footer__social {
    margin-top: 0.3rem;
    justify-content: flex-end;
  }

  .site-footer__social a {
    width: 30px;
    height: 30px;
  }

  .site-footer__social .icon {
    width: 14px;
    height: 14px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1rem;
    text-align: center;
    width: 100%;
  }

  .site-footer__legal {
    display: none;
  }

  .site-footer__credit {
    display: none;
  }

  .gallery__track {
    grid-auto-columns: min(72vw, 280px);
  }
}

/* ============ Below 576px (small mobile) ============ */
@media (max-width: 575px) {
  .site-logo__name {
    font-size: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   Dark theme — Charcoal + Electric Coral
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;

  /* Elevation ramp. Each step is a deliberate, measurable lift so the header
     never dissolves into the page and cards stay legible on alt sections
     (previously --color-surface and --surface-card were both #1A1A20, which
     made cards invisible against the bands they sat on). Lifted off pure
     black so large dark areas read as charcoal rather than a void. */
  --color-background: #14151B;   /* page */
  --color-surface:    #1A1C23;   /* alternating section bands */
  --surface-header:   #1F222B;   /* sticky header — sits above the page */
  --surface-card:     #262933;   /* cards, panels — the top plane */

  --text-heading:     #F2F3F5;   /* headings */
  --color-text:       #A8ABB4;   /* body copy — raised to clear WCAG AA */
  --color-muted:      #9599A3;   /* secondary text */
  --color-border:     rgba(255, 255, 255, 0.09); /* hairline borders */

  --color-navy-soft:    rgba(255, 90, 71, 0.14); /* coral tint for accents */
  --color-primary-soft: rgba(255, 90, 71, 0.14); /* coral chip bg */

  /* Primary color becomes the coral gradient for dark mode */
  --color-primary: #FF7A5E;      /* secondary accent */
  --color-primary-dark: #FF5A47; /* darker coral for interactions */

  --shadow-small:  0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-large:  0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Dark theme button overrides */
html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #FF5A47, #FF7A3D);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 90, 71, 0.35);
}

html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #FF7A5E, #FF8A4D);
  box-shadow: 0 12px 32px rgba(255, 90, 71, 0.45);
}

html[data-theme="dark"] .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #EDEDF0;
}

html[data-theme="dark"] .btn-outline:hover {
  border-color: #FF7A5E;
  color: #FF7A5E;
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(255, 90, 71, 0.2);
  color: #FF7A5E;
  border: 1px solid rgba(255, 90, 71, 0.3);
}

html[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 90, 71, 0.3);
  box-shadow: 0 8px 24px rgba(255, 90, 71, 0.2);
  border-color: #FF7A5E;
}

/* Links in dark mode use coral accent */
html[data-theme="dark"] a:not(.btn):not(.text-link) {
  color: #FF7A5E;
}

html[data-theme="dark"] .text-link,
html[data-theme="dark"] a.text-link {
  color: #FF7A5E;
  font-weight: 600;
}

html[data-theme="dark"] .text-link:hover,
html[data-theme="dark"] a.text-link:hover {
  color: #FF8A4D;
}

/* Navigation in dark mode. The header takes --surface-header (a step above the
   page), but fill alone is a weak signal on dark surfaces — and the drop
   shadow that separates the header in light mode is invisible against a dark
   page. So the edge is drawn with light instead: a brighter hairline plus a
   1px top-highlight, with the shadow deepening once the page scrolls under it. */
html[data-theme="dark"] .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 10px 30px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .site-navigation a {
  color: #EDEDF0;
}

html[data-theme="dark"] .site-navigation a:hover {
  color: #FF7A5E;
}

/* Focus states in dark mode */
html[data-theme="dark"] :focus-visible {
  outline: 3px solid #FF7A5E;
  outline-offset: 2px;
}

/* Card/component specific dark mode styling */
html[data-theme="dark"] .contact-box {
  background: #1A1A20;
  border-color: rgba(255, 255, 255, 0.06);
}

/* Dark mode footer credit styling */
html[data-theme="dark"] .site-footer__credit a {
  background: rgba(255, 122, 94, 0.15);
}

html[data-theme="dark"] .contact-box:hover {
  border-color: #FF7A5E;
  box-shadow: 0 12px 32px rgba(255, 90, 71, 0.2);
}

html[data-theme="dark"] .contact-box > .icon {
  color: #FF7A5E;
  background: rgba(255, 90, 71, 0.14);
  border-radius: 50%;
  width: clamp(2.4rem, 3.5vw, 2.8rem);
  height: clamp(2.4rem, 3.5vw, 2.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section eyebrow is already using --color-primary which is coral in dark mode */
/* But reset the cta-banner eyebrow that has hardcoded color */
html[data-theme="dark"] .cta-banner__copy .section-eyebrow {
  color: rgba(255, 122, 94, 0.8);
}

/* Soft cross-fade only while toggling (added by JS for ~300ms), never on load. */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.28s ease, border-color 0.28s ease,
              color 0.28s ease, fill 0.28s ease, box-shadow 0.28s ease !important;
}

/* ============ Theme toggle button ============ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 0.4rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-heading);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun  { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: block; }

@media (prefers-reduced-motion: reduce) {
  html.theme-transition,
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after { transition: none !important; }
}

/* Dark theme: keep the brand logo on a white chip so it stays legible on the
   dark header (the logo art has dark navy text). Applies scrolled too. */
html[data-theme="dark"] .site-header .site-logo,
html[data-theme="dark"] .site-header.is-scrolled .site-logo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .site-header.is-scrolled .site-logo {
  padding: 6px 14px;
}
