/* Inner pages (trainers, programs, 404): only what site.css does not already carry. Same tokens, same world. */

.page--serif { --accent: var(--red-text); }
.page--ersan, .page--yellow { --accent: var(--yellow); }
.page--altuna { --accent: var(--bone); }

.nav__menu a[aria-current] { color: var(--yellow); }

/* ---------- Page hero ---------- */

/* The homepage hero without the ticker: photo on top on a phone, a 56/44 split from 64em. */
.hero--page .hero__copy { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__media--serif img { object-position: 50% 42%; }
.hero__media--ersan img { object-position: 54% 22%; }

@media (min-width: 64em) {
  .hero--page { min-height: min(100svh, 58rem); max-height: none; }
  /* The fighters' photos are brighter than the homepage's: a top scrim keeps the transparent nav readable. */
  .hero--page .hero__media::after { background: linear-gradient(90deg, var(--black) 0%, rgb(10 10 11 / 0.35) 18%, rgb(10 10 11 / 0) 40%), linear-gradient(180deg, rgb(10 10 11 / 0.82) 0%, rgb(10 10 11 / 0) 17%), linear-gradient(0deg, rgb(10 10 11 / 0.6) 0%, rgb(10 10 11 / 0) 25%); }
  .hero__media--serif img { object-position: 50% 40%; }
  .hero__media--ersan img { object-position: 52% 25%; }
}

/* Text hero: no photo; on desktop the right column carries the page's proof (a schedule, a card, the trainers). */
.hero--text { grid-template-rows: none; max-width: var(--max); margin-inline: auto; padding: calc(var(--nav-h) + 2.5rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem); gap: 2.5rem; }
.hero--text .hero__copy { grid-row: auto; padding: 0; }
.hero__aside { animation: hero-rise 700ms var(--ease) 320ms both; }

@media (min-width: 64em) {
  .hero--text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(3rem, 6vw, 6rem); min-height: 0; max-height: none; padding-top: calc(var(--nav-h) + 4.5rem); }
  .hero--text .hero__copy { grid-column: 1; align-self: center; padding: 0; }
  .hero--text .hero__aside { grid-column: 2; }
  .hero--solo { grid-template-columns: minmax(0, 1fr); }
}

.hero__title--long { font-size: clamp(3rem, 1.6rem + 5.6vw, 5.5rem); }

/* The pro record under a trainer's name: poster numerals in the trainer's colour. */
.record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin: 1.5rem 0 0; color: var(--mute); font: 600 var(--step--1)/1.35 var(--font); animation: hero-rise 700ms var(--ease) 260ms both; }
.record__score { flex: none; color: var(--accent); font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); line-height: 0.9; }
.record__label { max-width: 11rem; }
.record a { color: var(--bone); font-weight: 700; }
.record a:hover { color: var(--yellow); }

/* A schedule column in the hero: the gym's own slot blocks, stacked. */
.slots { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.slots .slot { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 1rem; padding: 0.95rem 1rem; }
.slots .slot time { grid-row: span 2; font-size: 1.75rem; }
.slots__note { margin: 0.9rem 0 0; color: var(--mute); font-size: var(--step--1); }

/* Two trainers side by side in a hero aside. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
.duo figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--char-1); }
.duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.duo figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 10 11 / 0) 52%, rgb(10 10 11 / 0.92) 100%); }
.duo figcaption { position: absolute; inset: auto 0.9rem 0.85rem; z-index: 1; font: 900 var(--step-2)/0.95 var(--font); font-stretch: var(--display-stretch); font-style: italic; text-transform: uppercase; }
.duo .duo__serif img { object-position: 50% 45%; }
.duo .duo__ersan img { object-position: 55% 25%; }

/* ---------- Sections ---------- */

.section--flush { padding-top: 0; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }

@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.prose { display: grid; gap: 1rem; }
.prose p { max-width: 62ch; margin: 0; color: rgb(242 240 235 / 0.86); font-size: var(--step-1); line-height: 1.55; }
.prose a, .dossier a, .ticks a { color: var(--yellow); font-weight: 700; }
.prose a:hover, .dossier a:hover, .ticks a:hover { color: var(--yellow-hot); }

/* A fighter's facts: label left, value right, hairlines between, like a fight-card tale of the tape. */
.dossier { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.dossier > div { display: grid; gap: 0.35rem 2rem; padding: 1.15rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.dossier dt { color: var(--mute); font: 700 0.8125rem/1.3 var(--font); font-stretch: var(--label-stretch); letter-spacing: 0.1em; text-transform: uppercase; }
.dossier dd { margin: 0; font: 600 var(--step-1)/1.4 var(--font); }
.dossier dd .display { color: var(--accent); font-size: var(--step-3); line-height: 1; }
.dossier__titles { display: grid; gap: 0.2rem; color: var(--accent); }

@media (min-width: 48em) {
  .dossier > div { grid-template-columns: minmax(9rem, 2fr) minmax(0, 5fr); align-items: baseline; }
}

/* A checklist with the brand's check icon. */
.ticks { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; font-size: var(--step-1); line-height: 1.45; }
.ticks li { display: flex; gap: 0.75rem; }
.ticks .icon { margin-top: 0.2em; color: var(--accent, var(--yellow)); }
.page--altuna .ticks .icon { color: var(--yellow); }

@media (min-width: 48em) {
  .ticks--two { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

.subhead { margin: 0 0 1rem; font: 900 var(--step-2)/1.05 var(--font); font-stretch: var(--display-stretch); font-style: italic; text-transform: uppercase; }

/* Program grids that are not the homepage's 6-column mix. */
.programs__grid--two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .programs__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .programs__grid--two .program, .programs__grid--two .program--wide { grid-column: auto; }
  .program--full { grid-column: 1 / -1 !important; }
}
.program--hero { animation: hero-rise 700ms var(--ease) 320ms both; }
.program--hero .program__time span { font-size: var(--step-4); }

/* Photo strip: real training photos, a swipe row on a phone, three across from 48em. */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 0.75rem; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.strip figcaption { margin-top: 0.6rem; color: var(--mute); font-size: var(--step--1); }

@media (min-width: 48em) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

/* ---------- Program families (the /programi/ index) ---------- */

.families { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.family { --accent: var(--yellow); display: grid; gap: 1.25rem 2.5rem; padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; border-bottom: 1px solid var(--line); }
.family__name { font-size: var(--step-3); }
.family__name a { text-decoration: none; }
.family__name a:hover { color: var(--yellow); }
.family__for { margin: 0.7rem 0 0; color: var(--accent); font: 800 0.8125rem/1.2 var(--font); font-stretch: var(--label-stretch); letter-spacing: 0.1em; text-transform: uppercase; }
.family__copy { margin: 0.9rem 0 0; max-width: 34rem; color: var(--mute); }
.family__times { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.family__times li { display: grid; grid-template-columns: 0.75rem 5.5rem minmax(0, 1fr); align-items: baseline; gap: 0.75rem; color: rgb(242 240 235 / 0.88); font-weight: 600; }
.family__times .coach-dot { align-self: center; }
.family__times b { font: 900 1.375rem/1 var(--font); font-stretch: var(--display-stretch); font-style: italic; font-variant-numeric: tabular-nums; }
.family__go { justify-self: start; }

@media (min-width: 64em) {
  .family { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; align-items: start; }
  .family__go { align-self: center; }
}

/* ---------- Closing slab and the next page ---------- */

.cta-slab { display: grid; gap: 1.25rem 3rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--yellow); color: var(--black); }
.cta-slab__title { font-size: var(--step-4); }
.cta-slab p { max-width: 38rem; margin: 0; font: 600 var(--step-1)/1.45 var(--font); }
.cta-slab__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cta-slab__actions a:not(.btn) { color: var(--black); font-weight: 800; }
.cta-slab .btn--ink:focus-visible, .cta-slab a:focus-visible { outline-color: var(--black); }

@media (min-width: 64em) {
  .cta-slab { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .cta-slab__actions { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
}

.next { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--char-1); text-decoration: none; transition: transform 220ms var(--ease), border-color 220ms, background-color 220ms; }
.next:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--char-2); }
.next img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: var(--radius); }
.next__name { display: block; font-size: var(--step-3); }
.next__meta { display: block; margin-top: 0.45rem; color: var(--mute); font: 600 var(--step--1)/1.3 var(--font); }
.next__meta b { color: var(--accent); font-weight: 800; }
.next .icon { width: 1.6rem; height: 1.6rem; color: var(--yellow); transition: transform var(--fast) var(--ease); }
.next:hover .icon { transform: translateX(3px); }

/* ---------- Breadcrumb trail (above the footer) ---------- */

.crumbs { border-top: 1px solid var(--line); background: var(--black); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gutter); list-style: none; color: var(--mute); font: 700 0.8125rem/1.3 var(--font); font-stretch: var(--label-stretch); letter-spacing: 0.08em; text-transform: uppercase; }
.crumbs li { display: flex; gap: 0.6rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--bone); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* ---------- 404 ---------- */

.footer--slim .footer__inner { padding-top: 3rem; }
.footer--slim .footer__slogan { margin-top: 0; }

.lost { margin: 2.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 40rem; }
.lost a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font: 900 var(--step-3)/1 var(--font); font-stretch: var(--display-stretch); font-style: italic; text-transform: uppercase; text-decoration: none; transition: color var(--fast); }
.lost a:hover { color: var(--yellow); }
.lost .icon { width: 1.5rem; height: 1.5rem; color: var(--yellow); transition: transform var(--fast) var(--ease); }
.lost a:hover .icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .next:hover { transform: none; }
}
