/* Swift Cars — site styles
   One family (Archivo), two widths: condensed for display and the departures board,
   normal for reading. Brand violet from the logo; amber only on the fares board. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --violet: #433EED;
  --violet-deep: #2F2AC4;
  --ink: #17142E;
  --ink-2: #221E44;
  --paper: #F5F5FA;
  --white: #FFFFFF;
  --line: #DCDBE8;
  --muted: #55526E;
  --amber: #FFB000;
  --amber-dim: #C98E14;
  --radius: 10px;
  --wrap: 1140px;
  --step-0: 1.0625rem;              /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
}
img, svg, iframe { max-width: 100%; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: var(--step-3); font-stretch: 72%; letter-spacing: -.015em; max-width: 14ch; }
h2 { font-size: var(--step-2); font-stretch: 80%; }
h3, .h3 { font-size: var(--step-1); font-stretch: 92%; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-stretch: 92%; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 56px; padding: 0 1.6em; font-size: 1.125rem; }
.btn-call { background: var(--violet); color: #fff; }
.btn-call:hover { background: var(--violet-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-book { background: var(--ink); color: #fff; }
.btn-book:hover { background: #000; color: #fff; }
.btn-book-light { background: #fff; color: var(--violet); }
.btn-book-light:hover { background: var(--paper); color: var(--violet-deep); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 31px; width: auto; display: block; }
.brand-text { font-weight: 800; font-stretch: 80%; font-size: 1.5rem; color: var(--violet); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-stretch: 92%; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--violet); color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
.menu nav { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 220px; display: grid; box-shadow: 0 12px 32px rgba(23,20,46,.14); }
.menu nav a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 6px; }
.menu nav a:hover { background: var(--paper); }

.crumbs { padding-top: 18px; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; background: var(--paper); }
.hero-page { padding-top: 32px; }
.hero-plain { background: var(--paper); padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.hero-lead { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; color: #2C2948; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--violet); border-bottom: 3px solid var(--violet); transform: rotate(-45deg); }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { display: block; height: 44px; width: auto; }
.store-badge-play img { height: 45.5px; margin: -1px; }
.trademarks { opacity: .7; font-size: .8em; }
.store { font-weight: 600; color: var(--ink); }

/* ---------- departures board (the one loud thing) ---------- */
.board {
  background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 30px 60px -30px rgba(23,20,46,.55);
  perspective: 900px;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 6px; }
.board-title { font-size: 1.05rem; font-stretch: 85%; font-weight: 700; margin: 0; color: #fff; letter-spacing: 0; }
.board-clock { font-stretch: 70%; font-weight: 800; color: var(--amber); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.board thead th { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.62); text-align: left; padding: 6px 8px 0; font-stretch: 100%; }
.board .num { text-align: right; }
.board tbody tr { transform-origin: 50% 0; animation: flip .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.board tbody th, .board tbody td { padding: 0; }
.board tbody th { width: 46%; text-align: left; }
.flap {
  white-space: nowrap;
  display: inline-block; padding: 7px 10px; border-radius: 5px;
  font-stretch: 68%; font-weight: 750; font-size: 1.35rem; line-height: 1.1; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; color: var(--amber); text-decoration: none;
  background: linear-gradient(to bottom, var(--ink-2) 0 49%, #0E0B20 49% 51%, var(--ink-2) 51%);
}
.flap-dim { color: #E8E6F5; font-weight: 600; font-size: 1.05rem; padding: 9px 10px; }
.board a.flap:hover, .board th a:hover .flap { color: #fff; }
.board th a { text-decoration: none; }
.flap-quote { color: #fff; background: var(--violet); }
.flap-quote:hover { background: var(--violet-deep); }
.board-note { font-size: .9rem; color: rgba(255,255,255,.72); margin: 10px 0 0; line-height: 1.45; }
@keyframes flip { from { transform: rotateX(-88deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.booker { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.booker iframe { display: block; width: 100%; height: 980px; border: 0; }
.booker-alt { margin-top: 14px; color: var(--muted); }
.booking-page { padding-top: 32px; }
.booking-page h1 { font-size: var(--step-2); max-width: none; }

.services { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.service { padding: 22px 0; border-top: 2px solid var(--ink); }
.service dt { font-weight: 800; font-stretch: 85%; font-size: var(--step-1); margin-bottom: 6px; }
.service dt a { color: var(--ink); text-decoration: none; }
.service dt a:hover { color: var(--violet); text-decoration: underline; }
.service dd { margin: 0; color: #3A3756; }

.areas-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.town-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.town-links a { font-weight: 800; font-stretch: 80%; font-size: 1.6rem; text-decoration: none; line-height: 1.35; }
.town-links a:hover { text-decoration: underline; }
.villages { color: #3A3756; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.value { border-left: 3px solid var(--violet); padding-left: 18px; }
.value p { color: #3A3756; margin: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-stretch: 92%; font-size: 1.125rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: #3A3756; max-width: 68ch; }
.more { font-weight: 700; display: inline-block; margin-top: 18px; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--violet); border-radius: 2px; }
.steps { padding-left: 1.3em; display: grid; gap: 12px; margin: 0; }
.steps li::marker { font-weight: 800; color: var(--violet); }
.pill-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a { display: inline-block; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 92%; }
.pill-links a:hover { background: var(--ink); color: #fff; }
.village-list { columns: 3 160px; padding-left: 1.1em; margin: 0 0 1.2em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .5em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-bottom: 48px; }
.contact-item { border-top: 2px solid var(--ink); padding-top: 16px; }
.big-link { font-weight: 800; font-stretch: 80%; font-size: 1.6rem; text-decoration: none; overflow-wrap: anywhere; }
.company { color: var(--muted); }

.app-page { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; max-width: 900px; }
.qr { margin: 0; text-align: center; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }
.qr figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- call to action band ---------- */
.cta { background: var(--violet); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .92; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-call { background: var(--ink); }
.cta .btn-call:hover { background: #000; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9D7EA; padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 31px; width: auto; margin-bottom: 14px; }
.footer-lead { max-width: 30ch; }
.footer-phone { font-weight: 800; font-stretch: 80%; font-size: 1.5rem; }
.footer-h { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 20px; font-size: .85rem; color: #A9A6C4; }
.footer-legal p { margin: 0 0 8px; max-width: 110ch; }
.footer-legal .link-btn { color: #fff; margin-left: 16px; }

/* ---------- mobile action bar + consent ---------- */
.action-bar { display: none; }
.consent {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 460px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px 10px 14px; box-shadow: 0 10px 28px rgba(23,20,46,.18); font-size: .85rem; line-height: 1.35;
}
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { min-height: 40px; padding: 0 14px; font-size: .85rem; border-width: 1.5px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-call { display: none; }
  .menu { display: block; }
  .hero-grid, .areas-split, .prose-split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .header-row { min-height: 60px; }
  .brand img { height: 26px; }
  .hero { padding: 28px 0 40px; background: var(--paper); }
  .hero-page { padding-top: 16px; }
  .hero-lead { font-size: 1.125rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 48px 0; }
  .board { padding: 16px 14px 14px; border-radius: 12px; }
  .flap { font-size: 1.15rem; padding: 6px 8px; }
  .flap-dim { font-size: .95rem; }
  .booker iframe { height: 1100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .app-page { grid-template-columns: 1fr; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .consent { left: 8px; right: 8px; bottom: 78px; max-width: none; padding: 8px 10px 8px 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- booking request form ---------- */
.request-form { display: grid; gap: 18px; max-width: 720px; }
.request-form .field { display: grid; gap: 6px; min-width: 0; }
.request-form label, .request-form legend { font-weight: 650; font-stretch: 92%; }
.request-form .opt { font-weight: 400; color: var(--muted); }
.request-form input, .request-form select, .request-form textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid #B9B7CC; border-radius: 8px; padding: 11px 12px; min-height: 48px;
}
.request-form textarea { min-height: 96px; resize: vertical; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.request-form [aria-invalid="true"] { border-color: #C2261D; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-4 { grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr; }
.journey { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.journey legend { font-size: var(--step-1); margin-bottom: 12px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--violet); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FDECEA; color: #8A1C14; border-left: 4px solid #C2261D; padding: 12px 14px; border-radius: 6px; margin: 0; font-weight: 600; }
.form-small { font-size: .92rem; color: var(--muted); margin: 0; }
.request-form .btn { justify-self: start; }
@media (max-width: 640px) {
  .field-row, .field-row-4 { grid-template-columns: 1fr 1fr; }
  .request-form .btn { justify-self: stretch; }
}

/* ---------- Google rating badge ---------- */
.rating { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; color: var(--ink);
  font-size: .98rem; margin: 0 0 18px; padding: 6px 14px 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.rating:hover { border-color: var(--violet); color: var(--ink); }
.stars { position: relative; display: inline-block; color: #CFCDE0; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.stars-on { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--violet); }
.rating-count { color: var(--muted); text-decoration: underline; text-underline-offset: .18em; }
.stack > * + * { margin-top: 56px; }
.review-card { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; background: var(--paper); }
.review-card .rating { margin: 0; }
.review-card h2 { margin-bottom: 12px; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* ---------- photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }

.page-photo { padding-top: 40px; padding-bottom: 0; }
.page-photo img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* ---------- Google reviews (dark band, Google-yellow stars: clearly quoted from Google, not our own copy) ---------- */
.greviews { background: var(--ink); color: #fff; }
.greviews h2 { color: #fff; margin-bottom: 10px; }
.greviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 36px; }
.greviews-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; color: #C9C7DC; }
.greviews-num { font-stretch: 62%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: #fff; }
.gstars { color: #FBBC04; letter-spacing: 2px; white-space: nowrap; }
.greviews-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.greviews-write { color: #fff; text-underline-offset: .2em; }
.greviews-write:hover { color: #FBBC04; }
.greviews-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 44px; }
.greview { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 18px; }
.greview-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 10px; font-size: .9rem; color: #C9C7DC; }
.greview blockquote { margin: 0; font-size: 1.06rem; line-height: 1.55; }
.greview blockquote::before { content: "\201C"; }
.greview blockquote::after { content: "\201D"; }
@media (max-width: 900px) { .greviews-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .greviews-list { grid-template-columns: 1fr; gap: 26px; } }
.gstars-part { background: linear-gradient(90deg, #FBBC04 var(--on, 100%), #5B5878 var(--on, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0; }
