/* ============================================================
   SWEAT440 V2 ADDITIONS — overrides + new components
   David's feedback round 1 — May 19, 2026
   ============================================================ */

/* Inline SVG icons (replaces the Material Icons webfont on index.html —
   126KB of font for ~13 glyphs). Sits alongside the existing
   `.material-icons` selectors below: those still set font-size/color per
   context, this just turns that font-size into the SVG's box size. */
.material-icons.icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ----------------------------------------------------------------
   HEADER — Blue brand version (per adjustment #1)
---------------------------------------------------------------- */
.header--blue {
  background-color: var(--blue-intensity);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header--blue .header__logo,
.header--blue .header__nav-link {
  color: var(--white);
}

.header--blue .header__nav-link::after {
  background-color: var(--white);
}

.header--blue .header__nav-link.active,
.header--blue .header__nav-link:hover {
  color: var(--white);
}

.header--blue .header__cta {
  background-color: var(--white);
  color: var(--black-barbell);
}

.header--blue .header__mobile-toggle span {
  background-color: var(--white);
}

/* ----------------------------------------------------------------
   SECTION HEADER LABEL — blue variant (fix green-on-white legibility)
---------------------------------------------------------------- */
.section-header__label--blue {
  color: var(--blue-intensity) !important;
}

/* ----------------------------------------------------------------
   HERO V3 — Split layout (mobile-first per David's mock)
   Mobile: image panel above + dark block below
   Desktop: full image with side fade + copy on left
---------------------------------------------------------------- */
:root {
  --hero-dark: #061322; /* deep navy/black for mobile dark block */
}

.hero-v3 {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hero-dark);
}

/* ---- MEDIA PANEL ---- */
.hero-v3__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--hero-dark);
}

/* Mobile rotator container */
.hero-v3__media-mobile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero-v3__mobile-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-v3__mobile-slide.is-active { opacity: 1; }

/* Desktop image hidden on mobile */
.hero-v3__media-desktop { display: none; }

/* ---- COPY BLOCK ---- */
.hero-v3__block {
  background: var(--hero-dark);
  padding: var(--space-xl) 0 var(--space-2xl);
  position: relative;
}

.hero-v3__copy {
  color: var(--white);
}

.hero-v3__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: var(--space-md);
}

.hero-v3__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  font-size: clamp(2.75rem, 9vw, 4rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero-v3__subtitle {
  color: var(--white);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.hero-v3__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-v3__ctas .btn {
  width: 100%;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--hero-dark);
}

.hero-v3__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid rgba(255, 255, 255, 0.85);
  margin-top: var(--space-sm);
}

.hero-v3__stat .material-icons {
  color: var(--white);
  font-size: 1.35rem;
}

/* ----------------------------------------------------------------
   SECTION 2 — PROBLEM (redesigned mobile-first, blue accents)
---------------------------------------------------------------- */
.section--problem {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Mobile: slide horizontally instead of stacking (matches the "We've Got
   You" carousel pattern) so all 3 cards stay reachable without long
   vertical scrolling. Desktop restores the 3-up grid below. */
.problem-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 var(--space-sm);
}

.problem-grid::-webkit-scrollbar {
  display: none;
}

.problem-grid .problem-card {
  flex: 0 0 82%;
  scroll-snap-align: center;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-intensity);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-intensity);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.problem-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 127, 173, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.problem-card__icon .material-icons {
  font-size: 2.25rem;
  color: var(--blue-intensity);
}

.problem-card__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--black-barbell);
  margin-bottom: var(--space-sm);
}

.problem-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-routine);
}

/* ----------------------------------------------------------------
   SECTION 3 — GUIDE (unified blue + video bg + mobile carousel)
---------------------------------------------------------------- */
.section--guide {
  position: relative;
  background: var(--black-barbell);
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.section--guide__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.35;
  filter: grayscale(40%) contrast(1.05);
  mix-blend-mode: luminosity;
}

.section--guide__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(11, 5, 0, 0.92) 100%),
    radial-gradient(circle at 50% 0%, rgba(0, 127, 173, 0.25), transparent 60%);
}

.section--guide .container {
  position: relative;
  z-index: 3;
}

/* Guide carousel — mobile: 1 card per view + dots, desktop: 4-col grid */
.guide-carousel {
  position: relative;
}

.guide-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  scroll-behavior: smooth;
}

.guide-carousel__track::-webkit-scrollbar { display: none; }

.guide-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  backdrop-filter: blur(6px);
}

.guide-card:hover {
  transform: translateY(-4px);
  background: rgba(0, 127, 173, 0.12);
  border-color: var(--blue-intensity);
}

.guide-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-intensity);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.guide-card__icon .material-icons {
  font-size: 2rem;
  color: var(--white);
}

.guide-card__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.guide-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.guide-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.guide-dot.is-active {
  background: var(--blue-intensity);
  width: 28px;
  border-radius: 5px;
}

/* Problem + Plan + Membership tiers/benefits carousels sit on light
   backgrounds, so the dots use the same light-bg treatment as the
   member-stories / reviews carousels. */
.problem-carousel__dots,
.plan-carousel__dots,
.tiers-carousel__dots,
.benefits-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.problem-dot,
.plan-dot,
.tier-dot,
.benefit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.problem-dot.is-active,
.plan-dot.is-active,
.tier-dot.is-active,
.benefit-dot.is-active {
  background: var(--blue-intensity);
  width: 28px;
  border-radius: 5px;
}

/* ----------------------------------------------------------------
   WORKOUT — 10-min reinforcement badge (adjustment #8)
---------------------------------------------------------------- */
.workout-tenmin-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--blue-intensity);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  margin: var(--space-md) auto var(--space-xl);
  box-shadow: 0 10px 24px rgba(0, 127, 173, 0.30);
  max-width: 100%;
}

.workout-tenmin-badge__icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--blue-intensity);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workout-tenmin-badge__icon .material-icons {
  font-size: 1.4rem;
}

.workout-tenmin-badge__copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.workout-tenmin-badge__copy strong {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

.workout-tenmin-badge__copy span {
  font-size: 0.85rem;
  opacity: 0.92;
}

.content-row__eyebrow {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-style: italic;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-intensity);
  background: rgba(0, 127, 173, 0.10);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.content-row__tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--blue-intensity);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ----------------------------------------------------------------
   MEMBERSHIP — value stats (fix green-on-white legibility)
---------------------------------------------------------------- */
.value-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.value-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  border-top: 4px solid var(--blue-intensity);
}

.value-stat__number {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue-intensity);
  line-height: 1;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.value-stat__label {
  font-size: 0.95rem;
  color: var(--gray-routine);
  font-weight: 500;
}

/* ----------------------------------------------------------------
   SECTION 7 — STAKES (icon + ticker)
---------------------------------------------------------------- */
.section--stakes {
  position: relative;
  clip-path: inset(0);
  padding-bottom: 0;
}

.stakes-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(0, 119, 255, 0.08);
  border: 2.5px solid var(--blue-intensity);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.stakes-icon .material-icons {
  font-size: 2.6rem;
  color: var(--blue-intensity);
}

/* Headline: bold italic, uppercase, white (mockup) */
.stakes-title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0 auto var(--space-lg);
  max-width: 16ch;
}

/* Body copy */
.stakes-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto var(--space-md);
}

/* CTA wrapper spacing */
.stakes-cta {
  margin-top: var(--space-lg);
}

/* White CTA — dark/blue background sections (mockup) */
.btn--white {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.05rem 2.2rem;
  border-radius: 4px;
  display: inline-block;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.btn--white:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

/* Stakes visual — full-bleed image after CTA, before ticker */
.stakes-visual {
  margin-top: var(--space-2xl);
  width: 100%;
  height: 520px;
  max-height: 520px;
  clip-path: inset(0);
  position: relative;
}
.stakes-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 520px;
}

/* Desktop: the photo is pinned to the viewport (background-attachment: fixed)
   so the section scrolls over it like a window, instead of the photo
   scrolling with the page. The <img> stays in the DOM for alt text/SEO but
   is hidden — the CSS background renders the actual visual. */
@media (min-width: 769px) {
  .stakes-visual {
    background-image: url('../assets/images/hero/sweat440-members-training-together.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  .stakes-visual img {
    position: absolute;
    inset: 0;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .stakes-title { font-size: clamp(1.75rem, 7vw, 2.4rem); max-width: 14ch; }
  .stakes-text { font-size: 1rem; }
  .stakes-visual { height: 360px; max-height: 360px; margin-top: var(--space-xl); }
  .stakes-visual img { max-height: 360px; }
  .btn--white { padding: 0.95rem 1.6rem; font-size: 0.95rem; }
}

.ticker {
  margin-top: 0;
  background: var(--blue-intensity);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.9rem 0;
}

.ticker__track {
  display: inline-flex;
  gap: var(--space-md);
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker__item {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--white);
}

.ticker__dot {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.5rem;
  align-self: center;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   SECTION 8 — MEMBER STORIES (carousel on mobile, grid on desktop)
---------------------------------------------------------------- */
.member-stories {
  position: relative;
}

.member-stories__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  scroll-behavior: smooth;
}

.member-stories__track::-webkit-scrollbar { display: none; }

.member-story {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-mid);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.member-story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.member-story__video {
  aspect-ratio: 9 / 16;
  background: var(--black-barbell);
  overflow: hidden;
}

.member-story__video video,
.member-story__video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.member-story__play {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.member-story__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-story__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-intensity);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-base);
}

.member-story__play-icon::before {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
}

.member-story__play:hover .member-story__play-icon,
.member-story__play:focus-visible .member-story__play-icon {
  transform: translate(-50%, -50%) scale(1.08);
}

.member-story__body {
  padding: var(--space-md);
}

.member-story__headline {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--blue-intensity);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.member-story__hook {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-routine);
  margin-bottom: var(--space-sm);
}

.member-story__studio {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-routine);
}

.member-story__studio .material-icons {
  font-size: 1rem;
  color: var(--blue-intensity);
}

.member-stories__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.member-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.member-dot.is-active {
  background: var(--blue-intensity);
  width: 28px;
  border-radius: 5px;
}

/* ----------------------------------------------------------------
   SECTION 8 — WRITTEN REVIEWS CAROUSEL
---------------------------------------------------------------- */
.reviews-carousel {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.reviews-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  scroll-behavior: smooth;
}

.reviews-carousel__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.review-card__stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: var(--space-sm);
}

.review-card__stars .material-icons {
  color: var(--blue-intensity);
  font-size: 1.35rem;
}

.review-card__quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black-barbell);
  font-style: italic;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gray-mid);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.review-card__source {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-intensity);
}

.review-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--gray-routine);
}

.review-card__location .material-icons {
  font-size: 1rem;
  color: var(--blue-intensity);
}

.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.review-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.review-dot.is-active {
  background: var(--blue-intensity);
  width: 26px;
  border-radius: 5px;
}

/* ----------------------------------------------------------------
   SECTION 8 — Google Rating Widget (now at the bottom)
---------------------------------------------------------------- */
.reviews-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--gray-mid);
}

.reviews-widget__shield {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-intensity);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.reviews-widget__shield img {
  width: 34px;
  height: 34px;
}

.reviews-widget__body { margin-top: var(--space-xs); }

.reviews-widget__stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-mid);
}

.reviews-widget__stars .material-icons {
  color: var(--blue-intensity);
  font-size: 2rem;
}

.reviews-widget__score {
  margin-left: 0.5rem;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--blue-intensity);
  line-height: 1;
}

.reviews-widget__count {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--black-barbell);
  font-weight: 500;
}

.reviews-widget__count strong {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  color: var(--blue-intensity);
  font-size: 1.5rem;
  margin-right: 0.25rem;
}

/* ----------------------------------------------------------------
   FINAL CTA — OT-style locator on-brand (adjustment #5)
---------------------------------------------------------------- */
.final-cta {
  background: var(--blue-intensity);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}

.final-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.final-cta__copy {
  color: var(--white);
}

.final-cta__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.final-cta__text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 540px;
  color: var(--white);
}

.final-cta__text strong {
  font-weight: 700;
}

.final-cta__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.final-cta__microcopy {
  font-size: 0.9rem;
  opacity: 0.92;
  color: var(--white);
}

/* Centered variant — single-column "Start Your Free Class" CTA used on
   Home / Workout / Membership / Contact Us. Keeps the default two-column
   .final-cta__inner (with .studio-locator) intact for FAQ and the
   per-studio gym pages, which still use that layout. */
.final-cta__inner.final-cta__inner--centered {
  /* Double-class selector so this beats the ≥768px two-column override
     below (equal specificity, but that rule sits later in the cascade). */
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.final-cta__inner--centered .final-cta__text,
.final-cta__inner--centered .final-cta__ctas {
  margin-left: auto;
  margin-right: auto;
}

.final-cta__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.final-cta__checklist {
  display: inline-block;
  text-align: left;
  margin: 0 auto var(--space-lg);
}

.final-cta__checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  color: var(--white);
  font-size: 0.95rem;
}

.final-cta__checklist .material-icons {
  color: var(--white);
  font-size: 1.15rem;
}

.final-cta__studio-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-sm);
}

.final-cta__select {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

/* Studio-page widget panel — wraps the live MindBody ProspectScheduling
   iframe (main_pages/gyms/*.html final CTA). The iframe itself is
   cross-origin and can't be restyled, so overflow:hidden on this wrapper
   clips it to rounded corners instead. */
.b-widget-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Embedded HubSpot form — full container width, HubSpot's own embed CSS
   caps the fieldset at a fixed px value, so override it to stretch. */
.final-cta__form {
  width: 100%;
}

.final-cta__form .hs-form,
.final-cta__form .hs-form fieldset {
  width: 100%;
  max-width: 100% !important;
}

/* Studio Locator — OT-style */
.studio-locator {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.studio-locator__panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.studio-locator__label {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--blue-intensity);
  margin-bottom: var(--space-sm);
}

.studio-locator__form {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--gray-mid);
  padding-bottom: var(--space-xs);
}

.studio-locator__icon {
  color: var(--gray-routine);
  margin-right: 0.5rem;
}

.studio-locator__form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--black-barbell);
  outline: none;
  min-width: 0;
}

.studio-locator__form input::placeholder {
  color: #a09faa;
}

.studio-locator__form button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-intensity);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.studio-locator__form button:hover {
  background: var(--blue-dark);
  transform: translateX(2px);
}

.studio-locator__use-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-intensity);
  background: transparent;
}

.studio-locator__use-location .material-icons {
  color: var(--blue-intensity);
  font-size: 1.1rem;
}

.studio-locator__heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-xs);
}

.studio-locator__pin {
  font-size: 1.1rem;
}

.studio-locator__city {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-routine);
}

.studio-locator__name {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--black-barbell);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.studio-locator__address {
  font-size: 0.95rem;
  color: var(--gray-routine);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.studio-locator__phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--gray-routine);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-mid);
  margin-bottom: var(--space-sm);
}

.studio-locator__phone .material-icons {
  font-size: 1rem;
  color: var(--gray-routine);
}

.studio-locator__offer {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--black-barbell);
  margin-bottom: var(--space-md);
}

.studio-locator__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}

.studio-locator__btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 50px;
}

.studio-locator__btn.btn--primary {
  background: var(--blue-intensity);
  color: var(--white);
}

.studio-locator__btn.btn--primary:hover {
  background: var(--blue-dark);
}

.studio-locator__btn.btn--outline-dark {
  background: transparent;
  color: var(--black-barbell);
  border: 1.5px solid var(--blue-intensity);
}

.studio-locator__btn.btn--outline-dark:hover {
  background: var(--blue-intensity);
  color: var(--white);
}

.studio-locator__member {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-routine);
  margin: 0;
}

.studio-locator__app-link {
  text-decoration: underline;
  color: var(--blue-intensity);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   RESPONSIVE — DESKTOP (≥768px)
---------------------------------------------------------------- */
@media (min-width: 768px) {

  /* ---- HERO V3 DESKTOP ---- */
  .hero-v3 {
    position: relative;
    flex-direction: row;
    height: 88vh;
    min-height: 600px;
    max-height: 820px;
    overflow: hidden;
  }

  .hero-v3__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  .hero-v3__media-mobile { display: none; }

  .hero-v3__media-desktop {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .hero-v3__desktop-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .hero-v3__desktop-slide.is-active { opacity: 1; }

  /* Additional left-side gradient for extra text legibility on top of the pre-treated image */
  .hero-v3__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 19, 34, 0.85) 0%, rgba(6, 19, 34, 0.35) 35%, rgba(6, 19, 34, 0) 60%);
    pointer-events: none;
  }

  .hero-v3__block {
    position: relative;
    z-index: 2;
    background: transparent;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .hero-v3__copy {
    max-width: var(--container-content);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
  }

  .hero-v3__copy > * {
    max-width: 600px;
  }

  .hero-v3__title {
    font-size: clamp(3rem, 6vw, 4.75rem);
  }

  .hero-v3__ctas {
    grid-template-columns: auto auto;
    justify-content: flex-start;
  }

  .hero-v3__ctas .btn {
    width: auto;
    min-width: 180px;
  }

  /* Problem: 3 columns */
  .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .problem-grid .problem-card {
    flex: none;
  }

  .problem-carousel__dots { display: none; }

  /* Guide: switch from carousel to grid */
  .guide-carousel__track {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .guide-card {
    flex: 1;
    scroll-snap-align: none;
  }

  .guide-carousel__dots { display: none; }

  /* Plan: back to the 3-col grid, matching .steps' own base (desktop)
     rule in styles.css */
  .steps {
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .step {
    flex: 1;
    scroll-snap-align: none;
  }

  .plan-carousel__dots { display: none; }

  /* Membership tiers + benefits: back to the 3-col grid */
  .card-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .card-grid--3 > * {
    flex: none;
    max-width: none;
  }

  .tiers-carousel__dots,
  .benefits-carousel__dots {
    display: none;
  }

  /* Tiers grid is reordered in the DOM so mobile opens on the featured
     "Unlimited Monthly" card — restore Limited / Unlimited / Yearly order
     for the desktop grid. */
  .tiers-grid > :nth-child(1) { order: 2; }
  .tiers-grid > :nth-child(2) { order: 1; }
  .tiers-grid > :nth-child(3) { order: 3; }

  /* Member stories: 3 col grid */
  .member-stories__track {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }

  .member-story { flex: 1; scroll-snap-align: none; }

  .member-stories__dots { display: none; }

  /* Value stats: 3 col */
  .value-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Final CTA 2 cols */
  .final-cta__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
  }

  .studio-locator__ctas {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .final-cta__inner { gap: var(--space-2xl); }
}

/* ----------------------------------------------------------------
   RESPONSIVE — MOBILE (≤767px)
---------------------------------------------------------------- */
@media (max-width: 767px) {

  /* Section paddings tighter */
  .section--problem,
  .section--guide,
  .section { padding: var(--space-xl) 0; }

  .workout-tenmin-badge {
    flex-direction: row;
    padding: 0.75rem 1rem;
  }

  .workout-tenmin-badge__copy strong { font-size: 0.92rem; }
  .workout-tenmin-badge__copy span { font-size: 0.78rem; }

  /* Header on mobile — open list overlays */
  .header__nav-list {
    background: var(--blue-intensity);
  }
}

/* ============================================================
   FOOTER — Cyan + blue accent bar (mockup)
   ============================================================ */
.footer-accent {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.footer-accent__cyan {
  height: 14px;
  background-color: #00C4F5;
}
.footer-accent__blue {
  height: 3px;
  background-color: var(--blue-dark);
}

/* ============================================================
   FOOTER — 4-column layout overrides
   (refines the base .footer in styles.css)
   ============================================================ */
.footer {
  background-color: #0A0A0A;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

/* Logo with shield-S between SWEAT and 440 */
.footer__logo--shield {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-style: normal;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.footer__logo-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-style: normal;
  font-size: 1.65rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer__logo-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__logo-shield svg {
  display: block;
}

/* Tagline */
.footer__tagline {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* Section headings — italic uppercase white */
.footer__heading {
  font-family: var(--font-headline);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 var(--space-md);
}

/* Links */
.footer__link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  display: block;
  transition: color 0.2s ease;
}
.footer__link:hover {
  color: var(--white);
}

/* Contact items */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.6rem;
}
.footer__contact-item .material-icons {
  font-size: 1.15rem;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* App store badges */
.footer__app-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}
.footer__app-badges img {
  height: 38px;
  width: auto;
  display: block;
}

/* Socials — circles with white border */
.footer__socials {
  display: flex;
  gap: 0.7rem;
  margin-top: var(--space-md);
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: lowercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer__social-link:hover {
  background: var(--white);
  color: var(--black-barbell);
}

/* Footer bottom: copyright left, legal right */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-md);
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-md);
}
.footer__legal-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}
.footer__legal-links a:hover {
  color: var(--white);
}

/* Responsive: 4 cols → 2 cols (tablet) → 1 col (mobile) */
@media (max-width: 968px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-xl);
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer__legal-links {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* ============================================================
   GYM / LOCATION PAGE HERO — b-hero-v3 (main_pages/gyms/*.html,
   from location-template.html). Rotating photo panel + floating
   "Visit Us" card. Mobile: image above a stacked dark panel.
   Desktop (>=900px): split layout, photo left / copy right.
   Brand rule: white on dark, blue on light — no green/lime outside
   the "Your Plan" offer section, so quicknav/eyebrow use white here.
   ============================================================ */
.b-hero-v3 {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hero-dark);
}

.b-hero-v3__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--hero-dark);
}

.b-hero-v3__media-mobile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.b-hero-v3__mobile-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.b-hero-v3__mobile-slide.is-active { opacity: 1; }

.b-hero-v3__media-desktop { display: none; }

.b-hero-v3__block {
  background: var(--hero-dark);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.b-hero-v3__copy { color: var(--white); }

.b-hero-v3__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.b-hero-v3__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  color: var(--white);
  margin-bottom: var(--space-md);
  max-width: 18ch;
}

.b-hero-v3__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  max-width: 480px;
}

/* VISIT US card — floating white card, blue accents on white per brand rule */
.b-visit-card {
  background: var(--white);
  border-radius: 14px;
  padding: var(--space-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
}

.b-visit-card__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--blue-intensity);
  margin-bottom: var(--space-md);
}

.b-visit-card__address {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--black-barbell);
  font-size: 1.05rem;
  line-height: 1.45;
}
.b-visit-card__address .material-icons {
  color: var(--blue-intensity);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.b-visit-card__phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--space-md);
}
.b-visit-card__phone .material-icons {
  color: var(--blue-intensity);
  font-size: 1.3rem;
}
.b-visit-card__phone a {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--black-barbell);
  text-decoration: underline;
  text-decoration-color: var(--blue-intensity);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.b-visit-card__cta { width: 100%; text-align: center; }

/* QUICK NAV — dark sticky band under hero, white on dark per brand rule */
.b-quicknav {
  background: #0A0A0A;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.b-quicknav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: 1.1rem 0;
  flex-wrap: wrap;
}
.b-quicknav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.2s ease;
}
.b-quicknav__link:hover { color: var(--blue-intensity); }
.b-quicknav__link .material-icons {
  color: var(--white);
  font-size: 1.4rem;
}

@media (max-width: 600px) {
  .b-visit-card { padding: var(--space-md); }
  .b-quicknav__inner { gap: var(--space-lg); }
  .b-quicknav__link span:not(.material-icons) { display: none; }
  .b-quicknav__link { padding: 0.6rem 1rem; }
}

@media (min-width: 768px) {
  .b-hero-v3 {
    flex-direction: row;
    min-height: 88vh;
  }

  .b-hero-v3__media {
    flex: 1 1 55%;
    align-self: stretch;
  }

  .b-hero-v3__media-mobile { display: none; }

  .b-hero-v3__media-desktop {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
  }
  .b-hero-v3__desktop-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .b-hero-v3__desktop-slide.is-active { opacity: 1; }

  .b-hero-v3__block {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: clamp(1.5rem, 5vw, var(--space-2xl));
  }

  .b-hero-v3__copy,
  .b-visit-card { max-width: 480px; }
}

/* ----------------------------------------------------------------
   CAREERS PAGE — job note ("always hiring" apply link under each
   open-positions accordion)
---------------------------------------------------------------- */
.job-note {
  font-size: 0.85rem;
  color: var(--gray-routine);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.job-note a {
  color: var(--blue-intensity);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* CAREERS — Our Team Values pillars */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.value-pillar {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.value-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-intensity);
}

.value-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--blue-intensity);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.value-pillar__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 127, 173, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.value-pillar__icon .material-icons {
  font-size: 2rem;
  color: var(--blue-intensity);
}

.value-pillar__title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--black-barbell);
  margin-bottom: var(--space-sm);
}

.value-pillar__list {
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-routine);
}

.value-pillar__list li {
  padding: 0.2rem 0;
}

@media (min-width: 700px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

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

/* CAREERS — "Apply for a Job" modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  background: var(--black-barbell);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform var(--transition-base);
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.modal__title {
  color: var(--white);
  margin-bottom: var(--space-md);
  padding-right: var(--space-lg);
}

.modal__success {
  color: var(--white);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
}

.modal__success .material-icons {
  font-size: 3rem;
  color: var(--blue-intensity);
  margin-bottom: var(--space-sm);
  display: block;
}

.modal__file {
  color: var(--white);
  font-size: 0.9rem;
}

/* ============================================================
   GYM/LOCATION PAGE CARD GROUPS — .b-card-carousel (About-the-
   -Studio info cards, membership pricing tiers) and .card-grid--7
   (weekly class schedule). Neither had layout CSS: mobile fell
   back to default block stacking (1 column) and desktop never
   restored the intended grid. Mobile: horizontal scroll-snap,
   matching .card-grid--3's established pattern. Desktop (>=768px,
   the site's shared breakpoint): grid.
   ============================================================ */
.b-card-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  padding: 0 0 var(--space-sm);
}
.b-card-carousel__track::-webkit-scrollbar { display: none; }
.b-card-carousel__track > * {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: center;
}

.b-card-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
}
.card-dot.is-active {
  background: var(--blue-intensity);
  width: 28px;
  border-radius: 5px;
}
/* Pricing carousel sits on a blue section background -- white on blue,
   per brand rule, instead of the light-bg blue/gray dot treatment. */
.bg-blue .card-dot { background: rgba(255, 255, 255, 0.35); }
.bg-blue .card-dot.is-active { background: var(--white); }

.card-grid--7 {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--space-md);
  padding: 0 0 var(--space-sm);
}
.card-grid--7::-webkit-scrollbar { display: none; }
.card-grid--7 > * {
  flex: 0 0 80%;
  max-width: 80%;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .b-card-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .b-card-carousel__track > * {
    flex: none;
    max-width: none;
  }
  .b-card-carousel__dots { display: none; }
  /* Presale studios show only the Unlimited Monthly card -- center it
     in the 3-column grid instead of it hugging the left edge. */
  .b-card-carousel__track > .pricing-card--featured:only-child {
    grid-column: 2;
  }

  .card-grid--7 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .card-grid--7 > * {
    flex: none;
    max-width: none;
  }
  /* 7 cards in a 3-column grid -> 3/3/1; center the lone 7th card
     (Sunday) under the two rows above instead of hugging the left edge. */
  .card-grid--7 .b-schedule-day--last {
    grid-column: 2;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE MEDIA SWAP — generic desktop/mobile photo & video toggle
   for real photography delivered as separate crops per breakpoint.
   Pair one element with --desktop and one with --mobile; only one
   renders at a time. Breakpoint matches the site's 768px standard.
---------------------------------------------------------------- */
.responsive-media--mobile { display: block; }
.responsive-media--desktop { display: none; }

@media (min-width: 768px) {
  .responsive-media--mobile { display: none; }
  .responsive-media--desktop { display: block; }
}
