/* =========================================================
   WOLFTUNA — GLOBAL STYLESHEET
   Just Show Up.
   Vanilla CSS design system: variables, base, layout, components.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-surface: #181818;
  --accent: #60a5fa;
  --white: #ffffff;
  --off-white: #f2f1ed;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Type */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  /* Layout */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-med: 500ms;
  --dur-slow: 900ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

/* ---------- Focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--white);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--white);
}

h1,
.h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
}

h2,
.h2 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
}

h3,
.h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4,
.h4 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--off-white);
  max-width: 42ch;
}

p.body-text,
.body-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

.section {
  padding-block: var(--space-7);
  position: relative;
}

.section--tight {
  padding-block: var(--space-6);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .body-text {
  margin-inline: auto;
}

.section-head--wide {
  max-width: 56rem;
}

.section-head--wide .body-text {
  max-width: 76ch;
}

.section-head + .section-head {
  margin-top: var(--space-5);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* Contour texture — subtle brand element */
.contour-bg {
  position: relative;
}

.contour-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/contour.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.contour-bg > * {
  position: relative;
  z-index: 1;
}

.divider-contour {
  height: 48px;
  background-image: url("/assets/images/contour.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

/* Side graphic — a real map/contour image bled subtly into the edge
   of a section and faded out with a mask so it reads as texture,
   not a photo. */
.section--clip {
  overflow: hidden;
}

.side-graphic {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(32vw, 440px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.side-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-graphic--right {
  right: 0;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
}

.side-graphic--left {
  left: 0;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
}

.side-graphic + .container {
  position: relative;
  z-index: 1;
}

/* Wider, for page heroes that use the map texture instead of a photo */
.side-graphic--hero {
  width: min(55vw, 760px);
  opacity: 0.5;
  /* Fade the left edge and the bottom edge so it melts into the section below */
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(to bottom, #000 55%, transparent);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-composite: source-in;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}

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

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

.btn-primary:hover {
  background: var(--off-white);
  box-shadow: 0 0 0 1px var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
}

.btn-ghost {
  padding: 0;
  color: var(--white);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding-block: var(--space-3);
  transition: background-color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease),
    padding-block var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  padding-block: var(--space-1);
}

.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

.wordmark img {
  height: 56px;
  width: auto;
  transition: height var(--dur-med) var(--ease);
}

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

.footer-brand .wordmark img {
  height: 64px;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: var(--space-3);
}

.main-nav a {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding-block: 0.4rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
}

.header-ctas {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
}

.header-ctas .btn {
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5.5px; }
.nav-toggle .bars span:nth-child(3) { top: 11px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 5.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 5.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 490;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  /* Clip + scroll: on short screens the menu is taller than the viewport and would otherwise peek in above the page when closed */
  overflow-y: auto;
  /* Top padding clears the fixed header (56px logo + its block padding) */
  padding: calc(56px + 2 * var(--space-3) + var(--space-2)) var(--container-pad) var(--space-5);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease);
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  text-transform: uppercase;
  color: var(--white);
}

.mobile-menu .header-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Full nav needs ~1100px; the secondary "Join the Club" CTA only fits alongside it from 1360px */
@media (min-width: 1100px) {
  .main-nav {
    display: block;
  }
  .header-ctas {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1100px) and (max-width: 1359px) {
  .site-header .header-ctas .btn-secondary {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.8) 38%,
    rgba(10, 10, 10, 0.55) 62%,
    rgba(10, 10, 10, 0.65) 100%
  );
}

/* Wellness hero: on portrait screens the full image height is already showing,
   so zoom in from the bottom to crop the ceiling and bring the plunge tub up */
@media (max-width: 699px) {
  .hero-media--wellness img {
    object-position: 58% 50%;
    transform: scale(1.3);
    transform-origin: 58% 100%;
  }
}

.hero-media--light::after {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.72) 38%,
    rgba(10, 10, 10, 0.45) 62%,
    rgba(10, 10, 10, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8) var(--space-6);
  width: 100%;
}

.hero-content--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-word {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9.5vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-word-line {
  display: block;
}

.hero-word-line--accent {
  color: var(--accent);
}

.hero-tagline {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  color: var(--accent);
  margin-top: var(--space-2);
  padding-bottom: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero-tagline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  animation: underline-grow 1s var(--ease) 0.5s forwards;
}

@keyframes underline-grow {
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline::after {
    animation: none;
    width: 100%;
  }
}

.hero-sub {
  margin-top: var(--space-3);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--off-white);
  max-width: 34rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-content--center .hero-sub {
  margin-inline: auto;
}

/* Keep a short hero line on one line where there's room; still wraps on phones */
.hero-sub--single {
  max-width: none;
}

@media (min-width: 640px) {
  .hero-sub--single {
    white-space: nowrap;
  }
}

.hero-ctas {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-content--center .hero-ctas {
  justify-content: center;
}

/* Secondary, shorter page hero */
.page-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-content {
  padding-block: var(--space-7) var(--space-5);
}

/* ---------- Two Worlds split ---------- */
.two-worlds {
  display: grid;
  grid-template-columns: 1fr;
}

.world-panel {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.world-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.world-panel:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .world-panel:hover img { transform: none; }
}

.world-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.25) 55%, rgba(10, 10, 10, 0.15) 100%);
}

.world-panel-content {
  position: relative;
  z-index: 1;
  padding: var(--space-5) var(--container-pad);
  max-width: 34rem;
}

.world-panel-content .eyebrow {
  color: var(--accent);
}

.world-panel-content h3 {
  margin-top: 0.4rem;
}

.world-panel-content p {
  margin-top: var(--space-2);
  color: var(--off-white);
}

.world-panel-content .btn-ghost {
  margin-top: var(--space-3);
  color: var(--white);
}

@media (min-width: 900px) {
  .two-worlds {
    grid-template-columns: 1fr 1fr;
  }
  .world-panel {
    min-height: 88vh;
  }
}

/* ---------- Feature (image + text) ---------- */
.feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media--wide {
  aspect-ratio: 16 / 10;
}

.feature-media--short {
  aspect-ratio: 16 / 9;
}

.feature-text .eyebrow {
  margin-bottom: var(--space-1);
  display: block;
}

.feature-text h2 {
  margin-bottom: var(--space-2);
}

.feature-text p {
  margin-bottom: var(--space-3);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .feature--reverse .feature-media {
    order: 2;
  }
}

/* Full-bleed feature (Recovery homepage block) */
.feature-full {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.feature-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.feature-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.75) 100%);
  z-index: 0;
}

.feature-full-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.feature-full-content .lede {
  color: var(--off-white);
  margin-top: var(--space-2);
}

.feature-full-content p.body-text {
  margin-top: var(--space-2);
}

.feature-full-content .btn {
  margin-top: var(--space-4);
}

/* ---------- Editorial image grid (club/community feature) ---------- */
.editorial-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}

.editorial-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.editorial-grid .tall {
  aspect-ratio: 3 / 4.4;
}

@media (min-width: 760px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .editorial-grid > :nth-child(2) {
    margin-top: var(--space-5);
  }
}

/* ---------- Partner strip ---------- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.partners-strip img,
.partners-strip svg {
  max-height: 62px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.75;
  transition: opacity var(--dur-fast) var(--ease);
}

.partners-strip a:hover img,
.partners-strip a:hover svg {
  opacity: 1;
}

.partner-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border: 1px solid var(--border);
}

.partner-feature img {
  width: 200px;
  height: auto;
  max-width: 100%;
}

/* Featured partners — bigger, higher in the hierarchy than the directory grid below */
/* Wrapping flex rather than grid so an odd last row stays centred */
.featured-partners {
  --featured-cols: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.featured-partner {
  flex: 0 0 calc((100% - (var(--featured-cols) - 1) * var(--space-2)) / var(--featured-cols));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  min-height: 200px;
}

.featured-partner img {
  width: 180px;
  max-width: 80%;
  height: 140px;
  object-fit: contain;
}

@media (min-width: 700px) {
  .featured-partners {
    --featured-cols: 3;
    gap: var(--space-3);
  }
  .featured-partner {
    flex-basis: calc((100% - (var(--featured-cols) - 1) * var(--space-3)) / var(--featured-cols));
    padding: var(--space-4);
  }
}

@media (min-width: 1100px) {
  .featured-partners {
    --featured-cols: 4;
  }
  .featured-partner {
    min-height: 240px;
  }
}

/* Sporting partners — athlete / club cards */
.athlete-grid {
  display: grid;
  gap: var(--space-3);
}

.athlete-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  overflow: hidden;
}

.athlete-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.athlete-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.athlete-media--logo img {
  width: 45%;
  height: auto;
}

.athlete-body {
  padding: var(--space-3);
}

.athlete-sport {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.athlete-body h3 {
  margin: 0.3rem 0 var(--space-1);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.athlete-body .body-text {
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .athlete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .athlete-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Partner directory grid */
.partner-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.partner-card .monogram {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin: 22px 0; /* match .partner-logo height so names line up */
}

.partner-card .partner-logo {
  width: 100%;
  max-width: 140px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-card .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.partner-card .insta-link {
  display: inline-flex;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.partner-card .insta-link:hover {
  color: var(--accent);
}

/* Members Club perks — offer text and tap-to-copy discount codes */
.featured-partner {
  flex-direction: column;
  gap: var(--space-2);
}

.perk {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

.featured-partner > a {
  display: flex;
  justify-content: center;
  width: 100%;
}

.featured-partner .perk {
  font-size: 1rem;
}

.perk--pending {
  font-weight: 400;
  color: var(--muted);
}

.perk-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.perk-code:hover,
.perk-code.is-copied {
  background: rgba(96, 165, 250, 0.12);
}

.perk-code-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.perk-code-value {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

@media (min-width: 560px) {
  .partner-directory {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .partner-directory {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .partner-directory {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stat .stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
}

.stat .stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Experience cards (Wellness Lounge) ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.experience-card {
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--bg-secondary);
  text-align: center;
}

.experience-card h3 {
  margin-bottom: 0.5rem;
}

.experience-card p {
  color: var(--muted);
}

.experience-card .btn {
  margin-top: var(--space-3);
}

@media (min-width: 760px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .experience-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 56rem;
    margin-inline: auto;
  }
}

@media (min-width: 1100px) {
  .experience-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Therapist cards (Recovery) ---------- */
.therapist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.therapist-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--bg-secondary);
}

.therapist-business {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.therapist-card h3 {
  margin: 0.4rem 0 var(--space-2);
}

.therapist-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.therapist-head h3 {
  margin-bottom: 0;
}

.therapist-head + .therapist-bio {
  margin-top: var(--space-3);
}

.therapist-photo {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.therapist-bio {
  color: var(--muted);
}

.therapist-label {
  margin-top: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.therapist-specialisms {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.therapist-specialisms li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--off-white);
}

/* Pin the buttons to the bottom so both cards line up whatever the bio length */
.therapist-actions {
  margin-top: auto;
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.therapist-insta {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.therapist-insta:hover {
  color: var(--accent);
}

@media (min-width: 860px) {
  .therapist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Social grid ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
}

.social-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 700px) {
  .social-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  z-index: 0;
  padding-block: var(--space-8);
  text-align: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.final-cta h2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
}

.final-cta .cluster {
  justify-content: center;
  margin-top: var(--space-4);
}

/* ---------- Cards (used sparingly — memberships / info, not generic 3-up) ---------- */
/* Editorial spec list — replaces generic repeated cards for
   memberships/benefits content. */
.spec-list {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.spec-row .tag {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-row h3 {
  margin-bottom: var(--space-1);
}

@media (min-width: 860px) {
  .spec-row {
    grid-template-columns: 10rem 1fr 2fr;
    align-items: baseline;
  }
  .spec-row .tag {
    margin-bottom: 0;
  }
}

.confirm-note {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-1);
}

/* Membership pricing cards */
.pricing-grid {
  display: grid;
  gap: var(--space-3);
  clear: both;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
}

.pricing-card-media {
  position: relative;
  padding: var(--space-4) var(--space-3) var(--space-3);
  text-align: center;
  overflow: hidden;
}

.pricing-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pricing-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, rgba(17, 17, 17, 0.9) 75%, var(--bg-secondary) 100%);
  z-index: 0;
}

.pricing-card-media > * {
  position: relative;
  z-index: 1;
}

.pricing-card-media .eyebrow {
  display: block;
  color: var(--accent);
}

.pricing-card-media h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.15rem;
}

.pricing-card-media .tier-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.popular-badge {
  position: absolute;
  top: var(--space-2);
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
  background: var(--accent);
  color: #05121f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.pricing-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}

.price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.pricing-card-body > p.body-text {
  margin-top: var(--space-1);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: var(--space-2);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--off-white);
}

.pricing-features svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
}

.pricing-card .btn {
  margin-top: var(--space-3);
}

/* ---------- Memberships page ---------- */
.membership-jump {
  justify-content: center;
  margin-top: var(--space-3);
}

/* Club membership: the member card sits where a feature photo would */
.club-card-stage {
  display: flex;
  justify-content: center;
  padding: var(--space-4) var(--space-2);
}

.club-card-stage img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 14px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}

.feature-text .price {
  margin-bottom: var(--space-2);
}

.feature-text .price span {
  font-size: 1.05rem;
}

.feature-text .body-text {
  margin-bottom: var(--space-2);
}

.club-features {
  margin-bottom: var(--space-4);
}

.portal-note {
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--accent);
  background: rgba(96, 165, 250, 0.06);
  color: var(--off-white);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Member card visual — built in CSS so Blue / White / Gold share one design.
   Swap for real card artwork when available. */
.member-card {
  --mc-a: #1c8ad6;
  --mc-b: #bfe6fb;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1004 / 650;
  border-radius: 14px;
  overflow: hidden;
  background: #1d1d1d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  color: var(--white);
  text-transform: uppercase;
  text-align: left;
}

.member-card--white {
  --mc-a: #b9bec6;
  --mc-b: #ffffff;
}

.member-card--gold {
  --mc-a: #a57a3e;
  --mc-b: #f1d9a4;
}

/* Diagonal accent stripe */
.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--mc-b), var(--mc-a));
  clip-path: polygon(67% 0, 69.5% 0, 32.5% 81%, 30% 81%);
}

.mc-club {
  position: absolute;
  left: 6%;
  top: 9%;
  font-size: 6.4cqw;
  line-height: 1;
  letter-spacing: 0.04em;
}

.mc-club em {
  display: block;
  font-style: italic;
  font-size: 9cqw;
  color: var(--mc-a);
}

.member-card--white .mc-club em,
.member-card--white .mc-level {
  color: var(--mc-b);
}

.mc-level {
  position: absolute;
  left: 6%;
  top: 42%;
  font-size: 11cqw;
  line-height: 1;
  font-style: italic;
  color: var(--mc-a);
}

.mc-level small {
  display: block;
  margin-top: 1.2cqw;
  padding-top: 1.2cqw;
  border-top: 0.35cqw solid var(--mc-a);
  font-size: 5.2cqw;
  color: var(--white);
}

.mc-logo {
  position: absolute;
  right: 5%;
  top: 12%;
  width: 44%;
  height: auto;
}

.mc-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 19%;
  display: flex;
  align-items: center;
  padding-left: 8%;
  background: linear-gradient(90deg, var(--mc-a), var(--mc-b) 55%, var(--mc-a));
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 22%);
  color: #111;
  font-family: var(--font-body);
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.mc-band b {
  display: block;
  font-size: 4.2cqw;
}

/* Reward levels */
.reward-levels {
  display: grid;
  gap: var(--space-5);
  max-width: 1100px;
  margin-inline: auto;
}

.reward-level {
  text-align: center;
}

.reward-level .member-card {
  max-width: 340px;
  margin: 0 auto var(--space-3);
}

.reward-step {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.reward-level h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.2rem;
}

.reward-level .body-text {
  margin: var(--space-1) auto 0;
  max-width: 32ch;
  font-size: 0.98rem;
}

.reward-note {
  margin: var(--space-5) auto 0;
  text-align: center;
  color: var(--off-white);
}

@media (min-width: 860px) {
  .reward-levels {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* Strong break between Club and Wellness memberships */
.membership-divider {
  padding-block: var(--space-7);
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  overflow: hidden;
}

.membership-divider-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.membership-divider h2 {
  margin-top: var(--space-2);
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.membership-divider-sub {
  margin-top: var(--space-1);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--off-white);
}

/* Which membership is right for you? */
.membership-chooser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  max-width: 900px;
  margin: var(--space-5) auto 0;
}

.chooser-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 10, 0.6);
}

.chooser-option .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.chooser-option p {
  font-size: 1.1rem;
  color: var(--off-white);
  max-width: 28ch;
}

@media (min-width: 760px) {
  .membership-chooser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Recovery packages — four pricing cards, no photo header */
.package-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.package-card .price {
  margin-top: 0.5rem;
}

.package-includes {
  margin-top: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--off-white);
}

.package-card .pricing-card-body > p.body-text {
  flex: 1;
  margin-top: var(--space-2);
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 0.95rem;
}

.package-note {
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .pricing-grid.pricing-grid--packages {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .pricing-grid.pricing-grid--packages {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 2-person membership callout under the Wellness tier cards */
.two-person-box {
  max-width: 760px;
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--accent);
  background: rgba(96, 165, 250, 0.06);
  text-align: center;
}

.two-person-box h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.two-person-box .body-text {
  margin: var(--space-1) auto var(--space-3);
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }
  .pricing-card--featured {
    transform: scale(1.045);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-block: var(--space-6) var(--space-4);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.footer-brand .wordmark {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.footer-tagline {
  color: var(--muted);
  max-width: 28rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-nav a,
.footer-contact a {
  color: var(--muted);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom .credit {
  opacity: 0.6;
}

.footer-bottom .credit a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.footer-bottom .credit a:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Misc ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-2);
}

.badge-row span {
  font-size: 0.8rem;
  color: var(--muted);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-5);
}

.content-image-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Line break shown on desktop only */
.br-desktop {
  display: none;
}

@media (min-width: 900px) {
  .br-desktop {
    display: inline;
  }
}
