/* Home Route Health
   Layout: a left-aligned column on white. The hero pairs the headline with a navy
   "three ways to train" panel, and one blue ribbon (the wave from the logo, read as
   the route) sweeps beneath it. Every section after that stays quiet. */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color: every value is sampled from the logo or biased toward its navy */
  --navy: #1F3864;
  --navy-deep: #172A4C;
  --ribbon-a: #3572B6;
  --ribbon-b: #4184CE;
  --ribbon-c: #2B538D;
  --ink: #1A2640;
  --slate: #55627B;
  --mist: #F2F5FA;
  --line: #D5DDEA;
  --paper: #FFFFFF;
  --link: #2B538D;
  --on-navy: #FFFFFF;
  --on-navy-soft: #CDD9EE;
  --on-navy-line: #4A6089;

  /* type: the two faces already in the logo */
  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --bar: 0rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--navy); }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--navy); text-wrap: balance; }
h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .012em;
}
h1 { font-size: clamp(2.125rem, 1.2rem + 4.2vw, 3.625rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.0625rem); line-height: 1.16; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }

p, li, dd { max-width: 68ch; }

/* ---------- shared layout ---------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.25rem); }
.section-mist { background: var(--mist); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.stack > *, .stack-lg > * { min-width: 0; }
.lede { font-size: clamp(1.125rem, 1.02rem + .5vw, 1.3125rem); line-height: 1.5; max-width: 38rem; }
.fine { font-size: .9375rem; color: var(--slate); }
.nw { white-space: nowrap; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }

.skip { position: absolute; left: -999rem; top: 0; background: var(--navy); color: var(--on-navy); padding: .75rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.3rem;
  border: 2px solid transparent; border-radius: 6px;
  font: 600 1rem/1.25 var(--body); text-align: center; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: var(--paper); }
.btn-ghost:hover { background: var(--navy); color: var(--on-navy); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy-deep); }
.btn-outline-light { border-color: var(--on-navy-soft); color: var(--on-navy); }
.btn-outline-light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--navy); text-decoration: none; }
.brand img { width: 5rem; }
.brand-name { font: 700 1.0625rem/1.15 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.site-nav ul { display: flex; gap: clamp(.9rem, 1.6vw, 1.15rem); }
.site-nav a {
  display: block; padding-block: .55rem;
  color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--navy); border-bottom-color: var(--ribbon-b); }
.header-cta { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; white-space: nowrap; }

/* the button needs the full row; below that the hero and the phone bar carry it */
@media (max-width: 72rem) {
  .header-cta { display: none; }
}
/* six links no longer fit beside the name: give them their own row */
@media (max-width: 56rem) {
  .header-row { padding-bottom: 0; }
  .brand { margin-block: .15rem .35rem; }
  .site-nav { width: 100%; border-top: 1px solid var(--line); }
  .site-nav ul { justify-content: space-between; flex-wrap: wrap; gap: 0 .6rem; }
  .site-nav a { padding-block: .7rem; }
}
@media (max-width: 44rem) {
  .brand img { width: 4.75rem; }
  .brand-name { font-size: 1rem; }
  .site-nav a { font-size: .875rem; }
}
@media (max-width: 34rem) {
  .nav-more { display: none; }
}
@media (max-width: 22rem) {
  .site-nav ul { gap: 0 .5rem; }
  .site-nav a { font-size: .8125rem; }
}
@media (max-width: 21.25rem) {
  .site-nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

/* ---------- hero ---------- */

.hero {
  --band: clamp(5.5rem, 14vw, 11.5rem);
  position: relative; overflow: hidden;
  padding-block: clamp(2.25rem, 6vw, 4.75rem) calc(var(--band) + 1.5rem);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
}
.hero-copy { display: grid; gap: 1.35rem; justify-items: start; }
.ribbon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--band); }

.ways {
  background: var(--navy); color: var(--on-navy);
  border-radius: 10px; padding: 1.5rem 1.5rem .4rem;
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgb(23 42 76 / .6);
}
.ways h2 { color: var(--on-navy-soft); font-size: .9375rem; font-weight: 600; letter-spacing: .14em; padding-bottom: 1.1rem; }
.way {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1.25rem; align-items: center;
  padding-block: 1.05rem; border-top: 1px solid var(--on-navy-line);
  color: var(--on-navy); text-decoration: none;
}
.way-name { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.way-note { grid-column: 1; font-size: .9375rem; line-height: 1.4; color: var(--on-navy-soft); }
.way-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.way:hover { color: var(--on-navy); }
.way:hover .way-name { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .hero .actions { width: 100%; }
  .hero .actions .btn { flex: 1 1 100%; }
  .ways { padding-inline: 1.15rem; }
}
@media (max-width: 22rem) {
  .way { grid-template-columns: minmax(0, 1fr); }
  .way-price { grid-column: 1; grid-row: auto; margin-top: .25rem; }
}

/* ---------- page heads on inner pages ---------- */

.page-head { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .wrap { display: grid; gap: 1.1rem; justify-items: start; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; font-size: .9375rem; }
.page-head + .section { padding-top: clamp(1.25rem, 3vw, 2rem); }

/* ---------- how it works: a real sequence, so it is numbered ---------- */

.steps { position: relative; display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.375rem; height: 2px;
  background: linear-gradient(90deg, var(--ribbon-a), var(--ribbon-b) 40%, var(--ribbon-c));
}
.steps li { position: relative; display: grid; gap: .6rem; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .4rem;
  border: 2px solid var(--navy); border-radius: 50%;
  background: var(--paper); color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (max-width: 52rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps::before { left: 1.3125rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--ribbon-a), var(--ribbon-b) 40%, var(--ribbon-c)); }
  .steps li { padding-left: 4rem; }
  .step-n { position: absolute; left: 0; top: -.35rem; margin: 0; }
}

/* ---------- lists ---------- */

.checks { display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: .5em;
  width: .85rem; height: .45rem; border-left: 2.5px solid var(--ribbon-b); border-bottom: 2.5px solid var(--ribbon-b);
  transform: rotate(-45deg);
}
.plain-list { display: grid; gap: .55rem; }
.plain-list li { padding-left: 1.1rem; border-left: 2px solid var(--line); }

/* ---------- travel table ---------- */

.table-scroll { overflow-x: auto; max-width: 48rem; }
.zones { width: 100%; border-collapse: collapse; text-align: left; }
.zones th, .zones td { padding: .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.zones thead th { font-size: .875rem; font-weight: 600; color: var(--slate); padding-block: 0 .6rem; }
.zones td:last-child, .zones th:last-child { text-align: right; padding-left: 1.5rem; white-space: nowrap; font-weight: 700; color: var(--navy); }
.zones thead th:last-child { font-weight: 600; color: var(--slate); }
@media (max-width: 30rem) {
  .zones td:last-child, .zones th:last-child { padding-left: 1rem; }
  .zones td:last-child { font-size: .9375rem; line-height: 1.85; }
}
@media (max-width: 22rem) {
  .zones td:last-child { white-space: normal; min-width: 6rem; line-height: 1.5; }
}

/* ---------- survey callout ---------- */

.callout { background: var(--mist); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; justify-items: start; }
.section-mist .callout { background: var(--paper); }

/* ---------- questions ---------- */

.faq { border-top: 1px solid var(--line); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.1rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-right: .25rem;
  border-right: 2.5px solid var(--ribbon-b); border-bottom: 2.5px solid var(--ribbon-b);
  transform: translateY(-.15rem) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(.15rem) rotate(-135deg); }
.faq details p { padding-bottom: 1.2rem; }

/* ---------- plans and prices ---------- */

.plans { border-top: 1px solid var(--line); }
.plan {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(8.5rem, auto);
  gap: .4rem clamp(1rem, 3vw, 2.5rem); align-items: baseline;
  padding-block: 1.3rem; border-bottom: 1px solid var(--line); max-width: none;
}
.plan h3 { font-size: 1.125rem; }
.plan p { max-width: none; }
.price { text-align: right; white-space: nowrap; color: var(--slate); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.price b { color: var(--navy); font-size: 1.375rem; font-weight: 700; }
.plan .desc b { color: var(--navy); font-weight: 700; }
@media (max-width: 46rem) {
  .plan { grid-template-columns: minmax(0, 1fr) auto; }
  .plan .desc { grid-column: 1 / -1; grid-row: 2; }
}

.offers { display: grid; gap: 1.4rem; }
.offers dt { font-weight: 700; color: var(--navy); }
.offers dd { margin-top: .2rem; }
.offers > div { max-width: 68ch; }
.offers dt .lite, .offers dt em { font-weight: 500; }
@media (min-width: 52rem) {
  .offers-cols { display: block; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
  .offers-cols > div { break-inside: avoid; margin-bottom: 1.6rem; }
}

.note { max-width: none; border-top: 1px solid var(--line); padding-top: 1.25rem; color: var(--slate); font-size: .9375rem; }

/* ---------- about ---------- */

.portrait img { width: 100%; border-radius: 4px; }
.creds h3 { margin-bottom: 1rem; }
.cols-2 { display: block; columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4rem); }
.cols-2 li { break-inside: avoid; margin-bottom: .7rem; }
@media (min-width: 52rem) {
  .portrait { position: sticky; top: 1.5rem; }
}

/* ---------- questions page ---------- */

.qa { display: grid; max-width: 46rem; border-top: 1px solid var(--line); }
.qa > div { display: grid; gap: .5rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.qa h2 { font: 700 1.1875rem/1.3 var(--body); text-transform: none; letter-spacing: 0; }

/* ---------- blog ---------- */

.posts { display: grid; gap: 2rem; max-width: 46rem; }
.post-card { display: grid; gap: 1.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-card-body { display: grid; gap: .6rem; }
.post-card.has-thumb { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: start; }
.post-thumb img { width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 34rem) {
  .post-card.has-thumb { grid-template-columns: minmax(0, 1fr); }
}
.post-card h2 { font-size: clamp(1.3125rem, 1.15rem + .8vw, 1.625rem); }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.post-meta { color: var(--slate); font-size: .9375rem; }
.crumb { font-size: .9375rem; font-weight: 600; }
.prose { display: grid; gap: 1.15rem; max-width: 42rem; }
.prose > * { min-width: 0; }
.prose h2 { font: 700 1.3125rem/1.3 var(--body); text-transform: none; letter-spacing: 0; margin-top: .9rem; }
.prose .actions { margin-top: 1rem; }
.post-figure { display: grid; gap: .5rem; margin-block: .5rem; }
.post-figure img { width: 100%; height: auto; border-radius: 4px; }
.post-figure figcaption { font-size: .875rem; color: var(--slate); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1rem, 3vw, 1.5rem); align-items: start; }
.post-grid .post-figure { margin-block: 0; }
@media (max-width: 30rem) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
}
.prose .checks { display: grid; gap: .6rem; }

/* ---------- contact ---------- */

.reach { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 44rem; }
.reach > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.reach dt { font-weight: 600; color: var(--slate); }
.reach dd { font-weight: 600; overflow-wrap: anywhere; }
.reach dd a { font-weight: 700; }
@media (max-width: 30rem) { .reach > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closing band ---------- */

.band { background: var(--navy); color: var(--on-navy); padding-block: clamp(3rem, 7vw, 4.75rem); }
.band .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.band h2 { color: var(--on-navy); }
.band p { color: var(--on-navy-soft); }
.band a:not(.btn) { color: var(--on-navy); }

/* ---------- client words ---------- */

.quote-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote { display: grid; gap: .9rem; max-width: 44rem; padding-left: 1.4rem; border-left: 3px solid var(--ribbon-b); }
.quote blockquote { margin: 0; }
.quote blockquote p { max-width: none; font-size: clamp(1.125rem, 1.02rem + .5vw, 1.3125rem); line-height: 1.55; color: var(--navy); }
.quote figcaption { font-size: .9375rem; color: var(--slate); }
.quote figcaption strong { color: var(--ink); }
.reach dd .lite { font-weight: 500; color: var(--slate); }

/* before and after pair: two dated photos at the same scale */
.quote-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.quote-grid .ba-wrap { max-width: 56rem; }
.ba-result { font-size: .9375rem; font-style: italic; color: var(--ink); opacity: .72; max-width: 44rem; margin-top: .25rem; }
.ba-wrap { display: grid; gap: .5rem; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ba figure { display: grid; gap: .4rem; margin: 0; }
.ba img { width: 100%; height: auto; border-radius: 4px; display: block; }
.ba figcaption { font-size: .875rem; font-weight: 600; color: var(--ink); }
.ba-note { font-size: .875rem; color: var(--slate); }
.prose .ba-wrap { margin-block: .5rem; }
.prose .ba { gap: 1rem clamp(1rem, 3vw, 1.5rem); }

/* ---------- footer ---------- */

.site-footer { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem clamp(1.5rem, 4vw, 4rem); grid-template-columns: minmax(0, 15rem) repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 62rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2rem; }
  .footer-logo { grid-column: 1 / -1; }
}
.footer-logo img { width: 12.5rem; }
.site-footer h2 { font: 700 .9375rem/1.3 var(--body); text-transform: none; letter-spacing: 0; margin-bottom: .7rem; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer li a { font-weight: 600; overflow-wrap: anywhere; }
.legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--slate); font-size: .875rem; display: grid; gap: .6rem; }
.legal p { max-width: 80ch; }
/* Phones and small tablets: the logo is a centred lockup, so the whole footer sits on
   one centre line under it instead of leaving the logo stranded at the left edge. */
@media (max-width: 46rem) {
  .site-footer { text-align: center; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; justify-items: center; }
  .footer-logo img { width: min(15rem, 64vw); margin-inline: auto; }
  .site-footer ul { justify-items: center; gap: .6rem; }
  /* page links run as centred rows; balance keeps the rows even where the browser supports it */
  .footer-pages ul { display: block; max-width: 23rem; margin-inline: auto; text-wrap: balance; }
  .footer-pages li { display: inline-block; margin: .3rem .5rem; }
  .legal { justify-items: center; margin-top: 2rem; }
  .legal p { max-width: 34rem; text-wrap: balance; }
}

/* ---------- phone action bar ---------- */

.mobile-bar { display: none; }
@media (max-width: 44rem) {
  :root { --bar: 4.5rem; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; gap: .6rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -.5rem 1.5rem -1rem rgb(23 42 76 / .45);
  }
  .mobile-bar .btn { min-height: 2.9rem; padding-inline: .9rem; font-size: .9375rem; }
  .mobile-bar .btn-primary { flex: 1 1 auto; }
  .mobile-bar .btn-ghost { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 1.5rem; }

@media print {
  .mobile-bar, .site-nav, .header-cta, .ribbon { display: none; }
  body { padding-bottom: 0; }
}
