/* ==========================================================================
   Home page
   Loaded after styles.css (global: colors, header, footer, buttons, shared parts)
   ========================================================================== */
/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: min(86vh, 890px);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 64px) 0 clamp(56px, 7vw, 96px);
    background: var(--secondary);
}

/* Background: your photo on top, styled fallback underneath */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    url('../images/hero.jpg') 72% 0% / cover no-repeat,
    var(--secondary);
  transform: scale(1.06);
  transform-origin: 72% 0%;
  animation: heroZoom 14s ease-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 25%);
}

.hero__inner {
  position: relative;
}
.hero__content {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(38px, min(6.2vw, 9.5vh), 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: clamp(14px, 2.8vh, 28px);
}
.hero__title .line {
  display: block;
}
.hero__title .line--accent {
  position: relative;
  width: fit-content;
}

.hero__text {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: clamp(20px, 4vh, 40px);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 2.8vh, 28px);
  max-width: 640px;
}
.hero__features li {
  flex: 1 1 160px;
  padding: 4px 24px;
  border-left: 1px solid var(--line);
}
.hero__features li:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero__features strong {
  display: block;
  font-size: clamp(18px, 2.4vh, 22px);
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
}
.hero__features strong::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary);
  transform: skewX(-28deg);
  margin-right: 10px;
  vertical-align: middle;
}
.hero__features span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
@media (max-width: 720px) {
  .hero {
    min-height: 600px;
  }
  .hero__bg {
    background-position: 62% 0%;
  }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.97) 100%);
  }
  .hero__text {
    font-size: 16px;
  }
  .hero__features li {
    flex: 1 1 0;
    padding: 0 10px;
  }
  .hero__features strong {
    font-size: 15px;
    white-space: normal;
  }
  .hero__features strong::before {
    display: none;
  }
  .hero__features span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   AMENITIES SLIDER
   ========================================================= */
.amenities {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--secondary);
  overflow: hidden;
}

.amenities__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-bottom: 48px;
}
.amenities__title {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.amenities__aside {
  max-width: 400px;
}
.amenities__aside p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Slider: filmstrip of panels, one open at a time */
.amenities__slider {
  --cw: 76px; /* closed panel width */
  --aw: 520px; /* open panel width */
  --gap: 12px;
  position: relative;
  overflow: hidden;
  outline: none;
}
.amenities__slider:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
}
.amenities__track {
  display: flex;
  gap: var(--gap);
  height: clamp(380px, 52vh, 470px);
  transition: transform 0.8s var(--ease);
  will-change: transform;
}

.amenity {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--secondary-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    flex-grow 0.8s var(--ease),
    border-color 0.4s,
    background-color 0.4s;
}
.amenity:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.amenity.is-active {
  flex-grow: 2.6;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Photo (optional per amenity) */
.amenity__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) brightness(0.5);
  transform: scale(1.08);
  transition:
    filter 0.7s var(--ease),
    transform 1.2s var(--ease);
}
.amenity:hover .amenity__img {
  filter: grayscale(0.6) brightness(0.6);
}
.amenity.is-active .amenity__img {
  filter: none;
  transform: scale(1);
}
.amenity::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
}

/* Closed tab */
.amenity__tab {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 2.4vw, 32px);
  text-align: left;
  transition: opacity 0.3s;
}
.amenity__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.amenity__tab::after {
  content: '+';
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 22px;
  font-weight: 400;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.amenity:hover .amenity__tab::after {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
.amenity.is-active .amenity__tab {
  opacity: 0;
  pointer-events: none;
}
.amenity__tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}

/* Open content */
.amenity__body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: var(--aw);
  max-width: 100%;
  padding: clamp(24px, 3vw, 44px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease);
  pointer-events: none;
}
.amenity.is-active .amenity__body {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
  pointer-events: auto;
}
.amenity__body h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.amenity__body p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  max-width: 460px;
}
.amenity__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
}
.amenity__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.amenity__link:hover svg {
  transform: translateX(4px);
}

/* Autoplay timer line on the open panel */
.amenity__progress {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  height: 3px;
  width: 0;
  background: #6e6e73;
}
.amenity.is-active .amenity__progress {
  animation: amenityProgress var(--autoplay, 5s) linear forwards;
}
.amenities__slider.is-paused .amenity__progress {
  animation-play-state: paused;
}

/* Controls */
.amenities__controls {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}
.amenities__count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.amenities__count strong {
  font-size: 28px;
  font-weight: 700;
}
.amenities__count span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.amenities__bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}
.amenities__bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16.66%;
  background: var(--white);
  transition:
    left 0.6s var(--ease),
    width 0.6s var(--ease);
}
.amenities__arrows {
  display: flex;
  gap: 10px;
}
.arrow-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  transition:
    background 0.25s,
    border-color 0.25s;
}
.arrow-btn:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.arrow-btn--primary {
  background: #2e2e31;
  border-color: #2e2e31;
}
.arrow-btn--primary:hover {
  background: #404044;
  border-color: #404044;
}
.arrow-btn svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  .amenities__slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 0 24px;
    scroll-padding: 0 24px;
  }
  .amenities__slider::-webkit-scrollbar {
    display: none;
  }
  .amenities__track {
    transform: none !important;
    height: 400px;
  }
  .amenity,
  .amenity.is-active {
    flex: 0 0 min(72vw, 320px);
    scroll-snap-align: start;
    cursor: default;
  }
  .amenity .amenity__img {
    filter: none;
    transform: none;
  }
  .amenity__tab {
    display: none;
  }
  .amenity__body,
  .amenity.is-active .amenity__body {
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 24px;
  }
  .amenity__body h3 {
    font-size: 26px;
  }
  .amenity__body p {
    font-size: 15px;
  }
  .amenity__progress {
    display: none;
  }
  .amenities__head {
    margin-bottom: 32px;
  }
}
@media (max-width: 600px) {
  .amenities__controls {
    gap: 16px;
  }
  .arrow-btn {
    width: 48px;
    height: 48px;
  }
}

/* =========================================================
   FITNESS JOURNEY — hover tabs with changing background
   ========================================================= */
.journey {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: var(--secondary);
}

.journey__bgs {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.journey__bg {
  position: absolute;
  inset: 0;
  background:
    var(--img) center / cover no-repeat,
    var(--secondary-2);
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.9s var(--ease),
    transform 6s ease-out;
}
.journey__bg.is-active {
  opacity: 1;
  transform: scale(1);
}
.journey__bg--classes {
  --img: url('../images/journey-classes.jpg');
  background-position: 60% 40%;
}
.journey__bg--training {
  --img: url('../images/journey-training.jpg');
  background-position: 40% 30%;
}
.journey__bg--wellness {
  --img: url('../images/journey-wellness.jpg');
  background-position: 50% 50%;
}

/* Placeholder look until photos are added */
.journey__bg.is-empty {
  background: var(--secondary-2);
}
.journey__bg.is-empty::after {
  content: attr(data-word);
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}

.journey__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 55%);
}

.journey__inner {
  display: flex;
  flex-direction: column;
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.journey__head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.journey__title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.journey__sub {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Tabs (vertical list on the left) + content on the right */
.journey__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.journey__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.journey__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-align: left;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.4s var(--ease),
    color 0.3s,
    padding 0.4s var(--ease);
}
.journey__tab-label {
  flex: 1;
}
.journey__tab::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
.journey__tab-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.journey__tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.journey__tab.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-left: 30px;
}
.journey__tab.is-active::after {
  opacity: 1;
  transform: none;
}
.journey__tab.is-active .journey__tab-bar {
  transform: scaleY(1);
}
.journey__tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Panels */
.journey__panels {
  position: relative;
  max-width: 560px;
}
.journey__panel h3,
.journey__panel p {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.journey__panel h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.journey__panel p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.journey__panel.is-active {
  animation: panelIn 0.7s var(--ease) both;
}
.journey__panel.is-active h3 {
  animation: panelIn 0.6s 0.05s var(--ease) both;
}
.journey__panel.is-active p {
  animation: panelIn 0.6s 0.12s var(--ease) both;
}
.journey__panel.is-active .btn {
  animation: panelIn 0.6s 0.2s var(--ease) both;
}
@media (max-width: 860px) {
  .journey__inner {
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .journey__body {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 0;
  }
  .journey__tab {
    min-height: 64px;
    padding: 14px 18px;
    font-size: 14px;
  }
  .journey__tab.is-active {
    padding-left: 24px;
  }
  .journey__panel p {
    font-size: 16px;
  }
  .journey__bg.is-empty::after {
    font-size: 120px;
    bottom: 0;
  }
}
@media (max-width: 600px) {
  .journey__panel .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   TRAIN YOUR WAY — centered CTA over image / video
   ========================================================= */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 80vh, 760px);
  padding: clamp(96px, 12vw, 140px) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--secondary);
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cta-img, url('../images/cta.jpg')) center 40% / cover no-repeat;
  transform: scale(1.06);
  animation: ctaDrift 18s ease-in-out infinite alternate;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__eyebrow {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.cta__title {
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.cta__text {
  max-width: 620px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 600px) {
  .cta__buttons {
    width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cta__buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 14px 10px;
    min-height: 52px;
    font-size: 15px;
  }
}

/* Journey panel buttons use the same yellow as the Search button */
.journey__panel .btn {
  background: #ebbe4d;
  color: #000000;
}
.journey__panel .btn:hover {
  background: #d9a936;
}

