/*
Theme Name: Fosse Fitness Bold
Theme URI: https://fossefitness.co.uk
Author: Fosse Fitness 365
Description: Bold athletic theme for Fosse Fitness 365 - dark background, red accent, built for the 2027 site redesign.
Version: 8.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fosse-fitness-bold
*/

:root {
  --bg: #141414;
  --bg-card: #1f1f1f;
  --accent: #E24B4A;
  --text: #ffffff;
  --text-muted: #B4B2A9;
  --text-faint: #888780;
  --border: #2C2C2A;
  --border-strong: #444441;
  --radius: 8px;
  --header-scrolled-bg: rgba(20, 20, 20, 0.96);
  --shadow-color: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* Automatic light theme - follows the visitor's device/browser setting */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F3EE;
    --bg-card: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #5A5850;
    --text-faint: #8A887F;
    --border: #DAD6CB;
    --border-strong: #B8B4A6;
    --header-scrolled-bg: rgba(245, 243, 238, 0.96);
    --shadow-color: rgba(0, 0, 0, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}

.site-logo span { color: var(--accent); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 11px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; align-items: center; justify-content: center; padding: 4px; min-width: 40px; min-height: 40px; }
.nav-toggle svg { pointer-events: none; display: block; }

/* Hero */
.hero {
  padding: 60px 24px 80px;
  text-align: left;
}

/* Centered hero variant - opt-in per page (homepage hero stays left-aligned) */
.hero-center { text-align: center; }
.hero-center h1, .hero-center p, .hero-center .page-lede { margin-left: auto; margin-right: auto; }
.hero-center .button-row { justify-content: center; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero h1, .page-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 640px;
}

.hero p, .page-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary.btn-with-icon svg { color: #fff !important; }

/* Cards / grids */
.section { padding: 50px 24px; }

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Tiles grow/shrink between --tile-min and --tile-max (defaults below).
   Override per-section with an inline style, e.g. style="--tile-min:180px". */
.grid > * {
  flex: 1 1 var(--tile-min, 220px);
  max-width: var(--tile-max, 340px);
}

.whats-here-grid { --tile-min: 280px; --tile-max: 340px; }
@media (max-width: 780px) {
  .whats-here-grid { gap: 10px; }
}
.whats-here-grid .card { display: flex; flex-direction: column; }
.whats-here-grid h3 a { color: inherit; text-decoration: none; }
.whats-here-grid h3 a:hover { color: var(--accent); }
#whats-here-hint { display: none; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
}

.pricing-card { display: flex; flex-direction: column; }
.pricing-card .btn { margin-top: auto; }

.card.featured { border: 1.5px solid var(--accent); }

.card h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; color: var(--text-faint); font-size: 13px; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.price { font-size: 26px; font-weight: 600; margin: 6px 0 2px; }
.price span { font-size: 13px; color: var(--text-faint); font-weight: 400; }

/* Facilities icon grid */
.icon-card i { font-size: 24px; color: var(--accent); }

/* PT / list rows */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.list-row .amount { color: var(--accent); font-weight: 600; }

/* Contact */
.info-block p { margin: 0 0 12px; font-size: 14px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.hours-row span:last-child { color: var(--text); }

/* Opening hours tile - day-by-day, today highlighted, parking pinned to the bottom */
.hours-tile { display: flex; flex-direction: column; }
.hours-tile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.hours-tile-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.hours-tile-days { display: flex; flex-direction: column; }
.hours-tile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.hours-tile-row:last-child { border-bottom: none; }
.hours-tile-row.is-today { color: var(--text); font-weight: 600; }
.hours-tile-row.is-today span:last-child { color: var(--accent); }
.hours-tile-parking {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-strong);
}
.hours-tile-parking span { font-size: 13px; font-weight: 500; color: var(--text); }
/* Compact variant (no card/border) for nesting inside an already-styled
   container, e.g. the FAQ accordion. */
.hours-tile:not(.card) .hours-tile-parking { margin-top: 10px; padding-top: 10px; }

/* Mobile: narrow portrait card, centered wherever it's placed */
.hours-tile { width: 100%; max-width: 320px; margin: 0 auto; }

/* Desktop: same content laid out horizontally instead of a tall stack */
@media (min-width: 781px) {
  .hours-tile, .grid > .hours-tile { max-width: 720px; }
  .hours-tile-days { flex-direction: row; flex-wrap: wrap; }
  .hours-tile-row {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 0 14px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .hours-tile-row:last-child { border-right: none; }
  .hours-tile-row span:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
  .hours-tile-parking { justify-content: center; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 780px) {
  .site-header { position: sticky; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-strong);
    padding: 0 24px;
    box-shadow: 0 12px 24px var(--shadow-color);
    z-index: 45;
    /* Safety net: if the menu is ever taller than the viewport (very short
       screens, or more nav items added later), it scrolls internally
       instead of running off the bottom of the screen unreachably. */
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
  }
  .main-nav a:hover { color: var(--accent); }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav { display: block; }
  .hero h1, .page-title { font-size: 32px; }
  .hero.has-video { min-height: 480px; }

  /* Homepage hero only - tighten vertical rhythm so the full hero (status
     line, heading, text, buttons) fits in view without scrolling on
     typical phone screens. */
  #home-hero { padding: 28px 20px 32px; }
  #home-hero .eyebrow { margin-bottom: 8px; }
  #home-hero h1 { font-size: 28px; margin-bottom: 10px; }
  #home-hero p { font-size: 15px; margin-bottom: 18px; }
  #home-hero .button-row { gap: 10px; }
}

/* Stats / trust bar */
.stats-bar { background: var(--bg-card); padding: 24px 0; }
.stats-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.stat { text-align: center; flex: 1; min-width: 120px; }
.stat-num { display: block; font-size: 24px; font-weight: 600; color: var(--accent); line-height: 1; }
.stat-label { display: block; font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.section-title { font-size: 22px; font-weight: 600; margin: 0 0 20px; }

/* Testimonials */
.testimonial-card .quote { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.6; }
.testimonial-card .attribution { font-size: 12px; color: var(--text-faint); margin: 0; }

/* FAQ accordion (native details/summary, no JS) */
/* Blog: breadcrumbs, category pills, post meta byline */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text-muted); }
.category-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.category-pill {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  text-decoration: none;
}
a.category-pill:hover { color: var(--accent); border-color: var(--accent); }
.post-meta { font-size: 13px; color: var(--text-faint); margin: 0 0 20px; }
.post-meta a { color: var(--text-faint); }
.post-meta a:hover { color: var(--accent); }

.faq-item { background: var(--bg-card); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

/* Sticky CTA - site-wide (mobile: full-width bottom bar; desktop: floating
   centered bar). Safe by default (visible, like the .reveal pattern above) so
   a JS failure never hides it; once .js-ready confirms JS is running, it's
   hidden until fosse_bold_inline_script() reveals it past the hero CTA,
   fading in/out over 1s rather than snapping on/off. */
.sticky-cta {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 -4px 20px var(--shadow-color);
}
.sticky-cta span { font-size: 14px; font-weight: 500; }
.sticky-cta-actions { display: flex; align-items: center; gap: 10px; }
.js-ready .sticky-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s;
}
.js-ready .sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* The mobile dropdown menu (.main-nav) and this bar are both floating overlays;
   without this, the sticky bar's higher z-index covers the bottom nav items
   whenever the menu is taller than the space above the bar. */
body.nav-open .sticky-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body { padding-bottom: 76px; }
.js-ready body { padding-bottom: 0; }
.js-ready body.sticky-cta-visible { padding-bottom: 76px; }

@media (min-width: 781px) {
  .sticky-cta {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 48px));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 22px;
  }
  .sticky-cta span { font-size: 15px; }
  body { padding-bottom: 96px; }
  .js-ready body.sticky-cta-visible { padding-bottom: 96px; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* "Free day pass" pop-up, the "More info" pop-up (trainer bios / business
   descriptions), and the Shop page "Meal deal" pop-up share the same overlay
   and open/close mechanics - see fosse_bold_inline_script() for the JS and
   footer.php / template-nutrition-shop.php for the markup. The free-pass and
   info dialogs reuse .card for their dark background, radius and padding;
   the meal-deal dialog is image-only so it skips .card in favour of its own
   rules below. */
.promo-modal,
.info-modal,
.deal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.promo-modal.is-open,
.info-modal.is-open,
.deal-modal.is-open { display: flex; }
.promo-modal-backdrop,
.info-modal-backdrop,
.deal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.promo-modal-dialog,
.info-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px var(--shadow-color);
}
.promo-modal-close,
.info-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
.promo-modal-close:hover,
.info-modal-close:hover { color: var(--text); }
.promo-modal-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.promo-modal-body h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; padding-right: 20px; }
.promo-modal-body > p { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.promo-modal-form { display: flex; flex-direction: column; gap: 10px; }
.promo-modal-form input[type="text"],
.promo-modal-form input[type="email"] { width: 100%; }
.promo-modal-form .btn { margin-top: 4px; }
.promo-modal-fineprint { font-size: 12px; color: var(--text-faint); margin: 14px 0 0; }
.promo-modal-fineprint a { color: var(--accent); }

/* Shop page "Meal deal" pop-up - just the offer graphic, so the dialog is a
   plain rounded frame around the image rather than a .card. */
.deal-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px var(--shadow-color);
  line-height: 0;
}
.deal-modal-dialog img { width: 100%; display: block; }
.deal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.deal-modal-close:hover { background: rgba(0, 0, 0, 0.75); }

/* "More info" pop-up specifics - title plus one or more structured
   paragraphs (fosse_bold_inline_script() splits the bio/description text
   into a <p> per line, instead of one dense run-on block). */
#info-modal-title { margin: 0 0 14px; font-size: 20px; font-weight: 600; padding-right: 20px; }
.info-modal-body p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.info-modal-body p:last-child { margin-bottom: 0; }

/* "More info" trigger button - looks like a link, sits inline with the
   card content above the Book button. */
.info-trigger {
  display: inline-block;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin: 4px 0 12px;
}
.info-trigger:hover { text-decoration: underline; }

/* Sticky header with scroll state */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: var(--header-scrolled-bg);
  box-shadow: 0 2px 16px var(--shadow-color);
}

/* Glow interactions */
.btn { transition: box-shadow .2s ease, transform .15s ease, color .2s ease, border-color .2s ease; }
.btn-primary:hover { box-shadow: 0 0 16px rgba(226, 75, 74, 0.55); transform: translateY(-1px); }
.btn-primary:active { box-shadow: 0 0 22px rgba(226, 75, 74, 0.8); transform: translateY(0) scale(0.98); }
.btn-secondary:hover { box-shadow: 0 0 12px rgba(255, 255, 255, 0.15); border-color: var(--accent); color: var(--accent); }
.btn-secondary:active { transform: scale(0.98); }

.card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; border: 1px solid transparent; }
.card:hover { box-shadow: 0 0 20px rgba(226, 75, 74, 0.25); transform: translateY(-2px); border-color: rgba(226, 75, 74, 0.4); }
.card:active { transform: translateY(0) scale(0.99); }

.main-nav a { transition: text-shadow .2s ease, color .2s ease; }
.main-nav a:hover { color: #fff; text-shadow: 0 0 8px rgba(226, 75, 74, 0.6); }

/* Desktop only: nav links turn red on hover (mobile keeps the white glow above) */
@media (min-width: 781px) {
  .main-nav a:hover { color: var(--accent); }
}

.site-logo { transition: text-shadow .2s ease; }
.site-logo:hover { text-shadow: 0 0 10px rgba(226, 75, 74, 0.5); }

.faq-item { transition: box-shadow .2s ease; }
.faq-item:hover, .faq-item[open] { box-shadow: 0 0 16px rgba(226, 75, 74, 0.2); }

/* Google reviews badge (Home page, above the testimonial marquee) */
.google-badge {
  display: block;
  max-width: 280px;
  margin: 0 auto 28px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity .2s ease;
}
.google-badge:hover { opacity: .85; }
.google-badge-eyebrow { font-size: 13px; font-weight: 500; margin: 0 0 6px; color: var(--text-muted); }
.google-badge-eyebrow strong { color: var(--text); font-weight: 700; }
.google-badge-rating-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-badge-score { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.2; }
.google-badge-stars { display: block; margin-top: 2px; color: #f5b301; font-size: 15px; letter-spacing: 2px; }
.google-badge-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Revolving testimonial marquee (pure CSS, no JS) - continuously scrolls, no flashing */
.testimonial-marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.testimonial-slide {
  flex: 0 0 340px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-slide .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin: 0 0 10px; }
.testimonial-slide .quote { font-size: 16px; color: var(--text); margin: 0 0 14px; line-height: 1.65; }
.testimonial-slide .attribution { font-size: 13px; color: var(--text-faint); margin: 0; }

@media (max-width: 780px) {
  #whats-here-hint { display: block; }

  /* Shared backdrop for expanded tiles (What's here + Also on site) */
  .tile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .tile-backdrop.active { opacity: 1; pointer-events: auto; }

  /* What's here tiles */
  .whats-here-grid .card { padding: 14px; cursor: pointer; position: relative; }
  .whats-here-grid .card h3 { font-size: 14px; margin: 8px 0 4px; padding-right: 20px; }
  .whats-here-grid .card p { font-size: 12px; line-height: 1.45; display: none; }
  .whats-here-grid .icon-card svg { width: 22px; height: 22px; }
  .whats-here-grid .card::after {
    content: '+';
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--text-faint);
    font-size: 15px;
  }
  .whats-here-grid .card.is-open::after { content: '\2212'; }
  .whats-here-grid .card.is-open {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vw, 360px);
    z-index: 200;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    padding: 22px;
  }
  .whats-here-grid .card.is-open p { display: block; margin-top: 6px; font-size: 14px; }

  /* Also on site (facility) tiles - same expand-and-cover, one-at-a-time rules */
  .facility-tile.is-open {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vw, 320px);
    aspect-ratio: auto;
    z-index: 200;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    padding: 24px;
  }
  .facility-tile.is-open .facility-icon { display: none; }
  .facility-tile.is-open .facility-overlay {
    position: static;
    opacity: 1;
    background: none;
    padding: 0;
  }
  .facility-tile.is-open .facility-overlay h3 { font-size: 16px; }
  .facility-tile.is-open .facility-overlay p { font-size: 13px; }

  .testimonial-slide { flex: 0 0 min(300px, calc(100vw - 72px)); padding: 18px; }
  .testimonial-slide .quote { font-size: 15px; }
  .marquee-track { animation-duration: 42s; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .logo-track { animation: none; overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* Hero background video */
.hero { position: relative; overflow: hidden; }
.hero.has-video {
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-embed-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9, keeps it covering on tall/narrow screens */
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.75) 100%);
}
.hero.has-video .container { position: relative; }
.hero.has-video .eyebrow { color: var(--accent); }
.hero.has-video h1,
.hero.has-video p { color: #fff; }
.hero.has-video .btn-secondary {
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hero.has-video .btn-secondary:hover { border-color: var(--accent); }

/* Contact page - map/details paired with the form instead of stacking full-width */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 28px;
}
.contact-layout-main { flex: 1 1 420px; }
.contact-layout-main .info-block { margin-top: 16px; }
.contact-layout-aside { flex: 1 1 320px; max-width: 400px; }
@media (max-width: 780px) {
  .contact-layout-aside { max-width: none; }
}

/* Map section */
.map-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Google's embed API has no native dark style, so this fakes one with a
     CSS filter: invert the whole map then rotate the hue back so land/water
     read naturally, leaving a dark basemap that matches the site. */
  filter: invert(90%) hue-rotate(180deg) grayscale(10%) brightness(0.95) contrast(0.9);
}
@media (prefers-color-scheme: light) {
  .map-embed iframe {
    filter: grayscale(0.15) contrast(1.05);
  }
}

/* Images embedded in cards/pages generally */
.equipment-item img, .product-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }

/* Category filter tabs (Equipment / Nutrition Shop) */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Shop product cards */
.product-card { display: flex; flex-direction: column; }
.product-card .price { margin: 4px 0 14px; }
.product-photo { cursor: zoom-in; }

/* Shop product colour swatches */
.colour-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.colour-swatch {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.colour-swatch:hover { border-color: var(--accent); color: var(--text); }
.colour-swatch.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Trainer profile cards */
.trainer-card { text-align: center; }
.trainer-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; display: block; }
.trainer-card h3 { margin-bottom: 2px; }
.trainer-card .specialty { color: var(--accent); font-size: 12px; font-weight: 500; margin: 0 0 10px; }
.trainer-card .bio { color: var(--text-faint); font-size: 13px; margin: 0 0 16px; }

/* Gallery grid + lightbox */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.gallery-grid img {
  flex: 1 1 160px;
  max-width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(226, 75, 74, 0.3); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-flip-btn {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
}

/* Gym rules groups (reuses .faq-item accordion styling) */
.rule-group { margin-bottom: 28px; }
.rule-group h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

/* Footer secondary nav */
.footer-nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-nav a { font-size: 12px; color: var(--text-faint); transition: color .2s ease; }
.footer-nav a:hover { color: var(--accent); }

/* Open/closed status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: middle;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-badge.is-open { background: rgba(99, 153, 34, 0.15); color: #8fc95a; }
.status-badge.is-open::before { background: #8fc95a; }
.status-badge.is-closed { background: rgba(226, 75, 74, 0.15); color: var(--accent); }
.status-badge.is-closed::before { background: var(--accent); }

/* Homepage tour video */
.video-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Instagram follow band */
.follow-band { background: var(--bg-card); padding: 24px; text-align: center; }

/* Form inputs (contact form) */
.card input[type="text"],
.card input[type="email"],
.card textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.card input[type="text"]:focus,
.card input[type="email"]:focus,
.card textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.card textarea { resize: vertical; }
.card button[type="submit"] { border: none; }

/* Per-category how-to video toggle on Equipment page (collapsible detail block).
   Trainer bios and business descriptions used to share this pattern but now
   use the shared #info-modal pop-up instead - see .info-trigger above. */
.video-toggle { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.video-toggle summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  list-style: none;
}
.video-toggle summary::-webkit-details-marker { display: none; }
.video-toggle summary::after { content: '+'; float: right; }
.video-toggle[open] summary::after { content: '\2212'; }
.video-toggle .video-embed { margin-top: 12px; }
.video-toggle .video-embed + .video-embed { margin-top: 20px; }
.video-caption { font-size: 12px; color: var(--text-faint); margin: 6px 0 0; text-align: center; }

/* Muscle group badges on individual equipment cards */
.muscle-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.muscle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 10px 4px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.muscle-badge svg { flex-shrink: 0; }
.machine-card h3 { margin-bottom: 4px; }

/* Clickable category overview cards on Equipment page */
.category-card { cursor: pointer; }
.category-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.category-card-cta {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* Equipment search */
.equipment-search {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 16px 0 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.equipment-search:focus { outline: none; border-color: var(--accent); }
.equipment-search::placeholder { color: var(--text-faint); }
.equipment-no-results { color: var(--text-faint); font-size: 13px; margin: 12px 0; }

/* Machine number badge */
.machine-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Facility tiles (Also on site) - purpose-built icons, details on hover/click */
.facility-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 780px) {
  .facility-grid { gap: 8px; }
}
.facility-tile {
  position: relative;
  flex: 1 1 140px;
  max-width: 170px;
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (max-width: 780px) {
  .facility-tile { flex-basis: 45%; max-width: 48%; }
}
.facility-tile:hover,
.facility-tile:focus-visible,
.facility-tile.is-open {
  border-color: rgba(226, 75, 74, 0.4);
  box-shadow: 0 0 20px rgba(226, 75, 74, 0.25);
}
.facility-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}
.facility-tile:hover .facility-icon,
.facility-tile:focus-visible .facility-icon,
.facility-tile.is-open .facility-icon {
  opacity: 0;
  transform: scale(0.8);
}
.facility-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: var(--bg-card);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.facility-tile:hover .facility-overlay,
.facility-tile:focus-visible .facility-overlay,
.facility-tile.is-open .facility-overlay {
  opacity: 1;
}
.facility-overlay h3 { font-size: 12px; margin: 0 0 4px; line-height: 1.2; }
.facility-overlay p { font-size: 10px; color: var(--text-faint); margin: 0; line-height: 1.3; }

/* Inline SVG icons */
.icon-card svg, .facility-icon svg { color: var(--accent); }

/* Gym status time label (next to the open/closed badge) */
.status-time { font-size: 11px; color: var(--text-faint); margin-left: 6px; }

/* Scroll reveal - sections fade/slide in as they enter the viewport.
   Safe by default: content is only ever hidden once .js-ready confirms
   the reveal script is actually running, so a JS failure never hides anything. */
.reveal, .reveal-left, .reveal-right, .reveal-spin { opacity: 1; transform: none; }
.js-ready .reveal,
.js-ready .reveal-left,
.js-ready .reveal-right,
.js-ready .reveal-spin {
  opacity: 0;
  transition: opacity .7s cubic-bezier(0.16, 0.8, 0.28, 1), transform .7s cubic-bezier(0.16, 0.8, 0.28, 1);
}
.js-ready .reveal { transform: translateY(28px); }
.js-ready .reveal-left { transform: translateX(-36px); }
.js-ready .reveal-right { transform: translateX(36px); }
.js-ready .reveal-spin { transform: rotate(-220deg) scale(0.6); transition-duration: 1s; }
.js-ready .reveal.is-visible,
.js-ready .reveal-left.is-visible,
.js-ready .reveal-right.is-visible,
.js-ready .reveal-spin.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal-left,
  .js-ready .reveal-right,
  .js-ready .reveal-spin {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Single blog post content */
.post-content p { margin: 0 0 18px; line-height: 1.7; color: var(--text-muted); }
.post-content p:first-of-type { color: var(--text); font-size: 17px; }

/* Equipment brand badge - text only, overlaid on the machine photo */
.machine-image-wrap { position: relative; }
.machine-image-wrap img {
  box-shadow: 0 0 0 2px rgba(226, 75, 74, 0.65), 0 0 26px rgba(226, 75, 74, 0.55);
  cursor: zoom-in;
  transition: transform .2s ease;
}
.machine-image-wrap img:hover { transform: scale(1.03); }
.brand-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(226, 75, 74, 0.5);
  pointer-events: none;
}
.quantity-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Brand logo carousel (Equipment / Shop pages) */
.logo-marquee { overflow: hidden; padding: 12px 0; }
.logo-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-filter-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.logo-track img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform .2s ease;
}
.logo-track img:hover { transform: scale(1.05); }

/* Active brand filter notice (Equipment page) */
.brand-filter-notice {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 4px;
}
.brand-filter-notice strong { color: var(--text); }
#brand-filter-clear {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 0 8px;
}

/* Busy times chart (homepage) - real Google data, day tabs + bar chart */
.busy-day-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.busy-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 0 4px;
}
.busy-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  opacity: 0.85;
  transition: height .3s ease;
}
.busy-chart-labels { display: flex; gap: 4px; padding: 0 4px; margin-top: 6px; }
.busy-chart-labels span { flex: 1; text-align: center; font-size: 10px; color: var(--text-faint); }
