/* ============================================================
   BIOWEAPON PERFORMANCE CENTRE — MAIN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --green:      #4d562b;
  --green-light: #8fa84e;
  --green-dark: #333820;
  --black:      #000000;
  --charcoal:   #111111;
  --charcoal-2: #1a1a1a;
  --charcoal-3: #222222;
  --grey:       #e3e3e3;
  --grey-mid:   #b8b8b8;
  --grey-dark:  #909090;
  --white:      #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-accent:  'Oswald', sans-serif;

  --nav-h: 130px;
  --radius: 4px;
  --transition: 0.3s ease;
  /* Spring-like easing curve for premium feel — punchy out, gentle settle */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s var(--ease-spring);
  --transition-snap: 0.5s var(--ease-out-expo);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-green: 0 0 30px rgba(77,86,43,0.3);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--charcoal);
  color: var(--grey);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 5%;
  gap: 2rem;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(77,86,43,0.3);
  transition: transform 0.35s ease, height 0.3s ease, background 0.3s ease;
  transform: translateY(0);
}
/* Smart navbar — slide up when hidden */
.navbar.nav-hidden {
  transform: translateY(-100%);
}
/* scrolled class — only tighten background, NO size change */
.navbar.scrolled {
  background: rgba(0,0,0,0.98);
  border-bottom-color: rgba(77,86,43,0.5);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  /* Height controlled by .nav-logo-img class below */
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--grey);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.nav-logo-text span { color: var(--green-light); display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.3em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--green-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

/* Icon-only nav link (e.g. FAQ ? icon) — circular, hover-lifts.
   Tighter left margin so it sits closer to the preceding text link. */
.nav-links a.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: -0.5rem;
  font-size: 1.05rem;
  color: var(--grey-mid);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  transition: color var(--transition-spring),
              border-color var(--transition-spring),
              background var(--transition-spring),
              transform 0.2s var(--ease-out-expo);
}
.nav-links a.nav-icon:hover {
  color: var(--green-light);
  border-color: var(--green-light);
  background: rgba(143,168,78,0.08);
  transform: translateY(-1px);
}
.nav-links a.nav-icon::after { display: none !important; }

.nav-cta {
  margin-left: 0;
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-light) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  justify-self: end;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--grey);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(77,86,43,0.4);
  z-index: 998; /* Below navbar (1000) so navbar logo/X stays visible on top */
  flex-direction: column;
  padding: 1.5rem 6% 3rem;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:hover { color: var(--green-light); padding-left: 12px; }
.mobile-menu a.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  border: 2px solid var(--green);
  text-align: center;
  margin-top: 1.2rem;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  display: block;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu a.nav-cta:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: none;
  padding-left: 16px; /* override the hover slide effect */
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--green-light);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--green-light);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-mid);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 1rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition-spring),
              color var(--transition-spring),
              border-color var(--transition-spring),
              transform 0.18s var(--ease-out-expo),
              box-shadow var(--transition-spring);
  cursor: pointer;
  will-change: transform;
}
/* Tactile press — fires on every button on click */
.btn:active {
  transform: translateY(1px) scale(0.97) !important;
  transition: transform 0.08s ease-out !important;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}
.btn-outline {
  background: transparent;
  color: var(--grey);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--green-light);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-white {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
}
.btn-white:hover {
  background: var(--grey);
  transform: translateY(-3px);
}

/* ============================================================
   DECORATIVE / TEXTURE
   ============================================================ */
.thai-border {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0px,
    var(--green) 8px,
    transparent 8px,
    transparent 12px
  );
}
.diagonal-divider {
  width: 100%;
  height: 60px;
  overflow: hidden;
  position: relative;
}
.diagonal-divider::after {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 110%;
  height: 100%;
  background: var(--charcoal-2);
  transform: skewY(-1.5deg);
  transform-origin: left;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--charcoal-2);
  border: 1px solid rgba(77,86,43,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-light);
  background: rgba(77,86,43,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--charcoal-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(77,86,43,0.3);
  padding: 80px 0 0;
}
.footer > .thai-border + .container,
.footer > .container:first-of-type {
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 50px;
}
.footer-brand p {
  font-size: 0.95rem;
  color: var(--grey-mid);
  margin: 1.2rem 0 1.5rem;
  max-width: 300px;
  line-height: 1.7;
}
.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}
.footer-logo-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--green-light);
  font-weight: 400;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a {
  font-size: 0.95rem;
  color: var(--grey-mid);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-col ul a:hover { color: var(--white); padding-left: 6px; }
.footer-hours { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--grey-mid);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-hours-row span:last-child { color: var(--grey); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--grey-mid);
  margin-bottom: 0.7rem;
}
.footer-contact-item i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: #999999;
}
.footer-bottom a { color: var(--green-light); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.82rem;
  color: #999999;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (shared)
   ============================================================ */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 5% 60px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(77,86,43,0.15) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-content .section-title { font-size: clamp(3rem, 7vw, 6rem); }

/* ============================================================
   THAI PATTERN ACCENT
   ============================================================ */
.thai-pattern {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(77,86,43,0.05) 0px,
      rgba(77,86,43,0.05) 2px,
      transparent 2px,
      transparent 12px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(77,86,43,0.05) 0px,
      rgba(77,86,43,0.05) 2px,
      transparent 2px,
      transparent 12px
    );
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--green-dark);
  border-top: 1px solid rgba(77,86,43,0.5);
  border-bottom: 1px solid rgba(77,86,43,0.5);
  padding: 24px 0;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
  will-change: opacity, transform, filter;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition-duration: 0.01ms !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Responsive styles consolidated below */

/* ============================================================
   LOGO IMAGE SUPPORT
   ============================================================ */
.nav-logo-img {
  height: 100px;
  width: auto;
  display: block;
  padding: 14px 0;
}
/* When logo.png is available, hide the text fallback */
.nav-logo-img + .nav-logo-text { display: none; }

.footer-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: 1.4rem;
  margin-left: 0;
  align-self: flex-start;
}
.footer-logo-img + .footer-logo-text { display: none; }

/* ============================================================
   SELECTION COLOUR
   ============================================================ */
::selection { background: rgba(77,86,43,0.4); color: var(--white); }

/* ============================================================
   SMOOTH IMAGE LOADING
   ============================================================ */
img { transition: opacity 0.3s ease; }
img[src=""], img:not([src]) { opacity: 0; }

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */


/* ---- 1024px — Tablets landscape ---- */


/* ---- 768px — Tablets portrait / large phones ---- */


/* ---- 480px — Mobile phones ---- */


/* ---- 360px — Small phones ---- */


/* ---- Landscape mobile ---- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero-content { padding: calc(var(--nav-h) + 20px) 5% 30px; }
}

/* ============================================================
   GLOBAL OVERFLOW PREVENTION
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100vw; }
.section, section, header, footer { max-width: 100%; }
img, video, iframe { max-width: 100%; }
.timetable-table-wrap, .tt-wrap { max-width: calc(100vw - 8%); }
.page-hero-content .section-title { word-break: break-word; overflow-wrap: break-word; }

/* ============================================================
   NAVBAR — SINGLE AUTHORITY BLOCK
   3 direct children: .nav-logo | .nav-links | .nav-cta
   Grid: logo(auto) | links centred(1fr) | CTA button(auto)
   ============================================================ */
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 5%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
.nav-cta {
  justify-self: end;
  white-space: nowrap;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  justify-self: end;
}


/* ============================================================
   FINDUS SECTION — base styles
   ============================================================ */
/* ============================================================
   FIND US — tactical-restrained redesign
   Biohazard watermark, glowing pin overlay on map, info cards
   with green-accent left border. Mirrors reference structure
   without going full video-game-HUD.
   ============================================================ */
.findus-section {
  background: var(--black);
  overflow: hidden;
  position: relative;
  padding: 90px 0 100px;
}
.findus-section::before {
  /* Subtle biohazard watermark behind heading */
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 720px;
  height: 720px;
  background: url('../images/bio-logo.png') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}
.findus-section > * { position: relative; z-index: 1; }

.findus-top { padding: 0 0 50px; background: transparent; }
.findus-top .container { width: 92%; max-width: 1600px; padding: 0; box-sizing: border-box; margin: 0 auto; }
.findus-header { max-width: 720px; }
.findus-header .section-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
}
.findus-header .section-subtitle { max-width: 540px; }

/* 2-column: info cards on left, map on right */
.findus-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
  min-height: 560px;
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* INFO CARDS COLUMN */
.findus-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
}
.findus-card {
  background: var(--charcoal-2);
  border: 1px solid rgba(77,86,43,0.18);
  border-left: 3px solid var(--green-light);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: border-color var(--transition-spring),
              transform 0.25s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.findus-card:hover {
  border-color: rgba(143,168,78,0.5);
  border-left-color: var(--green-light);
  transform: translateX(2px);
}
/* Subtle corner brackets — tactical accent */
.findus-card::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(143,168,78,0.35);
  border-right: 1px solid rgba(143,168,78,0.35);
  pointer-events: none;
}
.findus-card-icon {
  width: 44px; height: 44px;
  background: rgba(77,86,43,0.18);
  border: 1px solid rgba(143,168,78,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-light);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.findus-card-body { flex: 1; min-width: 0; }
.findus-card-label {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 4px;
}
.findus-card-value {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.5;
}
.findus-card-value a {
  color: var(--white);
  transition: color var(--transition);
}
.findus-card-value a:hover { color: var(--green-light); }
.findus-card-action {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-light);
  padding: 8px 14px;
  border: 1px solid rgba(143,168,78,0.35);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition-spring);
  flex-shrink: 0;
  text-decoration: none;
}
.findus-card-action:hover {
  background: var(--green-dark);
  border-color: var(--green-light);
  color: var(--white);
}

/* Hours card needs its own layout (rows of times) */
.findus-card.findus-card-hours {
  flex-direction: column;
  align-items: stretch;
}
.findus-card.findus-card-hours::after { display: none; }
.findus-card-hours-header {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px;
}
.findus-card-hours-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
.fh-row {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fh-row:last-child { border-bottom: none; }
.fh-row span:first-child {
  color: #a8a8a8;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fh-row span:last-child { color: var(--white); font-weight: 600; }
.fh-row.closed span { color: #666; }
.fh-row.today {
  background: rgba(143,168,78,0.08);
  margin: 0 -10px;
  padding: 7px 10px;
  border-radius: 4px;
}
.fh-row.today span:first-child { color: var(--green-light); }

/* MAP COLUMN */
.findus-map {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  border: 1px solid rgba(77,86,43,0.25);
  overflow: hidden;
  background: var(--charcoal-2);
}
.findus-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(160deg) saturate(0.5) brightness(0.92) contrast(1.05);
}
/* Map glow pin removed — keeping native Google Maps marker only */
.findus-map-cta {
  position: absolute;
  bottom: 18px; right: 18px;
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(143,168,78,0.4);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: all var(--transition-spring);
  z-index: 3;
}
.findus-map-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-light);
  transform: translateY(-1px);
}

/* TRUST STRIP — "built different" feature row */
.findus-strip {
  margin-top: 60px;
  padding: 32px 5%;
  border-top: 1px solid rgba(77,86,43,0.2);
  border-bottom: 1px solid rgba(77,86,43,0.2);
  max-width: 1600px;
  margin-left: auto; margin-right: auto;
}
.findus-strip-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.findus-strip-brand {
  display: flex; gap: 14px; align-items: center;
  padding-right: 28px;
  border-right: 1px solid rgba(77,86,43,0.25);
}
.findus-strip-brand-icon {
  width: 48px; height: 48px;
  background: url('../images/bio-logo.png') no-repeat center / contain;
  filter: drop-shadow(0 0 8px rgba(143,168,78,0.4));
  flex-shrink: 0;
}
.findus-strip-brand-text {
  font-family: var(--font-display);
  line-height: 1;
}
.findus-strip-brand-text strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.findus-strip-brand-text span {
  display: block;
  color: var(--green-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}
.findus-strip-feat {
  display: flex; gap: 14px; align-items: flex-start;
}
.findus-strip-feat-icon {
  color: var(--green-light);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.findus-strip-feat-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.findus-strip-feat-text p {
  font-size: 0.78rem;
  color: var(--grey-mid);
  line-height: 1.5;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .findus-section { padding: 70px 0 80px; }
  .findus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }
  .findus-map { min-height: 400px; }
  .findus-strip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .findus-strip-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(77,86,43,0.25);
  }
}
@media (max-width: 640px) {
  .findus-section { padding: 50px 0 60px; }
  .findus-section::before { width: 480px; height: 480px; right: -180px; top: -60px; }
  .findus-top { padding: 0 0 30px; }
  .findus-grid { width: 92%; padding: 0; }
  .findus-card { padding: 18px 20px; gap: 14px; }
  .findus-card-icon { width: 38px; height: 38px; }
  .findus-card-action {
    padding: 6px 10px;
    font-size: 0.62rem;
  }
  .findus-strip-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .findus-strip-feat-text p { font-size: 0.75rem; }
  .findus-map { min-height: 320px; }
}

/* ============================================================
   MOBILE MENU CTA BUTTON
   ============================================================ */
.mobile-menu a.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  border: 2px solid var(--green);
  text-align: center;
  margin-top: 1.2rem;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  display: block;
}
.mobile-menu a.nav-cta:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  padding-left: 16px;
  transform: none;
}

/* ============================================================
   CONTRAST FIXES — WCAG AA compliance
   ============================================================ */
/* Price TBA placeholders */
.price-placeholder { color: #999999; }
/* Findus labels use green-light which now passes at #8fa84e */
/* Stats bar labels */
.stat-label { color: rgba(255,255,255,0.75); }
/* Footer bottom */
.footer-bottom p { color: #999999; }
.footer-bottom-links a { color: #999999; }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .mobile-menu, footer { display: none !important; }
  body { background: white; color: black; }
  .section-title, h1, h2, h3 { color: black; }
}


/* ============================================================
   FINAL OVERRIDES — DO NOT MODIFY
   Forces correct mobile/tablet navbar behaviour
   ============================================================ */

/* Tablet + Mobile (<=768px): clean 2-col navbar */






/* HERO MOBILE FIX — proper layout, scroll indicator below buttons */


/* STATS BAR — proper card containers around each item */




/* REVIEWS HEADER — left aligned stack, stories same colour as results */

@media (max-width: 1024px) {
  /* Logo */
  .nav-logo-img { height: 65px; }

  /* Layout */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-img-wrap { max-width: 500px; }
  .why-img-accent { display: none; }
  .why-img-badge { right: 0; }
  .coach-card { grid-template-columns: 1fr !important; }
  .coach-img { min-height: 320px !important; }
  .coach-body { padding: 32px !important; }
  .book-grid { grid-template-columns: 1fr !important; }
  .book-info-panel { position: static !important; }
  .coach-preview-img { height: 240px; }
  .class-block-inner { grid-template-columns: 1fr !important; gap: 32px; }
  .class-img { aspect-ratio: 16/9 !important; }
  .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .signup-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .story-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .contact-main-grid { grid-template-columns: 1fr !important; }
  .book-features { grid-template-columns: repeat(2, 1fr); }
  .footer-logo-img { height: 90px; }

  .stats-bar {
    padding: 32px 0 !important;
  }

  .reviews-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
  .reviews-header > div:last-child {
    align-self: flex-start !important;
    text-align: left !important;
  }
  .reviews-rating {
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 100px; }

  /* Navbar — 2 col: logo left, hamburger right */
  .navbar {
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 0 6% !important;
  }
  .nav-links { display: none; }
  .navbar .nav-cta { display: none; }
  .hamburger { display: flex; grid-column: 2; justify-self: end; }
  .nav-logo { padding: 0; }
  .nav-logo-img { height: 70px; }
  .footer-logo-img { height: 80px; }

  /* Sections */
  .section { padding: 70px 0; }
  .section-title { font-size: clamp(2rem, 7vw, 3.5rem); }
  .section-subtitle { font-size: 0.92rem; }

  /* Hero */
  .hero-title { font-size: clamp(2.8rem, 10vw, 5rem); }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; }
  .hero-ctas { gap: 0.8rem; }
  .hero-ctas .btn { padding: 12px 20px; font-size: 0.82rem; }
  .hero-badges { display: none; } /* Hide on mobile — cluttered */
  /* hero-scroll visible on mobile */

  /* Disciplines */
  .disciplines-inner { grid-template-columns: 1fr 1fr !important; }

  /* Stats */
  .stat-number { font-size: 2rem; }

  /* Timetable */
  .tt-wrap { display: none; }
  .tt-legend { display: none; }
  .tt-mobile { display: block !important; }

  /* Classes */
  .classes-grid { grid-template-columns: 1fr 1fr !important; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr !important; }
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Coaches strip */
  .coaches-strip-grid { grid-template-columns: 1fr 1fr !important; }

  /* CTA band */
  .cta-band-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-band-actions { justify-content: center; }

  /* Membership */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card.featured { transform: none !important; }
  .passes-grid { grid-template-columns: 1fr 1fr !important; }
  .signup-form-card { padding: 24px; }

  /* About */
  .story-img-secondary { display: none; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .facilities-grid { grid-template-columns: 1fr !important; }

  /* Contact */
  .contact-cards-grid { grid-template-columns: 1fr 1fr !important; }

  /* FAQ */
  .faq-layout { grid-template-columns: 1fr !important; }
  .faq-sidebar { display: none; }

  /* Legal */
  .legal-layout { grid-template-columns: 1fr !important; }
  .legal-sidebar { display: none !important; }

  /* Shop */
  .products-grid { grid-template-columns: 1fr 1fr !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .footer-bottom-links { gap: 1rem; flex-wrap: wrap; }

  /* Chat */

  /* Timetable mobile cards */
  .day-card-body { padding: 12px 14px; }

  .navbar {
    display: grid !important;
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 6% !important;
    height: 100px !important;
  }
  .nav-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
  }
  .nav-logo-img {
    height: 70px !important;
    width: auto !important;
    padding: 0 !important;
  }
  .nav-links { display: none !important; }
  .navbar > .nav-cta { display: none !important; }
  .hamburger {
    display: flex !important;
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: center !important;
  }

  .hero-content {
    padding: calc(var(--nav-h, 100px) + 50px) 6% 100px !important;
    max-width: 100% !important;
  }
  .hero-tagline {
    font-size: 0.7rem !important;
    letter-spacing: 0.3em !important;
    flex-wrap: wrap !important;
    margin-bottom: 1.5rem !important;
  }
  .tagline-break { display: block !important; padding-left: 52px; }
  .hero-tagline::before {
    flex-shrink: 0;
  }
  /* hero-scroll visible on mobile — positioned to not overlap chat */
}

@media (max-width: 480px) {
  :root { --nav-h: 90px; }

  /* Logo */
  .nav-logo-img { height: 60px; }

  /* Sections */
  .section { padding: 55px 0; }
  .section-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .btn { padding: 12px 22px; font-size: 0.82rem; }

  /* Hero */
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero-content { padding: calc(var(--nav-h) + 30px) 5% 50px 5%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Disciplines */
  .disciplines-inner { grid-template-columns: 1fr !important; }

  /* Classes */
  .classes-grid { grid-template-columns: 1fr !important; }

  /* Coaches strip */
  .coaches-strip-grid { grid-template-columns: 1fr !important; }

  /* Stats */

  /* Values */
  .values-grid { grid-template-columns: 1fr !important; }

  /* Passes */
  .passes-grid { grid-template-columns: 1fr !important; }

  /* Contact cards */
  .contact-cards-grid { grid-template-columns: 1fr !important; }

  /* Shop */
  .products-grid { grid-template-columns: 1fr !important; }

  /* CTA band */
  .cta-band-text h2 { font-size: 2rem; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-logo-img { height: 60px; }
  .footer-bottom p, .footer-bottom-links a { font-size: 0.75rem; }

  /* Page hero */
  .page-hero { min-height: 260px; padding: calc(var(--nav-h) + 40px) 5% 40px; }
  .page-hero-content .section-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  /* Timetable mobile */
  .day-class-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .day-class-row .dcr-time { min-width: unset; font-size: 0.72rem; }

  /* Form */
  .form-row { grid-template-columns: 1fr !important; }
  .signup-form-card { padding: 18px; }

  .navbar {
    padding: 0 5% !important;
    height: 90px !important;
  }
  .nav-logo-img { height: 60px !important; }
  .stat-number { font-size: 1.8rem !important; }
  .stat-label { font-size: 0.68rem !important; }
}

@media (max-width: 360px) {
  :root { --nav-h: 80px; }
  .navbar { padding: 0 4% !important; }
  .nav-logo-img { height: 48px; }
  .container { width: 94%; padding: 0; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .btn { padding: 11px 16px; font-size: 0.78rem; }

  .navbar {
    padding: 0 4% !important;
    height: 80px !important;
  }
  .nav-logo-img { height: 50px !important; }
}

/* ============================================================
   ABSOLUTE FINAL — MOBILE/TABLET NAVBAR GUARANTEE
   Must remain at end of file. Highest specificity wins.
   ============================================================ */
@media (max-width: 768px) {
  body .navbar {
    display: grid !important;
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 6% !important;
  }
  body .navbar .nav-links { display: none !important; }
  body .navbar > .nav-cta { display: none !important; }
  body .navbar .hamburger {
    display: flex !important;
    justify-self: end !important;
  }
  body .nav-logo-img {
    height: 70px !important;
    width: auto !important;
    padding: 0 !important;
  }
  body .hero-badges { display: none !important; }
}
@media (max-width: 480px) {
  body .navbar { padding: 0 5% !important; }
  body .nav-logo-img { height: 60px !important; }
}
@media (max-width: 360px) {
  body .navbar { padding: 0 4% !important; }
  body .nav-logo-img { height: 50px !important; }
}


/* ============================================================
   FINAL POLISH — Stats uniform containers + Timetable centred
   ============================================================ */

/* STATS — clean uniform 5-col on desktop, 5 equal cards */

/* TABLET — uniform 3-col + 2 on bottom row centred */
@media (max-width: 1024px) and (min-width: 769px) {
  /* 4th and 5th stats span the row 50/50 */
  /* Better: just make them flow naturally */
}

/* MOBILE — clean 2x2 + 1 centred, all uniform size */
@media (max-width: 768px) {
  .stats-bar { padding: 28px 0 !important; }
  .stat-number { font-size: 1.9rem !important; }
  .stat-label { font-size: 0.65rem !important; letter-spacing: 0.18em !important; }
}

@media (max-width: 480px) {
  .stat-number { font-size: 1.7rem !important; }
}

/* TIMETABLE — centred on mobile */
@media (max-width: 768px) {
  .tt-mobile {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 5%;
  }
  .day-card {
    margin: 0 auto 14px !important;
  }
  .day-class-row {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .tt-mobile {
    max-width: 100%;
    padding: 0 4%;
  }
  .day-class-row {
    align-items: center !important;
    text-align: center;
  }
}


/* ============================================================
   FINAL MOBILE FIXES — uniform stats, hero size, dividers
   ============================================================ */

/* Hero title — bigger on mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(3.5rem, 13vw, 5.5rem) !important;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3.2rem, 14vw, 4.5rem) !important;
  }
}

/* Stats — clean 2x2 + full-width 5th, all uniform size */
@media (max-width: 768px) {
  .stats-bar { padding: 28px 0 !important; }
  /* Hide dividers FIRST so they don't occupy grid cells */

  /* All stat items uniform */

  /* Position 4 top stats in 2x2 — HTML order: 11+, 3, 5, 6Days, 5.0
     Layout target:  [11+]    [6 Days]
                     [3 Coaches] [5 Disc] */ /* 11+ */ /* 3 Coaches */ /* 5 Disciplines */ /* 6 Days */
  /* 5th — full width on row 3 */
}

/* FORGED IN HUSTLE — bigger on mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(4.5rem, 16vw, 7rem) !important;
    line-height: 0.95 !important;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(4rem, 17vw, 5.5rem) !important;
  }
}

/* Disciplines — add divider lines between items on mobile */
@media (max-width: 768px) {
  .disciplines-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .discipline-item {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 28px 5% !important;
  }
  .discipline-item:last-child {
    border-bottom: none !important;
  }
}

/* Timetable mobile — centre times and class pills */
@media (max-width: 768px) {
  .day-class-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }
  .day-class-row .dcr-time {
    min-width: 0 !important;
    text-align: center !important;
    align-self: center !important;
    color: var(--green-light) !important;
    font-size: 0.85rem !important;
  }
  .day-class-row .dcr-tag {
    align-self: center !important;
    margin: 0 auto !important;
  }
}


/* ============================================================
   NAVBAR EARLY COLLAPSE — switch to hamburger at 1100px
   Prevents squished navbar between 1100px and 768px
   ============================================================ */
@media (max-width: 1100px) {
  body .navbar {
    display: grid !important;
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 5% !important;
  }
  body .navbar .nav-links { display: none !important; }
  body .navbar > .nav-cta { display: none !important; }
  body .navbar .hamburger {
    display: flex !important;
    justify-self: end !important;
  }
}


/* ============================================================
   HERO SCROLL INDICATOR — visible on mobile/tablet
   Positioned so it doesn't overlap with anything
   ============================================================ */
@media (max-width: 1024px) {
  .hero-scroll {
    display: flex !important;
    right: auto !important;
    left: 50% !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;
    writing-mode: horizontal-tb !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .hero-scroll-mouse {
    width: 20px !important;
    height: 32px !important;
    padding-top: 5px !important;
  }
  .hero-scroll-dot {
    width: 3px !important;
    height: 3px !important;
  }
}
@media (max-width: 480px) {
  .hero-scroll {
    bottom: 18px !important;
    gap: 8px !important;
  }
  .hero-scroll-mouse {
    width: 18px !important;
    height: 28px !important;
    padding-top: 4px !important;
  }
  /* Shorter mouse = shorter dot travel */
  .hero-scroll-dot {
    animation-name: scrollDotMobile !important;
  }
}
@keyframes scrollDotMobile {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  71%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}


/* ============================================================
   STATS BAR — FINAL AUTHORITATIVE LAYOUT
   This block sits at end of file, highest specificity, wins all conflicts
   ============================================================ */

/* Desktop (>1024px): single row of 5 */

/* Tablet AND mobile (≤1024px): 2x2 grid + full-width 5th */
@media (max-width: 1024px) {
  .stats-bar { padding: 28px 0 !important; }

  /* Hide dividers so they don't occupy grid cells */

  /* All 5 cards identical sizing */

  /* Explicit grid placement — HTML order: 11+, 3, 5, 6 Days, 5.0 */
  /* Layout target:
     [11+]     [6 Days]
     [3]       [5]
     [-- 5.0 spans full width --] */ /* 11+ */ /* 3 */ /* 5 */ /* 6 Days */
}

/* ============================================================
   HERO SCROLL — push down so it doesn't overlap buttons
   in the in-between viewport size (tablet)
   ============================================================ */
@media (max-width: 1100px) and (min-width: 769px) {
  .hero-scroll {
    bottom: 16px !important;
  }
  .hero-content {
    padding-bottom: 130px !important;
  }
}
@media (max-width: 768px) {
  .hero-content {
    padding-bottom: 110px !important;
  }
  .hero-scroll {
    bottom: 18px !important;
  }
}


/* ============================================================
   STATS BAR — SINGLE AUTHORITATIVE RULE
   This is the ONLY responsive stats rule. All others removed.
   ============================================================ */

/* Mobile + Tablet + Half-screen (≤1100px): 2x2 grid + full-width 5th */
@media (max-width: 1100px) {
  .stats-bar { padding: 28px 0; }
  .stats-bar-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 5% !important;
    box-sizing: border-box !important;
  }
  /* Hide dividers (would occupy grid cells) */
  .stats-bar-inner .stat-divider,
  .stat-divider { display: none !important; }

  /* All cards uniform */
  .stats-bar-inner .stat-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 22px 12px;
    text-align: center;
    min-height: 110px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex: none !important;
  }

  /* Explicit grid placement (HTML order: 11+, 3 Coaches, 5 Disc, 6 Days, 5.0) */
  /* Target layout:
     [11+]        [6 Days]
     [3 Coaches]  [5 Disc]
     [---- 5.0 (full width) ----] */
  .stats-bar-inner .stat-item:nth-of-type(1) { grid-column: 1 !important; grid-row: 1 !important; }
  .stats-bar-inner .stat-item:nth-of-type(2) { grid-column: 1 !important; grid-row: 2 !important; }
  .stats-bar-inner .stat-item:nth-of-type(3) { grid-column: 2 !important; grid-row: 2 !important; }
  .stats-bar-inner .stat-item:nth-of-type(4) { grid-column: 2 !important; grid-row: 1 !important; }
  .stats-bar-inner .stat-item:nth-of-type(5) {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }
}

/* Small phones (≤480px): smaller text */
@media (max-width: 480px) {
  .stats-bar-inner { gap: 0.7rem !important; max-width: 100% !important; }
  .stats-bar-inner .stat-item { min-height: 95px !important; padding: 16px 8px !important; }
  .stat-number { font-size: 1.8rem !important; }
  .stat-label { font-size: 0.65rem !important; }
}

/* ============================================================
   HERO CYCLING WORD (premium animated word swap)
   ============================================================ */
.word-cycle {
  display: inline-block;
  position: relative;
  font-style: italic;
  color: var(--green-light);
  white-space: nowrap;
  vertical-align: bottom;
}
.word-cycle-track {
  display: inline-block;
  position: relative;
  transition: width 0.7s var(--ease-out-expo);
  will-change: width;
}
.word-cycle-current {
  display: inline-block;
  animation: wordCycleIn 0.75s var(--ease-out-expo) both;
  will-change: transform, opacity, filter;
}
.word-cycle-current.exiting {
  animation: wordCycleOut 0.55s var(--ease-out-expo) both;
}
@keyframes wordCycleIn {
  0%   { opacity: 0; transform: translateX(-40px); filter: blur(10px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0);     filter: blur(0); }
}
@keyframes wordCycleOut {
  0%   { opacity: 1; transform: translateX(0);    filter: blur(0); }
  100% { opacity: 0; transform: translateX(30px); filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .word-cycle-current,
  .word-cycle-current.exiting { animation: none !important; }
  .word-cycle-track { transition: none !important; }
}

/* ============================================================
   SPOTLIGHT EFFECT (cursor-tracking glow on cards)
   Pure CSS via custom props set by JS — gracefully degrades
   ============================================================ */
.class-card,
.coach-card,
.review-card,
.pricing-card,
.pass-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.class-card::before,
.coach-card::before,
.review-card::before,
.pricing-card::before,
.pass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(143, 168, 78, 0.18),
    rgba(143, 168, 78, 0.06) 25%,
    transparent 60%
  );
}
.class-card:hover::before,
.coach-card:hover::before,
.review-card:hover::before,
.pricing-card:hover::before,
.pass-card:hover::before {
  opacity: 1;
}
/* Make sure card content stays above the glow layer */
.class-card > *,
.coach-card > *,
.review-card > *,
.pricing-card > *,
.pass-card > * {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .class-card::before,
  .coach-card::before,
  .review-card::before,
  .pricing-card::before,
  .pass-card::before {
    display: none;
  }
}

/* ============================================================
   MAGNETIC HOVER (primary CTAs only)
   JS sets --mag-x / --mag-y; CSS composes the final transform
   so it doesn't fight with :hover translateY
   ============================================================ */
.btn-primary.is-magnetic {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition: transform 0.4s var(--ease-out-expo),
              background var(--transition-spring),
              color var(--transition-spring),
              border-color var(--transition-spring),
              box-shadow var(--transition-spring);
}
/* Override the default hover translateY so magnetic transform stays clean.
   The lift is achieved by JS adding negative Y to --mag-y on hover. */
.btn-primary.is-magnetic:hover {
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
}
/* Tactile press still wins — uses !important so it overrides above */
.btn-primary.is-magnetic:active {
  transform: translate3d(var(--mag-x), calc(var(--mag-y) + 1px), 0) scale(0.97) !important;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary.is-magnetic {
    --mag-x: 0px !important;
    --mag-y: 0px !important;
  }
}

/* ============================================================
   MARQUEE STRIP (continuous brand band)
   ============================================================ */
.marquee {
  width: 100%;
  background: var(--black);
  border-top: 1px solid rgba(143, 168, 78, 0.15);
  border-bottom: 1px solid rgba(143, 168, 78, 0.15);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem; /* keeps spacing between repeated content blocks */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-content > span {
  display: inline-block;
}
.marquee-sep {
  color: rgba(143, 168, 78, 0.45);
  font-size: 0.85em;
  display: inline-block;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
  /* When motion is off, keep just the first copy visible at the start */
  .marquee-content + .marquee-content {
    display: none;
  }
}
@media (max-width: 768px) {
  .marquee { padding: 14px 0; }
  .marquee-content { gap: 1.8rem; padding-right: 1.8rem; }
  .marquee-track { animation-duration: 24s; }
}

/* ============================================================
   NUMBER MORPHING (rolling digits in stats bar)
   Each digit position is a column with a vertical strip 0-9
   inside that translates to land on the target digit.
   ============================================================ */
.num-roll {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  /* Inherits font-size and color from .stat-number parent */
}
.num-digit {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  width: 0.62em; /* tabular-ish width so digits don't shift */
  text-align: center;
  position: relative;
  vertical-align: baseline;
}
.num-digit-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 1.8s var(--ease-out-expo);
  will-change: transform;
}
.num-digit-strip > span {
  height: 1em;
  line-height: 1;
  display: block;
}
.num-static {
  display: inline-block;
  /* Periods, plus signs, words like "Days", and the star all sit static */
}
/* Star rating: smaller, matches original 1.2rem-with-2.5rem-number ratio */
.num-static-star {
  font-size: 0.48em;
  margin-left: 0.1em;
  vertical-align: 0.15em;
}
/* "Days" / "Per Week" type suffixes: smaller too, with a tiny gap */
.num-static:not(.num-static-star) {
  /* Default suffix sizing stays parent-relative */
}
@media (prefers-reduced-motion: reduce) {
  .num-digit-strip {
    transition: none !important;
  }
}
