/* =====================================================
   MILE HIGH ATHLETICS — style.css  (Final)
   All images are truly transparent PNGs.
   All section headers centered.
   Hero groundline grounds Ty's photo.
   WCAG 2.1 AA compliant.
   ===================================================== */

:root {
  --blue:        #1565c0;
  --blue-dark:   #0d47a1;
  --blue-light:  #1e88e5;

  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-card:   #1e1e1e;
  --white:       #ffffff;
  --off-white:   #f6f6f6;
  --light-gray:  #eeeeee;

  --text-primary:   #111111;   /* 18:1 on white */
  --text-secondary: #3d3d3d;   /* 11:1 on white */
  --text-muted:     #595959;   /* 7:1  on white */
  --text-on-dark:   rgba(255,255,255,0.87);

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;

  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --max-w: 1200px;
  --r:     4px;
  --r-lg:  10px;
  --ease:  180ms ease;

  /* Featured-card badge slot — reserved on every services card so all
     card headings align on one baseline (see .card-badge / .cards-grid). */
  --badge-h:   1.6rem;
  --badge-gap: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -200%; left: 1rem; z-index: 9999;
  padding: 0.75rem 1.5rem; background: var(--blue); color: #fff;
  font-weight: 600; font-size: 1rem; border-radius: var(--r);
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── FOCUS ──────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--r); }
:focus:not(:focus-visible) { outline: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.07; }

h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); text-transform: uppercase; }

/* ALL h2 centered by default */
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; text-align: center; }

h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); text-transform: uppercase; margin-bottom: 0.9rem; }

p { max-width: 68ch; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; transition: color var(--ease); }
a:hover { color: var(--blue-dark); }

blockquote {
  border-left: 4px solid var(--blue);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--light-gray);
  border-radius: 0 var(--r) var(--r) 0;
}
blockquote p { font-style: italic; color: var(--text-secondary); }
blockquote footer { margin-top: 0.5rem; font-weight: 600; font-style: normal; font-size: 0.9rem; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); }
.section { padding-block: var(--space-2xl); }

/* Section header — ALWAYS centered, for every section */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Eyebrow — centered */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
  text-align: center;
  margin-inline: auto;
}

.section-subhead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.7rem;
  text-align: center;
  max-width: 58ch;
  margin-inline: auto;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.75rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--r); cursor: pointer;
  white-space: nowrap; transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); outline: none; }

.btn-secondary { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-secondary:hover { background: var(--dark); color: #fff; text-decoration: none; }
.btn-secondary:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); outline: none; }

.btn-card { background: var(--dark); color: #fff; border-color: var(--dark); margin-top: auto; width: 100%; }
.btn-card:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }

.btn-card-featured { background: var(--blue); color: #fff; border-color: var(--blue); margin-top: auto; width: 100%; }
.btn-card-featured:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--blue);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); max-width: var(--max-w); margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem); height: 68px;
}

.logo-link { flex-shrink: 0; display: inline-flex; align-items: center; }
/* White logo PNG — truly transparent, crisp on dark nav */
.logo-img { height: 52px; width: auto; }

.primary-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.25rem 0.85rem; color: var(--text-on-dark); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.primary-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.primary-nav .nav-cta {
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  min-height: 44px; padding: 0.4rem 1.1rem;
}
.primary-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 10px;
  background: transparent; border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--r); cursor: pointer; transition: border-color var(--ease);
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.hamburger-bar { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: var(--white);
  overflow: hidden;
  /* Tall enough to show Ty full-height */
  min-height: min(90vh, 750px);
  display: flex;
  align-items: flex-end; /* anchor content to bottom (groundline level) */
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: flex-end;
  gap: var(--space-lg);
  padding-bottom: 0;
  padding-top: var(--space-xl);
}

.hero-content {
  padding-bottom: var(--space-lg);
}

.hero-eyebrow {
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.8rem;
}

.hero h1 { color: var(--dark); margin-bottom: var(--space-md); }

.hero-accent { display: block; color: var(--blue); font-style: italic; }

.hero-subtext { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: var(--space-lg); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--space-md); }

/* ── GROUNDLINE ─────────────────────────────────────────
   A horizontal rule spanning the full viewport width,
   absolutely positioned at the bottom of the hero grid
   so it sits at the base of Ty's photo.
─────────────────────────────────────────────────────── */
.hero-groundline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 2px;
  background: var(--blue);
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  list-style: none;
}

.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 0.25rem; }

/* Ty's photo — bottom-aligned to the groundline */
.hero-photo-wrap {
  align-self: flex-end;
  overflow: visible;
}

.hero-photo {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  /* Transparent PNG — renders cleanly on white background */
}

/* ── ABOUT ───────────────────────────────────────────── */
.section-about { background: var(--off-white); }

.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: var(--space-xl); align-items: center; }

.about-text p + p { margin-top: var(--space-sm); }

.about-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: var(--space-md); }

.badge {
  display: inline-block; padding: 0.3rem 0.9rem;
  background: #fff; border: 1.5px solid #ccc; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Blue logo in about — transparent PNG on off-white bg, no box */
.about-logo-wrap { display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.about-logo { width: 100%; max-width: 260px; height: auto; }

/* ── SERVICES ────────────────────────────────────────── */
.section-services { background: var(--dark); }
.section-services h2 { color: #fff; }
.section-services .section-eyebrow { color: var(--blue-light); }
.section-services .section-subhead { color: var(--text-on-dark); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.card { display: flex; flex-direction: column; background: var(--dark-card); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: var(--space-md); transition: border-color var(--ease); }
.card:hover { border-color: var(--blue); }
.card h3 { color: #fff; }

.card ul { list-style: none; flex: 1; margin-bottom: var(--space-md); }
.card ul li { position: relative; padding: 0.4rem 0 0.4rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-on-dark); font-size: 0.94rem; }
.card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-light); font-weight: 700; }

.card-featured { border: 2px solid var(--blue); }

.card-badge { display: inline-block; height: var(--badge-h); line-height: var(--badge-h); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0 0.8rem; border-radius: 999px; margin-bottom: var(--badge-gap); max-width: max-content; }

/* Cards without a "Most Popular" badge reserve the same vertical space the
   badge occupies, so every card heading starts on the same line and the
   bullet lists and CTA buttons line up across the row. */
.cards-grid .card:not(.card-featured) h3 { margin-top: calc(var(--badge-h) + var(--badge-gap)); }

/* Reserve two lines for every card title so the bullet lists begin on the
   same baseline whether a title runs one line or wraps to two. */
.cards-grid .card h3 { min-height: 2.15em; }

/* ── REVIEWS ─────────────────────────────────────────── */
.section-results { background: var(--light-gray); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-bottom: var(--space-lg); }

.review-card { background: #fff; border-radius: var(--r-lg); padding: var(--space-md); border: 1px solid #e0e0e0; display: flex; flex-direction: column; gap: 0.5rem; }

.review-stars { font-size: 1.2rem; color: #e6a800; letter-spacing: 0.04em; }

.review-card blockquote { background: none; border: none; padding: 0; margin: 0; flex: 1; }
.review-card blockquote p { font-size: 0.96rem; font-style: italic; color: var(--text-secondary); }

.reviewer-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.review-source { font-size: 0.78rem; color: var(--text-muted); }

.reviews-cta { text-align: center; font-size: 0.95rem; color: var(--text-secondary); }
.reviews-cta a { color: var(--blue); }

/* ── FREE PROGRAM ────────────────────────────────────── */
.section-freebies { background: #fff; }

.freebies-card { max-width: 560px; margin-inline: auto; background: var(--light-gray); border-radius: var(--r-lg); padding: var(--space-lg); border: 1px solid #ddd; }
.freebies-card h3 { margin-bottom: 0.75rem; text-align: left; }
.freebies-card > p { margin-bottom: var(--space-md); color: var(--text-secondary); }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.freebie-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.required-indicator { color: #b00020; margin-left: 0.15rem; }

.form-input { width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); background: #fff; border: 2px solid #bbb; border-radius: var(--r); transition: border-color var(--ease), box-shadow var(--ease); }
.form-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(21,101,192,0.2); }
.form-input[aria-invalid="true"] { border-color: #b00020; }

.form-hint { font-size: 0.82rem; color: var(--text-muted); }
.form-error { font-size: 0.87rem; color: #b00020; font-weight: 600; }
.form-error[hidden] { display: none; }

/* ── BOOKING ─────────────────────────────────────────── */
.section-booking { background: var(--dark); }
.section-booking h2 { color: #fff; }
.section-booking .section-eyebrow { color: var(--blue-light); }
.section-booking .section-subhead { color: var(--text-on-dark); }

.booking-embed-wrap { margin-top: var(--space-lg); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.booking-note { padding: var(--space-md); background: var(--light-gray); color: var(--text-secondary); font-size: 0.92rem; }
.booking-note a { color: var(--blue); }
.booking-iframe { display: block; width: 100%; min-height: 600px; border: none; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--dark); border-top: 3px solid var(--blue); padding-block: var(--space-lg); }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }

.footer-logo-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-wrap img,
.footer-logo-img {
  display: block;
  width: 110px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}
.footer-nav ul, .footer-social ul { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; }

.footer-nav a, .footer-social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.7rem; color: var(--text-on-dark); text-decoration: none; font-size: 0.9rem; border-radius: var(--r); transition: color var(--ease); }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-nav a:focus-visible, .footer-social a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.footer-legal { width: 100%; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: var(--space-sm); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 340px; }
  .hero-photo { max-width: 340px; }
  .cards-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-logo-wrap { order: -1; }
}

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

  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--dark); border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--blue); padding: var(--space-sm); display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: flex; min-height: 52px; padding: 0.8rem 1rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav li:last-child a { border-bottom: none; }
  .primary-nav .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }

  /* Hero stacks on mobile */
  .hero { min-height: auto; align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-lg); }
  .hero-photo-wrap { order: -1; display: flex; justify-content: center; }
  .hero-photo { width: min(320px, 80vw); max-width: 100%; }
  .hero-groundline { position: static; transform: none; width: 100%; order: -1; margin-top: -1.75rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }

  .cards-grid, .reviews-grid { grid-template-columns: 1fr; }
  /* Cards are stacked single-column here, so the badge-space reservation
     is no longer needed for alignment. */
  .cards-grid .card:not(.card-featured) h3 { margin-top: 0; }
  .section { padding-block: var(--space-xl); }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav ul, .footer-social ul { justify-content: center; }

  .freebies-card { padding: var(--space-md); }
}

@media (max-width: 380px) {
  .header-inner { padding-inline: 0.75rem; }
  h1 { font-size: 2.1rem; }
  .booking-iframe { min-height: 500px; }
}

@media (forced-colors: active) {
  .btn, .nav-toggle, .card, .review-card { forced-color-adjust: none; }
  :focus-visible { outline: 3px solid ButtonText; }
}
@media (forced-colors: active) {
  .btn, .nav-toggle, .card, .review-card { forced-color-adjust: none; }
  :focus-visible { outline: 3px solid ButtonText; }
}

/* Final hero image sizing fix */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
  align-items: end;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.hero-photo-wrap {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  overflow: visible;
}

.hero-photo {
  display: block;
  width: min(105%, 740px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  margin: 0;
  transform: translateX(0.5rem);
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  }

  .hero-photo {
    width: min(115%, 720px);
    transform: translateX(1rem);
  }
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    justify-content: center;
    margin-top: 2rem;
  }

  .hero-photo {
    width: min(100%, 560px);
    transform: none;
    object-position: center bottom;
  }
}