@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --p-bg: #fff;
  --p-surface: #edf4f6;
  --p-ink: #143747;
  --p-muted: #46616b;
  --p-accent: #a64221;
  --p-accent-ink: #fff;
  --p-action: #a64221;
  --p-action-ink: #fff;
  --bg: var(--p-bg);
  --ink: var(--p-ink);
  --muted: var(--p-muted);
  --action: var(--p-action);
  --surface: var(--p-surface);
  --line: #cbd9dd;
  --line-strong: #718992;
  --font-display: "Albert Sans", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-text: var(--font-display);
  --display-tracking: -0.025em;
  --r-btn: 2px;
  --s-2: 8px;
  --nav: 72px;
  --gut: clamp(24px, 6vw, 120px);
  --wrap: 1200px;
  --gap: 24px;
  --section-pad: clamp(72px, 12vh, 112px);
  --bar: 0px;
  --card: var(--bg);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1rem/1.65 var(--font-text); overflow-wrap: break-word; }
:where(h1, h2, h3, p, dl, dd) { margin: 0; }
:where(h1, h2, h3) { line-height: 1.22; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: var(--display-tracking); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.875rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
main:focus, section:focus, footer:focus { outline: none; }
.wrap { width: min(calc(100% - 2 * var(--gut)), var(--wrap)); margin-inline: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.frame { display: block; overflow: hidden; background: var(--surface); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }

.skip-link { position: absolute; inset: 12px auto auto var(--gut); z-index: 3; padding: 8px 16px; background: var(--bg); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; }
.nav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.has-menu .nav { position: fixed; inset: 0 0 auto; }
.nav__bar { min-height: calc(var(--nav) - 1px); display: grid; grid-template-columns: max-content 1fr max-content; gap: var(--gap); align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; width: max-content; text-decoration: none; white-space: nowrap; }
.brand__type { display: grid; gap: 2px; line-height: 1.1; }
.brand strong { font-size: 1.125rem; font-weight: 600; }
.brand__type > span { font-size: .8125rem; color: var(--muted); }
.nav__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(16px, 2.8vw, 48px); }
.nav__link { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; position: relative; text-decoration: none; white-space: nowrap; }
.nav__link::after { position: absolute; inset: auto 0 7px; content: ""; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 200ms ease; }
.nav__link:is(:hover, :focus-visible)::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { min-width: 54px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--bg); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 8px 18px; border: 1px solid transparent; border-radius: var(--r-btn); font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.btn--primary { background: var(--action); color: var(--p-action-ink); }
.btn > span { font-size: 1.15em; line-height: 1; }
.link { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); width: fit-content; min-height: 36px; }
.link::after { content: "→"; }
.actionbar { display: none; }

.hero { min-height: calc(100svh - var(--nav)); padding-bottom: 48px; }
.has-menu .hero { min-height: 100svh; padding-top: var(--nav); }
.hero__image { height: clamp(320px, 56vh, 600px); }
.hero__image img { object-position: center 50%; }
.hero-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-top: clamp(36px, 6vh, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 600; color: var(--p-accent); margin-bottom: 10px; }
.eyebrow__rule { display: block; width: 24px; height: 1px; background: currentColor; }
.hero__detail { max-width: 35rem; }
.hero__detail p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); margin-bottom: 24px; }

.section, .closing { padding-block: var(--section-pad); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; }
.section-head > div > p { margin-top: 10px; }
.section-head p { color: var(--muted); }
.section-head--row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--gap); }
.section-aside { padding-bottom: 2px; font-size: .875rem; }
.visit, .estimate { background: var(--surface); }
.visit .split { align-items: start; }
.visit__list { background: var(--bg); padding: 8px clamp(22px, 3vw, 42px); }
.visit__list > div { padding: clamp(16px, 2.4vw, 28px) 0; }
.visit__list > div + div { border-top: 1px solid var(--line); }
.visit__list dt { display: flex; align-items: baseline; gap: 12px; font-size: 1.125rem; font-weight: 600; }
.step-number { color: var(--p-accent); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.visit__list dd { margin-top: 4px; }
.visit__image { aspect-ratio: 4 / 3; }

.fleet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.vehicle { border: 1px solid var(--line); display: flex; flex-direction: column; }
.vehicle__image { aspect-ratio: 1.9; background: #e7eff0; }
.vehicle__image--sand { background: #f1e9e3; }
.vehicle__image > img { object-fit: contain; }
.vehicle__copy { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2vw, 28px); }
.vehicle__copy > p { margin-top: 8px; }
.vehicle__specs { margin-block: 20px; border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vehicle__specs > div { padding-block: 9px; }
.vehicle__specs > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.vehicle__specs dt, .vehicle__bottom span { font-size: .875rem; color: var(--muted); }
.vehicle__specs dd { font-weight: 600; }
.vehicle__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; margin-top: auto; }
.vehicle__bottom data { font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vehicle__bottom a { white-space: nowrap; }

.routes { background: #fbfaf7; }
.routes__grid { align-items: stretch; }
.route { display: flex; flex-direction: column; gap: 22px; }
.route__copy { flex: 1; }
.route__copy h3 { margin-block: 4px 8px; }
.route__copy p { max-width: 33rem; }
.route__meta { color: var(--p-accent); font-size: .9375rem; font-weight: 600; }
.route__image { aspect-ratio: 1.6; }
.route__image img { object-position: center 61%; }

.estimate__grid { align-items: stretch; }
.estimate__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 20px 16px; min-width: 0; border: 1px solid var(--line); background: var(--bg); padding: clamp(18px, 3vw, 36px); margin: 0; }
.estimate__inputs legend { float: left; width: 100%; padding: 0; line-height: 1.3; font-weight: 600; font-size: 1.25rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select { min-width: 0; width: 100%; min-height: 48px; max-width: 100%; padding: 9px 10px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input[aria-invalid="true"] { border-color: var(--action); }
.estimate__result { display: flex; flex-direction: column; gap: 12px; --bg: #143747; --ink: #fff; background: var(--bg); color: var(--ink); padding: clamp(24px, 3.4vw, 48px); }
.result__label { color: #d3e2e8; font-weight: 600; }
.result__live { display: grid; gap: 6px; }
.result__live output { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.12; font-weight: 600; letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.result__note { border-top: 1px solid #6b8995; padding-top: 16px; margin-top: auto; color: #d3e2e8; }

.closing { padding-bottom: max(var(--section-pad), calc(var(--bar) + 32px)); }
.closing__copy > p:not(.eyebrow) { margin-block: 16px 22px; max-width: 34rem; }
.closing__image { aspect-ratio: 1.6; }
.closing__image img { object-position: center 62%; }
.closing__links { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.closing__links > span { font-size: .9375rem; color: var(--muted); }

.credit-page { padding-block: 64px; }
.credit-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 12px; }
.credit-page ul { list-style: none; padding: 0; margin: 32px 0; max-width: 52rem; }
.credit-page li { padding: 16px 0; border-top: 1px solid var(--line); }
.credit-page li a + a { margin-left: 12px; }

@media (min-width: 1024px) {
  .section { min-height: 100svh; }
  .estimate__grid { min-height: 384px; }
  .estimate__inputs { align-content: center; }
}

@media (max-width: 1023px) {
  :root { --gut: clamp(24px, 5vw, 48px); }
  .nav__bar { grid-template-columns: max-content 1fr max-content max-content; gap: 12px; }
  .nav__estimate { grid-column: 3; }
  .nav__toggle { grid-column: 4; }
  .nav__links { grid-row: 2; grid-column: 1 / -1; justify-content: start; }
  .has-menu .nav__links { display: none; }
  .has-menu .nav.is-open .nav__links { display: flex; position: fixed; inset: var(--nav) 0 0; z-index: 2; flex-flow: column nowrap; align-items: stretch; gap: 0; padding: 12px var(--gut) calc(24px + env(safe-area-inset-bottom)); background: var(--bg); overflow: auto; }
  .has-menu .nav.is-open .nav__link { min-height: 56px; padding-inline: 8px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__link::after { display: none; }
  body:has(.nav.is-open) { overflow: hidden; }
  .fleet__grid { gap: 12px; }
}

@media (max-width: 699px) {
  :root { --gap: 20px; --gut: 24px; --section-pad: 64px; }
  .split, .hero-text, .section-head--row, .fleet__grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 24px; }
  .section-head--row { gap: 8px; }
  .hero-text { gap: 12px; padding-top: 28px; }
  .hero__detail p { margin-bottom: 18px; }
  .route + .route { margin-top: 12px; }
  .vehicle__copy { padding: 22px; }
  .closing__links { margin-top: 36px; }
}

@media (max-width: 639px) {
  :root { --nav: 60px; --bar: calc(65px + env(safe-area-inset-bottom)); }
  .nav__estimate { display: none; }
  .nav__bar { grid-template-columns: 1fr max-content; }
  .nav__toggle { grid-column: 2; }
  .brand > img { width: 38px; height: 38px; }
  .hero { padding-bottom: calc(var(--bar) + 24px); }
  .hero__image { height: clamp(250px, 45svh, 370px); }
  .hero__image img { object-position: center; }
  .hero__detail .btn, .closing__copy .btn { display: none; }
  .actionbar { display: block; z-index: 4; position: fixed; inset: auto 0 0; border-top: 1px solid var(--line); background: var(--bg); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); }
  .actionbar .btn { width: 100%; }
  .closing__links { display: grid; }
}

@media (max-width: 359px) {
  :root { --gut: 16px; }
  .estimate__inputs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link::after { transition: none; }
}
