/* ============================================
   Brava — Athlete Profile Stylesheet
   Single source of truth for all profiles.
   Served at bravamade.com/profile.css — linked
   by both live Worker profiles and the sample.
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-base:       #0D0D0F;
  --color-surface:    #1A1A1E;
  --color-warm-white: #F5F0E8;
  --color-volt:       #C8FF00;
  --color-volt-hover: #d4ff33;
  --color-cyan:       #00E5FF;
  --color-mid-gray:   #8A8A90;
  --color-dim:        #5A5A60;

  --color-overlay-95: rgba(13, 13, 15, 0.95);
  --color-overlay-70: rgba(13, 13, 15, 0.70);
  --color-overlay-60: rgba(13, 13, 15, 0.60);
  --color-overlay-20: rgba(13, 13, 15, 0.20);

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

  --space-xs:  0.25rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  1.75rem;
  --space-2xl: 3rem;

  --max-content:       720px;
  --footer-clearance:  52px;
  --headshot-max:      280px;
  --headshot-max-desk: 320px;
  --play-btn-size:     64px;

  --border-surface:    1px solid var(--color-surface);
  --border-volt:       3px solid var(--color-volt);
  --border-volt-dim:   2px solid rgba(200, 255, 0, 0.15);
  --border-outline-volt:  2px solid var(--color-volt);
  --border-outline-white: 2px solid var(--color-warm-white);

  --z-bg:      0;
  --z-overlay: 1;
  --z-content: 2;
  --z-sticky:  100;
}

@media (min-width: 768px) {
  :root {
    --space-lg: 1.75rem;
    --space-xl: 2.25rem;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }

/* --- Focus --- */
:focus-visible {
  outline: var(--border-outline-volt);
  outline-offset: 2px;
}

/* --- Base --- */
body {
  background: var(--color-base);
  color: var(--color-warm-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { padding-bottom: var(--footer-clearance); }

/* --- Utilities --- */
.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;
}

.tnum { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

/* ============================================
   Top Banner — sample profile context strip
   ============================================ */
.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-sm);
}

.top-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.top-banner__inner brava-cta { display: flex; align-items: center; }

.top-banner__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-warm-white);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.top-banner__brand:hover { opacity: 0.8; }

.top-banner__text {
  font-size: 0.85rem;
  color: var(--color-mid-gray);
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) { .top-banner__text { display: none; } }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__bg--dark { background: var(--color-surface); }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-overlay-95) 0%,
    var(--color-overlay-60) 40%,
    var(--color-overlay-20) 70%,
    transparent 100%
  );
  z-index: var(--z-overlay);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--max-content);
  margin: 0 auto;
  width: 100%;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--color-warm-white);
}

.hero__position {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-volt);
  margin-top: 0.5rem;
}

.hero__details {
  font-size: 1rem;
  color: var(--color-mid-gray);
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .hero { min-height: 52vh; }
  .hero__name { font-size: clamp(3rem, 7vw, 5rem); }
}

/* ============================================
   Section Layout
   ============================================ */
.section,
.stats,
.bio,
.gallery,
.reel,
.footage {
  padding: var(--space-lg) var(--space-lg);
  max-width: var(--max-content);
  margin: 0 auto;
}

/* Coach attestation runs visually flush with the hero — half the top pad,
   full bottom pad — so the trust signal sits right under the name without
   the page-rhythm gap that separates later sections from each other. */
.attestation-section {
  padding-top: var(--space-md);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .section, .stats, .bio, .gallery, .reel, .footage {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ============================================
   Stats
   ============================================ */
.stats { border-top: var(--border-volt-dim); }

.stat-grid { display: grid; gap: 0; }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: var(--border-surface);
  gap: var(--space-md);
}

.stat-row:last-child { border-bottom: none; }

.stat__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warm-white);
}

.stat__context {
  font-size: 0.72rem;
  color: var(--color-mid-gray);
  margin-top: 0.1rem;
}

.stat__right { text-align: right; flex-shrink: 0; }

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1;
  color: var(--color-warm-white);
}

/* Verification pill badges */
.stat__verification {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  padding: 2px 7px;
  display: inline-block;
  white-space: nowrap;
}

.stat__verification--attested {
  color: var(--color-volt);
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.22);
}

.stat__verification--event {
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.stat__verification--self-reported {
  color: var(--color-mid-gray);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   Attestation Card
   ============================================ */
.attestation {
  background: var(--color-surface);
  border-left: var(--border-volt);
  padding: var(--space-md) var(--space-lg);
}

.attestation__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-volt);
  margin-bottom: 0.35rem;
}

.attestation__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-warm-white);
  line-height: 1.1;
}

.attestation__detail {
  font-size: 0.9rem;
  color: var(--color-mid-gray);
  margin-top: 0.2rem;
}

.attestation__contact { margin-top: 0.65rem; }

.attestation__contact a {
  color: var(--color-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  transition: text-decoration 0.15s ease;
}

.attestation__contact a:hover,
.attestation__contact a:focus { text-decoration: underline; }

/* ============================================
   Bio
   ============================================ */
.bio__text p,
.bio > p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  color: var(--color-warm-white);
}

.bio__text p:first-child,
.bio > p:first-child {
  font-size: 1.05rem;
  color: #EBE6DE;
}

.bio__text p:last-child,
.bio > p:last-child { margin-bottom: 0; }

/* ============================================
   Gallery
   ============================================ */
.gallery__headshot {
  max-width: var(--headshot-max);
  margin: 0 auto var(--space-md);
}

.gallery__headshot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery__item { overflow: hidden; }
.gallery__item img { width: 100%; height: auto; }

@media (min-width: 768px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .gallery__headshot { max-width: var(--headshot-max-desk); }
}

/* ============================================
   Highlight Reel
   ============================================ */
.reel__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface);
  overflow: hidden;
}

.reel__player video { width: 100%; height: 100%; }

/* Poster + play button (sample) */
.reel__thumbnail { width: 100%; height: 100%; object-fit: cover; }

.reel__play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: var(--play-btn-size);
  height: var(--play-btn-size);
  background: var(--color-overlay-70);
  border: var(--border-outline-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-content);
  transition: background 0.2s ease;
}

.reel__play-btn:hover,
.reel__play-btn:focus { background: rgba(13, 13, 15, 0.9); }

.reel__play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--color-warm-white);
}

/* ============================================
   Footage — thumbnail cards (sample)
   ============================================ */
.footage__header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-mid-gray);
  margin-bottom: var(--space-md);
}

.footage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 767px) { .footage__grid { grid-template-columns: 1fr; } }

.footage__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  overflow: hidden;
  transition: transform 0.15s ease;
}

.footage__card:hover { transform: translateY(-2px); }

.footage__thumb { aspect-ratio: 16/9; overflow: hidden; }
.footage__thumb img { width: 100%; height: 100%; object-fit: cover; }

.footage__label {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 16px 4px;
  color: var(--color-warm-white);
}

.footage__watch {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px 16px;
  color: var(--color-volt);
}

/* Footage — arrow links (live profiles) */
.footage__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: var(--border-surface);
  text-decoration: none;
  color: var(--color-warm-white);
  transition: color 0.15s ease;
}

.footage__link:hover { color: var(--color-volt); }

.footage__meta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footage__arrow {
  font-size: 1.25rem;
  color: var(--color-mid-gray);
  transition: color 0.15s ease;
}

.footage__link:hover .footage__arrow { color: var(--color-volt); }

/* ============================================
   Footer — Sticky Contact Bar
   ============================================ */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 0.9rem var(--space-lg);
  background: var(--color-base);
  border-top: var(--border-surface);
  text-align: center;
}

.footer__cta {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
  margin: 0;
}

.footer__cta a {
  color: var(--color-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.15s ease;
}

.footer__cta a:hover { text-decoration: underline; }

/* ============================================
   Narrow phones
   ============================================ */
@media (max-width: 390px) {
  .hero__name  { font-size: 2.25rem; }
  .stat__label { font-size: 0.95rem; }
  .stat__value { font-size: 1.4rem; }
  .attestation { padding: var(--space-sm) var(--space-md); }
}
