/*
Theme Name: Preferred Exotics
Description: Custom theme for Preferred Exotics — private exotic and luxury car rental fleet, Miami. Ported from the Phase 1 mockup.
Author: Preferred Exotics
Version: 1.0.0
Text Domain: preferred-exotics
*/

/* ============================================================
   Preferred Exotics — Homepage Mockup
   Tokens: obsidian / ivory / brass / deep teal
   ============================================================ */

:root {
  --obsidian: #0b0b0d;
  --obsidian-2: #141416;
  --obsidian-3: #1c1c1f;
  --ivory: #f3efe6;
  --ivory-dim: #b7b2a6;
  --brass: #c6a15b;
  --brass-bright: #e4c486;
  --teal-deep: #0e2e2a;
  --line: rgba(243, 239, 230, 0.14);
  --line-bright: rgba(198, 161, 91, 0.45);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1280px;
  --nav-h: 108px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em, .em { font-style: italic; color: var(--brass-bright); }

p { color: var(--ivory-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--obsidian);
}
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-bright);
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--obsidian-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar a { color: var(--ivory-dim); }
.topbar a:hover { color: var(--brass-bright); }
.topbar .sep { opacity: 0.35; margin-inline: 10px; }
@media (max-width: 720px) {
  .topbar .hide-mobile { display: none; }
}

/* ---------- Main nav ---------- */
.mainnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 13, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, height 0.3s ease;
}
.mainnav.is-scrolled {
  border-bottom-color: var(--line);
  height: 76px;
  background: rgba(11, 11, 13, 0.92);
}
.mainnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.35em;
  color: var(--brass);
  margin-top: 4px;
}
.navlinks {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.navlinks a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ivory-dim);
  transition: color 0.2s ease;
}
.navlinks a:hover { color: var(--ivory); }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.navlinks a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-call {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  margin: -14px -8px;
}
.nav-call svg { color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  color: var(--ivory);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 980px) {
  .navlinks { display: none; }
  .nav-call span { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions > .lang-switch { display: none; }
  .nav-actions > .site-search { display: none; }
}
@media (max-width: 480px) {
  .logo { font-size: 17px; }
  .logo .sub { font-size: 8px; letter-spacing: 0.28em; }
  .nav-actions { gap: 10px; }
  .btn-primary { padding: 14px 16px; font-size: 11px; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch-toggle:hover,
.lang-switch-toggle[aria-expanded="true"] { border-color: var(--brass-bright); color: var(--brass-bright); }
.lang-switch-toggle .lang-flag { font-size: 15px; line-height: 1; }
.lang-switch-toggle .lang-code { text-transform: uppercase; }
.lang-switch-toggle .lang-caret { color: var(--brass); transition: transform 0.2s ease; }
.lang-switch-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--obsidian-2);
  border: 1px solid var(--line-bright);
  z-index: 60;
}
.lang-switch-menu[hidden] { display: none; }
.lang-switch-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ivory-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch-menu a:hover { background: var(--obsidian-3); color: var(--ivory); }
.lang-switch-menu a[aria-current="true"] { color: var(--brass-bright); }
.lang-switch-menu .lang-flag { font-size: 17px; line-height: 1; }

/* Mobile panel gets its own switcher instance, styled like the nav's other links */
.mobile-panel .lang-switch { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-panel .lang-switch-toggle {
  width: 100%;
  justify-content: space-between;
  font-size: 13px;
  padding: 12px 14px;
}
.mobile-panel .lang-switch-menu { left: 0; right: 0; min-width: 0; }

/* ---------- Site search ---------- */
.site-search { position: relative; }
.site-search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line-bright); color: var(--ivory);
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.site-search-toggle:hover, .site-search-toggle[aria-expanded="true"] { border-color: var(--brass-bright); color: var(--brass-bright); }
.site-search-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: flex; width: 320px; max-width: 80vw;
  background: var(--obsidian-2); border: 1px solid var(--line-bright); z-index: 60;
}
.site-search-panel[hidden] { display: none; }
.site-search-panel input[type="search"] {
  flex: 1; background: transparent; border: none; color: var(--ivory);
  font-family: var(--font-body); font-size: 14px; padding: 12px 14px;
}
.site-search-panel input[type="search"]:focus { outline: none; }
.site-search-panel button {
  background: var(--brass); color: var(--obsidian); border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 16px;
}
.mobile-panel .site-search { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-panel .site-search-toggle { display: none; }
.mobile-panel .site-search-panel { position: static; display: flex; width: 100%; max-width: none; }

/* ---------- Fleet instant filter ---------- */
.fleet-search {
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  background: var(--obsidian-2); border: 1px solid var(--line-bright);
  padding: 4px 6px 4px 14px;
}
.fleet-search svg { color: var(--brass); flex-shrink: 0; }
.fleet-search input {
  flex: 1; background: transparent; border: none; color: var(--ivory);
  font-family: var(--font-body); font-size: 15px; padding: 10px 0;
}
.fleet-search input:focus { outline: none; }
.fleet-no-results { padding: 40px 0; color: var(--ivory-dim); font-family: var(--font-mono); font-size: 13px; }

/* Mobile menu panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--obsidian);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 68%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.78) 0%, rgba(11,11,13,0.38) 22%, rgba(11,11,13,0.4) 60%, var(--obsidian) 96%),
    linear-gradient(90deg, rgba(11,11,13,0.8) 0%, rgba(11,11,13,0.15) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  max-width: 15ch;
  margin-top: 18px;
}
.hero-sub {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 17px;
  color: var(--ivory-dim);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--brass), transparent);
}
@media (max-width: 720px) {
  .scroll-cue { display: none; }
  .hero-content { padding-bottom: 56px; }
}

/* ---------- HUD ticker (signature element) ---------- */
.ticker {
  background: var(--obsidian-2);
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}
.ticker-track span b { color: var(--brass-bright); font-weight: 500; }
.ticker-track span::after {
  content: "◆";
  color: var(--brass);
  font-size: 8px;
  margin-left: 28px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section shell ---------- */
section { padding: 108px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 14px; max-width: 16ch; }
.section-head p { max-width: 38ch; margin: 0; }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  section { padding: 76px 0; }
}

/* ---------- Collection (horizontal showroom) ---------- */
.collection-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 -24px;
  padding-inline: 24px;
  scrollbar-width: none;
}
.collection-scroller::-webkit-scrollbar { display: none; }
.collection-scroller .car-card {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  scroll-snap-align: start;
}
.car-card {
  background: var(--obsidian-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
  min-width: 0;
}
.car-card:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.car-card .car-img { aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.car-card .car-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform 0.5s ease; }
.car-card:hover .car-img img { transform: scale(1.06); }
.car-body { padding: 22px; }
.car-brand { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--brass); text-transform: uppercase; }
.car-name { font-family: var(--font-display); font-size: 22px; margin-top: 6px; }
.car-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.car-meta .hp { color: var(--ivory-dim); }
.car-meta .price { color: var(--ivory); }
.car-meta .price b { color: var(--brass-bright); font-size: 15px; }

.scroller-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.scroller-controls button {
  width: 46px; height: 46px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.scroller-controls button:hover { background: var(--brass); color: var(--obsidian); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--obsidian-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat b {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  color: var(--brass-bright);
  display: block;
  font-weight: 500;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* ---------- Experience (split) ---------- */
.experience .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.experience-media { aspect-ratio: 4/5; overflow: hidden; }
.experience-media img { width: 100%; height: 100%; object-fit: cover; }
.experience h2 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); }
.experience p.lead { font-size: 17px; margin-top: 20px; max-width: 46ch; }
.feature-list { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.feature-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .num { font-family: var(--font-mono); color: var(--brass); font-size: 13px; padding-top: 3px; }
.feature-list h3 { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--ivory); }
.feature-list p { margin: 6px 0 0; font-size: 14.5px; }
@media (max-width: 900px) {
  .experience .wrap { grid-template-columns: 1fr; gap: 40px; }
  .experience-media { aspect-ratio: 16/10; order: -1; }
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote-card {
  background: var(--obsidian-2);
  border: 1px solid var(--line);
  padding: 32px;
  margin: 0;
  display: block;
}
.quote-stars { color: var(--brass) !important; font-size: 13px !important; letter-spacing: 3px; font-family: var(--font-body) !important; margin-top: 0 !important; }
.quote-card p { color: var(--ivory); font-size: 16px; margin-top: 18px; font-family: var(--font-display); font-size: 19px; line-height: 1.4; }
.quote-attr { margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ivory-dim); letter-spacing: 0.05em; }
.quote-card--rating { display: flex; flex-direction: column; align-items: flex-start; }
.rating-big { font-family: var(--font-display) !important; font-size: 56px !important; color: var(--brass-bright); line-height: 1 !important; margin-top: 0 !important; }
.rating-big + .quote-stars { margin-top: 10px; }
.rating-source { font-family: var(--font-mono); font-size: 12px; color: var(--ivory-dim); margin-top: 10px !important; font-family: var(--font-mono) !important; }
.quote-card--muted { display: flex; align-items: center; background: transparent; border-style: dashed; }
.quote-note { font-family: var(--font-body) !important; font-size: 14px !important; color: var(--ivory-dim) !important; margin-top: 0 !important; line-height: 1.6; }
@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Trustindex (Google reviews) — dressed to match the quote-card look above ---------- */
.trustindex-wrap {
  background: var(--obsidian-2);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 2px;
}
.trustindex-wrap * { font-family: var(--font-body) !important; }
.trustindex-wrap ti-widget,
.trustindex-wrap .ti-widget,
.trustindex-wrap [class*="trustindex"] { color: var(--ivory) !important; }
.trustindex-wrap a { color: var(--brass-bright) !important; }

/* ---------- Locations ---------- */
.locations { border-top: 1px solid var(--line); }
.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.location-chips a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  padding: 14px 22px;
  transition: background 0.2s ease, color 0.2s ease;
}
.location-chips a:hover { background: var(--brass); color: var(--obsidian); }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  background:
    radial-gradient(120% 140% at 15% 20%, rgba(198,161,91,0.14), transparent 55%),
    linear-gradient(160deg, var(--teal-deep), var(--obsidian) 65%);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-final h2 {
  font-size: clamp(32px, 5vw, 58px);
  max-width: 20ch;
  margin: 18px auto 0;
}
.cta-final .hero-actions { justify-content: center; margin-top: 40px; }

/* ---------- Footer ---------- */
footer {
  background: var(--obsidian-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 18px; max-width: 32ch; font-size: 14px; }
.footer-social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-bright); color: var(--ivory-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.footer-offices { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: 30ch; }
.footer-offices li { font-size: 12.5px; color: var(--ivory-dim); line-height: 1.4; }
.footer-offices span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.footer-col .footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ivory-dim); font-size: 14px; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ivory-dim);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Logo image ---------- */
/* min-width prevents flexbox from squeezing the logo narrower than its scaled size
   when nav-actions crowds it on small viewports — combined with aspect-ratio below,
   guarantees it never distorts regardless of available space. */
.logo-link { display: inline-flex; align-items: center; padding: 10px 0; margin: -10px 0; }
.logo-img { height: 30px; width: auto; aspect-ratio: 242 / 24; display: block; }
.footer-brand .logo-img { height: 26px; }
@media (max-width: 480px) { .logo-img { height: 22px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ivory-dim); }
.breadcrumb a:hover { color: var(--brass-bright); }
.breadcrumb span:not(.crumb-sep) { color: var(--brass); }
.crumb-sep { opacity: 0.35; }

/* ---------- Generic page hero (non-home pages) ---------- */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.72) 0%, rgba(11,11,13,0.35) 35%, var(--obsidian) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding-block: 64px 48px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 58px); max-width: 18ch; margin-top: 14px; }
.page-hero .hero-sub { max-width: 56ch; margin-top: 18px; font-size: 16px; }
.page-hero--plain { min-height: unset; border-bottom: 1px solid var(--line); background: var(--obsidian-2); }
.page-hero--plain .page-hero-content { padding-block: 56px; }

/* ---------- Vehicle detail page ---------- */
.vehicle-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding-top: 44px;
  align-items: start;
}
.gallery-main { aspect-ratio: 4/3; overflow: hidden; background: var(--obsidian-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 76px; height: 56px; padding: 0; border: 1px solid var(--line);
  background: var(--obsidian-2); cursor: pointer; overflow: hidden;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button.is-active { border-color: var(--brass); }

.vehicle-info .car-brand { font-size: 12px; }
.vehicle-info h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 10px; }
.vehicle-info .tagline { margin-top: 16px; font-size: 16.5px; max-width: 46ch; }
.vehicle-price {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
}
.vehicle-price b { font-family: var(--font-display); font-size: 38px; color: var(--brass-bright); font-weight: 500; }
.vehicle-price span { color: var(--ivory-dim); font-size: 13px; }
.vehicle-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.reassurance { font-family: var(--font-mono); font-size: 11.5px; color: var(--ivory-dim); margin-top: 16px; letter-spacing: 0.02em; }

.spec-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec-grid div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
.spec-grid b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ivory); }
.spec-grid span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }

.variant-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.variant-chips span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  border: 1px solid var(--line-bright); padding: 8px 14px; color: var(--ivory-dim);
}

@media (max-width: 900px) {
  .vehicle-head { grid-template-columns: 1fr; gap: 32px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Related grid (static, no scroller) ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1240px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid--fleet { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) { .related-grid--fleet { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .related-grid--fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid--fleet { grid-template-columns: 1fr; } }

/* ---------- Fleet index filters ---------- */
.fleet-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.fleet-filters a {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-bright); padding: 10px 16px; color: var(--ivory-dim);
}
.fleet-filters a:hover, .fleet-filters a.is-active { background: var(--brass); color: var(--obsidian); border-color: var(--brass); }

/* ---------- Brand / category hub grid header ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1060px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- Brands overview / location overview lists ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile-grid a {
  display: block; padding: 26px 22px; border: 1px solid var(--line); background: var(--obsidian-2);
  font-family: var(--font-display); font-size: 19px;
}
.tile-grid a span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tile-grid a:hover { border-color: var(--brass); }
@media (max-width: 860px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 22px 4px; font-family: var(--font-display); font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass); font-size: 20px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 22px; max-width: 68ch; }

/* ---------- Simple content page (About / Terms / Privacy / Requirements) ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; }
.prose ul { color: var(--ivory-dim); padding-left: 20px; }
.prose li { margin-top: 8px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--obsidian-2); border: 1px solid var(--line-bright);
  color: var(--ivory); font-family: var(--font-body); font-size: 15px; padding: 13px 14px;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.contact-info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-info-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-info-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-info-list span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Contact Form 7 ---------- */
.cf7-wrap .wpcf7-form-control-wrap { display: block; position: relative; }
.cf7-wrap .wpcf7-not-valid-tip {
  display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px;
  color: #e08a7a;
}
.cf7-wrap .wpcf7-response-output {
  margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-bright);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ivory);
}
.cf7-wrap form.sent .wpcf7-response-output { border-color: var(--brass-bright); color: var(--brass-bright); }
.cf7-wrap form.invalid .wpcf7-response-output, .cf7-wrap form.failed .wpcf7-response-output,
.cf7-wrap form.spam .wpcf7-response-output, .cf7-wrap form.aborted .wpcf7-response-output,
.cf7-wrap form.unaccepted .wpcf7-response-output { border-color: #e08a7a; color: #e08a7a; }
.cf7-wrap .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.cf7-wrap .wpcf7-spinner { margin-left: 10px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--obsidian-2);
  border-top: 1px solid var(--line-bright);
}
.mobile-cta .wrap {
  padding-block: 12px;
  display: flex;
  gap: 10px;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-cta .call { background: var(--brass); color: var(--obsidian); }
.mobile-cta .whatsapp { border: 1px solid var(--line-bright); color: var(--ivory); }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 68px; }
}
