/*
 Theme Name:   Zone Gym Theme
 Description:  GeneratePress child theme for Zone Gym, Wood Green.
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  zonegym
*/

/* ==========================================================================
   Zone Gym — Wood Green

   Page-level resets and the header/footer rules are scoped with
   :where(.zg-site) (zero specificity) so they only apply on the Zone Gym
   templates (home, shop, product, store, contact) and never restyle
   regular GeneratePress pages. Inner-page styles: css/inner.css and
   css/woocommerce.css.
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --gold: #e7c408;
  --gold-rgb: 231, 196, 8;
  --gold-glow: rgba(231, 196, 8, 0.45);
  --text: #f5f5f5;
  --text-dim: rgba(245, 245, 245, 0.74);
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: "Bebas Neue", "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 6.5rem;
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body.zg-site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain */
body.zg-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:where(.zg-site) :is(img, video, svg) {
  display: block;
  max-width: 100%;
}

:where(.zg-site) a {
  color: inherit;
  text-decoration: none;
}

/* Neutralises GeneratePress's a:visited/:hover/:focus/:active colours and underlines. */
:where(.zg-site) a:is(:visited, :hover, :focus, :active) {
  color: inherit;
  text-decoration: none;
}

:where(.zg-site) :is(h1, h2, h3, p, figure, ul) {
  margin: 0;
}

:where(.zg-site) ul {
  padding: 0;
  list-style: none;
}

:where(.zg-site) ::selection {
  background: var(--gold);
  color: var(--bg);
}

:where(.zg-site) :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:where(.zg-site) .skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

:where(.zg-site) .skip-link:focus {
  transform: none;
}

/* ---------- Shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
}

.gold {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

/* ==========================================================================
   Header
   ========================================================================== */

:where(.zg-site) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    padding 0.5s var(--ease-out);
}

:where(.zg-site) .site-header.is-scrolled {
  padding-block: 0.5rem;
  background-color: rgba(10, 10, 10, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  flex: none;
}

.brand__logo {
  height: 120px;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.site-nav a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__cta {
  flex: none;
  padding: 0.5rem 1.5rem 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header__cta:is(:link, :visited) {
  color: var(--gold);
}

.site-header__cta:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 24px var(--gold-glow);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.85rem;
}

.site-header__cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header__cart:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.site-header__cart-count {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  display: grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform 0.4s var(--ease-out);
}

.site-header__cart-count.is-empty {
  transform: scale(0);
}

.site-header__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 50%;
  cursor: pointer;
}

.site-header__toggle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 1.5px;
  margin-left: -0.55rem;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}

.site-header__toggle i:first-of-type {
  transform: translateY(-3.5px);
}

.site-header__toggle i:last-of-type {
  transform: translateY(3.5px);
}

.zg-menu-open .site-header__toggle {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.zg-menu-open .site-header__toggle i:first-of-type {
  transform: rotate(45deg);
}

.zg-menu-open .site-header__toggle i:last-of-type {
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  overflow-y: auto;
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(var(--gold-rgb), 0.14), transparent 70%),
    rgba(10, 10, 10, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  clip-path: circle(0% at calc(100% - var(--gutter) - 1.4rem) 2.9rem);
  transition: clip-path 0.8s var(--ease-out);
}

.mobile-nav[hidden] {
  display: none;
}

.zg-menu-open .mobile-nav {
  clip-path: circle(150% at calc(100% - var(--gutter) - 1.4rem) 2.9rem);
}

.zg-menu-open {
  overflow: hidden;
}

.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}

.zg-menu-open .mobile-nav__link {
  opacity: 1;
  transform: none;
}

.zg-menu-open .mobile-nav__list li:nth-child(2) .mobile-nav__link { transition-delay: 0.05s, 0.05s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(3) .mobile-nav__link { transition-delay: 0.1s, 0.1s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(4) .mobile-nav__link { transition-delay: 0.15s, 0.15s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(5) .mobile-nav__link { transition-delay: 0.2s, 0.2s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(6) .mobile-nav__link { transition-delay: 0.25s, 0.25s, 0s; }

.mobile-nav__link:hover {
  color: var(--gold);
}

.mobile-nav__index {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.mobile-nav__meta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-header__cta {
    padding-inline: 1rem;
    font-size: 1rem;
  }

  .site-header__actions {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Act 1 — The Cold Open
   ========================================================================== */

.cold-open {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.cold-open__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cold-open__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cold-open__mask-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.cold-open__mask {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
}

.cold-open__word {
  font-family: var(--font-display);
  font-size: 380px;
}

.cold-open__word--stroke {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.55;
}

.cold-open__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.75rem;
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
}

.cold-open__headline {
  display: grid;
  gap: 0.35em;
  max-width: 20ch;
  font-size: clamp(2.75rem, 7vw, 7rem);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.js .cold-open__copy [data-line] {
  opacity: 0;
}

.cold-open__hint {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cold-open__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.cold-open__scroll i {
  position: relative;
  width: 3.5rem;
  height: 1px;
  overflow: hidden;
  background: rgba(245, 245, 245, 0.2);
}

.cold-open__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scroll-line 2s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   Act 2 — The Anchor
   ========================================================================== */

.anchor {
  position: relative;
  min-height: 110vh;
  min-height: 110svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 2rem;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
}

.anchor__photo {
  position: absolute;
  top: -10%;
  left: 0;
  z-index: -4;
  width: 100%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.7) saturate(1.2) contrast(1.15);
}

.anchor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}

.anchor__watermark {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: min(105vw, 1250px);
  height: auto;
  max-width: none;
  margin: auto;
  opacity: 0.08;
  pointer-events: none;
}

.anchor__type-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.anchor__type {
  display: flex;
  gap: 0.3em;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(9rem, 27vw, 30rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.16);
  -webkit-text-fill-color: rgba(245, 245, 245, 0.16);
  -webkit-text-stroke: 2px rgba(245, 245, 245, 0.5);
}

.anchor__type span:nth-child(2) {
  color: rgba(var(--gold-rgb), 0.2);
  -webkit-text-fill-color: rgba(var(--gold-rgb), 0.2);
  -webkit-text-stroke-color: rgba(var(--gold-rgb), 0.62);
}

.anchor__copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 30rem;
  padding-bottom: 12vh;
}

.anchor__title {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(3rem, 6vw, 5.75rem);
}

.anchor__text {
  font-size: 1.05rem;
  color: var(--text-dim);
}

.anchor__creed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.anchor__creed li {
  padding: 0.5rem 1.1rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
}

.anchor__owner {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 860px);
  transform-origin: 50% 100%;
}

.anchor__owner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
}

.anchor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 22%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.anchor__badge {
  position: absolute;
  top: calc(var(--header-h) + 10vh);
  right: calc(var(--gutter) + 4vw);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.anchor__badge::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

/* ==========================================================================
   Act 3 — The Arsenal
   ========================================================================== */

.arsenal {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.arsenal__head {
  position: absolute;
  top: calc(var(--header-h) + 1.5rem);
  left: var(--gutter);
  z-index: 4;
  pointer-events: none;
}

.arsenal__title {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
}

.arsenal__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
  z-index: 4;
  height: 2px;
  background: var(--line);
}

.arsenal__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.arsenal__track {
  display: flex;
  width: 400%;
  height: 100%;
}

.zone-card {
  position: relative;
  flex: 0 0 25%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 5.5rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.zone-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.zone-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.1);
}

.zone-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.9), transparent 55%);
}

.zone-card__number {
  position: absolute;
  right: -2vw;
  bottom: -6vw;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(14rem, 34vw, 36rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 245, 0.14);
  pointer-events: none;
}

.zone-card__stamp {
  position: absolute;
  top: calc(var(--header-h) + 1.5rem);
  right: var(--gutter);
  z-index: 3;
  width: clamp(72px, 8vw, 120px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(var(--gold-rgb), 0.3)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.zone-card__content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.zone-card__title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 7vw, 7.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.zone-card__index {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.22em;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.zone-card__text {
  max-width: 30rem;
  color: var(--text-dim);
}

.zone-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.zone-card__tags li {
  padding: 0.45rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.4);
}

/* ==========================================================================
   Act 4 — The Proof
   ========================================================================== */

.grit {
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(9rem, 18vw, 16rem);
  overflow: hidden;
  background: var(--bg-2);
}

.grit__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.grit__head .section-title {
  margin-top: 1.25rem;
}

.grit__intro {
  max-width: 24rem;
  color: var(--muted);
}

.grit__grid {
  --grit-gap: clamp(1rem, 2vw, 1.75rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--grit-gap);
  max-width: 1400px;
  margin: 0 auto;
}

.grit__col {
  display: flex;
  flex-direction: column;
  gap: var(--grit-gap);
}

.grit__col--b {
  margin-top: clamp(4rem, 14vw, 14rem);
}

.grit__col--c {
  margin-top: clamp(2rem, 6vw, 6rem);
}

.grit__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-3);
}

.grit__item--tall {
  aspect-ratio: 3 / 4.4;
}

.grit__item--wide {
  aspect-ratio: 4 / 3;
}

.grit__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transition: filter 0.6s var(--ease-out);
}

.grit__item:hover img {
  filter: grayscale(0) contrast(1.05);
}

.grit__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.75), transparent 40%);
  pointer-events: none;
}

.grit__item figcaption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.85);
}

.grit__statement {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(18rem, 30vw, 28rem);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 4px;
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 30px 80px rgba(var(--gold-rgb), 0.12);
}

.grit__statement small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.grit__statement-text {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.5vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

/* ==========================================================================
   Act 5 — Enter The Zone
   ========================================================================== */

.enter {
  position: relative;
  padding: clamp(7rem, 13vw, 11rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(80% 60% at 50% 45%, #16130c 0%, var(--bg) 70%);
}

.enter__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.enter__glow::before {
  content: "";
  position: absolute;
  width: min(95vw, 950px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22) 0%, rgba(var(--gold-rgb), 0.06) 40%, transparent 70%);
  filter: blur(30px);
}

.enter__logo {
  position: relative;
  width: min(80vw, 760px);
  height: auto;
  max-width: none;
  opacity: 0.16;
  filter:
    drop-shadow(0 0 2px rgba(var(--gold-rgb), 0.9))
    drop-shadow(0 0 30px rgba(var(--gold-rgb), 0.6))
    drop-shadow(0 0 90px rgba(var(--gold-rgb), 0.4));
}

.enter__dumbbell-wrap {
  position: absolute;
  top: 6%;
  right: -8vw;
  z-index: -1;
  width: min(48vw, 640px);
  opacity: 0.5;
  pointer-events: none;
}

.enter__dumbbell-wrap--floor {
  top: auto;
  right: auto;
  bottom: 2%;
  left: -12vw;
  width: min(36vw, 460px);
  opacity: 0.38;
}

.enter__dumbbell {
  width: 100%;
  height: auto;
  filter: grayscale(0.2) brightness(0.7) drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7));
}

.enter__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.enter__title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(4.5rem, 13vw, 12rem);
  text-shadow: 0 0 60px rgba(var(--gold-rgb), 0.25);
}

.enter__lede {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(3rem, 6vw, 5rem) 0;
  text-align: left;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
}

.plan--featured {
  border-color: rgba(var(--gold-rgb), 0.45);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-rgb), 0.15),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(var(--gold-rgb), 0.1);
}

.plan__flag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan__desc {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.75rem 0;
}

.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 5.75rem);
  line-height: 0.9;
}

.plan__period {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__features {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.plan__features li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.84);
}

.plan__features li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.plan__btn {
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.plan__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.plan--featured .plan__btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.plan--featured .plan__btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Magnetic CTA ---------- */

.enter__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.magnetic {
  display: inline-block;
  padding: 1.75rem;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 2.75rem 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--bg);
  border-radius: 999px;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.25), 0 0 40px rgba(var(--gold-rgb), 0.18);
  transition: color 0.35s, background-color 0.35s, box-shadow 0.35s;
}

.cta:is(:link, :visited) {
  color: var(--gold);
}

.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 200deg,
    var(--gold) 280deg,
    #ffffff 320deg,
    var(--gold) 340deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cta-border 3s linear infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg 240deg, rgba(var(--gold-rgb), 0.55) 320deg, transparent 360deg);
  filter: blur(18px);
  opacity: 0.7;
  animation: cta-border 3s linear infinite;
}

.cta:hover {
  color: var(--bg);
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 70px rgba(var(--gold-rgb), 0.5);
}

.cta__label,
.cta__icon {
  position: relative;
  display: inline-block;
}

.cta__icon {
  transition: transform 0.4s var(--ease-out);
}

.cta:hover .cta__icon {
  transform: translateX(4px);
}

@keyframes cta-border {
  to { --angle: 360deg; }
}

.enter__note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

:where(.zg-site) .site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__logo {
  width: 110px;
  height: auto;
}

.site-footer__address {
  margin: 1.1rem 0 1.25rem;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.5;
}

.site-footer__link {
  display: inline-block;
  padding-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.site-footer__link:is(:link, :visited) {
  color: var(--gold);
}

.site-footer__nav {
  display: grid;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-footer__nav a:hover {
  color: var(--gold);
}

.site-footer__wordmark {
  margin: clamp(3rem, 6vw, 5rem) 0 1.5rem;
  font-size: clamp(4rem, 15vw, 15rem);
  line-height: 0.8;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 245, 0.14);
}

.site-footer__legal {
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .anchor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .zone-card__number {
    font-size: 40vw;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-h: 4.75rem;
  }

  .brand__logo {
    height: 72px;
  }

  .cold-open__hint {
    justify-content: center;
  }

  .cold-open__hint > span:first-child {
    display: none;
  }

  /* Act 2 */
  .anchor {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: calc(var(--header-h) + 3rem);
  }

  .anchor__copy {
    padding-bottom: 2rem;
  }

  .anchor__badge {
    position: relative;
    top: auto;
    right: auto;
    justify-self: start;
    margin-bottom: 1rem;
  }

  .anchor__type {
    font-size: 42vw;
  }

  .anchor__owner {
    width: 100%;
  }

  /* Act 3 — vertical stack, no horizontal pin */
  .arsenal {
    height: auto;
    overflow: visible;
  }

  .arsenal__head {
    position: relative;
    top: auto;
    left: auto;
    padding: 5rem var(--gutter) 2.5rem;
  }

  .arsenal__progress {
    display: none;
  }

  .arsenal__track {
    flex-direction: column;
    width: 100%;
  }

  .zone-card {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 88svh;
    padding-bottom: 3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .zone-card__stamp {
    top: 1.5rem;
    width: 68px;
  }

  .zone-card__number {
    bottom: -4vw;
    font-size: 60vw;
  }

  /* Act 4 */
  .grit__head {
    grid-template-columns: 1fr;
  }

  .grit__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grit__col--b {
    order: -1;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .grit__col--c {
    margin-top: 3rem;
  }

  .grit__statement {
    min-height: 16rem;
  }

  .grit__item figcaption span:last-child {
    display: none;
  }

  /* Act 5 */
  .pricing {
    grid-template-columns: 1fr;
  }

  .enter__dumbbell-wrap {
    top: 2%;
    right: -25vw;
    width: 85vw;
    opacity: 0.3;
  }

  .enter__dumbbell-wrap--floor {
    display: none;
  }

  .magnetic {
    padding: 0.5rem 0;
  }

  /* Footer */
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta::before,
  .cta::after,
  .cold-open__scroll i::after {
    animation: none;
  }

  :where(.zg-site) .site-header,
  :where(.zg-site) .skip-link {
    transition: none;
  }
}

/* ==========================================================================
   GeneratePress compatibility (Zone Gym templates)
   ========================================================================== */

/* Release GeneratePress's boxed, flex-based content wrappers so sections run edge to edge. */
.zg-site #page,
.zg-site #content,
.zg-site #primary {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}

.zg-site.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .zg-site.admin-bar .site-header {
    top: 46px;
  }
}

/* ==========================================================================
   Primary menu (wp_nav_menu) — longer menus in the mobile overlay
   ========================================================================== */

.zg-menu-open .mobile-nav__list li:nth-child(7) .mobile-nav__link { transition-delay: 0.3s, 0.3s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(8) .mobile-nav__link { transition-delay: 0.35s, 0.35s, 0s; }
.zg-menu-open .mobile-nav__list li:nth-child(n + 9) .mobile-nav__link { transition-delay: 0.4s, 0.4s, 0s; }

.mobile-nav__link[aria-current="page"] {
  color: var(--gold);
}

/* The overlay is 97% opaque, so a full-screen backdrop blur is invisible but
   forces mobile browsers to re-blur the page on every frame of the clip-path
   reveal — a common source of flicker on iOS Safari. */
.mobile-nav {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ==========================================================================
   Personal Trainers (page-trainers.php)
   ========================================================================== */

.zg-view-trainers #primary {
  --bg: #0d0e10;
  --bg-2: #141619;
  --bg-3: #1b1e22;
}

.trainers {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(6rem, 12vw, 10rem);
  background:
    radial-gradient(50% 35% at 90% 0%, rgba(var(--gold-rgb), 0.06), transparent 70%),
    var(--bg);
}

.trainers__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: end;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.trainers__title {
  margin-top: 1.25rem;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
}

.trainers__aside {
  display: grid;
  gap: 1.25rem;
}

.trainers__intro {
  color: var(--text-dim);
}

.trainers__intro > * + * {
  margin-top: 1em;
}

.trainers__count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.trainers__count::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-glow);
}

.trainers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
  max-width: 1400px;
  margin: 0 auto;
}

.trainers__empty {
  max-width: 1400px;
  margin: 0 auto;
}

.trainers__empty a {
  color: var(--gold);
  text-decoration: underline;
}

.trainers__empty-note {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--muted);
}

/* ---------- Trainer card ---------- */

.trainer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition:
    border-color 0.4s,
    box-shadow 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.trainer-card:hover,
.trainer-card:has(.trainer-card__trigger:focus-visible) {
  border-color: rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--gold-rgb), 0.12);
  transform: translateY(-6px);
}

.trainer-card:has(.trainer-card__trigger:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.trainer-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(var(--gold-rgb), 0.08), transparent 70%),
    var(--bg-3);
}

.trainer-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 14, 16, 0.92) 0%, rgba(13, 14, 16, 0.25) 38%, transparent 60%);
  pointer-events: none;
}

.trainer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.12);
  transform: scale(1.02);
  transition: filter 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

.trainer-card:hover .trainer-card__img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.08);
}

.trainer-card__initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 14vw, 12rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--gold-rgb), 0.45);
}

.trainer-card__num {
  position: absolute;
  top: 0.9rem;
  left: 1.1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 245, 0.35);
  transition: -webkit-text-stroke-color 0.4s;
}

.trainer-card:hover .trainer-card__num {
  -webkit-text-stroke-color: var(--gold);
}

.trainer-card__badge {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  justify-self: start;
  width: fit-content;
}

.trainer-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem 1.5rem;
}

.trainer-card__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Doubled class beats GeneratePress's button / button:hover colours and padding. */
.trainer-card .trainer-card__trigger {
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
}

.trainer-card .trainer-card__trigger:is(:hover, :focus, :focus-visible) {
  color: inherit;
  background: none;
  outline: none;
}

/* Stretches the button over the whole card. */
.trainer-card .trainer-card__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.trainer-card__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.trainer-card__cue svg {
  transition: transform 0.45s var(--ease-out);
}

.trainer-card:hover .trainer-card__cue svg {
  transform: translateX(5px);
}

/* ---------- Specialty badge + social button ---------- */

.trainer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.5rem 0.95rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.trainer-badge::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.trainer-social,
.trainer-social:is(:link, :visited) {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.4rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out);
}

.trainer-social:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.18);
}

/* ---------- Profile modal ---------- */

.trainer-modal {
  --modal-pad: clamp(0.75rem, 3vw, 2.5rem);
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: var(--modal-pad);
}

.trainer-modal[hidden],
.trainer-profile[hidden] {
  display: none;
}

.zg-site.admin-bar .trainer-modal {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .zg-site.admin-bar .trainer-modal {
    top: 46px;
  }
}

.trainer-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(var(--gold-rgb), 0.06), transparent 70%),
    rgba(5, 6, 7, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.trainer-modal__dialog {
  position: relative;
  display: flex;
  width: min(100%, 1180px);
  height: min(100%, 820px);
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-2);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-rgb), 0.12),
    0 50px 120px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(var(--gold-rgb), 0.08);
  will-change: transform, opacity;
}

.trainer-modal__dialog:focus {
  outline: none;
}

.trainer-modal .trainer-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--text);
  background: rgba(13, 14, 16, 0.72);
  border: 1px solid rgba(245, 245, 245, 0.22);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out);
}

.trainer-modal .trainer-modal__close:is(:hover, :focus-visible) {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.trainer-modal__close i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.55rem;
  background: currentColor;
  transform: rotate(45deg);
}

.trainer-modal__close i:last-of-type {
  transform: rotate(-45deg);
}

.trainer-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.trainer-profile__media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(var(--gold-rgb), 0.08), transparent 70%),
    var(--bg-3);
}

.trainer-profile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(20, 22, 25, 0.85) 100%);
  pointer-events: none;
}

.trainer-profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: contrast(1.05);
}

.trainer-profile__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(2rem, 4vw, 3.5rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-rgb), 0.4) transparent;
}

/* Auto margins centre short profiles but never clip long ones. */
.trainer-profile__inner {
  display: grid;
  gap: 1.25rem;
  margin-block: auto;
}

.trainer-profile__name {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.88;
  padding-right: 3rem;
}

.trainer-profile__bio {
  max-width: 38rem;
  padding-top: 1.25rem;
  font-size: 1.02rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

.trainer-profile__bio > * + * {
  margin-top: 1em;
}

.trainer-profile__bio :is(h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.trainer-profile__bio :is(ul, ol) {
  padding-left: 1.2em;
  list-style: revert;
}

.trainer-profile__bio li::marker {
  color: var(--gold);
}

.trainer-profile__bio strong {
  color: var(--text);
}

.trainer-profile__bio a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trainer-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Scroll lock while a profile is open (Lenis is stopped as well). */
.zg-trainer-open {
  overflow: hidden;
}

.zg-trainer-open body {
  padding-right: var(--zg-scrollbar, 0px);
}

.zg-trainer-open .site-header {
  padding-right: calc(var(--gutter) + var(--zg-scrollbar, 0px));
}

/* ---------- Trainers responsive ---------- */

@media (max-width: 1279.98px) {
  .trainers__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .trainers__head {
    grid-template-columns: 1fr;
  }

  .trainers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .trainer-modal__dialog {
    flex-direction: column;
    height: auto;
    max-height: 100%;
  }

  .trainer-profile {
    display: block;
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .trainer-profile__media {
    aspect-ratio: 4 / 3;
  }

  .trainer-profile__media::after {
    background: linear-gradient(0deg, rgba(20, 22, 25, 0.9) 0%, transparent 45%);
  }

  .trainer-profile__body {
    overflow: visible;
    padding: 1.5rem 1.35rem 2rem;
  }

  .trainer-profile__actions > a {
    flex: 1 1 100%;
  }
}

@media (max-width: 599.98px) {
  .trainers__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trainer-card,
  .trainer-card__img,
  .trainer-card__cue svg,
  .trainer-modal .trainer-modal__close {
    transition: none;
  }

  .trainer-card:hover,
  .trainer-card:hover .trainer-card__img {
    transform: none;
  }
}

/* ==========================================================================
   Footer widget columns (template-parts/site-footer.php) — layout only.
   Widgets sit in the existing .site-footer__grid columns and borrow the
   built-in content's type: titles use .eyebrow, column 3 uses .site-footer__nav.
   ========================================================================== */

.site-footer__widgets {
  display: grid;
  align-content: start;
  gap: 2rem;
  min-width: 0;
}

.site-footer__widgets--brand {
  max-width: 14rem;
}

.site-footer__widgets .widget {
  margin: 0;
  padding: 0;
}

.site-footer__widgets .widget-title {
  margin: 0 0 1.1rem;
}

.site-footer__widgets .widget :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__widgets .widget li {
  margin: 0;
  padding: 0;
}

.site-footer__widgets .widget li + li {
  margin-top: 0.75rem;
}

.site-footer__widgets .widget li :is(ul, ol) {
  margin-top: 0.75rem;
  padding-left: 1rem;
}

.site-footer__widgets .widget :is(img, video) {
  max-width: 100%;
  height: auto;
}

.site-footer__widgets .widget iframe {
  max-width: 100%;
}

.site-footer__widgets--brand .widget img {
  width: 110px;
}

.site-footer__widgets .widget p {
  margin: 0;
}

.site-footer__widgets .widget p + p {
  margin-top: 0.75rem;
}

/* Column 2 text matches the built-in address block. */
.site-footer__widgets--visit .widget :is(p, address) {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ---------- Four columns: logo · visit · opening hours · links ---------- */

.site-footer__grid--4 {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
}

.site-footer__hours-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 1.25rem;
}

.site-footer__hours-row {
  display: grid;
  gap: 0.2rem;
}

.site-footer__hours-row dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-footer__hours-row dd {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.site-footer__widgets--hours .widget :is(p, address) {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Tablet: logo on its own row, the three text columns underneath. */
@media (max-width: 1024px) {
  .site-footer__grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__grid--4 > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .site-footer__grid--4 {
    grid-template-columns: 1fr;
  }
}
