/* =========================================================
   Parshwanath Car Rental — Car Rental Website
   Main Stylesheet
   -----------------------------------------------------------
   Table of contents:
   1.  CSS Variables (Design System)
   2.  Reset & Base
   3.  Typography
   4.  Layout helpers
   5.  Buttons
   6.  Header & Navigation
   7.  Hero
   8.  Section headings / generic sections
   9.  Find Your Car (filter widget)
   10. Vehicle cards & grid
   11. Category cards
   12. Services
   13. Why choose us
   14. How it works
   15. Testimonials
   16. CTA band
   17. Contact info & footer
   18. Forms (contact / booking)
   19. Vehicle details modal
   20. Cars page specific (toolbar, filters)
   21. About page specific
   22. Contact page specific
   23. Booking page specific
   24. Utility classes
   25. Media queries
   ========================================================= */

/* ---------- 1. CSS VARIABLES ---------- */
:root {
  /* Colors */
  --color-navy-900: #0d1b35;
  --color-navy-800: #142850;
  --color-navy-700: #1f3a63;
  --color-navy-600: #2c4e82;
  --color-navy-100: #e9edf5;

  --color-gold-600: #a97b23;
  --color-gold-500: #c9973b;
  --color-gold-400: #e2c275;
  --color-gold-100: #fbf1dc;

  --color-ink: #171a21;
  --color-slate: #5b6472;
  --color-slate-light: #8791a0;

  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f9;
  --color-bg-navy: var(--color-navy-800);
  --color-border: #e4e7ec;

  --color-success: #2e7d52;
  --color-success-bg: #e9f6ee;
  --color-danger: #c4432b;
  --color-danger-bg: #fbeae6;

  /* Typography */
  --font-heading: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(13, 27, 53, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 27, 53, 0.1);
  --shadow-lg: 0 20px 48px rgba(13, 27, 53, 0.16);

  /* Layout */
  --container-width: 1220px;
  --header-height: 76px;
  --transition: 0.2s ease;
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-sm);
}

:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 2px;
}

/* ---------- 3. TYPOGRAPHY ---------- */
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  color: var(--color-slate);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gold-600);
  margin-bottom: var(--space-xs);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-gold-500);
  display: inline-block;
}

/* ---------- 4. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--navy {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-gold-400);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(20, 40, 80, 0.25);
  color: var(--color-navy-800);
}

.btn-outline:hover {
  border-color: var(--color-navy-800);
  background: var(--color-navy-800);
  color: var(--color-white);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-navy-800);
}

.btn-light:hover {
  background: var(--color-gold-100);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-xs);
}

.btn-whatsapp {
  background: #25d366;
  color: #0b2b16;
}

.btn-whatsapp:hover {
  background: #1ebd5a;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 6. HEADER & NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy-900);
  /* Was flex-shrink: 0, which let the business name force the header
     wider than the viewport at 320px (brand + hamburger > 320px). It can
     now shrink like any other flex item; min-width: 0 + the ellipsis rule
     below on .brand-name is what lets it shrink instead of wrapping. */
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-slate);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy-800);
  padding: 0.4rem 0.1rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-gold-500);
  transition: width var(--transition);
}

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

.nav-links a[aria-current="page"] {
  color: var(--color-gold-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-navy-900);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  color: var(--color-white);
  background: var(--color-navy-900);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* never intercept clicks meant for the hero buttons */
  /* Fallback when the video can't play (autoplay blocked, load error,
     reduced motion): the poster (= the video's first frame) fills the hero. */
  background: var(--color-navy-900) url("../images/hero/hero-poster.jpg") 50% 62% / cover no-repeat;
}

/* The client video is PORTRAIT (480x864, 9:16). It is never stretched:
   object-fit: cover keeps its true aspect ratio and crops the overflow.
   The cars sit in the lower-middle of most frames, so the focal point is
   set below centre to keep them in view when a wide hero crops the top. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none; /* poster (.hero-media background) is shown instead */
  }
}

/* Dark overlay keeps the white hero text readable over bright sky/road. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(13, 27, 53, 0.94) 8%, rgba(13, 27, 53, 0.78) 45%, rgba(13, 27, 53, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  min-height: 560px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-gold-400);
}

.hero-stats div span {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
}

.hero-badge {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-navy-900);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 260px;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-heading);
}

.hero-badge span {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

.page-hero {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-700));
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.page-hero .eyebrow {
  color: var(--color-gold-400);
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
}

.breadcrumb {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: var(--color-gold-400);
}

/* ---------- 8. SECTION HEADINGS ---------- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ---------- 9. FIND YOUR CAR ---------- */
.finder {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  position: relative;
  z-index: 5;
  border: 1px solid var(--color-border);
}

.finder-head {
  margin-bottom: var(--space-md);
}

.finder-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  align-items: end;
}

.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate);
  margin-bottom: 0.4rem;
}

.field select,
.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-ink);
  transition: border-color var(--transition), background var(--transition);
}

.field select:focus,
.field input:focus {
  border-color: var(--color-gold-500);
  background: var(--color-white);
  outline: none;
}

.finder-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: var(--space-xs);
}

.finder-results {
  margin-top: var(--space-lg);
}

.finder-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finder-empty {
  text-align: center;
  padding: var(--space-lg);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-slate);
}

.finder-empty strong {
  display: block;
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  margin-bottom: 0.3rem;
}

/* ---------- 10. VEHICLE CARDS & GRID ---------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.car-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.car-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-navy-100);
}

.car-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.car-card:hover .car-card-media img {
  transform: scale(1.05);
}

.car-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 27, 53, 0.85);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.car-card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold-500);
  color: var(--color-navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.car-card-price small {
  font-weight: 400;
  font-size: 0.65rem;
}

.car-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.car-card-body h3 {
  margin-bottom: 0;
}

.car-card-cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gold-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
  font-size: var(--fs-small);
  color: var(--color-slate);
  padding: 0.6rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.car-specs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.car-specs li .icon {
  color: var(--color-navy-700);
  flex-shrink: 0;
}

.car-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: var(--fs-xs);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-navy-800);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.car-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.car-card-actions .btn {
  flex: 1;
  padding: 0.7rem 1rem;
}

/* ---------- 10b. FLEET CAROUSEL ----------
   Cards reuse the .car-card styles above; this only adds the sliding
   track, controls and pagination. Cards-per-view is a CSS variable so the
   breakpoints live here (JS reads --per-view; it doesn't duplicate them). */
.carousel {
  --per-view: 1;
  --carousel-gap: var(--space-md);
}

.carousel-viewport {
  overflow: hidden;
  /* room for card hover-shadow/lift so they aren't clipped */
  padding: 6px 4px 18px;
  margin: -6px -4px -18px;
  touch-action: pan-y; /* vertical page scroll still works; horizontal = swipe */
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--carousel-gap)) / var(--per-view));
  min-width: 0;
  display: flex;
}

.carousel-slide .car-card {
  width: 100%;
}

/* Short description: clamp so every card stays the same height. */
.car-card-desc {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-slate);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.carousel-btn .icon {
  width: 22px;
  height: 22px;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-navy-800);
  border-color: var(--color-navy-800);
  color: var(--color-white);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: var(--space-md);
}

/* Visible dot is small, but the button is a comfortable 24px touch target. */
.carousel-dot {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot[aria-current="true"]::before {
  background: var(--color-gold-500);
  transform: scale(1.3);
}

@media (min-width: 640px) {
  .carousel { --per-view: 2; }
}

@media (min-width: 1024px) {
  .carousel { --per-view: 3; }
}

@media (min-width: 1280px) {
  .carousel { --per-view: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

/* ---------- 11. CATEGORY CARDS ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-gold-400);
}

.category-card .cat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-navy-100);
  color: var(--color-navy-800);
}

.category-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.category-card p {
  color: var(--color-slate);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* ---------- 12. SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-md);
}

.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-card-body p {
  color: var(--color-slate);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

.service-detail {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-media {
  width: 240px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-body h3 {
  margin-bottom: 0.4rem;
}

.service-detail-body ul {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.35rem;
}

.service-detail-body ul li {
  font-size: var(--fs-small);
  color: var(--color-slate);
  padding-left: 1.3rem;
  position: relative;
}

.service-detail-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-500);
}

/* ---------- 13. WHY CHOOSE US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}

.why-card {
  padding: var(--space-md);
}

.why-card .why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-100);
  color: var(--color-gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.why-card h3 {
  font-size: 1.05rem;
}

.why-card p {
  color: var(--color-slate);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* ---------- 14. HOW IT WORKS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-sm);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-400);
  -webkit-text-stroke: 1.5px var(--color-navy-700);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  color: var(--color-slate);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* ---------- 15. TESTIMONIALS ---------- */
.testimonial-note {
  font-size: var(--fs-small);
  color: var(--color-slate-light);
  margin-top: calc(var(--space-md) * -1);
  margin-bottom: var(--space-lg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.testimonial-stars {
  color: var(--color-gold-500);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  color: var(--color-ink);
  font-size: var(--fs-small);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy-100);
  color: var(--color-navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-small);
}

.testimonial-author strong {
  display: block;
  font-size: var(--fs-small);
}

.testimonial-author span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

/* ---------- 16. CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700) 60%, var(--color-navy-600));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.cta-band-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- 17. CONTACT INFO & FOOTER ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.contact-strip-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-strip-card .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-navy-100);
  color: var(--color-navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-strip-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-strip-card p {
  font-size: var(--fs-small);
  color: var(--color-slate);
  margin-bottom: 0;
}

.site-footer {
  background: var(--color-navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--fs-small);
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold-500);
  border-color: var(--color-gold-500);
  color: var(--color-navy-900);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--color-gold-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 18. FORMS ---------- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-navy-900);
}

.form-group label .req {
  color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-ink);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold-500);
  background: var(--color-white);
  outline: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-danger);
  background: var(--color-danger-bg);
}

.error-msg {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  min-height: 1em;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-slate);
  margin: 0;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(46, 125, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
}

.form-success.visible {
  display: block;
}

/* ---------- 19. VEHICLE DETAILS MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 35, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy-900);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.modal-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-body .car-card-cat {
  display: block;
  margin-bottom: 0.2rem;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.modal-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-navy-900);
  white-space: nowrap;
}

.modal-price small {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-slate);
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.modal-specs div span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.modal-specs div strong {
  font-family: var(--font-heading);
}

.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-sm) 0 var(--space-md);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

body.modal-open {
  overflow: hidden;
}

/* ---------- 20. CARS PAGE ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.toolbar-filters select,
.toolbar-search input {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.toolbar-count {
  font-size: var(--fs-small);
  color: var(--color-slate);
}

.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-navy-800);
  transition: all var(--transition);
}

.chip-filter.active,
.chip-filter:hover {
  background: var(--color-navy-800);
  border-color: var(--color-navy-800);
  color: var(--color-white);
}

.chip-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

/* ---------- 21. ABOUT PAGE ---------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-row strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-navy-900);
}

.stat-row span {
  font-size: var(--fs-small);
  color: var(--color-slate);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.mission-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.safety-list {
  display: grid;
  gap: var(--space-sm);
}

.safety-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--color-slate);
}

.safety-list .icon {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---------- 22. CONTACT PAGE ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: var(--space-md);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-slate);
}

.hours-table td:first-child {
  color: var(--color-navy-900);
  font-weight: 600;
}

.map-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-slate);
  gap: 0.5rem;
  text-align: center;
  padding: var(--space-md);
}

/* ---------- 23. BOOKING PAGE ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Grid items default to min-width: auto, which lets a wide child (the
   padded form) force its track wider than the fr-unit intended, blowing
   out the grid on narrow screens. min-width: 0 is the standard fix. */
.booking-layout > * {
  min-width: 0;
}

.booking-summary {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.booking-summary h3 {
  color: var(--color-white);
}

.booking-summary ul {
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
  margin: var(--space-sm) 0 var(--space-md);
}

.booking-summary ul li {
  display: flex;
  gap: 0.6rem;
}

.booking-summary ul li .icon {
  color: var(--color-gold-400);
  flex-shrink: 0;
}

.booking-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--space-lg);
}

.booking-progress span {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.booking-progress span.done {
  background: var(--color-gold-500);
}

/* Floating WhatsApp quick-contact button, shown on every page */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  stroke: none;
  fill: currentColor;
}

/* ---------- 24. UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy-900);
  color: var(--color-white);
  padding: 0.7rem 1rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
}

svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 25. MEDIA QUERIES ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-badge {
    position: relative;
    margin: 0 var(--space-md) var(--space-md);
    max-width: none;
  }

  .about-hero-grid,
  .contact-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  /* .booking-layout's 64px desktop gap is a COLUMN gap for its 2-column
     grid; with 1 column it was still being factored into track sizing
     and pushed the form ~30px past the viewport on narrow phones. Only
     a row gap (stacked form -> summary) is needed here. */
  .booking-layout {
    column-gap: 0;
    row-gap: var(--space-lg);
  }

  .booking-summary {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  /* backdrop-filter makes the header the containing block for its
     position:fixed children, which collapsed the mobile menu to the
     header's height. Drop it on mobile so the menu can fill the screen. */
  .site-header {
    background: var(--color-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-lg);
    transform: translateX(100%);
    /* visibility keeps the closed menu's links out of the tab order */
    visibility: hidden;
    transition: transform var(--transition), visibility 0s linear 0.2s;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .main-nav .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav .header-actions .btn {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .mission-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-md);
  }

  .service-detail {
    flex-direction: column;
  }

  .service-detail-media {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  .cta-band-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .finder-form {
    grid-template-columns: 1fr 1fr;
  }

  .finder-submit {
    justify-content: stretch;
  }

  .finder-submit .btn {
    flex: 1;
  }

  .car-card-actions {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* True mobile: 4 stats stack in a single column (desktop = 4-across via
     the base .stat-row rule, tablet = 2x2 via the 860px rule above). */
  .stat-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 420px) {
  .finder-form {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: var(--space-md);
  }
}
