:root {
  color-scheme: light;
  --blue: #0066cc;
  --blue-hover: #004f9f;
  --red: #8d153a;
  --ink: #1d1d1f;
  --muted: #62626a;
  --line: #e6e6eb;
  --wash: #f5f5f7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #fff; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3 { margin: 0; }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 5px; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* One common left edge. Normal document flow; a small independent rail scene. */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; min-height: 106px; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: block; flex-shrink: 0; width: 216px; padding-block: 16px; }
.header-nav { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.header-nav a:hover { color: var(--blue); }
.header-location { color: var(--muted); border-left: 1px solid var(--line); padding-left: 32px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-block: 80px 84px; align-items: center; }
.hero-copy { min-width: 0; padding-bottom: 8px; }
.eyebrow { margin-bottom: 22px; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(40px, 4.7vw, 60px); line-height: 1.14; font-weight: 650; letter-spacing: -0.018em; }
h1 span { color: var(--blue); }
.hero-description { max-width: 470px; margin-top: 26px; font-size: 21px; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.hero-footnote { margin-top: 30px; font-size: 14px; color: var(--muted); }
.arrow { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.businesses { padding-bottom: 112px; }
.section-heading { padding-top: 58px; padding-bottom: 44px; border-top: 1px solid var(--line); }
.section-heading .eyebrow { color: var(--blue); margin-bottom: 10px; }
.section-heading h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
.section-heading > p:last-child { max-width: 760px; margin-top: 16px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 28px; }
.business-card { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 38px; min-width: 0; border-radius: 22px; border: 1px solid var(--line); background: #fff; scroll-margin-top: 24px; }
.business-card.featured { background: #f6f9fd; border-color: #f6f9fd; }
.repair-card.featured { background: #f5f5f7; border-color: #f5f5f7; }
.card-topline { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.category-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dae8f6; border-radius: 13px; background: #f2f7fd; color: var(--blue); flex-shrink: 0; }
.featured .category-icon { background: #fff; border-color: #e7e8ec; }
.category-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.category-label { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.business-card h3 { font-size: 32px; line-height: 1.22; font-weight: 650; letter-spacing: -0.012em; }
.card-promise { margin-top: 16px; font-size: 19px; line-height: 1.5; font-weight: 600; }
.card-description { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.65; font-weight: 400; }
.card-bottom { width: 100%; margin-top: auto; padding-top: 30px; }
.visit-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue); font-size: 17px; font-weight: 500; line-height: 1.45; }
.visit-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }
.domain { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.availability, .service-note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.availability { padding-top: 18px; border-top: 1px solid var(--line); }
.fleet-word { color: #0077ee; }
.fleet-word span { color: var(--blue); }
.fleet-word b { color: var(--red); font-weight: inherit; }

.site-footer { border-top: 1px solid var(--line); background: #fafafa; }
.footer-inner { display: grid; grid-template-columns: 176px 1fr auto; align-items: center; gap: 36px; padding-block: 38px; }
.footer-brand { width: 168px; }
.footer-details p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-details p + p { margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 13px; line-height: 1.6; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* The same type scale and margins carry into the short legal centre. */
.legal-hero { width: min(920px, calc(100% - 64px)); margin-inline: auto; padding-block: 80px 50px; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 56px); }
.legal-hero > p:last-child { max-width: 740px; margin-top: 24px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.legal-layout { width: min(1140px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: 180px minmax(0, 800px); gap: 60px; padding-block: 24px 96px; align-items: start; }
.legal-nav { display: grid; gap: 8px; }
.legal-nav a { padding: 10px 12px; min-height: 44px; border-radius: 8px; font-size: 15px; }
.legal-nav a:hover { color: var(--blue); background: #f6f9fd; }
.legal-content { display: grid; gap: 28px; }
.legal-section { padding: 36px; border: 1px solid var(--line); border-radius: 20px; }
.legal-section h2 { font-size: 32px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.legal-date { margin-top: 10px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.legal-section h3 { margin-top: 30px; margin-bottom: 10px; font-size: 20px; line-height: 1.4; font-weight: 600; }
.legal-section p:not(.legal-date), .legal-section li { font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal-section p + p { margin-top: 15px; }
.legal-section ul { padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.not-found { min-height: 100svh; display: grid; place-items: center; padding: 64px 24px; }
.not-found-inner { max-width: 620px; }
.not-found-code { font-size: 80px; color: var(--blue); font-weight: 600; }
.not-found h1 { font-size: 40px; margin-block: 20px; }
.not-found-inner > p:not(.not-found-code) { color: var(--muted); font-size: 20px; margin-bottom: 28px; }
.primary-link { display: inline-flex; gap: 14px; min-height: 44px; align-items: center; color: var(--blue); font-size: 17px; }
.primary-link:hover { text-decoration: underline; }

@media (max-width: 1050px) {
  .hero { gap: 44px; padding-block: 70px 80px; }
  .business-card { padding: 30px; }
  .footer-inner { grid-template-columns: 168px 1fr; gap: 24px; }
  .footer-nav { grid-column: 2; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 92px; }
  .brand { width: 200px; }
  .header-location { display: none; }
  .hero { grid-template-columns: 1fr; gap: 42px; align-items: start; padding-block: 56px 64px; }
  h1 { font-size: 48px; }
  .hero-copy { padding-bottom: 0; }
  .hero-description { max-width: 610px; }
  .hero-footnote { margin-top: 24px; }
  .section-heading { padding-top: 46px; padding-bottom: 34px; }
  .business-grid { gap: 20px; }
  .business-card { padding: 28px 24px; }
  .business-card h3 { font-size: 28px; }
  .card-topline { gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .category-label { font-size: 13px; }
  .card-description { font-size: 16px; line-height: 1.65; }
  .visit-link { font-size: 16px; }
  .businesses { padding-bottom: 72px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 48px); }
  .legal-nav { display: flex; flex-wrap: wrap; }
  .legal-hero { width: calc(100% - 48px); padding-top: 56px; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 86px; gap: 16px; }
  .brand { width: 180px; }
  .header-nav { font-size: 13px; gap: 0; flex-shrink: 0; }
  .hero { padding-top: 46px; }
  .eyebrow { font-size: 15px; margin-bottom: 18px; }
  h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.16; letter-spacing: -0.012em; }
  .hero-description { font-size: 20px; line-height: 1.55; margin-top: 22px; }
  .hero-footnote { max-width: 240px; line-height: 1.6; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p:last-child { font-size: 18px; }
  .business-grid { grid-template-columns: 1fr; gap: 20px; }
  .business-card { padding: 30px 26px; border-radius: 20px; }
  .card-topline { flex-wrap: nowrap; }
  .business-card h3 { font-size: 30px; }
  .card-promise { font-size: 19px; margin-top: 16px; }
  .card-description { font-size: 17px; }
  .card-bottom { padding-top: 26px; }
  .visit-link { font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
  .footer-nav { grid-column: auto; gap: 24px; }
  .footer-details p { font-size: 12px; }
  .legal-section { padding: 26px 22px; }
  .legal-section h2 { font-size: 28px; }
  .legal-section p:not(.legal-date), .legal-section li { font-size: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 36px); }
  .brand { width: 157px; }
  .header-nav { font-size: 12px; }
  .business-card { padding: 26px 22px; }
  .business-card h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .hero { display: block; padding-block: 35px; }
  .business-card { break-inside: avoid; }
  .wrap { width: 100%; }
}
/* Compact rail illustration: no pinned sections or scroll interception. */
.rail-scene { margin: 0; min-width: 0; align-self: center; }
.rail-stage { position: relative; width: 100%; aspect-ratio: 1.7; container-type: inline-size; overflow: hidden; isolation: isolate; }
.rail-track { position: absolute; left: 0; bottom: 22px; width: 100%; height: auto; mix-blend-mode: multiply; }
.rail-truck { position: absolute; left: 0; bottom: calc(22px + .1483cqw); width: 76%; height: auto; mix-blend-mode: multiply; transform: translate3d(0,0,0); }
.rail-scene figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; padding-inline: 4px; font-size: 14px; color: var(--ink); font-weight: 600; }
.rail-scene figcaption span { font-weight: 400; color: var(--muted); }
.footer-inner { grid-template-columns: 1fr 1fr; gap: 20px 50px; padding-block: 36px 28px; }
.footer-brand { width: 214px; align-self: center; }
.footer-businesses { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 28px; justify-self: end; width: min(100%, 470px); }
.footer-businesses a { container-type: inline-size; display: flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 6px; }
.footer-businesses img { max-width: 120px; max-height: 48px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.footer-businesses a:hover { opacity: .75; }
.footer-nav { grid-column: 1 / -1; justify-content: flex-end; gap: 24px; }
.footer-nav a { font-size: 14px; }
.footer-legal { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 800px) {
 .rail-scene { width: min(100%, 580px); }
 .rail-stage { aspect-ratio: 2.5; }
 .rail-truck { width: 64%; bottom: calc(22px + .6183cqw); }
 .footer-inner { gap: 22px; }
 .footer-businesses { gap: 16px; }
}
@media (max-width: 600px) {
 .hero { gap: 24px; padding-bottom: 48px; }
 .rail-stage { aspect-ratio: 2.1; }
 .rail-truck { width: 76%; bottom: calc(22px + .1483cqw); }
 .rail-scene figcaption { font-size: 13px; gap: 12px; }
 .footer-inner { grid-template-columns: 1fr; gap: 24px; }
 .footer-businesses { justify-self: start; width: 100%; max-width: 420px; gap: 28px; }
 .footer-nav { justify-content: flex-start; gap: 0 22px; }
 .footer-nav a:first-child { flex-basis: 100%; }
 .footer-legal { text-align: left; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .rail-truck { transform: none !important; } }
@media print { .rail-scene, .footer-businesses { display: none; } }

.footer-hirail-mark { display: inline-flex; gap: 5px; align-items: center; width: 100%; max-width: 132px; }
.footer-hirail-mark img { width: 21%; height: auto; object-fit: contain; flex-shrink: 0; }
.footer-hirail-type { display: block; white-space: nowrap; line-height: 1.1; }
.footer-hirail-type strong { display: block; color: #003d70; font-size: clamp(7px, 9.1cqw, 12px); font-weight: 750; letter-spacing: -.018em; }
.footer-hirail-type b { color: #b01c3b; font-weight: inherit; }
.footer-hirail-type small { display: block; margin-top: 3px; color: #34343b; font-size: clamp(4px, 5.16cqw, 6.8px); letter-spacing: .015em; }
