/* ==========================================================================
   Lobocar — design system implementation (see DESIGN.md, Turo-inspired)
   ========================================================================== */

:root {
  /* Color */
  --color-primary: #000000;
  --color-primary-light: #333333;
  --color-bg-white: #ffffff;

  --color-accent: #593cfb;
  --color-accent-hover: #4a2fe0;
  --color-accent-subtle: #eeeafe;

  --color-surface-card: #f5f5f5;
  --color-bg-light: #f5f5f5;
  --color-surface-raised: #ffffff;
  --color-bg-medium: #ebebeb;
  --color-surface-hover: #ebebeb;
  --color-surface-active: #e2e2e2;

  --color-text-primary: #131313;
  --color-text-secondary: #6f6f6f;
  --color-text-tertiary: #9a9a9a;
  --color-border: #dedede;

  --color-success: #1f7a4d;
  --color-warning: #b25e00;
  --color-error: #c6273e;
  --color-info: #593cfb;

  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebe57;

  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.9);

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-display-lg: 3rem;
  --font-size-display-md: 2.25rem;
  --font-size-display-sm: 1.75rem;
  --font-size-heading-lg: 2rem;
  --font-size-heading-md: 1.5rem;
  --font-size-heading-sm: 1.25rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body-md: 1rem;
  --font-size-body-sm: 0.875rem;
  --font-size-caption: 0.75rem;

  /* Spacing (4px base scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-image: 12px;
  --radius-xl: 16px;
  --radius-card: 16px;
  --radius-2xl: 24px;
  --radius-modal: 24px;
  --radius-full: 9999px;
  --radius-button: 9999px;
  --radius-input: 9999px;
  --radius-badge: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);

  /* Motion */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;

  /* Container */
  --container-max: 1200px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body-md);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg-white);
}

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

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

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

p {
  color: var(--color-text-primary);
}

/* Visible focus indicator everywhere (a11y NFR, docs/02-spec.md) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

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

/* ==========================================================================
   Typography utility classes
   ========================================================================== */

.display-lg {
  font-size: var(--font-size-display-lg);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.display-md {
  font-size: var(--font-size-display-md);
  font-weight: 700;
  line-height: 1.2;
}

.heading-lg {
  font-size: var(--font-size-heading-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.heading-md {
  font-size: var(--font-size-heading-md);
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: var(--font-size-body-lg);
  font-weight: 400;
  color: var(--color-text-secondary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.section-eyebrow {
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-button);
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.btn--default {
  padding: 12px 20px;
  font-size: var(--font-size-body-md);
}

.btn--small {
  padding: 8px 16px;
  font-size: var(--font-size-body-sm);
}

.btn--large {
  padding: 16px 28px;
  font-size: var(--font-size-body-lg);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.btn--whatsapp,
a.btn[href*="wa.me"] {
  background: var(--color-whatsapp);
  color: var(--color-bg-white);
  border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover,
a.btn[href*="wa.me"]:hover {
  background: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
}

.btn--secondary {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-bg-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  text-decoration: underline;
  padding: 0;
  border: none;
}

.btn--ghost:hover {
  color: var(--color-text-secondary);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-badge);
  padding: 6px 14px;
  font-size: var(--font-size-body-sm);
  font-weight: 600;
}

.badge--outline {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.badge--primary {
  background: var(--color-primary);
  color: var(--color-bg-white);
}

.badge--accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: relative;
  padding: 14px var(--space-8);
  background: var(--color-bg-white);
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-heading-sm);
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo img {
  width: 32px;
  height: 32px;
}

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

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.nav-pill:hover {
  background: var(--color-bg-light);
}

.nav-pill--current {
  background: var(--color-text-primary);
  color: var(--color-bg-white);
  border-color: var(--color-text-primary);
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: var(--color-bg-white);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.nav-whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.nav-toggle {
  display: none;
}

.nav-toggle summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle summary:hover {
  background: var(--color-bg-light);
}

.nav-toggle__panel {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 20;
}

.nav-toggle__panel .nav-pill {
  justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 72vh, 640px);
  padding: var(--space-16) var(--space-8);
  overflow: hidden;
  background: #0b1c2c;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.65) 0%, rgba(8, 18, 28, 0.52) 45%, rgba(8, 18, 28, 0.78) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  color: var(--color-bg-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero__title {
  max-width: 780px;
  color: var(--color-bg-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-body-sm);
}

.hero__trust:hover {
  color: var(--color-bg-white);
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  fill: #ffd166;
}

#reviews {
  scroll-margin-top: var(--space-8);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--space-6) var(--space-8) var(--space-12);
}

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

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.info-block {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  margin-bottom: var(--space-5);
}

.info-block h2 {
  font-size: var(--font-size-heading-lg);
  margin-bottom: var(--space-3);
}

.info-block p {
  color: var(--color-text-secondary);
  max-width: 760px;
}

/* ==========================================================================
   Cards — vehicle listing
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.vehicle-card {
  display: block;
  color: inherit;
}

/* Category header on the fleet page (SUVs / 7-seaters / sedans / compact) */
.fleet-category {
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.fleet-category:first-of-type {
  margin-top: 0;
}

.fleet-category__note {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
}

.vehicle-card__image-wrap {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-medium);
}

.vehicle-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* Interior shot sits on top of the exterior one and fades in on hover */
.vehicle-card__interior {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .vehicle-card:hover .vehicle-card__interior,
  .vehicle-card:focus-visible .vehicle-card__interior {
    opacity: 1;
  }

  .vehicle-card:hover .vehicle-card__exterior,
  .vehicle-card:focus-visible .vehicle-card__exterior {
    opacity: 0;
  }

  .vehicle-card__image-wrap::after {
    content: "Interior";
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: var(--font-size-body-sm);
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
  }

  .vehicle-card:hover .vehicle-card__image-wrap::after,
  .vehicle-card:focus-visible .vehicle-card__image-wrap::after {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-card__image-wrap img,
  .vehicle-card__image-wrap::after {
    transition: none;
  }
}

.vehicle-card__title {
  font-size: var(--font-size-heading-sm);
  font-weight: 700;
  margin-top: var(--space-3);
}

.vehicle-card__meta {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.vehicle-card__cta {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
}

/* Compact card (article rail) */
.compact-card {
  display: flex;
  gap: 14px;
  background: var(--color-surface-card);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  color: inherit;
}

.compact-card__thumb {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-medium);
}

.compact-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card__title {
  font-size: var(--font-size-body-md);
  font-weight: 700;
}

.compact-card__meta {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* Article card (things-to-do listing) */
/* Repeat of the section's main link, under the cards — on a phone the header
   link has scrolled far out of view by the time you reach the end of the grid. */
.section__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.article-card {
  display: block;
  color: inherit;
}

.article-card__image-wrap {
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-medium);
}

.article-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__title {
  font-size: var(--font-size-heading-sm);
  font-weight: 700;
  margin-top: var(--space-3);
}

.article-card__excerpt {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ==========================================================================
   Steps ("How to rent a car")
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.step {
  text-align: center;
}

.step__index {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto var(--space-3);
}

.step__title {
  font-size: var(--font-size-body-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.step__text {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
  background: var(--color-bg-medium);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-caption);
  font-weight: 600;
}

.reviews-widget-slot {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-body-sm);
}

/* ==========================================================================
   Car detail page
   ========================================================================== */

.car-hero {
  padding: var(--space-8) var(--space-8) 0;
}

.car-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.car-gallery {
  /* Masonry columns rather than a fixed grid: the photos come in wildly
     different shapes (16:9 exteriors, 9:16 interiors, squares), and any
     fixed-ratio cell would crop the car itself. Letting each photo keep
     its own proportions shows the whole car with no crop and no padding. */
  columns: 3;
  column-gap: var(--space-3);
}

.car-gallery > a {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-image);
  overflow: hidden;
  position: relative;
}

.car-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* The lead photo stays in the flow at its own proportions too. Forcing it
   to a wide hero crop defeats the point — the square studio shots lose the
   top and bottom of the car. */
.car-gallery__main--journey img {
  object-position: center 55%;
}

.car-gallery-more {
  columns: 4;
  column-gap: var(--space-3);
  margin-top: 0;
}

.car-gallery-more > a {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-image);
  overflow: hidden;
  position: relative;
}

.car-gallery-more img {
  width: 100%;
  height: auto;
  display: block;
}

.car-gallery__more {
  position: relative;
}

.car-gallery__more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-body-lg);
}

.car-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-6) 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-3) 0;
  font-size: var(--font-size-body-md);
  font-weight: 400;
}

.spec-table th {
  color: var(--color-text-secondary);
  font-weight: 400;
  width: 45%;
}

.spec-table td {
  font-weight: 600;
}

.car-hero .heading-md {
  margin-bottom: var(--space-8);
}

.rental-terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.rental-terms__item h3 {
  font-size: var(--font-size-body-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.rental-terms__item p {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
}

.price-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  margin-bottom: var(--space-8);
}


/* ==========================================================================
   Article page
   ========================================================================== */

.article-hero {
  padding: var(--space-8) var(--space-8) 0;
}

.article-hero img,
.article-hero__image {
  max-width: var(--container-max);
  margin: 0 auto;
  border-radius: var(--radius-image);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
  overflow: hidden;
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-8) var(--space-16);
}

.article-body__meta {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-caption);
  margin-bottom: var(--space-3);
}

.article-body h1 {
  font-size: var(--font-size-display-sm);
  margin-bottom: var(--space-5);
}

.article-body h2 {
  font-size: var(--font-size-heading-md);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body h3 {
  font-size: var(--font-size-heading-sm);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.article-body p {
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-4) var(--space-5);
}

.article-body li {
  list-style: disc;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.article-body ol li {
  list-style: decimal;
}

/* Inline links inside article text — the global `a { color: inherit }` would
   otherwise make them indistinguishable from body copy. */
.article-body p a,
.article-body li a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body p a:hover,
.article-body li a:hover {
  color: var(--color-accent-hover);
}

.article-cta {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.article-cta p {
  margin: 0;
  font-weight: 600;
}

/* ==========================================================================
   Contact page layout
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  font-size: var(--font-size-caption);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-body-sm);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
}

.form-field input {
  border-radius: var(--radius-input);
}

.form-field textarea {
  border-radius: var(--radius-lg);
  min-height: 140px;
  resize: vertical;
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-error {
  display: none;
  color: var(--color-error);
  font-size: var(--font-size-caption);
  margin-top: var(--space-1);
}

.form-field input:invalid:not(:placeholder-shown) ~ .form-error,
.form-field textarea:invalid:not(:placeholder-shown) ~ .form-error {
  display: block;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   FAQ (About page)
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--font-size-body-md);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-text-primary);
  color: var(--color-bg-white);
  padding: var(--space-12) var(--space-8) var(--space-8);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--font-size-heading-sm);
  margin-bottom: var(--space-3);
}

.site-footer__brand img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-body-sm);
}

.site-footer h4 {
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-body-sm);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-bg-white);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-5);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-caption);
}

/* ==========================================================================
   Sticky WhatsApp button (mobile)
   ========================================================================== */

.sticky-whatsapp {
  display: none;
}

@media (max-width: 640px) {
  .sticky-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 30;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    background: var(--color-whatsapp);
    color: var(--color-bg-white);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
  }

  body {
    padding-bottom: 76px;
  }
}

/* ==========================================================================
   Booking form (homepage section + modal)
   ========================================================================== */

.booking-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.booking-form__row .form-field {
  margin-bottom: var(--space-5);
}

.form-field input[type="date"],
.form-field input[type="number"] {
  /* Safari ignores width:100% on these unless the appearance is reset. */
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

/* A date input has no placeholder, so :placeholder-shown never matches and the
   generic invalid rule above would flag it as an error before it's ever touched.
   Until blur adds .is-touched (booking.js), keep it neutral. */
.form-field input[type="date"]:not(.is-touched) {
  border-color: var(--color-border);
}

.form-field input[type="date"]:not(.is-touched) ~ .form-error {
  display: none;
}

.form-field input.is-touched:invalid {
  border-color: var(--color-error);
}

.form-field input.is-touched:invalid ~ .form-error {
  display: block;
}

.booking-form__submit {
  width: 100%;
}

.booking-form__alt {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
}

.booking-form__alt a {
  color: var(--color-text-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-surface-hover);
}

.modal__title {
  margin-bottom: var(--space-2);
  padding-right: var(--space-8);
}

.modal__intro {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body-sm);
  margin-bottom: var(--space-6);
}

body.has-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .hero,
  .section,
  .car-hero,
  .article-hero,
  .article-body,
  .site-header,
  .site-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .display-lg {
    font-size: 2rem;
  }

  .display-md {
    font-size: 1.5rem;
  }

  .booking-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal {
    align-items: flex-start;
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .modal__dialog {
    padding: var(--space-6);
    max-height: calc(100vh - var(--space-10));
  }

  /* The sticky bar duplicates the WhatsApp link inside the dialog and eats
     the space the form needs — hide it while the modal is open. */
  body.has-modal-open .sticky-whatsapp {
    display: none;
  }

  .heading-lg {
    font-size: 1.5rem;
  }

  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  /* One card per row on phones, so give each one a proper panel: bordered,
     rounded and raised, with the photo flush inside it. The image keeps its
     4 / 3 box — that matches the card.jpg files exactly, so nothing gets
     re-cropped and no car loses its nose or tail. */
  .vehicle-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .vehicle-card__image-wrap {
    border-radius: 0;
  }

  .vehicle-card__title {
    margin-top: var(--space-4);
    font-size: 1.375rem;
  }

  .vehicle-card__title,
  .vehicle-card__meta,
  .vehicle-card__cta {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .vehicle-card__meta {
    font-size: 1rem;
  }

  .vehicle-card__cta {
    padding-bottom: var(--space-4);
  }

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

  .nav-links {
    display: none;
  }

  .nav-whatsapp {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .car-gallery {
    columns: 2;
  }

  .car-gallery-more {
    columns: 2;
  }



  .rental-terms {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
