/* Logan Limousine — harbor-night navy, chauffeur brass, fog */
:root {
  --ink: #12233d;        /* harbor navy */
  --ink-2: #1c3254;
  --brass: #b08a4e;      /* livery brass */
  --brass-soft: #e7d8bd;
  --fog: #e9edf1;        /* page */
  --paper: #ffffff;
  --slate: #5a6878;      /* secondary text */
  --line: #cfd6de;
  --error: #a3302a;
  --ok: #2f6b4f;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font: 400 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ── Header ─────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 56px);
  background: var(--ink); color: var(--fog);
}
.top.over { position: absolute; inset: 0 0 auto 0; z-index: 3; background: linear-gradient(rgba(8,16,30,.75), rgba(8,16,30,0)); }
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  letter-spacing: .01em; text-decoration: none; color: inherit; margin: 0;
}
.wordmark span { color: var(--brass); font-style: italic; font-weight: 500; }
.top nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top nav .call { opacity: 1; border: 1px solid var(--brass); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 720px) {
  .top nav a:not(.call) { display: none; }
  .top nav .call span { display: none; }
}

/* ── Hero + booking ─────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(110px, 12vw, 150px) clamp(16px, 4vw, 56px) clamp(56px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(8,16,30,.92) 0%, rgba(8,16,30,.72) 42%, rgba(8,16,30,.35) 100%),
    linear-gradient(0deg, rgba(8,16,30,.85) 0%, rgba(8,16,30,0) 40%),
    var(--hero) center 60% / cover no-repeat,
    var(--ink);
  color: var(--fog);
  min-height: min(100vh, 980px);
  position: relative;
}
.hero-copy { animation: rise .9s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy { padding-top: 12px; max-width: 34rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.012em;
  margin: 0 0 22px; text-wrap: balance;
}
.lede { font-size: 1.13rem; color: #c9d3de; margin: 0 0 28px; max-width: 30rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #c9d3de; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brass); }
.facts strong { color: var(--fog); font-weight: 600; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0;
    background:
      linear-gradient(180deg, rgba(8,16,30,.55) 0%, rgba(8,16,30,.9) 340px, var(--ink) 520px, var(--fog) 520px),
      var(--hero) center top / 100% 520px no-repeat, var(--ink); }
  .facts { display: none; }
}

.booker {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(10, 22, 40, .55);
  padding: 8px 24px 24px;
}
.step { border: 0; margin: 0; padding: 18px 0 4px; min-width: 0; }
.step + .step { border-top: 1px dashed var(--line); margin-top: 14px; }
.step-title {
  display: flex; align-items: center; gap: 10px; padding: 0;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 14px;
}
.step-title .n {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
}

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--fog); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tabs label, .seg { position: relative; cursor: pointer; }
.tabs input, .seg input, .chips input, .car input { position: absolute; opacity: 0; pointer-events: none; }
.tabs span {
  display: block; text-align: center; font-size: .86rem; font-weight: 500; line-height: 1.2;
  padding: 9px 4px; border-radius: 7px; color: var(--slate);
}
.tabs input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(18,35,61,.18); }
.tabs input:focus-visible + span, .seg input:focus-visible + span, .chips input:focus-visible + span, .car input:focus-visible ~ * { outline: 3px solid var(--brass); outline-offset: 1px; }
@media (max-width: 420px) { .tabs { grid-template-columns: repeat(2, 1fr); } }

.seg span {
  display: block; text-align: center; padding: 9px; font-size: .92rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.row { display: grid; gap: 12px; }
.row.two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.row.three { grid-template-columns: 1.3fr 1fr .8fr; }
.row .field { margin-bottom: 14px; }
@media (max-width: 460px) { .row.three { grid-template-columns: 1fr 1fr; } .row.three .field:first-child { grid-column: 1 / -1; } }

.field { margin-bottom: 14px; position: relative; min-width: 0; }
.field label, .label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--slate); }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); min-height: 44px;
}
textarea { resize: vertical; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(176,138,78,.35); }
input[aria-invalid=true] { border-color: var(--error); }

.suggest {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px;
  list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 12px 24px -12px rgba(18,35,61,.35);
}
.suggest li { padding: 8px 10px; border-radius: 4px; cursor: pointer; font-size: .92rem; }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--fog); }

.btn {
  width: 100%; min-height: 50px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font: 600 1rem var(--sans); background: var(--ink); color: var(--paper);
}
.btn:hover { background: var(--ink-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.pay { background: var(--brass); color: var(--ink); font-size: 1.05rem; }
.btn.pay:hover { background: #c29b5c; }

.error { color: var(--error); font-size: .92rem; margin: 0 0 12px; }
.fine { font-size: .8rem; color: var(--slate); margin: 10px 0 0; text-align: center; }
.route-note { margin: -4px 0 12px; color: var(--slate); font-size: .92rem; }

/* vehicle choices */
.cars { display: grid; gap: 8px; }
.car .cimg { grid-row: 1 / span 2; width: 84px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--ink); }
.car {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 2px 14px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.car:hover { border-color: var(--slate); }
.car:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f6f8fa; }
.car .cname { font-weight: 600; }
.car .cname { grid-column: 2; align-self: end; }
.car .cmeta { font-size: .8rem; color: var(--slate); grid-column: 2; align-self: start; }
.car .cprice { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; grid-row: 1 / span 2; grid-column: 3; }
.car.off { opacity: .5; cursor: not-allowed; }
.car.off .cprice { font: 500 .8rem var(--sans); color: var(--slate); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .86rem; color: var(--slate); margin: 2px 0 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips label { cursor: pointer; position: relative; }
.chips span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── The fare ticket: the one ornamental piece ── */
.ticket {
  position: relative; margin: 18px 0 16px;
  background: var(--ink); color: var(--fog); border-radius: 10px;
  --cut: 92px; --notch-bg: var(--paper);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: calc(var(--cut) - 11px);
  width: 22px; height: 22px; border-radius: 50%; background: var(--notch-bg);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.ticket:empty { display: none; }
.t-head { padding: 16px 20px 14px; height: var(--cut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.t-place { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-place small { display: block; font: 400 .74rem var(--sans); color: #9fb0c3; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-place.end { text-align: right; }
.t-path { width: 64px; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 11px); position: relative; }
.t-path::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--brass); border-right: 0; }
.t-body { border-top: 2px dashed rgba(233,237,241,.28); padding: 14px 20px 18px; }
.t-when { font-size: .88rem; color: #c9d3de; margin: 0 0 10px; }
.t-lines { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .9rem; }
.t-lines dt { color: #c9d3de; }
.t-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(233,237,241,.2); }
.t-total span { font-size: .9rem; }
.t-total strong { font-family: var(--serif); font-size: 2rem; color: var(--brass-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Content sections ───────────────────── */
main > section:not(.hero) { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 0 0 12px; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.sub { color: var(--slate); margin: 0 0 24px; max-width: 40rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2.2rem; color: var(--brass); display: block; line-height: 1; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--slate); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* trust strip */
.assure {
  max-width: none !important; margin: 0 !important; padding: 26px clamp(16px, 4vw, 56px) !important;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.assure div { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--brass); }
.assure strong { font-size: .98rem; }
.assure span { color: var(--slate); font-size: .88rem; }
@media (max-width: 760px) { .assure { grid-template-columns: 1fr 1fr; } }

/* fleet cards */
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 8px 48px; align-items: end; margin-bottom: 28px; }
.sec-head .sub { margin: 0; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .fleet-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fleet-grid { grid-template-columns: 1fr; } }
.fcard { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(18,35,61,.06), 0 18px 40px -28px rgba(18,35,61,.45); }
.fimg { aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.fimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.fcard:hover .fimg img { transform: scale(1.04); }
.fbody { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fkind { margin: 0; color: var(--brass); font-size: .86rem; font-weight: 600; }
.fbody h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0; }
.fblurb { margin: 0; color: var(--slate); }
.fspecs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px; margin: 8px 0 14px; padding: 12px 0; border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); }
.fspecs dt { font-size: .74rem; color: var(--slate); }
.fspecs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn.small { min-height: 44px; font-size: .95rem; margin-top: auto; display: grid; place-items: center; text-decoration: none; }
.photo-note { color: var(--slate); font-size: .82rem; margin: 14px 0 0; }

/* chauffeurs */
.chauffeurs { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ch-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.ch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-copy p { color: var(--slate); max-width: 34rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.btn.ghost { display: inline-grid; place-items: center; width: auto; padding: 0 26px; text-decoration: none; }
@media (max-width: 820px) { .chauffeurs { grid-template-columns: 1fr; } }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.svc-grid article { background: var(--fog); padding: 28px clamp(20px, 3vw, 36px); }
.svc-grid p { margin: 0; color: var(--slate); max-width: 34rem; }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

.policies { max-width: 820px !important; }
.policies details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.policies summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.policies details p { margin: 0 0 16px; color: var(--slate); max-width: 40rem; }

/* ── Footer ─────────────────────────────── */
.foot {
  background: var(--ink); color: #c9d3de;
  padding: 40px clamp(16px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr auto; gap: 16px 32px;
}
.foot p { margin: 0 0 4px; }
.foot .wordmark.small { font-size: 1.25rem; color: var(--fog); margin-bottom: 6px; }
.foot .copy { grid-column: 1 / -1; font-size: .8rem; color: #8798ab; margin-top: 16px; }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

/* ── Confirmation page ──────────────────── */
.done { max-width: 560px; margin: 0 auto; padding: clamp(36px, 8vw, 80px) 16px; }
.done h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.08; margin: 0 0 12px; }
.done .lede { color: var(--slate); }
.done .ticket { --notch-bg: var(--fog); }
.done .ref { font-family: var(--serif); color: var(--brass-soft); }
