/* =====================================================================
   Avis Tours and Safaris - one clean stylesheet for every page
   ===================================================================== */

:root {
  --gold: #C9A24A;
  --gold-deep: #A8832F;
  --charcoal: #2E3136;
  --grey: #6B6F76;
  --light-grey: #F2F2F2;
  --white: #FFFFFF;
  --ok: #1E7B46;
  --bad: #B03A2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Anything with .hidden disappears, on every screen size */
.hidden { display: none !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
}
.logo { height: 50px; width: auto; }
nav a {
  color: var(--charcoal);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
nav a:hover { color: var(--gold); }

/* ---------- Hero (home page) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  animation: kenburns 16s infinite, crossfade 16s infinite;
}
.hero-bg1 { background-image: url('../images/hero/background 2.jpeg'); animation-delay: 0s; }
.hero-bg2 { background-image: url('../images/hero/background 3.jpeg'); animation-delay: 8s; }

@keyframes crossfade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  42%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(46,49,54,0.45);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 0 20px; }
.hero-content h1 {
  font-size: 52px;
  letter-spacing: 3px;
  margin-bottom: 14px;
  animation: fadeUp 1.2s ease-out;
}
.hero-content p {
  font-size: 19px;
  color: var(--light-grey);
  animation: fadeUp 1.2s ease-out 0.3s backwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--white);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ---------- Home: services ---------- */
#services { padding: 60px 20px; text-align: center; }
#services h2 { margin-bottom: 30px; color: var(--charcoal); }
.service-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 30px;
  width: 280px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 10px; color: var(--charcoal); }
.card p { color: var(--grey); font-size: 15px; margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--charcoal); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(46,49,54,0.14); }
.btn:focus-visible { outline: 3px solid rgba(201,162,74,0.45); outline-offset: 3px; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; box-shadow: none; }
.btn-wide { width: 100%; margin-top: 14px; padding: 14px 22px; font-size: 15px; }

/* ---------- Inner pages ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.page-hero h1 { font-size: 36px; margin-bottom: 8px; }
.page-hero p { color: var(--light-grey); }

.back-link {
  display: inline-block;
  color: var(--light-grey);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.85;
}
.back-link:hover { color: var(--gold); }

.section-block { padding: 70px 20px; }
.section-block h2 { text-align: center; margin-bottom: 8px; }
.section-block h2.left { text-align: left; }
.section-sub { text-align: center; color: var(--grey); margin-bottom: 30px; }

.eyebrow {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Car filter tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.tab-btn {
  background: none;
  border: 1px solid #DDD;
  color: var(--charcoal);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--gold); }
.tab-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- Car cards ---------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--grey); }

.car-card {
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.09); }

.car-photo {
  background: linear-gradient(135deg, #ECE7DA, #D9D2C0);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumbs { display: flex; gap: 6px; padding: 8px 10px 0; }
.thumb {
  width: 46px; height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--light-grey);
  opacity: 0.75;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active, .thumb:hover { border-color: var(--gold); opacity: 1; }

.car-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.car-card-body h4 { margin-bottom: 2px; font-size: 18px; }
.car-meta { color: var(--grey); font-size: 13px; margin-bottom: 8px; }
.car-card-body .price { color: var(--gold-deep); font-weight: bold; font-size: 18px; }
.car-card-body .price span { color: var(--grey); font-weight: normal; font-size: 12px; }
.price-sub { color: var(--grey); font-size: 13px; margin-bottom: 14px; }
.car-card-body .book-btn { margin-top: auto; width: 100%; }

.img-missing { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--light-grey);
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 14px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }

/* =====================================================================
   Forms (shared by the booking modal and the taxi page)
   ===================================================================== */
.form-panel, .quote-panel {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  padding: 28px;
}

.form-intro, .form-note { color: var(--grey); font-size: 14px; }
.form-note.center { text-align: center; margin-top: 10px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 18px;
}

.field { display: block; min-width: 0; }
.field > span, .place-field > label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--text, var(--charcoal));
}
.field > span i { font-weight: normal; font-style: normal; color: var(--muted, var(--grey)); font-size: 12px; margin-left: 4px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line, #D5D5D5);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text, var(--charcoal));
  background: var(--field, var(--white));
  min-height: 46px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(201,162,74,0.45);
  border-color: var(--gold);
}

/* Honeypot: off-screen, invisible to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Estimate rows */
.quote-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, var(--light-grey));
  font-size: 15px;
}
.quote-item small { color: var(--muted, var(--grey)); font-size: 12px; }
.quote-item.total { font-size: 19px; border-bottom: 0; }
.quote-item.total strong { color: var(--gold-deep); }
.quote-item.fuel-row { font-size: 14px; border-top: 1px dashed var(--line, #DDD); border-bottom: 0; }
.quote-item.fuel-row strong { font-weight: normal; }

.quote-panel h2 { margin-bottom: 8px; }
.quote-notice {
  background: #FFF6DD;
  border: 1px solid #EBD79A;
  color: #6B5316;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 6px 0 10px;
}

/* Status + failure */
.status-message { min-height: 20px; margin-top: 12px; font-size: 14px; }
.status-message.error {
  color: var(--bad);
  background: #FDF1EF;
  border: 1px solid #F0C9C3;
  border-radius: 8px;
  padding: 12px;
}
.status-message.success { color: var(--ok); }
.wa-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: #1FAF5A;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 11px;
  border-radius: 8px;
}
.wa-link:hover { background: #17924A; }

/* Success panel */
.success-panel { text-align: center; padding: 26px 8px 8px; }
.success-tick {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30,123,70,0.12);
  color: var(--ok);
  animation: pop 0.45s cubic-bezier(.2,1.4,.4,1);
}
.success-tick svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-panel h3 { font-size: 24px; margin-bottom: 8px; }
.success-panel > p { color: var(--muted, var(--grey)); max-width: 420px; margin: 0 auto 18px; }
.success-panel dl {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 6px;
  border: 1px solid var(--line, var(--light-grey));
  border-radius: 10px;
  padding: 6px 16px;
}
.success-panel dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted, var(--grey)); padding-top: 10px; }
.success-panel dd { font-weight: bold; padding-bottom: 8px; border-bottom: 1px solid var(--line, var(--light-grey)); }
.success-panel dd:last-child { border-bottom: 0; }
.success-panel .btn { max-width: 420px; }

/* =====================================================================
   Taxi page
   ===================================================================== */
.taxi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}
.taxi-layout .quote-panel { position: sticky; top: 90px; background: #FBF7EE; border-color: #E6DDC8; }
.btn-submit { background: var(--charcoal); }
.btn-submit:hover { background: var(--gold-deep); }

/* =====================================================================
   Car hire booking modal
   Two looks: self-drive (light, cream and gold) and chauffeured (dark, gold)
   ===================================================================== */
.booking-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
  overscroll-behavior: contain;
}
.booking-modal-backdrop { position: absolute; inset: 0; background: rgba(30,32,36,0.75); backdrop-filter: blur(3px); }

.booking-dialog {
  /* theme variables, switched by data-mode */
  --bg: #FFFDF8;
  --surface: #F7F0E1;
  --text: #2E3136;
  --muted: #6B6F76;
  --line: #E4D9BE;
  --field: #FFFFFF;
  --accent: #C9A24A;
  --accent-ink: #FFFFFF;

  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: 0 0 26px;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  animation: dialogIn 0.3s ease-out;
}
.booking-dialog[data-mode="chauffeured"] {
  --bg: #1D1F23;
  --surface: #292C32;
  --text: #F3EFE6;
  --muted: #A9ADB4;
  --line: #3B3F47;
  --field: #14161A;
  --accent: #DDB95F;
  --accent-ink: #1D1F23;
  color-scheme: dark;
}
@keyframes dialogIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Mode-specific parts show only in their mode */
.booking-dialog[data-mode="self-drive"] [data-only="chauffeured"],
.booking-dialog[data-mode="chauffeured"] [data-only="self-drive"] { display: none !important; }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #2E3136;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #fff; }

/* Car banner at the top */
.car-banner {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #3A3D43, #1D1F23);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  color: #fff;
}
.car-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.car-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,22,26,0.92), rgba(20,22,26,0.1));
}
.car-banner-text { position: relative; z-index: 2; padding: 18px 24px; }
.car-banner-text .eyebrow { color: #E5C46F; }
.car-banner-text h2 { font-size: 26px; margin: 2px 0; }
.car-banner-text p:last-child { font-size: 14px; opacity: 0.85; }

#carHireForm, #carSuccess { padding: 0 24px; }

/* Step labels */
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 15px;
  margin: 24px 0 12px;
}
.step-label span {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}

/* The two big mode cards */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.mode-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.mode-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.mode-card:focus-visible { outline: 3px solid rgba(201,162,74,0.5); outline-offset: 2px; }
.mode-card[aria-checked="true"] {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.mode-self[aria-checked="true"] { background: linear-gradient(160deg, #FFFFFF, #FBF1D6); }
.mode-chauf[aria-checked="true"] { background: linear-gradient(160deg, #2D3036, #1A1C20); }
.booking-dialog[data-mode="chauffeured"] .mode-self { background: #14161A; }
.booking-dialog[data-mode="self-drive"] .mode-chauf { background: #FFFFFF; }

.mode-icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(201,162,74,0.16);
  color: var(--gold-deep);
}
.mode-icon svg { width: 30px; height: 30px; }
.mode-chauf .mode-icon { background: #23262B; color: #E5C46F; }
.mode-chauf[aria-checked="true"] .mode-icon { background: rgba(221,185,95,0.18); }

.mode-text { display: block; min-width: 0; }
.mode-text strong { display: block; font-size: 16px; }
.mode-text em { display: block; font-style: normal; font-weight: bold; color: var(--gold-deep); font-size: 14px; margin: 1px 0 4px; }
.booking-dialog[data-mode="chauffeured"] .mode-text em { color: #DDB95F; }
.mode-self .mode-text small { color: #6B6F76; }
.mode-chauf .mode-text small { color: #8F939A; }
.mode-chauf[aria-checked="true"] .mode-text small { color: #C4C7CC; }
.booking-dialog[data-mode="chauffeured"] .mode-self .mode-text strong { color: #F3EFE6; }
.booking-dialog[data-mode="self-drive"] .mode-chauf .mode-text strong { color: #2E3136; }
.mode-chauf[aria-checked="true"] .mode-text strong { color: #F7F3EA; }
.mode-text small { display: block; font-size: 12px; line-height: 1.4; }

.mode-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.mode-card[aria-checked="true"] .mode-check {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--field);
}
.mode-chauf[aria-checked="true"] .mode-check { box-shadow: inset 0 0 0 4px #1A1C20; }

.mode-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.mode-banner strong { color: var(--accent); }
.booking-dialog[data-mode="self-drive"] .mode-banner strong { color: var(--gold-deep); }

/* Radio pills (trip type, deposit) */
.pill-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { display: block; position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pill b, .pill small { display: block; padding-left: 38px; }
.pill b { font-size: 14px; padding-top: 11px; line-height: 1.3; }
.pill small { color: var(--muted); font-size: 12px; padding-bottom: 11px; padding-right: 10px; }
.pill::before {
  content: "";
  position: absolute;
  left: 12px; top: 14px;
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--field);
}
.pill {
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, background-color 0.2s;
}
.pill:hover { border-color: var(--accent); }
.pill:has(input:checked) { border-color: var(--accent); background: var(--surface); }
.pill:has(input:checked)::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--field); }
.pill:has(input:focus-visible) { outline: 3px solid rgba(201,162,74,0.45); outline-offset: 2px; }
.trip-field .pill-group { grid-template-columns: 1fr; }

/* Estimate box, themed per mode */
.estimate-box {
  margin: 22px 0 14px;
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.estimate-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.estimate-header h3 { font-size: 18px; }
.estimate-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201,162,74,0.18);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.booking-dialog[data-mode="chauffeured"] .estimate-badge { color: #DDB95F; }
.booking-dialog[data-mode="chauffeured"] .quote-item.total strong { color: #DDB95F; }

/* Terms */
.terms-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.terms-box summary { cursor: pointer; font-weight: bold; color: var(--text); font-size: 14px; }
.terms-box ul { margin: 10px 0 2px 18px; }
.terms-box li { margin-bottom: 5px; }

/* Submit button per mode */
.booking-dialog .btn-submit { background: var(--accent); color: var(--accent-ink); font-weight: bold; }
.booking-dialog[data-mode="self-drive"] .btn-submit { background: var(--gold); color: #fff; }
.booking-dialog .btn-submit:hover { filter: brightness(1.08); background: var(--accent); }
.booking-dialog[data-mode="self-drive"] .btn-submit:hover { background: var(--charcoal); filter: none; }

.booking-dialog .btn { color: var(--accent-ink); }
.booking-dialog[data-mode="self-drive"] .btn { color: #fff; }
.booking-dialog .success-panel .btn { background: var(--accent); }
.booking-dialog[data-mode="self-drive"] .success-panel .btn { background: var(--gold); }

.booking-dialog .status-message.error { background: rgba(176,58,46,0.12); border-color: rgba(176,58,46,0.4); color: #E0705F; }
.booking-dialog[data-mode="self-drive"] .status-message.error { color: var(--bad); background: #FDF1EF; }

/* =====================================================================
   Phones
   ===================================================================== */
@media (max-width: 860px) {
  .taxi-layout { grid-template-columns: 1fr; }
  .taxi-layout .quote-panel { position: static; order: -1; }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 10px; }
  nav a { margin: 0 10px; }
  .hero-content h1 { font-size: 32px; }
  .section-block { padding: 44px 16px; }
  .form-panel, .quote-panel { padding: 20px 16px; }
}

@media (max-width: 560px) {
  .booking-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
  .car-banner { min-height: 120px; border-radius: 16px 16px 0 0; }
  .car-banner-text { padding: 14px 16px; }
  .car-banner-text h2 { font-size: 22px; }
  #carHireForm, #carSuccess { padding: 0 16px; }
  .mode-switch, .pill-group, .form-grid { grid-template-columns: 1fr; }
  .estimate-header { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-bg1 { opacity: 1; }
}
/* =====================================================================
   MVP banner + reviews
   ===================================================================== */
.service-banner {
  background: #FFF6DD;
  border-bottom: 1px solid #EBD79A;
  color: #5E4A12;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  line-height: 1.5;
}
.service-banner a { color: #8A6A12; font-weight: bold; margin-left: 6px; white-space: nowrap; }

.review-summary { text-align: center; font-weight: bold; color: var(--gold-deep); margin-bottom: 18px; min-height: 1px; }
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.review-empty { grid-column: 1 / -1; text-align: center; color: var(--grey); }
.review-card {
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 16px;
  background: #FFFDF8;
}
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.review-card p { font-size: 15px; margin-bottom: 8px; overflow-wrap: anywhere; }
.review-card small { color: var(--grey); font-size: 12px; }

.review-form {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  padding: 24px;
  background: var(--white);
}
.review-form h3 { margin-bottom: 14px; }
.review-form .field { margin-bottom: 14px; }

.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 34px; line-height: 1; color: #CFCFCF; cursor: pointer; padding: 0 3px; transition: color 0.15s; }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 3px solid rgba(201,162,74,0.5); border-radius: 6px; }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 10px 0;
}
.car-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #555;
}

/* Place lookup list (taxi pickup and destination) */
.place-field { position: relative; }
.place-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  margin: 4px 0 0; padding: 4px 0; list-style: none;
  max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid #d9d4c7; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.place-list[hidden] { display: none; }
.place-list li {
  padding: 12px 14px; font-size: 15px; cursor: pointer;
  border-bottom: 1px solid #f0ece2; color: #222;
}
.place-list li:last-child { border-bottom: 0; }
.place-list li:hover, .place-list li:active { background: #f7f1e1; }
#taxiLookupStatus { grid-column: 1 / -1; margin: -6px 0 0; }

/* =====================================================================
   Home page refresh (scoped to body.home)
   ===================================================================== */
.home {
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.14);
  --glass-line: rgba(255,255,255,0.18);
  --cream: #FAF6EC;
  --ink: #1F2125;
}
.home .center { text-align: center; }
.home .eyebrow { display: block; text-align: center; margin-bottom: 8px; letter-spacing: 3px; }

/* Header turns to frosted glass once you scroll */
.home .site-header { transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s; }
.home .site-header.scrolled {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgba(201,162,74,0.25);
  box-shadow: 0 6px 24px rgba(31,33,37,0.08);
}

/* Slim trial notice */
.home .service-banner {
  background: linear-gradient(90deg, #2E3136, #3A3D43);
  border-bottom: 1px solid rgba(201,162,74,0.35);
  color: #E9E3D3;
}
.home .service-banner a { color: var(--gold); }

/* Hero additions (the hero itself is unchanged) */
.service-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeUp 1.2s ease-out;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  animation: fadeUp 1.2s ease-out 0.6s backwards;
}
.btn-hero { padding: 14px 30px; font-size: 15px; box-shadow: 0 10px 30px rgba(201,162,74,0.35); }
.btn-hero:hover { background: var(--white); color: var(--charcoal); }
.btn-glass {
  padding: 14px 30px;
  font-size: 15px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }

/* Services */
.home-services {
  padding: 90px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,74,0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(46,49,54,0.08), transparent 50%),
    var(--cream);
}
#services h2 { margin-bottom: 0; color: var(--ink); }
.home h2 { font-size: 34px; letter-spacing: 0.5px; color: var(--ink); }
.home .section-sub { max-width: 560px; margin: 8px auto 44px; }
.home .service-cards { gap: 28px; }
.home .card {
  position: relative;
  width: 310px;
  padding: 40px 30px 34px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(31,33,37,0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home .card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #E6C77A);
}
.home .card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(168,131,47,0.22); }
.home .card h3 { font-size: 22px; }
.card-icon, .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, var(--charcoal), #44484F);
  box-shadow: 0 8px 20px rgba(46,49,54,0.25);
  transition: transform 0.3s ease;
}
.card-icon svg, .why-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home .card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.home .card .btn span, .home .fleet-strip .btn span { display: inline-block; transition: transform 0.2s; }
.home .card .btn:hover span, .home .fleet-strip .btn:hover span { transform: translateX(4px); }

/* Photo bands: darkened hero photo behind frosted glass */
.photo-band {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(31,33,37,0.88), rgba(31,33,37,0.7) 50%, rgba(80,62,22,0.75)),
    url('../images/hero/background 3.jpeg') center / cover fixed;
}
.cta-band {
  background:
    linear-gradient(120deg, rgba(31,33,37,0.85), rgba(31,33,37,0.55)),
    url('../images/hero/background 2.jpeg') center 40% / cover fixed;
}
.photo-band h2 { color: var(--white); }

/* Why travel with us */
.why-us { padding: 100px 0; }
.why-intro { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.why-intro .eyebrow { color: var(--gold); }
.why-intro h2 { margin-bottom: 16px; }
.why-intro p:last-child { color: rgba(255,255,255,0.82); font-size: 17px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-tile {
  padding: 30px 26px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.why-tile:hover { transform: translateY(-6px); background: var(--glass-strong); border-color: rgba(201,162,74,0.55); }
.why-tile h3 { font-size: 19px; margin-bottom: 8px; color: var(--white); }
.why-tile p { color: rgba(255,255,255,0.75); font-size: 15px; }
.why-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  box-shadow: 0 8px 22px rgba(201,162,74,0.35);
}
.why-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.why-tile:hover .why-icon { transform: scale(1.08); }

/* Fleet strip */
.fleet-strip { padding: 90px 0; background: var(--white); }
.fleet-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.fleet-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #ECE7DA, #D9D2C0);
  box-shadow: 0 10px 26px rgba(31,33,37,0.12);
}
.fleet-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.fleet-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,33,37,0.75), transparent 55%);
}
.fleet-item span {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--white);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.fleet-item:hover img { transform: scale(1.08); }

/* Reviews */
.home-reviews {
  padding: 90px 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(201,162,74,0.16), transparent 40%),
    linear-gradient(180deg, var(--cream), #F3ECDB);
}
.home .review-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(31,33,37,0.06);
  border-left: 4px solid var(--gold);
}
.home .review-empty {
  padding: 24px;
  border: 1px dashed rgba(168,131,47,0.45);
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
}
.home .review-form {
  max-width: 600px;
  padding: 34px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(168,131,47,0.15);
}
.home .review-form h3 { text-align: center; font-size: 22px; }
.home .review-form input[type="text"],
.home .review-form textarea {
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home .review-form input[type="text"]:focus,
.home .review-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,74,0.2);
}

/* Call to action */
.cta-band { padding: 110px 0; }
.cta-glass {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 40px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.cta-glass h2 { font-size: 40px; margin-bottom: 10px; }
.cta-glass p { color: rgba(255,255,255,0.82); font-size: 17px; }

/* Footer */
.home .home-footer {
  margin-top: 0;
  padding: 70px 0 0;
  text-align: left;
  font-size: 15px;
  background: linear-gradient(180deg, var(--ink), #16171A);
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.3fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-logo {
  height: 56px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
}
.footer-col p { color: rgba(242,242,242,0.7); max-width: 320px; }
.footer-col h4 {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; color: rgba(242,242,242,0.7); overflow-wrap: anywhere; }
.home .home-footer a { text-decoration: none; transition: color 0.2s; }
.footer-note p {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  color: #E9E3D3;
  background: rgba(201,162,74,0.1);
  border: 1px solid rgba(201,162,74,0.3);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 26px;
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(242,242,242,0.55);
}
.footer-bottom a { color: var(--gold) !important; font-weight: bold; }

/* Scroll reveal (only when JavaScript is running) */
.js-reveal .reveal:not(.in-view) { opacity: 0; }
.js-reveal .reveal.in-view { animation: revealUp 0.8s ease-out both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback when the browser cannot blur */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .why-tile, .cta-glass { background: rgba(31,33,37,0.7); }
  .home .card, .home .review-form { background: var(--white); }
}

@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Fixed backgrounds are jumpy on phones */
  .photo-band, .cta-band { background-attachment: scroll; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 600px) {
  .home h2 { font-size: 27px; }
  .home-services, .why-us, .fleet-strip, .home-reviews { padding-top: 60px; padding-bottom: 60px; }
  .home .card { width: 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .fleet-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta-band { padding: 70px 0; }
  .cta-glass { padding: 36px 22px; }
  .cta-glass h2 { font-size: 30px; }
  .home .review-form { padding: 24px 18px; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}
/* Fleet refinements retain the existing cream, charcoal and gold palette. */
.car-card .thumbs { min-height: 42px; }
.car-card-body h4 { font-size: 21px; }
.details-btn { margin: auto 0 10px; padding: 11px; border: 1px solid var(--gold); border-radius: 6px; background: #FFFCF5; color: var(--charcoal); font: inherit; cursor: pointer; }
.details-btn:hover { background: #F7F0E1; }
.car-spec svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-deep); }
.vehicle-details { margin: auto; padding: 0; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #E4D9BE; border-radius: 16px; background: #FFFDF8; color: var(--charcoal); font: inherit; }
.vehicle-details::backdrop { background: rgba(30,32,36,.75); backdrop-filter: blur(3px); }
.details-main { display: block; width: 100%; height: clamp(220px, 45vw, 430px); object-fit: contain; background: #EDE7DC; }
.details-body { padding: 22px; }
.details-body h2 { margin-bottom: 12px; }
.details-body p { margin: 12px 0; }
.details-body .car-specs { padding: 12px 0; }
.details-body .price { color: var(--gold-deep); font-weight: bold; font-size: 20px; }
.details-body .btn { width: 100%; }
.payment-policy { padding: 14px; margin: 14px 0; border-left: 3px solid var(--gold); background: var(--surface); font-size: 14px; }
.quote-item { gap: 14px; }
.quote-item strong { min-width: 0; text-align: right; overflow-wrap: anywhere; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 600px) {
  .car-grid { grid-template-columns: minmax(0, 1fr); }
  .field input, .field select, .field textarea { font-size: 16px; }
  .estimate-header { flex-wrap: wrap; }
  .header-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .header-inner nav a { margin: 0; }
  .taxi-layout .quote-panel { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-bg1 { opacity: 1; }
}

.car-card > .car-specs { margin: 0; padding: 12px 16px; border-top: 1px solid #EDE7DC; background: #FFFDF8; }

/* ---------- About & offices ---------- */
.home-about {
  padding: 90px 20px;
  background: linear-gradient(180deg, #FFFFFF, var(--cream, #FAF6EC));
}
.home-about h2 { text-align: center; }
.home-about .section-sub { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px auto 0;
  max-width: 920px;
}
.office-card {
  background: #FFFFFF;
  border: 1px solid rgba(201,162,74,0.3);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 26px rgba(31,33,37,0.07);
}
.office-card h3 { margin-bottom: 4px; }
.office-place { color: var(--gold-deep); font-weight: bold; margin-bottom: 14px; }
.office-card ul { list-style: none; margin-bottom: 18px; }
.office-card li { margin-bottom: 8px; font-size: 15px; overflow-wrap: anywhere; }
.office-card a { color: var(--charcoal); }
.office-card a:hover { color: var(--gold-deep); }
.office-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.office-actions .btn { color: var(--white); text-decoration: none; }
.btn.btn-outline { background: transparent; color: var(--gold-deep) !important; border: 1.5px solid var(--gold); }
.btn.btn-outline:hover { background: var(--gold); color: var(--white) !important; }
.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 32px auto 0;
  text-align: center;
}
.about-facts li {
  padding: 18px 12px;
  border-radius: 12px;
  background: rgba(201,162,74,0.1);
  border: 1px solid rgba(201,162,74,0.25);
}
.about-facts strong { display: block; font-size: 22px; color: var(--gold-deep); margin-bottom: 4px; }
.about-facts span { font-size: 13px; color: var(--grey); }
.footer-contact-line { margin-bottom: 8px; line-height: 1.8; }
@media (max-width: 760px) {
  .office-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .home-about { padding: 60px 16px; }
}
