/* =========================================================
   Tokens — sampled from the reference screenshots
========================================================= */
:root {
  --black: #101312;
  --near-black: #17201B;
  --green: #0F8F45;
  --green-dark: #0B3D22;
  --green-mid: #0F5C31;
  --yellow: #F5D000;
  --pink: #E0004D;
  --grey-bg: #F4F5F4;
  --grey-line: #E2E5E2;
  --text: #171B18;
  --text-muted: #5C665F;
  --white: #FFFFFF;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 20px 45px rgba(10, 30, 20, 0.16);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4em 0;
  color: var(--text);
}

p { line-height: 1.6; color: var(--text-muted); margin: 0 0 0.8em 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-accent { background: var(--yellow); color: var(--black); }
.btn-accent:hover { filter: brightness(0.95); }

/* =========================================================
   Logo badge
========================================================= */
.logo-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  padding: 8px 16px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--green);
  letter-spacing: -0.02em;
}
.logo-swoosh { width: 100%; height: 6px; margin-top: 3px; }

/* =========================================================
   Header
========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  height: var(--header-h);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
}
.action-item::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -4px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.action-item:hover::after { transform: scaleX(1); }

.action-profile {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  justify-content: center;
}
.action-profile::after { display: none; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.hamburger-icon span:nth-child(2) { width: 70%; }

/* =========================================================
   Nav drawer (opens from the right, at every screen size)
========================================================= */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 12, 0.5);
  z-index: 250;
}
.drawer-backdrop.is-open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(340px, 86vw);
  background: var(--white);
  z-index: 260;
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -20px 0 40px rgba(0,0,0,0.18);
}
.nav-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.drawer-close {
  background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text);
}

.drawer-list { list-style: none; margin: 0 0 24px; padding: 0; }
.drawer-link {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--grey-line);
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size 0.2s ease, color 0.2s ease;
}
.drawer-link:hover { color: var(--green); background-size: 40% 2px; }

.drawer-cta { margin-top: auto; }

/* =========================================================
   Hero + booking card
========================================================= */
.hero {
  position: relative;
  padding: 0 24px 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  height: 420px;
  overflow: hidden;
  z-index: -1;
}
.hero-backdrop svg { width: 100%; height: 100%; }

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 8px 200px;
  color: var(--white);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 18ch;
}
.hero-sub { color: rgba(255,255,255,0.85); max-width: 48ch; font-size: 1.02rem; }

.booking-card {
  max-width: 1050px;
  margin: -170px auto 0;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-label-top { font-weight: 700; margin: 0; font-size: 0.95rem; }

.segmented {
  display: inline-flex;
  gap: 10px;
}
.segment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-line);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.segment.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

.field-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field-row-meta { align-items: center; }

.booking-field { display: flex; flex-direction: column; gap: 6px; }
.booking-field.grow { flex: 1 1 220px; }

.booking-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  padding: 12px 12px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  width: 100%;
}
.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.date-time-pair { display: flex; gap: 8px; }
.date-time-pair input:first-child { flex: 1.4; }
.date-time-pair input:last-child { flex: 1; }

.location-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  background: #E8F6EE;
  color: var(--green-mid);
  font-weight: 700;
  border: 1px dashed var(--green);
}

.same-return {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 12px;
}

.negotiated-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.booking-divider { border: none; border-top: 1px solid var(--grey-line); margin: 4px 0; }

.search-btn { margin-top: 4px; }

.booking-fineprint { font-size: 0.78rem; margin: 2px 0 0; }

.booking-confirmation {
  background: #E8F6EE;
  color: var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}
.booking-confirmation.is-error {
  background: #FDEDEE;
  color: #B3261E;
}

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

@media (max-width: 720px) {
  .booking-field.grow {
    flex: 1 1 auto;
  }
}

.hero-road-line {
  opacity: 0.6;
  stroke-dasharray: 14 10;
  animation: road-flow 1.6s linear infinite;
}

@keyframes road-flow {
  to {
    stroke-dashoffset: 48; /* one full dash+gap cycle, times a few for smoothness */
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-road-line {
    animation: none;
  }
}
/* =========================================================
   hero car
========================================================= */
.hero-car {
  position: absolute;
  left: 4%;
  top: -7%;
  width: 136%;
  height: 125%;
}
.hero-car img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.hero-bg        { position: absolute; inset: 0; z-index: 0; }
.hero-car       { position: absolute; z-index: 1; /* keep your existing left/top/width/height */ }
.hero-road-line { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-content   { position: relative; z-index: 3; pointer-events: none; }
.hero-content > * { pointer-events: auto; }

/* =========================================================
   Promo strip
========================================================= */
.promo-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  background: #2E2E2E;
  color: var(--white);
  padding: 14px 20px;
  margin-top: 40px;
  font-size: 0.92rem;
  font-weight: 600;
}
.promo-pill {
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.promo-arrow { font-size: 1.2rem; }

/* =========================================================
   Sections
========================================================= */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-tinted { background: var(--grey-bg); max-width: none; }
.section-tinted > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 56ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

/* Quick benefits (3 green pills, dark row) */
.benefits-grid {
  background: #1a7800;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.benefit-item h3 { color: var(--white); font-size: 1rem; margin-bottom: 2px; }
.benefit-item p { color: #BFDACB; font-size: 0.88rem; margin: 0; }

/* Fleet — plain, unboxed cards on the section's own background */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fleet-card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--grey-line);
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.fleet-card:first-child { border-left: none; }
.fleet-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.fleet-model {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-mid);
  background: #E8F6EE;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 4px;
  vertical-align: middle;
}
.see-more {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.see-more:hover { text-decoration: underline; }
.fleet-card p { font-size: 0.9rem; margin: 0 0 16px; }

/* Bigger, bolder placeholders for real car photos */
.car-placeholder { margin-top: auto; }
.car-placeholder img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  cursor: pointer;
}

/* Pagination dots — shown only once the grid becomes a mobile carousel */
.fleet-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.fleet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-line);
}
.fleet-dot.is-active { background: var(--green); }

/* Lightbox for "See full picture" */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 15, 12, 0.88);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }

.lightbox-track {
  width: min(900px, 100%);
  height: 85vh;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-md);
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

/* More benefits row */
.more-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.more-benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.more-benefit h3 { font-size: 1rem; }
.more-benefit p { font-size: 0.88rem; }

.pricing-notes { margin-top: 40px; }

/* Pricing table — a single real <table>, reflowed into stacked
   label:value rows on mobile via the media query below. */
.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.pricing-table thead th {
  background: #229a00;
  color: var(--white);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 14px 16px;
  white-space: nowrap;
}
.pricing-table thead th span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: #BFDACB;
  margin-top: 2px;
}
.pricing-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--grey-line);
  white-space: nowrap;
}
.pricing-table tbody tr:nth-child(even) { background: var(--grey-bg); }
.pricing-year {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

/* Locations */
.locations-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.locations-panel h2 { color: var(--white); }
.locations-panel p { color: #C8CFC9; margin: 0; max-width: 48ch; }
.locations-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--yellow);
  text-align: center;
}
.locations-badge strong { color: var(--white); font-size: 1.05rem; }
.locations-badge span { color: #9AA69F; font-size: 0.8rem; }

/* Help */
.help-box {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.help-box code { background: var(--grey-bg); padding: 2px 6px; border-radius: 4px; }

/* Footer */
.footer { max-width: 1240px; margin: 0 auto; padding: 48px 24px 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { padding: 6px 12px 4px; margin-bottom: 10px; }
.footer-cols h4 { font-size: 0.85rem; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-cols p { font-size: 0.85rem; }
.footer-legal { font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--grey-line); padding-top: 20px; margin: 0; }

/* =========================================================
   Floating helpers (from screenshots)
========================================================= */
.feedback-tab {
  position: fixed;
  right: 0;
  top: 52%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: #DFF6E7;
  color: var(--green-mid);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 8px 0 0 8px;
  z-index: 120;
}

.help-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 143, 69, 0.4);
  z-index: 120;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 960px) {
  .action-full { display: none; }
  .topbar-inner { padding: 0 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .more-benefits-grid { grid-template-columns: 1fr; }
  .locations-panel { flex-direction: column; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-content { padding: 32px 4px 260px; }
  .hero h1 { max-width: 100%; }
  .booking-card { margin-top: -240px; padding: 20px; border-radius: var(--radius-md); }
  .field-row { flex-direction: column; align-items: stretch; }
  .field-location { flex-direction: column; align-items: stretch; }
  .same-return { padding-bottom: 0; }
  .negotiated-rate { margin-left: 0; }
  .section { padding: 40px 18px; }
  .promo-strip { flex-wrap: wrap; text-align: center; padding: 12px 16px; }
  .feedback-tab { display: none; }
  .help-fab span { display: none; }

  /* Fleet becomes a swipeable carousel, one card per swipe */
  .fleet-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    margin: 0 -18px;
    padding: 0 18px;
    scrollbar-width: none;
  }
  .fleet-grid::-webkit-scrollbar { display: none; }
  .fleet-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-left: none;
    padding: 0 6px;
  }
  .fleet-dots { display: flex; }

  /* Pricing table reflows into stacked label:value rows —
     same <table> markup, just redisplayed as blocks. */
  .pricing-table-wrap { border: none; overflow-x: visible; }
  .pricing-table thead { display: none; }
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
    display: block;
    width: 100%;
  }
  .pricing-table tr {
    border: 1px solid var(--grey-line);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
  }
  .pricing-table tbody tr:nth-child(even) { background: transparent; }
  .pricing-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    white-space: normal;
    border-top: 1px solid var(--grey-line);
  }
  .pricing-table td:first-child {
    background: var(--green-dark);
    color: var(--white);
    border-top: none;
    font-family: var(--font-display);
  }
  .pricing-table td:first-child .pricing-year { color: #BFDACB; }
  .pricing-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .pricing-table td:first-child::before { content: ""; }
}

@media (max-width: 480px) {
  .segmented { width: 100%; }
  .segment { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-drawer { transition: none; }
}
