/* ============================================================
   MILEPOST TRANSPORTATION — shared stylesheet
   Palette, type, layout, components for all six pages.
   ============================================================ */

:root {
  --pine:      #1f2d26;   /* deep near-black green — footer, dark bg, headings */
  --pine-deep: #172019;   /* darker pine for the sticky bar backing */
  --limestone: #f4f1ea;   /* warm page background */
  --brass:     #b08d4f;   /* aged brass accent — buttons, eyebrows, marks */
  --brass-ink: #a07f42;   /* slightly deeper brass for button text-on-light edges */
  --sage:      #4a5d53;   /* muted secondary text */
  --sage-soft: #6d7a72;   /* lighter muted text on dark bg */
  --white:     #ffffff;
  --line:      #e2ddd1;   /* hairline dividers on light bg */
  --line-dark: #33413a;   /* hairline dividers on dark bg */

  --maxw: 640px;          /* single-column reading width (mobile-first brand) */
  --pad: 28px;            /* base horizontal padding */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--pine);
  background: var(--limestone);
  line-height: 1.55;
  font-size: 17px;
  /* leave room so the sticky bar never covers the footer's last line */
  padding-bottom: 96px;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

p { color: var(--sage); }
p.lead { font-size: 19px; line-height: 1.5; }

a { color: var(--brass); text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }

.bg-pine { background: var(--pine); color: var(--limestone); }
.bg-white { background: var(--white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark {
  background: rgba(31, 45, 38, 0.92);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--pine);
  text-transform: uppercase;
  padding-left: 2px;
}
.on-dark .wordmark { color: var(--limestone); }

/* hamburger button */
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--pine); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.on-dark .menu-toggle span { background: var(--limestone); }
.menu-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* hamburger -> X when open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Slide-in menu panel ---------- */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(23, 32, 25, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 70;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 420px);
  background: var(--pine);
  color: var(--limestone);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  padding: 26px var(--pad) 40px;
  overflow-y: auto;
}
.nav-panel.open { transform: translateX(0); }

.nav-panel-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 44px;
}
.nav-panel-top .wordmark { color: var(--limestone); }
.nav-close {
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--limestone); font-size: 30px; line-height: 1;
  border-radius: 8px;
}
.nav-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.nav-links { list-style: none; display: flex; flex-direction: column; }
.nav-links li { border-bottom: 1px solid var(--line-dark); }
.nav-links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--limestone);
  padding: 20px 0;
  transition: color .2s ease, padding-left .2s ease;
}
.nav-links a .num {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brass); padding-left: 8px; }

.nav-panel-footer { margin-top: auto; padding-top: 34px; }
.nav-panel-footer .label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 10px;
}
.nav-panel-footer a.textline {
  font-family: var(--sans); font-size: 18px; color: var(--limestone);
  display: block; margin-bottom: 6px;
}
.nav-panel-footer a.partners {
  font-size: 14px; color: var(--sage-soft); margin-top: 18px; display: inline-block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }

.hero-photo {
  position: relative;
  padding: 44px 0 40px;
  background-size: cover;
  background-position: center;
}
/* limestone veil over hero photos so dark serif stays readable */
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,241,234,.86) 0%, rgba(244,241,234,.72) 55%, rgba(244,241,234,.82) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(40px, 12vw, 62px);
  margin-bottom: 22px;
}
.hero .lead { margin-bottom: 30px; max-width: 34ch; }

/* plain (no-photo) hero on the router/home */
.hero-plain { padding: 40px 0 8px; }

/* ---------- Elevation-line signature ---------- */
.elevation { margin: 30px 0 10px; }
.elevation svg { width: 100%; height: auto; display: block; }
.elevation .track { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; }
.elevation .dot { fill: var(--brass); }
.elev-labels {
  display: flex; justify-content: space-between;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--sage); margin-top: 12px;
}
.elev-labels .end { text-align: right; }

/* draw-in animation */
@media (prefers-reduced-motion: no-preference) {
  .elevation .track {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: draw 1.9s cubic-bezier(.45,0,.15,1) forwards .2s;
  }
  .elevation .dot { opacity: 0; animation: fadeDot .5s ease forwards; }
  .elevation .dot.start { animation-delay: .3s; }
  .elevation .dot.end   { animation-delay: 2.0s; }
}
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fadeDot { to { opacity: 1; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 18px;
  padding: 20px 34px;
  border-radius: 999px;
  border: none; cursor: pointer;
  text-align: center;
  transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-brass { background: var(--brass); color: var(--white); box-shadow: 0 6px 20px rgba(176,141,79,.28); }
.btn-brass:hover { background: #a2803f; transform: translateY(-1px); }
.btn-pine { background: var(--pine); color: var(--limestone); }
.btn-pine:hover { background: #26362d; }
.btn-block { display: flex; width: 100%; }

.call-link {
  display: inline-block; margin-top: 16px;
  font-size: 15px; color: var(--sage); letter-spacing: 0.02em;
}
.call-link a { color: var(--brass); font-weight: 600; }
.on-dark-text .call-link, .bg-pine .call-link { color: var(--sage-soft); }

.reassure {
  font-size: 14px; color: var(--sage); margin-top: 14px; letter-spacing: 0.01em;
}

/* ============================================================
   HOME — router cards
   ============================================================ */
.cards { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px 28px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,45,38,.08); }
.card h2 { font-size: 30px; margin-bottom: 12px; }
.card p { margin-bottom: 20px; }
.card .go {
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  color: var(--brass); display: inline-flex; align-items: center; gap: 8px;
}
.card .go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.card:hover .go svg { transform: translateX(4px); }

.trust-strip {
  text-align: center; color: var(--sage); font-size: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; margin: 8px 0;
}

.closing-router { text-align: center; padding: 48px 0 8px; }
.closing-router h2 { font-size: 34px; margin-bottom: 14px; }
.closing-router p { margin-bottom: 26px; }

/* ============================================================
   STEPS (How it works) — vertical route line
   ============================================================ */
.steps { position: relative; margin-top: 10px; }
.step { position: relative; padding-left: 78px; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step .marker {
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--pine); color: var(--limestone);
  font-family: var(--serif); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
/* connecting line between markers */
.step::before {
  content: ""; position: absolute;
  left: 26px; top: 52px; bottom: 0;
  width: 1.5px; background: var(--brass); opacity: .5;
}
.step:last-child::before { display: none; }
.step h3 { font-size: 27px; margin-bottom: 8px; }
.step p { font-size: 17px; }

/* ============================================================
   FEATURE LIST (icon rows) — "who this is for", "what the ride looks like"
   ============================================================ */
.features { list-style: none; margin-top: 8px; }
.feature { display: flex; gap: 20px; padding: 20px 0; align-items: flex-start; }
.feature .ficon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: #ece7db; display: flex; align-items: center; justify-content: center;
}
.feature .ficon svg { width: 24px; height: 24px; stroke: var(--brass); fill: none; stroke-width: 1.7; }
.feature .fbody h3 { font-size: 22px; margin-bottom: 4px; }
.feature .fbody p { font-size: 16px; }
.feature .fbody.simple { padding-top: 6px; }
.feature .fbody.simple p { color: var(--pine); font-size: 18px; }

/* bulleted benefit list */
.bullets { list-style: none; margin-top: 6px; }
.bullets li {
  position: relative; padding-left: 26px; padding-top: 14px; padding-bottom: 14px;
  color: var(--pine); font-size: 18px; line-height: 1.45;
}
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 24px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
}

/* ============================================================
   PRICING card
   ============================================================ */
.pricing-card {
  background: var(--pine); color: var(--limestone);
  border-radius: 20px; padding: 40px 32px;
}
.pricing-card .eyebrow { color: var(--brass); }
.pricing-card h3 { font-size: 34px; color: var(--limestone); margin-bottom: 18px; }
.pricing-card p { color: var(--sage-soft); margin-bottom: 26px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  text-align: left;
  font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--pine);
  padding: 26px 0;
}
.faq-q:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.faq-q .chev {
  flex: none; width: 22px; height: 22px;
  transition: transform .3s ease; color: var(--brass);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .34s ease;
}
.faq-a-inner { padding: 0 0 26px; color: var(--sage); font-size: 17px; line-height: 1.6; }
.faq-a-inner p + p { margin-top: 12px; }

/* ============================================================
   INLINE FORM (chauffeur secondary path)
   ============================================================ */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 28px;
}
.form-card .label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 22px;
}
.form-card .field { margin-bottom: 16px; }
.form-card input, .form-card textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--pine);
  background: #faf8f3; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 18px;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #9aa39c; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.form-or {
  text-align: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage); margin: 30px 0;
}

/* ============================================================
   SERVICE-AREA / small labelled blocks
   ============================================================ */
.mini-block { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-block .eyebrow { margin-bottom: 12px; }
.mini-block p { color: var(--pine); font-size: 18px; }

/* soft-launch banner for passenger pages */
.soft-note {
  background: #ece7db; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px; margin-top: 26px;
  font-size: 15px; color: var(--sage); line-height: 1.5;
}
.soft-note strong { color: var(--pine); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--pine); color: var(--limestone); padding: 56px 0 40px; }
.site-footer .wordmark { color: var(--limestone); font-size: 24px; margin-bottom: 22px; display: inline-block; }
.site-footer p.about { color: var(--sage-soft); max-width: 40ch; margin-bottom: 34px; }
.foot-label {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 12px;
}
.foot-block { margin-bottom: 30px; }
.foot-block p, .foot-block a { color: var(--limestone); font-size: 17px; display: block; }
.foot-block a { margin-bottom: 6px; }
.foot-rule { border: none; border-top: 1px solid var(--line-dark); margin: 12px 0 24px; }
.foot-legal { color: var(--sage-soft); font-size: 14px; margin-bottom: 14px; }
.foot-partners { color: var(--sage-soft); font-size: 14px; }
.foot-partners a { color: var(--sage-soft); }
.foot-partners a:hover { color: var(--brass); }

/* ============================================================
   STICKY MOBILE TEXT BAR
   ============================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: var(--pine-deep);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-dark);
}
.sticky-cta .btn { max-width: var(--maxw); margin: 0 auto; }

/* ============================================================
   PARTNERS page — quieter
   ============================================================ */
.partners-hero { padding: 48px 0 12px; }
.partners-hero h1 { font-size: clamp(34px, 9vw, 46px); margin-bottom: 20px; }
.partner-cta { padding: 44px 0; }

/* ============================================================
   RESPONSIVE — widen on tablet/desktop
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 18px; padding-bottom: 0; }        /* sticky bar hidden on desktop */
  :root { --maxw: 760px; --pad: 40px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .closing-router { grid-column: 1 / -1; }
  .sticky-cta { display: none; }                       /* desktop uses in-page CTAs */
  .hero h1 { font-size: clamp(46px, 6vw, 64px); }
  .hero-photo { padding: 72px 0 64px; }
}

@media (min-width: 1040px) {
  :root { --maxw: 900px; }
  .hero-photo { padding: 96px 0 84px; }
}
