/* ==========================================================================
   London Airport Transfer — shared stylesheet
   Design tokens: warm charcoal ground, cab-yellow action colour,
   aviation-teal "route line" accent used only for the flight-path motif
   and wayfinding. Display face Space Grotesk / body face Inter.
   ========================================================================== */

:root {
  --bg: #0b0e0c;
  --bg-elevated: #141813;
  --bg-elevated-2: #1b211b;
  --ink: #f4f2e9;
  --ink-muted: #97a396;
  --ink-faint: #626d63;
  --line: #262d25;
  --brand: #ffc42e;
  --brand-deep: #e0a411;
  --route: #4fd1a5;
  --route-deep: #2fa87f;
  --danger: #f2765c;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 45px rgba(0,0,0,0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(79,209,165,0.07), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(255,196,46,0.06), transparent 45%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--route);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Top utility bar ---------- */
.top-bar {
  background: #060706;
  color: var(--ink-muted);
  padding: 0.5rem 1.5rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: var(--brand); text-decoration: none; margin-left: 0.8rem; font-weight: 600; }
.top-bar a:hover { opacity: 0.8; }

/* ---------- Header / nav ---------- */
header {
  background: rgba(11, 14, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-badge {
  background: var(--brand);
  color: #10130f;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255,196,46,0.25);
}

.brand-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: 0.2px; }
.brand-subtitle { font-size: 0.68rem; color: var(--ink-muted); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.3rem;
  width: 42px; height: 38px;
  cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -2px; left: 0;
  background: var(--route);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--route); }

.nav-cta {
  background: var(--brand) !important;
  color: #10130f !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--brand-deep) !important; color: #10130f !important; }

/* ---------- Route-line signature motif ---------- */
.route-line { display: flex; align-items: center; gap: 10px; }
.route-line svg { overflow: visible; }
.route-dash {
  stroke: var(--route);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  fill: none;
  animation: dash-flow 3.2s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -140; } }

.route-divider {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.route-divider svg { width: 100%; height: 28px; display: block; }

/* ---------- Hero / layout ---------- */
.hero-wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
}

.page-content { padding-top: 0.2rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--route);
  margin-bottom: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--route);
}

.page-content h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 0.9rem;
}
.page-content h1 span { color: var(--brand); }

.page-content .lede {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  max-width: 54ch;
}

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-badge:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Cards ---------- */
.detail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.6rem;
}

.detail-card h2 { color: var(--ink); font-size: 1.35rem; margin: 0 0 1rem; font-weight: 700; }
.detail-card h2 .accent { color: var(--brand); }
.detail-card h3 { color: var(--ink); font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
.detail-card p { color: var(--ink-muted); }

.detail-list { padding-left: 1.2rem; color: var(--ink-muted); font-size: 0.94rem; margin: 0; }
.detail-list li { margin-bottom: 0.7rem; }
.detail-list strong { color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 24px; color: var(--ink-muted); font-size: 0.94rem; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--route);
  border-bottom: 2px solid var(--route);
  transform: rotate(45deg);
}
.check-list strong { color: var(--ink); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-top: 1.2rem; }

.service-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  padding: 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: block;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.service-card:hover { border-color: var(--brand); transform: translateY(-3px); background: #212820; }
.service-card h3 { color: var(--brand); font-size: 1.02rem; margin: 0 0 0.5rem; }
.service-card p { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

/* ---------- Popular routes strip ---------- */
.routes-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.route-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.route-card .path { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.5rem; }
.route-card .path b { color: var(--ink); font-weight: 600; }
.route-card .note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 400;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-muted); margin: 0.7rem 0 0; font-size: 0.93rem; }

/* ---------- Booking sidebar ---------- */
.booking-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}

.sidebar-heading {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-heading span { color: var(--brand); font-size: 0.7rem; font-weight: 700; }

.form-group { margin-bottom: 0.55rem; }
.form-group label {
  display: block;
  margin-bottom: 0.18rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: #101410;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--route);
  box-shadow: 0 0 0 3px rgba(79,209,165,0.15);
}

.form-row { display: flex; gap: 0.6rem; }
.form-row .form-group { flex: 1; }
#pickup { margin-bottom: 0.3rem; }

/* Google Places suggestion dropdown must always sit above the sticky
   header/sidebar, or partial-overlap rendering issues can make the
   field underneath it feel unresponsive to clicks. */
.pac-container { z-index: 10000 !important; }

.btn-brand {
  background: var(--brand);
  color: #10130f;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  margin-top: 0.2rem;
}
.btn-brand:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-brand:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-outline:hover { border-color: var(--route); color: var(--route); }

#quote-results { display: none; margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }

.car-card {
  border: 1px solid var(--line);
  background: #101410;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  transition: border-color 0.2s var(--ease);
}
.car-card:hover { border-color: var(--brand); }
.car-info h3 { margin: 0; color: var(--ink); font-size: 0.88rem; font-family: 'Inter', sans-serif; }
.car-info p { margin: 0; color: var(--ink-muted); font-size: 0.72rem; }
.car-price-action { display: flex; align-items: center; gap: 10px; }
.price-tag { font-size: 1rem; font-weight: 800; color: var(--brand); font-family: 'Space Grotesk', sans-serif; }

.btn-select {
  background: var(--brand);
  color: #10130f;
  padding: 0.38rem 0.7rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
}
.btn-select:hover { background: var(--brand-deep); }

#checkout-section { display: none; margin-top: 0.9rem; border-top: 1px dashed var(--line); padding-top: 0.8rem; }

.payment-options { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.payment-box {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.76rem;
  background: #101410;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.payment-box.selected { border-color: var(--brand); background: rgba(255,196,46,0.08); color: var(--brand); }
.payment-box input { display: none; }

#error-message {
  display: none;
  background: rgba(242,118,92,0.14);
  color: #fca08a;
  border: 1px solid rgba(242,118,92,0.35);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.trust-strip span { display: flex; align-items: center; gap: 6px; }
.trust-strip b { color: var(--route); }

/* Desktop: sidebar floats right so text content simply flows beside it
   and continues full-width underneath — no grid row-height matching
   quirks that can leave a large empty gap in the text column. */
@media (min-width: 951px) {
  .page-content { display: contents; }
  .hero-wrapper::after { content: ""; display: table; clear: both; }
  #booking {
    float: right;
    width: 420px;
    margin-left: 2.5rem;
  }
}
.desktop-sidebar-placeholder { display: none; }

/* Full-page booking focus mode: once a quote is fetched, everything else
   on the page (hero copy, badges, info sections, footer) hides so the
   vehicle selection + customer details step reads as its own dedicated
   page, with nothing to scroll past. */
body.quote-focus .eyebrow,
body.quote-focus .page-content h1,
body.quote-focus .lede,
body.quote-focus .hero-badges,
body.quote-focus .detail-card,
body.quote-focus .route-divider,
body.quote-focus footer,
body.quote-focus .desktop-sidebar-placeholder {
  display: none !important;
}
body.quote-focus .mobile-booking-wrapper { display: block !important; }
body.quote-focus .hero-wrapper { padding-top: 0.8rem; min-height: calc(100vh - 60px); }
body.quote-focus #booking {
  float: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 540px;
  margin: 0 auto !important;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.contact-info-card { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.contact-info-card h3 { color: var(--brand); margin-top: 0; font-size: 1.1rem; }
.contact-info-card p, .contact-info-card a { color: var(--ink-muted); font-size: 0.95rem; text-decoration: none; }
.contact-info-card a { color: var(--ink); font-weight: 700; }
.contact-info-card a:hover { color: var(--route); }

/* ---------- Footer ---------- */
footer { background: #060706; border-top: 1px solid var(--line); padding: 3rem 1.5rem 1.5rem; margin-top: 4rem; }
.footer-content { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.2rem; }
.footer-content h4 { color: var(--brand); margin: 0 0 0.9rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-content p { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--route); }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--ink-faint); }

/* ---------- View toggle kept for legacy anchors on index ---------- */
.mobile-booking-wrapper { display: contents; }

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
  .hero-wrapper { grid-template-columns: 1fr; padding: 1.4rem 1rem 0.5rem; display: flex; flex-direction: column; }
  .booking-sidebar { position: static; box-shadow: none; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(11,14,12,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    gap: 1rem;
  }
  .nav-links.active { display: flex; }
  .page-content h1 { font-size: 2rem; order: 1; }
  .mobile-booking-wrapper { display: flex; flex-direction: column; }
  .mobile-booking-wrapper #booking { order: 2; margin-bottom: 1.8rem; }
  .page-content .eyebrow,
  .page-content .lede,
  .page-content .hero-badges,
  .page-content .detail-card,
  .page-content .routes-strip { order: 3; }
  .desktop-sidebar-placeholder { display: none; }
}
