/* ==========================================================================
   About page
   Loaded after styles.css (global: colors, header, footer, buttons, shared parts)
   ========================================================================== */
/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(60vh, 720px);
  display: flex;
  align-items: flex-end;
  /*padding: calc(var(--header-h) + 64px) 0 clamp(48px, 6vw, 80px);*/
  background: var(--secondary);
}
.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/cta.jpg') 55% 40% / cover no-repeat;
}
.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /*background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%),*/
  /*  linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);*/
    background: black;
}
.about-hero__inner {
  width: 100%;
}
.about-hero__title {
  font-size: clamp(42px, 6.6vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.about-hero__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.about-stats li {
  padding: 22px 24px 0 0;
}
.about-stats li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.about-stats strong {
  display: block;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ebbe4d;
  margin-bottom: 8px;
}
.about-stats span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Story */
.story {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
}
.story__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.story__media {
  position: relative;
  padding: 0 12% 12% 0;
}
.story__img {
  background-size: cover;
  background-position: center;
}
.story__img--main {
  aspect-ratio: 4 / 5;
  background-image: url('../images/journey-training.jpg');
  background-position: 40% 30%;
}
.story__img--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  background-image: url('../images/journey-classes.jpg');
  border: 8px solid var(--secondary);
}
.story__media::before {
  content: '';
  position: absolute;
  left: -16px;
  top: -16px;
  width: 38%;
  height: 38%;
  border-left: 3px solid var(--primary);
  border-top: 3px solid var(--primary);
  pointer-events: none;
}
.story__title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.story__text p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}
.story__note {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.value {
  padding: 32px 28px;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease),
    background 0.3s;
}
.value:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #141415;
  transform: translateY(-4px);
}
.value__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #ebbe4d;
  color: #000;
  margin-bottom: 24px;
}
.value__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.value h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.value p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 1100px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .story__top {
    grid-template-columns: 1fr;
  }
  .story__media {
    max-width: 520px;
  }
}
@media (max-width: 560px) {
  .values {
    grid-template-columns: 1fr;
  }
  .about-stats li {
    padding-right: 12px;
  }
  .about-stats li + li {
    padding-left: 14px;
  }
  .about-stats span {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .story__media::before {
    left: -8px;
    top: -8px;
  }
}

/* ==========================================================================
   Inner page banner headings - smaller, consistent size (home hero unchanged)
   ========================================================================== */
.about-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}

/* ==========================================================================
   Trainer roster (data from locations/location-data.js)
   ========================================================================== */
.roster {
  padding: clamp(64px, 7vw, 110px) 0;
  background: #000;
}
.roster__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 32px;
}
.roster__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.roster__head p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
}
.roster__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.roster__filter {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.roster__filter span {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.roster__filter:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.roster__filter.is-active {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.roster__filter.is-active span {
  color: rgba(0, 0, 0, 0.55);
}
.roster__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.roster__card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s;
}
.roster__card:hover {
  border-color: rgba(235, 190, 77, 0.6);
}
.roster__card[hidden] {
  display: none;
}
.roster__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.roster__loc svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}
.roster__loc a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.roster__loc a:hover {
  color: #fff;
}
.roster__card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}
.roster__role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ebbe4d;
  margin-bottom: 12px;
}
.roster__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}
.roster__ig {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.roster__ig svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.roster__ig:hover {
  color: #ebbe4d;
  border-color: #ebbe4d;
}
.roster__empty {
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 1100px) {
  .roster__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .roster__grid {
    grid-template-columns: 1fr;
  }
  .roster__card {
    padding: 22px;
  }
}

/* Trainer photos on the roster cards */
.roster__card {
  padding: 0;
  overflow: hidden;
}
.roster__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(0.15);
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.roster__card:hover .roster__photo {
  transform: scale(1.04);
  filter: none;
}
.roster__body {
  position: relative;
  flex: 1;
  padding: 22px 26px 26px;
  background: #0e0e0f;
}
@media (max-width: 640px) {
  .roster__body {
    padding: 20px 22px 22px;
  }
}

.roster__more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ==========================================================================
   Trainer slider (About page): 4 cards on desktop, swipe on mobile
   ========================================================================== */
.roster__head {
  align-items: center;
}
.roster__arrows {
  display: flex;
  gap: 10px;
}
.roster .arrow-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}
.roster .arrow-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.roster .arrow-btn--primary {
  background: #2e2e31;
  border-color: #2e2e31;
}
.roster .arrow-btn--primary:hover {
  background: #404044;
  border-color: #404044;
}
.roster .arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.roster .arrow-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roster__track {
  --gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  column-gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}
.roster__track::-webkit-scrollbar {
  display: none;
}
.roster__track .roster__card {
  scroll-snap-align: start;
}
@media (max-width: 1100px) {
  .roster__track {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }
}
@media (max-width: 800px) {
  .roster__track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
}
@media (max-width: 560px) {
  .roster__track {
    grid-auto-columns: 82%;
  }
  .roster__arrows {
    display: none;
  }
}
