/* =========================================================
   RESOLVED — Exercise Physiology + Performance
   Design system v2 — black / white / off-white / charcoal
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f4f1;
  --charcoal: #1c1c1c;
  --charcoal-2: #262626;
  --line: #2a2a2a;
  --line-light: #e2e0da;
  --grey: #6b6b68;
  --grey-light: #9a9994;

  /* Accent — placeholder pending brand decision (doc §7): deep clinical
     red-orange vs. cool signal blue. Swap this one value to change the
     whole site's accent. */
  --accent: #c1440e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dark { background: var(--black); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey);
  max-width: 52ch;
}
.dark .lead { color: var(--grey-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.data-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: 2px;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.dark .btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.dark .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.dark .btn-outline { color: var(--white); border-color: var(--white); }
.dark .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 12px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.site-header.on-dark {
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.logo .sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--grey);
  margin-top: 5px;
  text-transform: uppercase;
}
.on-dark .logo .sub { color: var(--grey-light); }

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-item { position: relative; }

.nav-item > a, .nav-item > button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  padding: 10px 14px;
}
.nav-item > a:hover, .nav-item > button:hover { color: var(--accent); }
.nav-item .caret { font-size: 9px; opacity: 0.6; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 1px;
}
.dropdown a:hover { background: var(--off-white); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.header-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 30px; height: 22px;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 5px; }
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle::after { bottom: 5px; }
.nav-toggle.open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

/* Mobile full-screen overlay */
.mobile-nav {
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--white);
  z-index: 190;
  padding: 30px var(--gutter) 40px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.open { display: block; }

.mobile-nav .m-group { border-bottom: 1px solid var(--line-light); }
.mobile-nav .m-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-nav .m-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.mobile-nav .m-group.open .m-panel { max-height: 600px; }
.mobile-nav .m-panel a {
  display: block;
  padding: 12px 0 12px 4px;
  font-size: 16px;
  color: var(--grey);
}
.mobile-nav .m-flat a {
  display: block;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-light);
}
.mobile-nav .m-foot {
  margin-top: 30px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 15px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-bg-marks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 700;
  color: rgba(255,255,255,0.045);
  font-size: 22vw;
  line-height: 1;
  white-space: nowrap;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 92px);
  color: var(--white);
}
.hero .wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 8.5vw, 128px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin-bottom: 6px;
}
.hero .descriptor {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 34px;
}
.hero .tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 38px);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 18ch;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

/* Generic dark/light hero variant for interior pages (shorter) */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 64px); }

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

section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.on-off { background: var(--off-white); }
.on-dark { background: var(--black); color: var(--white); }
.on-charcoal { background: var(--charcoal); color: var(--white); }
.bordered { border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.on-dark.bordered, .on-charcoal.bordered { border-color: var(--line); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 46px); }

/* ---------- Trust strip ---------- */

.trust-strip {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-align: center;
}
.trust-strip .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.trust-strip span:not(:last-child)::after { content: "·"; margin-left: 18px; color: var(--line-light); }

/* ---------- Pathways ---------- */

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.pathway-card {
  background: var(--white);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background 0.18s ease;
}
.pathway-card:hover { background: var(--black); color: var(--white); }
.pathway-card:hover .pathway-num { color: var(--accent); }
.pathway-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}
.pathway-card h3 { font-size: 18px; margin-top: auto; }
.pathway-card p { font-size: 14px; color: var(--grey); flex-grow: 1; }
.pathway-card:hover p { color: var(--grey-light); }
.pathway-card .go {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.method-step {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}
.method-step:last-child { border-right: none; }
.method-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.method-step h3 { font-size: 19px; margin-bottom: 12px; }
.method-step p { font-size: 14px; color: var(--grey-light); }

/* ---------- Testing capability band ---------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.capability-tile {
  border: 1px solid var(--line-light);
  padding: 26px 22px;
}
.on-dark .capability-tile, .on-charcoal .capability-tile { border-color: var(--line); }
.capability-tile .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}
.capability-tile h4 { font-size: 15px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; font-weight: 700; }
.capability-tile p { font-size: 13px; color: var(--grey); }
.on-dark .capability-tile p, .on-charcoal .capability-tile p { color: var(--grey-light); }

/* ---------- Stat / data blocks ---------- */

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 34px;
}
.stat .num .accent { color: var(--accent); }
.stat .cap {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

/* ---------- Cards / lists generic ---------- */

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.plain-card { background: var(--white); padding: 34px 28px; }
.on-dark .card-grid-3, .on-dark .card-grid-2, .on-charcoal .card-grid-3, .on-charcoal .card-grid-2 { background: var(--line); border-color: var(--line); }
.on-dark .plain-card, .on-charcoal .plain-card { background: var(--charcoal); }
.plain-card h4 { font-size: 15px; text-transform: none; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.plain-card p { font-size: 14px; color: var(--grey); }
.on-dark .plain-card p, .on-charcoal .plain-card p { color: var(--grey-light); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-light);
}
table.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
}
.on-dark table.data-table th, .on-charcoal table.data-table th { color: var(--grey-light); }
.on-dark table.data-table td, .on-charcoal table.data-table td { border-color: var(--line); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 76px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 26px; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.team-card { background: var(--white); }
.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #ececea, #d8d6cf);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-light);
}
.team-photo .initials { font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--grey); }
.team-info { padding: 30px 28px; }
.team-info h3 { font-size: 20px; margin-bottom: 6px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.team-info p { font-size: 14.5px; color: var(--grey); margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-list span { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line-light); padding: 6px 10px; color: var(--grey); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.info-list .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.info-list .val { font-size: 15.5px; }
.info-list .val a:hover { color: var(--accent); }

.form-box { background: var(--off-white); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-light);
  color: var(--black);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border-radius: 1px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--grey); margin-top: 14px; }

/* ---------- Info-required flag ---------- */

.flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--grey-light); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--white); margin-bottom: 14px; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--grey);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
  padding: 18px 0;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .pathways-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(2) { border-right: none; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .site-header .wrap { height: 64px; }
  .mobile-nav { top: 64px; }

  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .page-hero { padding: 44px 0 40px; }

  .pathways-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-step { border-right: none; border-bottom: 1px solid var(--line); }
  .capability-grid { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat-row { gap: 28px; }
  table.data-table { display: block; overflow-x: auto; white-space: nowrap; }
}
