/* ==========================================================================
   DMV Pickleballerz — Design System
   Sections: 1 Tokens  2 Reset  3 Typography  4 Layout  5 Buttons  6 Header
             7 Hero  8 Cards  9 Bands 10 Forms 11 Footer 12 Utilities 13 Motion
   ========================================================================== */

/* 1 ── TOKENS ───────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --ink:        #0D4A8C;   /* court blue       */
  --ink-2:      #1059A6;   /* raised blue      */
  --ink-3:      #2F7CC0;   /* hairlines on blue*/
  --court:      #0E7C86;   /* teal court paint */
  --court-dk:   #0A5D65;
  --volt:       #D9F227;   /* pickleball ball  */
  --volt-dk:    #B8CE18;
  --flame:      #DC3A00;   /* CTA orange — 4.52:1 on white */
  --flame-dk:   #BD3200;

  /* Neutrals */
  --paper:      #FFFFFF;
  --sand:       #F4F7F3;
  --sand-2:     #EAEFE7;
  --line:       #E2E8E0;   /* hairline on light */
  --muted:      #586871;
  --body:       #2A3B45;

  /* Type */
  --f-display: 'Archivo', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Space + shape */
  --gap:   1.5rem;
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;
  --shadow-sm: 0 1px 2px rgba(10,24,38,.06), 0 2px 8px rgba(10,24,38,.05);
  --shadow:    0 4px 12px rgba(10,24,38,.07), 0 14px 34px rgba(10,24,38,.08);
  --shadow-lg: 0 10px 24px rgba(10,24,38,.10), 0 30px 70px rgba(10,24,38,.14);

  --header-h: 76px;
  --max: 1200px;
}

/* 2 ── RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--court); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--court-dk); }
:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--volt); color: var(--ink); }

/* 3 ── TYPOGRAPHY ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
p  { text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--court);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--volt);
  border-radius: 2px;
  flex: none;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--volt); }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.on-dark .lede { color: #A9CBEA; }

/* 4 ── LAYOUT ───────────────────────────────────────────────────────────── */
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 2rem, var(--max)); } }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section--sand { background: var(--sand); }
.section--ink  { background: var(--ink); color: #D9E9F8; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section-head { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 58ch; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* 5 ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, background .16s, color .16s, border-color .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary  { --btn-bg: var(--flame); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--flame-dk); }
.btn--volt     { --btn-bg: var(--volt); --btn-fg: var(--ink); }
.btn--volt:hover { --btn-bg: var(--volt-dk); }
.btn--court    { --btn-bg: var(--court); --btn-fg: #fff; }
.btn--court:hover { --btn-bg: var(--court-dk); }
.btn--ghost    { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--sm  { padding: .68rem 1.15rem; font-size: .8125rem; }
.btn--lg  { padding:1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--court);
}
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* 6 ── HEADER / NAV ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(10,24,38,.07); }
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.brand__name span { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .19em; color: var(--court); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; }
.nav__links a {
  display: block;
  white-space: nowrap;
  padding: .55rem .8rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--sand-2); }
.nav__links a[aria-current="page"] { color: var(--court); background: rgba(14,124,134,.09); }
.nav__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: rotate(-45deg) translateY(-2px); }

@media (max-width: 1100px) {
  .nav__toggle { display: grid; }
  .nav__cta .btn--ghost { display: none; }
  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem 1.75rem;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav__panel { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__links a { padding: .85rem .75rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__panel .btn { margin-top: 1.15rem; }
}
@media (min-width: 1101px) { .nav__panel .btn { display: none; } }
@media (max-width: 560px) { .nav__cta .btn--primary { display: none; } }

/* 7 ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink);
  color: #D9E9F8;
  overflow: hidden;
  isolation: isolate;
}
.hero__court {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  pointer-events: none;
}
.hero::after {           /* volt glow */
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw; height: 46vw;
  right: -12vw; top: -16vw;
  background: radial-gradient(circle, rgba(217,242,39,.16), transparent 62%);
  pointer-events: none;
}
.hero__inner { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--volt); }
.hero__lede { font-size: clamp(1.0625rem, 1.7vw, 1.3rem); color: #A9CBEA; max-width: 54ch; margin: 1.4rem 0 2.1rem; }

.hero--page { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero--page .hero__inner { padding: 0; }
.hero--page h1 { max-width: 20ch; }
.hero--page .lede { margin-top: 1.15rem; color: #A9CBEA; }

.breadcrumb {
  font-family: var(--f-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CC0E2;
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--volt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero side card: next event */
.hero__card {
  background: linear-gradient(160deg, var(--ink-2), #0A3E75);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; margin: .35rem 0 .1rem; font-size: 1.35rem; }
.hero__card .stack { display: grid; gap: .55rem; margin: 1.1rem 0 1.4rem; }
.hero__card .stack div { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; color: #A9CBEA; }
.hero__card .stack svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--volt); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2.25rem;
  margin-top: .5rem;
  border-top: 1px solid var(--ink-3);
}
.hero__stats div strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  color: var(--volt);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero__stats div span { font-size: .8125rem; color: #9CC0E2; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }

/* 8 ── CARDS ────────────────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body > p { color: var(--muted); font-size: .9375rem; }
.card__foot {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Program cards */
.program {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s;
}
.program::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent, var(--court));
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--court)) 12%, transparent);
  color: var(--accent, var(--court));
  margin-bottom: .35rem;
}
.program__icon svg { width: 26px; height: 26px; }
.program ul { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.program ul li { position: relative; padding-left: 1.6rem; font-size: .9375rem; color: var(--muted); }
.program ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--court));
}
.program p { color: var(--muted); font-size: .9375rem; }

/* Event card */
.event-card { position: relative; }
.event-card__media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__pattern { position: absolute; inset: 0; opacity: .55; }
.event-card__date {
  position: absolute;
  left: 1rem; top: 1rem;
  background: var(--paper);
  border-radius: 12px;
  padding: .5rem .75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  line-height: 1;
  min-width: 60px;
}
.event-card__date b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
}
.event-card__date span {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--flame);
  margin-top: 3px;
}
.event-card h3 { font-size: 1.1875rem; }
.event-card__meta { display: grid; gap: .45rem; margin-top: -.1rem; }
.event-card__meta div { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.event-card__meta svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--court); }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 100px;
  font-family: var(--f-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--sand-2);
  color: var(--ink);
  white-space: nowrap;
}
.badge--league     { background: rgba(14,124,134,.12);  color: var(--court-dk); }
.badge--tournament { background: rgba(220,58,0,.12);   color: var(--flame-dk); }
.badge--corporate  { background: rgba(29,58,85,.10);    color: var(--ink-2); }
.badge--community  { background: rgba(120,80,220,.12);  color: #5B39B5; }
.badge--clinic     { background: rgba(184,206,24,.22);  color: #5F6B00; }
.badge--open   { background: rgba(22,140,90,.13); color: #107048; }
.badge--filling{ background: rgba(255,160,0,.16);  color: #8A5A00; }
.badge--full   { background: rgba(200,60,60,.12);  color: #A32626; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Result card */
.result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.result__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.result__head h3 { font-size: 1.25rem; }
.result__sub { font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.result__divisions { display: grid; gap: 1rem; }
.division {
  background: var(--sand);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
}
.division > h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .7rem;
}
.podium { display: grid; gap: .5rem; }
.podium div { display: flex; align-items: center; gap: .65rem; font-size: .9375rem; }
.podium .place {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .75rem;
  flex: none;
}
.podium .place--1 { background: #FFD84D; color: #6B4E00; }
.podium .place--2 { background: #DDE3E7; color: #4A5560; }
.podium .place--3 { background: #E8C39A; color: #6B4420; }
.podium .name { font-weight: 600; color: var(--ink); }
.division__score {
  margin-top: .7rem;
  padding-top: .6rem;
  border-top: 1px solid var(--sand-2);
  font-family: var(--f-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Testimonial */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}
.section--ink .quote, .quote--dark {
  background: var(--ink-2);
  border-color: var(--ink-3);
}
.quote__stars { display: flex; gap: 2px; color: var(--flame); }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); margin: 0; }
.section--ink .quote blockquote, .quote--dark blockquote { color: #E8F0F4; }
.quote__by { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.quote__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--court);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .9375rem;
  flex: none;
}
.quote__by b { display: block; font-size: .9375rem; color: var(--ink); }
.section--ink .quote__by b, .quote--dark .quote__by b { color: #fff; }
.quote__by span { font-size: .8125rem; color: var(--muted); }
.section--ink .quote__by span, .quote--dark .quote__by span { color: #9CC0E2; }

/* A single testimonial: centre it and let it breathe instead of leaving
   two empty columns beside it. */
.grid--one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.grid--one .quote blockquote { font-size: 1.1875rem; line-height: 1.55; }

/* Facility chip */
.facility {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.facility:hover { transform: translateY(-2px); border-color: var(--court); box-shadow: var(--shadow-sm); color: inherit; }
.facility__mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sand-2);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--court);
  font-size: .9375rem;
  flex: none;
}
.facility b { display: block; font-size: .9375rem; color: var(--ink); font-family: var(--f-display); }
.facility span { font-size: .8125rem; color: var(--muted); }

/* Photo gallery + lightbox */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--sand-2);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,24,38,.35), transparent 45%);
  opacity: 0;
  transition: opacity .2s;
}
.gallery__item:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,20,36,.94);
  backdrop-filter: blur(4px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto; height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}
.lightbox figcaption {
  margin-top: 1rem;
  text-align: center;
  color: #D9E9F8;
  font-size: .9375rem;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: #9CC0E2;
  font-family: var(--f-display);
  font-size: .8125rem;
  letter-spacing: .1em;
}
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 1.15rem; transform: none; width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 20%; }
  .lightbox__nav--next { right: 20%; }
  .lightbox__count { bottom: 1.6rem; }
}

/* Brand banner (sits above the footer) */
.banner-band { background: var(--sand); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.banner { margin: 0; }
.banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* Partner / sponsor card */
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, border-color .18s;
}
a.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--court); color: inherit; }
.partner__role {
  font-family: var(--f-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--court);
}
.partner__name {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.05;
}
.partner__logo { max-height: 56px; width: auto; }
.partner__blurb { font-size: .9375rem; color: var(--muted); max-width: 44ch; }

/* Step / process */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.5rem; top: 1.45rem;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--volt-dk);
  letter-spacing: -.04em;
}
.step h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.step p { font-size: .9375rem; color: var(--muted); }

/* 9 ── BANDS ────────────────────────────────────────────────────────────── */
.stat-band {
  background: var(--volt);
  padding: clamp(2.25rem, 4vw, 3rem) 0;
}
.stat-band .grid { gap: 2rem; }
.stat-band div strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.035em;
  line-height: 1;
}
.stat-band div span {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4A5A08;
}

.cta-band {
  position: relative;
  background: var(--ink);
  color: #A9CBEA;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(47,124,192,.55), transparent 55%),
    radial-gradient(ellipse at 82% 70%, rgba(217,242,39,.18), transparent 55%);
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { max-width: 56ch; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3.2;
  position: relative;
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  padding: .55rem 1.05rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .16s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
}
.empty-state h3 { margin-bottom: .5rem; }

/* Accordion (FAQ) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .35rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--court);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--muted); max-width: 72ch; }

/* 10 ── FORMS ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink);
}
.field label .req { color: var(--flame); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586871' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--court);
  box-shadow: 0 0 0 3px rgba(14,124,134,.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #C4362F;
  box-shadow: 0 0 0 3px rgba(196,54,47,.12);
}
.field .error { font-size: .8125rem; color: #C4362F; font-weight: 500; display: none; }
.field .error.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .875rem;
  text-align: center;
  color: var(--muted);
  transition: all .15s;
}
.choice:hover span { border-color: var(--ink); color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
}
.form-status.is-shown { display: block; }
.form-status--ok  { background: rgba(22,140,90,.10); border: 1px solid rgba(22,140,90,.28); color: #0E5B3B; }
.form-status--err { background: rgba(196,54,47,.08); border: 1px solid rgba(196,54,47,.25); color: #97281F; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 11 ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #9CC0E2; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: #D9E9F8; text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
/* Buttons keep their own text colour in the footer. Without this,
   `.site-footer a` wins on specificity over `.btn` and paints the label
   pale blue — which on the volt background is invisible (1.02:1). */
.site-footer .btn { color: var(--btn-fg); }
.site-footer .btn:hover { color: var(--btn-fg); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--ink-3);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 {
  color: #fff;
  font-size: .8125rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.05rem;
}
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: .9375rem; }
.footer__brand .brand { color: #fff; margin-bottom: 1rem; }
.footer__brand .brand__name span { color: var(--volt); }
.footer__brand p { font-size: .9375rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .16s, border-color .16s, color .16s;
}
.socials a:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
}
.footer__bottom ul { list-style: none; padding: 0; display: flex; gap: 1.25rem; }

/* 12 ── UTILITIES ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 8px;
  font-family: var(--f-display); font-weight: 700; text-decoration: none;
  transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.prose p + p { margin-top: 1.1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose ul { margin: 1rem 0; padding-left: 1.35rem; display: grid; gap: .5rem; }
.prose { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 13 ── MOTION ──────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.2,.8,.3,1), transform .55s cubic-bezier(.2,.8,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover, .program:hover, .facility:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .filters, .btn { display: none !important; }
  body { color: #000; }
}
