/* ==========================================================================
   Rent a Car Mars — global stylesheet
   Design tokens and component styles shared by every page.
   ========================================================================== */

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

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Color */
  --accent: #e2231a;
  --accent-ink: #ffffff;
  --green: #9dcb3b;
  --bg: #f1efe8;
  --surface: #ffffff;
  --panel: #e9e6dd;
  --ink: #17140f;
  --muted: #6f685e;
  --line: #e4e0d6;
  --step-dim: #c9c2b4;
  --placeholder: #9a9184;
  --placeholder-faint: #b3aa9c;
  --footer-text: #f1efe8;
  --footer-muted: #a49c90;
  --footer-faint: #7d766c;

  /* Radius */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;

  /* Shadow */
  --sh-chip: 0 6px 22px -14px rgba(23, 20, 15, 0.4);
  --sh-float: 0 14px 34px -18px rgba(23, 20, 15, 0.5);
  --sh-search: 0 24px 60px -34px rgba(23, 20, 15, 0.4);
  --sh-card: 0 14px 40px -30px rgba(23, 20, 15, 0.5);
  --sh-card-hover: 0 30px 60px -30px rgba(23, 20, 15, 0.5);
  --sh-panel: 0 30px 70px -50px rgba(23, 20, 15, 0.5);
  --sh-btn-ghost: 0 8px 26px -16px rgba(23, 20, 15, 0.4);
  --sh-tile: 0 12px 34px -26px rgba(23, 20, 15, 0.5);

  /* Type */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --section-y: 124px;

  /* Motion */
  --ease: 0.2s ease;
}

/* --- Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
input, button, textarea, select { font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 800;
}
.skip-link:focus { left: 16px; color: #fff; }

/* --- Layout primitives ---------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* --- Typography ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow--on-accent { color: currentColor; opacity: 0.8; letter-spacing: 0.14em; }

.h1 {
  font-size: clamp(46px, 5.6vw, 82px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}
.h2--md { font-size: clamp(32px, 4vw, 52px); }
.h2--sm { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.03; }
.h2--contact { font-size: clamp(32px, 3.6vw, 48px); }
.h2--promo { font-size: clamp(32px, 4vw, 54px); line-height: 0.99; }

.lede {
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.accent-word { color: var(--accent); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  font-weight: 800;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease), filter var(--ease), transform var(--ease);
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.07); transform: translateY(-1px); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--sh-btn-ghost);
}
.btn--ghost:hover { color: var(--accent); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--ink); transform: translateY(-1px); }

/* Button sizes */
.btn--sm { font-size: 13px; padding: 12px 20px; }
.btn--md { font-size: 14px; padding: 14px 24px; }
.btn--lg { font-size: 15px; padding: 16px 30px; }
.btn--xl { font-size: 16px; padding: 18px 34px; }

/* --- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 48px; width: auto; }

.nav__links {
  display: flex;
  gap: 38px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--accent); }
/* Current page marker */
.nav__links a[aria-current='page'] { color: var(--accent); }

.nav__right { display: flex; align-items: center; gap: 18px; }

.nav__phone {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-top: 56px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 44px;
  align-items: stretch;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: var(--sh-chip);
  margin-bottom: 26px;
}
.pill-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__text {
  margin-top: 24px;
  max-width: 440px;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__ctas {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat__num { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Diagonal-stripe placeholder panel */
.panel {
  position: relative;
  background: var(--panel);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(23, 20, 15, 0.035) 0 14px,
    rgba(23, 20, 15, 0) 14px 28px
  );
  overflow: hidden;
}

.hero__panel {
  border-radius: var(--r-xl);
  min-height: 460px;
}
/* The panel sizes itself; the photo fills it and is cropped rather than
   letterboxed. .panel already clips to the radius and is the positioning
   parent, so this stays behind the float chips that follow it in the markup. */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.panel__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.panel__caption-main {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--placeholder);
}
.panel__caption-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--placeholder-faint);
}

/* Floating chips over the hero panel */
.float-chip {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  box-shadow: var(--sh-float);
}
.float-chip--tr { top: 24px; right: 24px; }
.float-chip--bl { bottom: 24px; left: 24px; display: flex; align-items: center; gap: 12px; }

.float-chip__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.float-chip__value { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }

.check-square {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

/* --- Search / booking card ------------------------------------------------ */
.search {
  margin-top: 36px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-search);
}

.search__pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pill {
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.pill:hover { color: var(--accent); }
.pill.is-active,
.pill[aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.search__fields {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 22px;
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: text;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  width: 100%;
}
/**
 * iOS Safari zooms the whole page in when you focus an input whose text is
 * under 16px, and does not zoom back out — the booking form lurches sideways
 * mid-typing. 16px is the documented threshold that prevents it.
 *
 * Two conditions, because either alone leaves a gap: the width rule misses a
 * phone held in landscape (926px on a Pro Max), and the pointer rule misses an
 * iPad driving a trackpad, which reports a fine pointer. Desktop keeps 15px.
 */
@media (max-width: 720px), (pointer: coarse) {
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); font-weight: 600; }

.search__submit { padding: 0 32px; font-size: 15px; height: 100%; }

/* --- Section header (title + trailing action) ----------------------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.section-head .h2 { max-width: 16ch; }

/* --- Fleet grid + car cards ----------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.car-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-card);
  transition: transform var(--ease), box-shadow var(--ease);
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
}

.car-card__media {
  aspect-ratio: 16 / 11;
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--panel);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(23, 20, 15, 0.04) 0 12px,
    rgba(23, 20, 15, 0) 12px 24px
  );
}
.car-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-rent {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-sm);
}

.car-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--placeholder);
  text-align: center;
  padding: 12px;
}

.car-card__body { padding: 24px 16px 14px; }

.car-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.car-card__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.car-card__year { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 8px 15px;
  border-radius: var(--r-sm);
}

.car-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.car-card__city-label { font-size: 12px; color: var(--muted); }
.car-card__city { font-weight: 700; font-size: 14px; }

/* CTA tile that trails the fleet grid */
.cta-tile {
  background: var(--accent);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  min-height: 280px;
}
.cta-tile__title { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.cta-tile__text { margin-top: 12px; font-size: 15px; font-weight: 600; opacity: 0.9; }
.cta-tile .btn { margin-top: 22px; }

/* --- Large white section card --------------------------------------------- */
.card-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 80px 68px;
  box-shadow: var(--sh-panel);
}

.card-panel__intro { max-width: 640px; margin-bottom: 64px; }
.card-panel__intro .lede { margin-top: 18px; }

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 34px;
}
.step__num {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--step-dim);
  line-height: 1;
}
.step:first-child .step__num { color: var(--accent); }
.step__title { margin-top: 16px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.step__text { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* --- Why / partners ------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.why-grid > * { min-width: 0; }
.why__list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.check-row { display: flex; gap: 12px; align-items: center; }
.check-row span:last-child { font-weight: 600; }
.check-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.partner-tile {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--sh-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.partner-tile img {
  max-width: 76%;
  max-height: 56%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-tile--more {
  background: var(--green);
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}
.partner-tile__more-num { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.partner-tile__more-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --- Promo banner --------------------------------------------------------- */
.promo {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 72px 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
/* Intentional decorative layer behind the copy */
.promo__watermark {
  position: absolute;
  right: -30px;
  top: -50px;
  font-size: 240px;
  font-weight: 900;
  letter-spacing: -0.05em;
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.promo__content { position: relative; max-width: 640px; }
.promo__text { margin-top: 16px; font-size: 17px; font-weight: 600; opacity: 0.9; }
.promo .btn { position: relative; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: stretch;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 72px 68px;
  box-shadow: var(--sh-panel);
}
.contact__blocks {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.info-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.info-block__value { font-size: 19px; font-weight: 700; }
.info-block__sub { font-size: 15px; color: var(--muted); margin-top: 2px; }

.contact__pair { display: flex; gap: 40px; flex-wrap: wrap; }
.contact__pair a { font-size: 19px; font-weight: 800; }

.map-card {
  border-radius: var(--r-xl);
  min-height: 440px;
  position: relative;
  overflow: hidden;
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__btn { position: absolute; left: 24px; bottom: 24px; z-index: 1; }

/* --- Footer --------------------------------------------------------------- */
.footer { padding-bottom: 32px; }
.footer__inner {
  background: var(--ink);
  color: var(--footer-text);
  border-radius: var(--r-xl);
  padding: 80px 68px 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer__logo { height: 44px; width: auto; }
.footer__tagline {
  margin-top: 18px;
  max-width: 340px;
  font-size: 15px;
  color: var(--footer-muted);
  text-wrap: pretty;
}
.footer__socials { margin-top: 22px; display: flex; gap: 14px; }
.social {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--footer-text);
  transition: background var(--ease);
}
.social:hover { background: var(--accent); color: #fff; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 18px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.footer__links a { color: var(--footer-text); }
.footer__links a:hover { color: var(--accent); }

.footer__address { font-size: 15px; color: var(--footer-muted); line-height: 1.7; }
.footer__address a { color: var(--footer-text); font-weight: 600; }
.footer__address a:hover { color: var(--accent); }

.footer__bar {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 13px; color: var(--footer-muted); }
.footer__locale {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-faint);
}

/* --- Page hero (inner pages) ---------------------------------------------- */
.page-hero { padding-top: 88px; padding-bottom: 72px; }
.page-hero .lede { margin-top: 20px; max-width: 620px; font-size: 18px; }

/* --- Contact form --------------------------------------------------------- */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form__grid .field--full { grid-column: 1 / -1; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form__submit { margin-top: 18px; width: 100%; padding: 18px 34px; font-size: 15px; }
.form__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Form feedback messages */
.form__status {
  /* Symmetric: without the bottom margin the first field sits flush against
     the banner, because the form's own children carry no top spacing. */
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.form__status--ok { background: rgba(157, 203, 59, 0.18); color: var(--ink); }
.form__status--err { background: rgba(226, 35, 26, 0.1); color: var(--accent); }
.field__error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 0;
}

.field__error--block { display: block; margin-top: 8px; }

/* A field that displays a value chosen elsewhere (the calendar) rather than
   taking typed input. Matches .field, minus the text cursor. */
.field--static { cursor: default; }
.field__value { font-size: 15px; font-weight: 700; color: var(--ink); }
.field__value.is-empty { color: var(--placeholder); font-weight: 600; }

/* --- Calendar ------------------------------------------------------------- */
.cal { --cal-cell: 38px; }
.cal__bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.cal__nav {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}
.cal__nav:hover:not(:disabled) { background: var(--panel); }
.cal__nav:disabled { opacity: 0.35; cursor: not-allowed; }

.cal__months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.cal__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.cal__dows, .cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__dows {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.cal__pad { height: var(--cal-cell); }

.cal__day {
  height: var(--cal-cell);
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.cal__day--free:hover { background: var(--panel); }
.cal__day--today { box-shadow: inset 0 0 0 1.5px var(--line); }

/* Past days stay in the grid for alignment, but read as absent. */
.cal__day--past {
  color: var(--placeholder-faint);
  cursor: not-allowed;
  background: transparent;
}

/* Taken days: struck through, so the state survives without color alone. */
.cal__day--booked {
  color: var(--placeholder);
  background: var(--panel);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.cal__day--in { background: rgba(226, 35, 26, 0.12); border-radius: 0; }
.cal__day--start,
.cal__day--end {
  background: var(--accent);
  color: var(--accent-ink);
}
.cal__day--start:hover, .cal__day--end:hover { background: var(--accent); }

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.cal__key { display: flex; align-items: center; gap: 8px; }
.cal__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}
.cal__swatch--free { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.cal__swatch--booked { background: var(--panel); }
.cal__swatch--sel { background: var(--accent); }

/* Calendar as a popover under the search bar's date fields. */
.cal-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% - 14px);
  right: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-search);
}
.search { position: relative; }

/* The picker fields are buttons, so they need the button defaults undone. */
.field--picker {
  border: none;
  font-family: inherit;
  text-align: left;
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--ease);
}
.field--picker:hover { background: var(--panel); }

/* --- Reservation page ----------------------------------------------------- */
.rezervo__back { margin-top: 26px; font-size: 14px; font-weight: 700; }
.rezervo__back a { color: var(--muted); }
.rezervo__back a:hover { color: var(--accent); }

.rezervo-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: start;
}
.rezervo-side { display: flex; flex-direction: column; gap: 28px; }
.rezervo-side .car-card { cursor: default; }
.rezervo-included { display: flex; flex-direction: column; gap: 14px; padding: 0 6px; }

.rezervo-main { display: flex; flex-direction: column; gap: 28px; }
.rezervo-panel { padding: 44px; }
.rezervo-hint { margin: 14px 0 30px; font-size: 14.5px; color: var(--muted); max-width: 56ch; }

.rezervo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--r-sm);
  background: var(--bg);
}
.rezervo-summary__text { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.rezervo-summary__text.is-empty { color: var(--muted); font-weight: 600; }

.rezervo-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 4px;
}

/* --- Values grid (about page) --------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  box-shadow: var(--sh-card);
}
.value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 20px;
}
.value-card__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.value-card__text { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* --- Fleet page: results meta + empty state ------------------------------- */
.results-meta {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 60px 34px;
  text-align: center;
  box-shadow: var(--sh-card);
}
.empty-state__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.empty-state__text { margin-top: 10px; font-size: 15px; color: var(--muted); }
.is-hidden { display: none !important; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 4px 28px;
}
.faq__q {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
  max-width: 72ch;
  text-wrap: pretty;
}

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

/* --- Tablet / small desktop ----------------------------------------------- */
@media (max-width: 1100px) {
  :root { --section-y: 96px; }

  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__panel { min-height: 380px; }
  .hero__text { max-width: none; }

  .search__fields { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; padding: 18px 32px; }

  .fleet-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .rezervo-grid { grid-template-columns: 1fr; gap: 32px; }
  .rezervo-panel { padding: 40px 32px; }

  .card-panel { padding: 60px 40px; }
  .contact-card { padding: 56px 40px; }
  .promo { padding: 60px 44px; }
  .footer__inner { padding: 60px 40px 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Mobile nav breakpoint ------------------------------------------------ */
@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav__toggle { display: flex; }
  .nav__phone { display: none; }
  .nav__right .btn { display: none; }

  /* Collapsed menu panel */
  .nav__links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    box-shadow: var(--sh-search);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
  }
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --section-y: 72px; --gutter: 18px; }

  .hero { padding-top: 36px; }
  .hero__panel { min-height: 300px; }
  .hero__stats { gap: 28px; }

  .search { padding: 18px; border-radius: var(--r-md); }
  .search__pills { gap: 8px; margin-bottom: 14px; }
  .pill { padding: 11px 16px; }
  .search__fields { grid-template-columns: 1fr; }
  .field { padding: 14px 18px; }

  .section-head { margin-bottom: 40px; gap: 24px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .partner-grid { gap: 14px; }
  .partner-tile { padding: 16px; }
  .partner-tile img { max-width: 70%; max-height: 62%; }

  .card-panel { padding: 40px 24px; border-radius: var(--r-lg); }
  .card-panel__intro { margin-bottom: 40px; }
  .contact-card { padding: 40px 24px; }
  .contact__blocks { gap: 28px; }

  .promo { padding: 44px 24px; gap: 28px; }
  .promo__watermark { font-size: 150px; right: -10px; top: -20px; }

  .form__grid { grid-template-columns: 1fr; }
  .faq__item { padding: 0 20px; }

  /* One month at a time, and cells big enough to tap. */
  .cal { --cal-cell: 42px; }
  .cal__months { grid-template-columns: 1fr; gap: 26px; }
  .cal__legend { gap: 12px 18px; }
  .rezervo-panel { padding: 32px 22px; }
  .rezervo-dates { grid-template-columns: 1fr; }
  .cal-pop { left: 0; right: 0; padding: 20px; }

  .footer__inner { padding: 44px 24px 32px; border-radius: var(--r-lg); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bar { margin-top: 36px; }

  /* Touch targets */
  .btn--sm { padding: 14px 22px; }
  .map-card { min-height: 340px; }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .car-card:hover { transform: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .header, .footer, .search, .promo { display: none; }
  body { background: #fff; }
}
