/* Taffside Cars public site
   Palette: Pennant stone, slate, daffodil, bay teal. One family: Archivo, using its width axis for headlines. */
:root {
  --slate: #22303a;
  --slate-2: #2f3f4b;
  --stone: #eef1f2;
  --paper: #ffffff;
  --mist: #d5dde1;
  --muted: #5b6b76;
  --daffodil: #f4c430;
  --daffodil-ink: #7a5a00;
  --teal: #135e66;
  --danger: #b3261e;
  --ok: #1d6b3a;
  --radius-lg: 18px;
  --radius: 10px;
  --wrap: 1160px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--slate);
  background: var(--stone);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--daffodil); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--daffodil); color: var(--slate); padding: 10px 14px; z-index: 10; border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-stretch: 118%; font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-stretch: 110%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }

/* ---------- Header ---------- */
.site-header { background: var(--slate); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-stretch: 120%; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; }
.header-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.header-links a { color: #dfe6ea; text-decoration: none; }
.header-links a:hover { color: #fff; text-decoration: underline; }
.header-phone { font-weight: 700; color: var(--daffodil) !important; font-size: 1.05rem; }
@media (max-width: 720px) { .header-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--slate); color: #fff; padding: 40px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 48px; align-items: start; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
  margin-top: 28px;
}
.hero-lede { font-size: 1.2rem; color: #d3dde3; max-width: 34ch; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: #e7edf0; }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; }
.hero-facts li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--daffodil); transform: translateY(-1px); }
/* Road marking that runs under the hero headline: the one decorative flourish on the page */
.road { margin-top: 36px; height: 6px; width: min(420px, 90%); background: repeating-linear-gradient(90deg, var(--daffodil) 0 38px, transparent 38px 62px); border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .road { animation: drive 1.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes drive { from { background-position: -240px 0; opacity: 0; } to { background-position: 0 0; opacity: 1; } }
}
@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { margin-top: 8px; }
  .road { display: none; }
}

/* ---------- Booking card ---------- */
.book { background: var(--paper); color: var(--slate); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 24px 60px -24px rgba(5, 12, 18, 0.55); scroll-margin-top: 16px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: step; font-size: 0.85rem; }
.steps li { flex: 1; counter-increment: step; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--mist); }
.steps li::before { content: counter(step) ' '; font-weight: 800; }
.steps li[aria-current='step'] { color: var(--slate); border-top-color: var(--daffodil); font-weight: 700; }
.steps li.done { border-top-color: var(--slate); color: var(--slate); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field legend { font-size: 0.9rem; font-weight: 600; }
.field small { color: var(--muted); font-size: 0.85rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 460px) { .row { grid-template-columns: 1fr; } .row-3 { grid-template-columns: 1fr 1fr; } }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--slate);
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--mist); border-radius: var(--radius); background: #fff;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 94, 102, 0.18); }
input[aria-invalid='true'] { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Journey: two stops joined by a dashed line */
.journey { position: relative; padding-left: 34px; }
.journey::before { content: ''; position: absolute; left: 11px; top: 40px; bottom: 54px; border-left: 2px dashed var(--mist); }
.stop { position: relative; }
.stop-pin { position: absolute; left: -34px; top: 32px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.stop-a .stop-pin { background: var(--slate); color: #fff; }
.stop-b .stop-pin { background: var(--daffodil); color: var(--slate); }
.stop-fields { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.stop-fields input:last-child { text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { font: inherit; font-size: 0.8rem; border: 1px solid var(--mist); background: var(--stone); color: var(--slate); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.chip:hover { border-color: var(--slate); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--teal); }

.btn {
  font: inherit; font-weight: 800; font-stretch: 110%; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius); border: 0; cursor: pointer; text-decoration: none;
  background: var(--daffodil); color: var(--slate);
}
.btn:hover { background: #ffd24d; color: var(--slate); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--teal); padding: 10px 4px; font-weight: 600; font-stretch: 100%; }
.btn-quiet:hover { background: transparent; color: var(--slate); text-decoration: underline; }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: var(--slate-2); color: #fff; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }

.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 0.95rem; margin-bottom: 14px; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f1c6c3; }
.alert-info { background: #e8f2f3; color: var(--teal); border: 1px solid #c4dfe2; }

/* Vehicle choice */
.summary-line { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }
.summary-line strong { color: var(--slate); }
.vehicles { display: grid; gap: 8px; margin-bottom: 16px; }
.vehicle { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border: 1.5px solid var(--mist); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.vehicle:hover { border-color: var(--slate); }
.vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle:has(input:checked) { border-color: var(--slate); background: #f6f8f9; box-shadow: inset 4px 0 0 var(--daffodil); }
.vehicle:has(input:focus-visible) { outline: 3px solid var(--daffodil); outline-offset: 2px; }
.vehicle:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.vehicle-name { font-weight: 700; }
.vehicle-meta { grid-column: 1; font-size: 0.85rem; color: var(--muted); }
.vehicle-price { grid-row: 1 / span 2; grid-column: 2; font-weight: 800; font-stretch: 115%; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--slate); padding-top: 12px; margin: 6px 0 14px; }
.total strong { font-size: 1.6rem; font-stretch: 115%; font-variant-numeric: tabular-nums; }
.total span { color: var(--muted); font-size: 0.9rem; }

.done-ref { font-size: 2rem; font-weight: 900; font-stretch: 125%; letter-spacing: 0.02em; margin: 4px 0 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--paper); }
.section-intro { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-table th, .rate-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.rate-table th { font-weight: 600; width: 55%; }
.rate-table td { font-weight: 800; font-stretch: 112%; font-size: 1.15rem; }
.rate-table td small { display: block; font-weight: 400; font-stretch: 100%; font-size: 0.85rem; color: var(--muted); }
.example { margin-top: 20px; padding: 16px 18px; background: var(--stone); border-radius: var(--radius); font-size: 0.95rem; }

.airports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 2px solid var(--slate); }
.airport { padding: 22px 22px 6px 0; }
.airport + .airport { padding-left: 22px; border-left: 1px solid var(--mist); }
.airport-code { font-size: 2.6rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--teal); margin-bottom: 8px; }
@media (max-width: 760px) {
  .airports { grid-template-columns: 1fr; }
  .airport + .airport { padding-left: 0; border-left: 0; border-top: 1px solid var(--mist); }
}

.fleet { width: 100%; border-collapse: collapse; margin-top: 28px; }
.fleet th, .fleet td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--mist); }
.fleet thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--slate); }
.fleet td:first-child { font-weight: 700; }
.fleet .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .fleet .desc { display: none; } }

.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

.cta-band { background: var(--daffodil); padding: 48px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band .btn { background: var(--slate); color: #fff; }
.cta-band .btn:hover { background: var(--slate-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #c6d1d7; padding: 48px 0 32px; font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-base { grid-column: 1 / -1; border-top: 1px solid var(--slate-2); padding-top: 20px; margin-top: 8px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Simple pages ---------- */
.page { padding: 48px 0 80px; }
.page .card { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; max-width: 680px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0 0 20px; }
.dl dt { color: var(--muted); font-size: 0.92rem; }
.dl dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: var(--stone); }
.status-confirmed, .status-assigned, .status-en_route, .status-on_board { background: #e2f1e7; color: var(--ok); }
.status-pending { background: #fff4d1; color: var(--daffodil-ink); }
.status-cancelled, .status-no_show { background: #fbeceb; color: var(--danger); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

@media (max-width: 520px) {
  .hero h1 { line-height: 1.02; font-stretch: 112%; }
  .stop-fields { grid-template-columns: 1fr 100px; }
  .book { padding: 18px; }
}
