/* ============================================================
   Heim Strength & Endurance — styles.css
   Palette: paper / ink / slate / line / field / field-bright
   Type:    Montserrat (display) / Helvetica stack (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --paper: #F6F7F9;
  --ink: #15181D;
  --slate: #4E5866;
  --line: #DDE1E6;
  --field: #107C3C;
  --field-bright: #4ADE80;

  /* Gotham is commercial; Montserrat is its free equivalent.
     If you license Gotham, list it first: "Gotham", "Montserrat", ... */
  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* type scale (minor third-ish, clamped for mobile-first) */
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.3vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.6vw, 3.5rem);

  --header-h: 4rem;
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--field); }

:focus-visible {
  outline: 2px solid var(--field);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--font-data);
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

.container {
  max-width: 71.25rem; /* 1140px */
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ============ Header / nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  max-width: 71.25rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-abbr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.wordmark-full {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav-link {
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  word-spacing: -0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--field); }
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--field-bright);
  border-bottom-width: 3px;
}

/* Primary nav action — green box highlight */
.nav-link--cta {
  background: var(--field-bright);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  transition: background-color 0.15s ease;
}
.nav-link--cta:hover { color: var(--ink); background: #22C55E; }
.nav-link--cta.is-active {
  background: #22C55E;
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 63.9375rem) {
  .wordmark-full { display: none; }
}

@media (max-width: 47.9375rem) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .nav-menu.is-open { display: flex; }

  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-link {
    display: block;
    padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-link.is-active { border-left-color: var(--field-bright); }
}

/* ============ Buttons & links ============ */

.btn {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 0;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--field-bright);
  color: var(--ink);
}
.btn-primary:hover {
  background: #22C55E;
}

.link-arrow {
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.link-arrow::after { content: " \2193"; }
.link-arrow:hover { color: var(--field); border-bottom-color: var(--field); }

/* ============ Signature: measurement rail ============ */

.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--line) 0, var(--line) 1px,
      transparent 1px, transparent 12px
    );
}
.rail::before {
  /* longer tick every 5th mark */
  content: "";
  position: absolute;
  inset: 0;
  width: 26px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--line) 0, var(--line) 1px,
      transparent 1px, transparent 60px
    );
}
@media (max-width: 47.9375rem) {
  .rail { width: 8px; }
  .rail::before { display: none; }
}

.rail-dark,
.rail-dark::before {
  background-image:
    repeating-linear-gradient(
      to bottom,
      #2A3038 0, #2A3038 1px,
      transparent 1px, transparent 12px
    );
}
.rail-dark::before {
  background-image:
    repeating-linear-gradient(
      to bottom,
      #2A3038 0, #2A3038 1px,
      transparent 1px, transparent 60px
    );
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: calc(92svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  padding-block: clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 4.5rem;
  }
}

.kicker {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 15ch;
}

.hero-mark {
  width: 64px;
  height: auto;
  margin-bottom: 1.5rem;
  /* white logomark rendered dark on the light background */
  filter: invert(1) opacity(0.92);
}

.hero-media {
  margin: 0;
}
.hero-media-frame {
  position: relative;
  padding: 0 1.25rem 1.25rem 0;
}
/* offset accent panel behind the photo, P3-style */
.hero-media-frame::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 0;
  bottom: 0;
  background: var(--field-bright);
}
.hero-media-crop {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.hero-media img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.hero-caption {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-caption-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.hero-caption-meta {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--slate);
}

.hero-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--text-md);
  color: var(--slate);
}

.hero-motto {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.hero-motto mark {
  background: var(--field-bright);
  color: var(--ink);
  padding: 0.1em 0.3em;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

/* ============ Sections ============ */

.section {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-index {
  font-family: var(--font-data);
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--field-bright);
}

.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 700;
}

/* P3-style drop rule under each section heading */
.section-head h2::after {
  content: "";
  display: block;
  width: 3px;
  height: 2.25rem;
  margin-top: 1rem;
  background: var(--field-bright);
}

.section-lede {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.35;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ============ Who I work with ============ */

/* P3-style full-bleed color block */
#who {
  background: var(--field-bright);
  border-top: none;
}
#who .section-index {
  background: var(--ink);
  color: var(--field-bright);
}
#who .section-head h2::after { background: var(--ink); }

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 1.75rem;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.card-problem {
  color: var(--slate);
  margin-bottom: 0.9rem;
}

.card-answer { margin-bottom: 0; }

/* ============ Philosophy ============ */

.pillar-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--slate);
  max-width: 38rem;
}

/* the dark band is the last thing in Philosophy — sit it flush to About */
#philosophy { padding-bottom: 0; }

/* full-bleed dark band housing the measurement pitch */
.measure-band {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.measure-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.16;
  z-index: 0;
}
.measure-band > .container { position: relative; z-index: 1; }

.measure {
  max-width: 44rem;
}

.measure h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--paper);
}

.measure p {
  color: #C9D0D8;
}

/* callout adapts to the dark band */
.measure-band .callout {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: var(--field-bright);
  color: var(--paper);
}
.measure-band .callout p { color: #C9D0D8; }
.measure-band p.callout-label { color: var(--field-bright); }
.measure-band p.callout-devices { color: #A9B2BE; }

.callout {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--field-bright);
  border-radius: 0;
  background: color-mix(in srgb, var(--field-bright) 8%, #fff);
  padding: 1.75rem;
  max-width: 48rem;
}

.callout-label {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 0.9rem;
}

.callout-devices {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 1.1rem;
}

/* ============ About ============ */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-media {
  display: grid;
  gap: 1.25rem;
  position: relative;
  padding: 0 0 1.25rem 1.25rem;
}
.about-media::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 1.25rem;
  bottom: 0;
  background: var(--field-bright);
}
.about-media img {
  border-radius: 0;
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.about-body p { max-width: 38rem; }

#about .callout {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.cert img { width: 88px; height: auto; }
.cert { display: inline-block; border-radius: 0; }
a.cert { transition: transform 0.15s ease; }
a.cert:hover { transform: translateY(-2px); }

/* ============ Results ============ */

.quote-grid {
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 1.75rem;
}
.quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--field-bright);
  margin-bottom: 0.9rem;
}
.quote p {
  font-size: var(--text-md);
  margin-bottom: 1rem;
}
.quote footer {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Real message-screenshot testimonial — dark card so the phone
   screenshot's background sits inside the palette on purpose */
.quote-shot {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-shot img {
  width: 100%;
  display: block;
}
.quote-shot figcaption {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A9B2BE;
  padding: 0 0.75rem 0.25rem;
}
.quote-shot figcaption::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: var(--field-bright);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.proof-band {
  position: relative;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}
/* action photo behind the numbers — proof he competes, not just coaches */
.proof-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.18;
  z-index: 0;
}
.proof-band > .container { position: relative; z-index: 1; }
.proof-band .rail-dark { z-index: 1; }
/* desktop band is short/wide — raise the crop so face + shoulders show */
@media (min-width: 48rem) {
  .proof-band-bg { object-position: center 26%; }
}

.proof-label {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--field-bright);
  margin-bottom: 2.25rem;
}

.proof-grid {
  display: grid;
  gap: 2.5rem;
  margin: 0;
}

.proof-stat dt {
  font-size: var(--text-sm);
  color: #A9B2BE;
  margin-bottom: 0.4rem;
}

.proof-stat dd {
  margin: 0;
  font-family: var(--font-data);
  font-weight: 500;
  font-size: clamp(3rem, 2.2rem + 4vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--field-bright);
}

.count-suffix { color: var(--paper); }

/* ============ Start Training ============ */

.offer {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.offer:hover {
  border-color: var(--field);
  transform: translateY(-2px);
}

.offer-featured {
  background: var(--ink);
  border-color: var(--ink);
  margin-bottom: 1.25rem;
}
.offer-featured h3 { color: var(--paper); }
.offer-featured .offer-text p:last-child { color: #A9B2BE; }
.offer-featured .offer-label { color: var(--field-bright); }
.offer-featured .offer-price { color: var(--field-bright); }
.offer-featured .offer-price-note { color: #A9B2BE; }
.offer-featured:hover { border-color: var(--field-bright); }

.offer-label {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 0.6rem;
}

.offer h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.offer-text p:last-child { color: var(--slate); }

.offer-price {
  margin-top: auto;
  font-family: var(--font-data);
  font-size: 1.4rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.offer-price-note,
.offer-price-unit {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 400;
}
.offer-price-note { display: block; margin-bottom: 0.15rem; }

/* consult link in place of a price on the featured card */
.offer-cta {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--field-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--field-bright);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.offer-cta:hover { color: #22C55E; border-bottom-color: #22C55E; }

.offer-grid {
  display: grid;
  gap: 1.25rem;
}

.pricing-note {
  margin-top: 2rem;
  color: var(--slate);
  max-width: 38rem;
}

.cta-row-final {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.cta-alt { margin: 0; color: var(--slate); }
.cta-alt a { color: var(--field); }

/* ============ Footer ============ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand img { width: 64px; margin-bottom: 1rem; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-loc {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: #A9B2BE;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
}
.footer-links a { color: var(--paper); text-decoration-color: #4E5866; }
.footer-links a:hover { color: var(--field-bright); }
.footer-links span { color: #A9B2BE; }

.footer-copy {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: #A9B2BE;
  margin: 0;
}

/* ============ Breakpoints ============ */

@media (min-width: 48rem) {
  .card-grid,
  .quote-grid,
  .offer-grid { grid-template-columns: repeat(3, 1fr); }

  .quote-grid { grid-template-columns: repeat(2, 1fr); }

  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: 3.5rem; }

  .offer-featured {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
  }
  .offer-featured .offer-text { max-width: 34rem; }
}

@media (min-width: 64rem) {
  .rail { left: clamp(0px, calc((100vw - 71.25rem) / 2 - 3.5rem), 4rem); }
}

/* ============ Motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
