/* ============ PAGES SHARED — programs / trainers / gallery ============ */

/* Active nav state */
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { width: 100%; }

main.page { padding-top: 80px; }

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  min-height: 60vh;
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(80px, 10vh, 120px);
  display: flex; align-items: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
  filter: grayscale(35%) contrast(1.1) brightness(0.45);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.85) 90%, var(--bg) 100%),
    radial-gradient(ellipse at 80% 50%, rgba(225,24,39,0.15), transparent 60%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:not(:has(*)) { color: var(--muted); }

.page-title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.page-title span { display: block; }
.page-title .red { color: var(--red); }
.page-title .italic { font-family: var(--display-2); font-style: italic; font-size: 0.9em; letter-spacing: -0.04em; }

.page-lead {
  max-width: 720px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--bone); line-height: 1.65;
}

/* ============ PROGRAMS LIST ============ */
.prog-list {
  padding: clamp(80px, 10vh, 140px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.prog-row {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.prog-row:first-child { border-top: 0; padding-top: 0; }
.prog-row:last-child { padding-bottom: 0; }
.prog-flip {
  /* Reverse: image on left, content on right */
  grid-template-columns: 1fr 1fr 80px;
}
.prog-flip .prog-row-num { grid-column: 3; grid-row: 1; }
.prog-flip .prog-row-content { grid-column: 2; grid-row: 1; }
.prog-flip .prog-row-img { grid-column: 1; grid-row: 1; }

.prog-row-num {
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: 0; font-weight: 400;
  color: var(--red);
  align-self: flex-start;
  line-height: 1;
}

.prog-row-content header {
  margin-bottom: 28px;
}
.prog-tag {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--muted); padding: 6px 12px;
  border: 1px solid var(--line-strong);
  margin-bottom: 16px; text-transform: uppercase;
}
.prog-tag-red {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.prog-row-content h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.01em; font-weight: 400;
  text-transform: uppercase;
}
.prog-row-content h2 .red { color: var(--red); }

.prog-lead {
  font-size: 17px; color: var(--white);
  line-height: 1.55; font-weight: 500;
  margin-bottom: 16px;
}
.prog-row-content p {
  font-size: 15px; color: var(--bone); line-height: 1.7;
  margin-bottom: 24px;
}
.prog-points { display: flex; flex-direction: column; gap: 12px; }
.prog-points li {
  font-size: 14px; color: var(--bone); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.prog-points li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--red);
}
.prog-points b { color: var(--white); font-weight: 700; }

.prog-row-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
}
.prog-row-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  filter: grayscale(10%) contrast(1.05);
  transition: transform 0.6s var(--ease-out);
}
.prog-row-img:hover img { transform: scale(1.04); }

/* ============ TRAINER DETAIL ============ */
.trainer-detail-list {
  padding: clamp(60px, 8vh, 120px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.trainer-detail {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.trainer-detail:first-child { border-top: 0; padding-top: 0; }
.td-flip { grid-template-columns: 1.2fr 1fr; }
.td-flip .td-img { grid-column: 2; }
.td-flip .td-info { grid-column: 1; }

.td-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  border-top: 4px solid var(--red);
}
.td-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  filter: grayscale(10%) contrast(1.05);
  transition: transform 0.7s var(--ease-out);
}
.trainer-detail:hover .td-img img { transform: scale(1.03); }

.td-num {
  font-family: var(--display);
  font-size: 28px; color: var(--red);
  letter-spacing: 0; font-weight: 400;
  display: block; margin-bottom: 14px;
}
.td-info h2 {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 88px);
  line-height: 0.95; letter-spacing: -0.01em;
  font-weight: 400; text-transform: uppercase;
  margin-bottom: 8px;
}
.td-role {
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); text-transform: uppercase;
  margin-bottom: 24px;
}
.td-bio {
  font-size: 15px; color: var(--bone); line-height: 1.7;
  margin-bottom: 28px;
}
.td-creds {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--red);
}
.td-creds li {
  font-size: 13px; color: var(--bone); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.td-creds li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 800;
}
.td-quote {
  font-family: var(--display-2);
  font-style: italic;
  font-size: 18px; color: var(--white);
  line-height: 1.4;
  border-left: 2px solid var(--red);
  padding: 8px 18px;
}

/* ============ GALLERY ============ */
.gallery {
  padding: clamp(60px, 8vh, 120px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.gallery-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}
.g {
  overflow: hidden;
  background: var(--surface);
  position: relative;
  margin: 0;
}
.g img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.g:hover img { transform: scale(1.05); filter: grayscale(0); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vh, 140px) var(--pad);
}
.cta-strip-inner {
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.cta-strip-inner .section-title { margin-bottom: 24px; }
.cta-strip-inner .section-title span { display: block; }
.cta-strip-inner p {
  font-size: 16px; color: var(--bone); line-height: 1.6;
  margin: 0 auto 36px; max-width: 560px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .prog-row { grid-template-columns: 60px 1fr; gap: 40px; }
  .prog-row .prog-row-img { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .prog-flip { grid-template-columns: 60px 1fr; }
  .prog-flip .prog-row-num { grid-column: 1; grid-row: 1; }
  .prog-flip .prog-row-content { grid-column: 2; grid-row: 1; }
  .prog-flip .prog-row-img { grid-column: 1 / -1; grid-row: 2; }

  .trainer-detail { grid-template-columns: 1fr; gap: 40px; }
  .td-flip .td-img { grid-column: 1; }
  .td-flip .td-info { grid-column: 1; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 700px) {
  .prog-row { grid-template-columns: 1fr; gap: 24px; padding: 60px 0; }
  .prog-row .prog-row-num { grid-column: 1; }
  .prog-flip { grid-template-columns: 1fr; }
  .prog-flip .prog-row-num { grid-column: 1; }
  .prog-flip .prog-row-content { grid-column: 1; }
  .prog-flip .prog-row-img { grid-column: 1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 8px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 2; }

  .td-creds { padding: 18px 20px; }
}


/* ============ HYROX PAGE ============ */
.stations-page,
.training-track,
.equipment,
.faq {
  padding: clamp(80px, 10vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.training-track { background: var(--bg-2); }
.faq { background: var(--bg-2); }

.stations-page .section-head,
.training-track .section-head,
.equipment .section-head,
.faq .section-head {
  max-width: var(--max); margin: 0 auto 56px;
}

.stations-grid-detail {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.stations-grid-detail > div {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.5px; font-weight: 400; text-transform: uppercase;
  transition: background 0.3s;
}
.stations-grid-detail > div:hover { background: var(--red); }
.stations-grid-detail > div:hover b { color: var(--white); -webkit-text-stroke-color: var(--white); }
.stations-grid-detail > div:hover span { color: var(--white); }
.stations-grid-detail b {
  font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: 0; font-weight: 400;
  -webkit-text-stroke: 1px var(--red); color: transparent;
}
.stations-grid-detail span {
  margin-left: auto; font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase;
}

.track-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.track-card {
  background: var(--bg); padding: 36px 28px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.track-card-red { background: var(--red); }
.track-card-red .track-num,
.track-card-red h3,
.track-card-red h3 span,
.track-card-red p,
.track-card-red ul li { color: var(--white); }
.track-card-red ul li::before { background: var(--white); }

.track-num {
  font-family: var(--display); font-size: 56px;
  color: var(--red); letter-spacing: 0; font-weight: 400; line-height: 1;
}
.track-card h3 {
  font-family: var(--display); font-size: 28px;
  letter-spacing: 0.5px; font-weight: 400; line-height: 1.05;
}
.track-card h3 span {
  display: block; font-size: 14px;
  color: var(--muted); font-family: var(--body);
  font-weight: 700; letter-spacing: 1.5px; margin-top: 4px;
}
.track-card p { font-size: 14px; color: var(--bone); line-height: 1.6; }
.track-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.track-card ul li {
  font-size: 13px; color: var(--bone); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.track-card ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 2px; background: var(--red);
}

.squad {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.squad-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
}
.squad-text p {
  font-size: 16px; color: var(--bone); line-height: 1.7; margin: 24px 0;
}
.squad-quote {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  font-family: var(--display-2); font-style: italic;
  font-size: 20px; color: var(--white); line-height: 1.4;
}
.squad-quote span {
  display: block; margin-top: 10px;
  font-family: var(--body); font-style: normal;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--muted);
}
.squad-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px; gap: 12px;
}
.squad-grid > div { overflow: hidden; background: var(--surface); }
.squad-grid img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  filter: grayscale(10%) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.squad-grid > div:hover img { transform: scale(1.05); filter: grayscale(0); }

.equipment-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.eq-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s;
}
.eq-card:hover { background: var(--surface-2); }
.eq-card h3 {
  font-family: var(--display); font-size: 22px;
  letter-spacing: 1px; font-weight: 400; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.eq-card p { font-size: 14px; color: var(--bone); line-height: 1.6; }

.faq-list {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-list summary {
  font-family: var(--display); font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.5px; font-weight: 400; text-transform: uppercase;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-right: 40px; position: relative;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body); font-size: 28px; color: var(--red);
  transition: transform 0.3s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details:hover summary { color: var(--red); }
.faq-body {
  margin-top: 14px; font-size: 15px; color: var(--bone); line-height: 1.7;
  max-width: 720px;
}

/* ============ CONTACT PAGE ============ */
.contact-grid-section {
  padding: clamp(60px, 8vh, 100px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contact-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  padding: 36px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.contact-card:hover { border-color: var(--red); transform: translateY(-4px); }
.contact-card-lg {
  grid-column: span 2; grid-row: span 2;
  border-top: 4px solid var(--red);
}
.contact-card-map {
  grid-column: span 1; grid-row: span 2;
  padding: 0; overflow: hidden;
}
.contact-card-map iframe { width: 100%; height: 100%; min-height: 400px; filter: grayscale(20%) contrast(1.1); border: 0; }

.cc-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); text-transform: uppercase;
}
.contact-card h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 0.95; letter-spacing: -0.01em;
  font-weight: 400; text-transform: uppercase;
}
.contact-card h2 .red { color: var(--red); }
.contact-card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.5px; font-weight: 400;
  text-transform: uppercase;
}
.contact-card p { font-size: 14px; color: var(--bone); line-height: 1.6; }

.cc-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 18px; padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.cc-label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); padding-top: 4px;
}
.cc-row p { font-size: 14px; color: var(--bone); line-height: 1.55; }
.cc-row em { font-style: normal; color: var(--muted); font-size: 12px; }

.cc-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding: 14px 18px;
  border: 2px solid var(--line-strong);
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  transition: all 0.3s;
}
.cc-cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
.cc-cta:hover { border-color: var(--red); color: var(--red); }
.cc-cta:hover svg { transform: translate(2px, -2px); }

.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.cc-actions .btn { padding: 14px 18px; flex: 1; }

.enquiry {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.enquiry-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.enquiry-text p {
  font-size: 15px; color: var(--bone); line-height: 1.65;
  margin-top: 24px;
}
.enquiry-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg);
  padding: 32px;
  border: 1px solid var(--line);
}
.enquiry-form label.full,
.enquiry-form button.full,
.enquiry-form .form-hint { grid-column: 1 / -1; }
.enquiry-form label { display: flex; flex-direction: column; gap: 6px; }
.enquiry-form label span {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--red); text-transform: uppercase;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font: inherit; padding: 12px 14px;
  background: var(--surface); color: var(--white);
  border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.3s;
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus { outline: 0; border-color: var(--red); }
.enquiry-form textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.form-hint a { color: var(--red); }
.form-hint a:hover { text-decoration: underline; }

.follow-strip {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.follow-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.follow-inner .section-title { margin-bottom: 24px; }
.follow-inner .section-title span { display: block; }
.follow-inner p {
  font-size: 16px; color: var(--bone); line-height: 1.6;
  margin: 0 auto 36px; max-width: 540px;
}
.follow-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .track-grid { grid-template-columns: 1fr; }
  .squad-inner { grid-template-columns: 1fr; gap: 40px; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card-lg { grid-column: span 2; grid-row: span 1; }
  .contact-card-map { grid-column: span 2; grid-row: span 1; min-height: 380px; }
  .enquiry-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .stations-grid-detail { grid-template-columns: 1fr; }
  .stations-grid-detail > div { padding: 22px 18px; font-size: 18px; }
  .stations-grid-detail b { font-size: 30px; }
  .equipment-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-lg, .contact-card-map { grid-column: span 1; }
  .enquiry-form { grid-template-columns: 1fr; padding: 24px 20px; }
}
