:root {
  --bg: #fcfaf6;
  --surface: #ffffff;
  --surface-soft: #f6f1e8;
  --surface-muted: #eef2ee;
  --text: #132825;
  --muted: #58716c;
  --line: #d8dfdb;
  --brand: #ff6422;
  --brand-dark: #d7521b;
  --forest: #0c2a26;
  --forest-soft: #123832;
  --sand: #ece7df;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 20px 50px rgba(12, 42, 38, 0.08);
  --shadow-strong: 0 24px 70px rgba(12, 42, 38, 0.14);
  --container: 1180px;
  --header-height: 90px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.section {
  padding: 84px 0;
}
.section-tight { padding: 58px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background: linear-gradient(135deg, #08201d 0%, #10342f 100%);
  color: white;
}
.section-light {
  background: linear-gradient(180deg, #fdfaf4 0%, #f3ede3 100%);
}

h1, h2, h3, h4 { margin: 0 0 18px; line-height: 1.04; }
h1 { font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -0.04em; font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -0.04em; font-weight: 900; }
h3 { font-size: clamp(1.32rem, 2vw, 1.9rem); letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.84); }
.text-lead { font-size: clamp(1.08rem, 1.8vw, 1.34rem); max-width: 60ch; }
.text-left { text-align: left; }
.max-680 { max-width: 680px; }
.max-760 { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 250, 246, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19, 40, 37, 0.08);
}
.site-header .bar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { height: 42px; width: auto; }
.nav-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-weight: 700;
  color: #314542;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: white; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { border-color: rgba(12,42,38,0.18); color: var(--forest); background: transparent; }
.btn-outline:hover { border-color: rgba(12,42,38,0.35); }
.btn-light { background: white; color: var(--forest); }
.btn-light:hover { background: #f0f3f0; }
.link-inline {
  font-weight: 800;
  color: var(--forest);
}
.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(19,40,37,0.12);
  background: white;
  color: var(--forest);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { padding: 24px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0 38px; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.metric {
  display: grid;
  gap: 3px;
}
.metric strong { font-size: 2rem; letter-spacing: -0.04em; }
.metric span { color: rgba(255,255,255,0.78); }
.hero-image,
.media-card,
.feature-media,
.page-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}
.hero-image img,
.media-card img,
.feature-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image { min-height: 620px; }
.hero-image::after,
.page-hero-media::after,
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,21,19,0.02), rgba(7,21,19,0.22));
  pointer-events: none;
}
.home-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(12,42,38,0.14);
  backdrop-filter: blur(12px);
}
.home-badge strong { display: block; font-size: 1.05rem; }
.home-badge span { font-size: 0.95rem; color: #4e6661; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.reverse .feature-copy { order: 2; }
.split.reverse .feature-media { order: 1; }
.feature-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-copy li {
  padding-left: 32px;
  position: relative;
  color: var(--text);
  font-weight: 600;
}
.feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}
.feature-media { min-height: 460px; background: #ddd; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(12,42,38,0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.38rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card.soft { background: linear-gradient(180deg, #fff7f1 0%, #fff 100%); }
.card.muted { background: var(--surface-muted); }
.card .kicker {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 10px;
}

.plan-table {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(12,42,38,0.08);
  background: white;
  box-shadow: var(--shadow);
}
.plan-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.plan-table th,
.plan-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid rgba(12,42,38,0.08);
}
.plan-table th {
  background: #f8f5ee;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3e5954;
}
.plan-table tr:last-child td { border-bottom: 0; }
.plan-table td strong { color: var(--forest); }
.price { font-size: 1.6rem; font-weight: 900; color: var(--forest); }

.coach-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.coach-card {
  padding: 28px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(12,42,38,0.08);
  box-shadow: var(--shadow);
}
.coach-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.coach-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe2d4, #fff4ed);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
}
.coach-title { color: var(--brand); font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f5f3;
  color: #3f5a55;
  font-size: 0.9rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.faq-item {
  border-bottom: 1px solid rgba(12,42,38,0.12);
}
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--forest);
  cursor: pointer;
}
.faq-question span:last-child {
  font-size: 1.5rem;
  color: var(--forest);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-answer-inner {
  padding: 0 0 22px;
}
.faq-item.open .faq-answer { max-height: 240px; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

.article-stack { display: grid; gap: 34px; }
.article-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: stretch;
  padding: 24px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(12,42,38,0.08);
  box-shadow: var(--shadow);
}
.article-card .content {
  padding: 18px 14px 18px 8px;
}
.article-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.article-card li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
}
.article-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}
.article-card .media { min-height: 360px; border-radius: 24px; overflow: hidden; }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; }

.calc-section {
  border-radius: 34px;
  background: linear-gradient(180deg, #f9f7f1 0%, #f2ede4 100%);
  box-shadow: var(--shadow);
  padding: 46px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.calc-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(12,42,38,0.08);
  box-shadow: 0 16px 40px rgba(12,42,38,0.08);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--forest); font-size: 0.94rem; }
input, textarea, select {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid #cfd8d4;
  padding: 14px 16px;
  background: white;
  color: var(--text);
}
textarea { min-height: 150px; resize: vertical; }
.help-text {
  margin-top: 14px;
  min-height: 54px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #edf2ef;
  color: #39524d;
}
.result-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.result-pill {
  padding: 16px 18px;
  border-radius: 16px;
  background: #edf2ef;
  font-weight: 700;
  color: #2f4742;
}
.result-pill strong { display: block; font-size: 1.5rem; color: var(--forest); }

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
}
.contact-card {
  background: white;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(12,42,38,0.08);
  box-shadow: var(--shadow);
}
.contact-details {
  display: grid;
  gap: 18px;
}
.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #526a65;
}
.address-lines { font-style: normal; color: var(--text); font-weight: 600; }

.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f302b 0%, #123a34 100%);
  color: white;
}
.cta-panel p { color: rgba(255,255,255,0.8); }
.cta-panel .btn-outline { border-color: rgba(255,255,255,0.24); color: white; }

.site-footer {
  background: linear-gradient(135deg, #08201d 0%, #0c2a26 100%);
  color: white;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.95fr;
  gap: 30px;
}
.site-footer p, .site-footer li, .site-footer a { color: rgba(255,255,255,0.78); }
.site-footer .address-lines { color: rgba(255,255,255,0.78); font-weight: 600; line-height: 1.65; }
.footer-logo img { height: 42px; }
.footer-title { margin-bottom: 14px; font-size: 1.28rem; font-weight: 800; color: white; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: white; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-weight: 800;
}
.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sale-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 17, 16, 0.56);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}
.sale-modal.open { visibility: visible; opacity: 1; }
.sale-dialog {
  width: min(560px, 100%);
  background: white;
  border-radius: 28px;
  padding: 34px 34px 28px;
  position: relative;
  box-shadow: 0 32px 90px rgba(0,0,0,0.22);
}
.sale-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f2f5f3;
  color: var(--forest);
  font-size: 1.5rem;
  cursor: pointer;
}
.sale-dialog h3 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}
.sale-dialog p { margin-bottom: 24px; }

@media (max-width: 1060px) {
  .hero-grid,
  .split,
  .article-card,
  .calc-grid,
  .contact-layout,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .metric-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(12,42,38,0.08);
    box-shadow: var(--shadow-strong);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-wrap.open { display: flex; }
  .main-nav { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-cta { width: 100%; }
  .header-cta .btn { width: 100%; }
  .site-header .bar { min-height: 82px; }
  .hero-image { min-height: 460px; }
  .feature-media { min-height: 340px; }
  .article-card .media { min-height: 300px; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .hero-actions, .form-grid, .grid-3, .grid-4, .coach-grid {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4, .coach-grid { display: grid; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .calc-section, .card, .contact-card, .sale-dialog { padding: 24px; }
  .hero-image { min-height: 400px; }
  .cta-panel { padding: 26px; }
}

/* v2.3 visual refinements */
.hero-image,
.feature-media,
.page-hero-media {
  background: transparent;
}

.hero-image {
  height: 620px;
  min-height: 0;
}

.feature-media {
  height: 460px;
  min-height: 0;
}

.hero-image > img,
.feature-media > img,
.page-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Keep text blocks aligned to the left edge of the global content grid. */
.faq-shell {
  width: min(900px, 100%);
  margin-left: 0;
  margin-right: auto;
}

.resource-intro {
  width: min(780px, 100%);
  margin-left: 0;
  margin-right: auto;
}

/* Stronger visual separation for the runner calculator. */
.pace-section {
  background: #f7f2e9;
}

.calc-section {
  background: #dfeae4;
  border: 1px solid #cfddd5;
  box-shadow: 0 22px 54px rgba(12, 42, 38, 0.11);
}

.contact-hero-media {
  height: 470px;
  min-height: 0 !important;
  align-self: start;
}
.contact-hero-media img {
  object-position: center center;
}

.sale-dialog .sale-action {
  width: 100%;
  min-height: 60px;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  justify-content: center;
}

.footer-logo img {
  height: 46px;
  width: auto;
}

@media (max-width: 920px) {
  .hero-image { height: 500px; min-height: 0; }
  .feature-media { height: 360px; min-height: 0; }
  .contact-hero-media { height: 360px; }
}

@media (max-width: 720px) {
  .hero-image { height: 430px; min-height: 0; }
  .feature-media { height: 320px; min-height: 0; }
  .contact-hero-media { height: 320px; }
  .sale-dialog .sale-action { min-height: 58px; }
}

/* Ensure resource photography also fills its cards with no exposed fallback area. */
.article-card .media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: transparent;
}
.article-card .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* v2.4 — restore previous photographic proportions without exposed fallback strips */
.hero-image,
.feature-media,
.page-hero-media {
  height: auto;
  min-height: 0;
  background: transparent;
}

.hero-image > img,
.feature-media > img,
.page-hero-media > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* The About opener deliberately carries more visual weight than standard feature images. */
.about-hero-media {
  position: relative;
  height: 610px;
  min-height: 610px;
  align-self: center;
}
.about-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

/* Contact keeps the previous version's intended desktop image height with the newer landscape photo. */
.contact-hero-media {
  position: relative;
  height: 520px;
  min-height: 520px !important;
  align-self: start;
}
.contact-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

@media (max-width: 920px) {
  .hero-image,
  .feature-media,
  .page-hero-media {
    height: auto;
    min-height: 0;
  }
  .about-hero-media {
    height: 500px;
    min-height: 500px;
  }
  .contact-hero-media {
    height: 420px;
    min-height: 420px !important;
  }
  .article-card .media {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .about-hero-media {
    height: 420px;
    min-height: 420px;
  }
  .contact-hero-media {
    height: 360px;
    min-height: 360px !important;
  }
}

/* v2.5 — taller photographic feature modules and a stronger Training Plans hero */
.feature-media:not(.about-hero-media):not(.contact-hero-media) {
  position: relative;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  background: transparent;
}

.feature-media:not(.about-hero-media):not(.contact-hero-media) > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

.plans-hero-media {
  height: 540px !important;
  min-height: 540px !important;
}

.plans-hero-media > img {
  object-position: center 42%;
}

@media (max-width: 920px) {
  .feature-media:not(.about-hero-media):not(.contact-hero-media) {
    height: 420px;
    min-height: 420px;
  }
  .plans-hero-media {
    height: 460px !important;
    min-height: 460px !important;
  }
}

@media (max-width: 720px) {
  .feature-media:not(.about-hero-media):not(.contact-hero-media) {
    height: 350px;
    min-height: 350px;
  }
  .plans-hero-media {
    height: 390px !important;
    min-height: 390px !important;
  }
}
