:root {
  --ink: #222732;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #eff3fa;
  --line: #e1e6f0;
  --night: #222732;
  --accent: #ff4605;
  --accent-dark: #e23c00;
  --radius: 10px;
  --shadow: 0 18px 42px rgba(12, 16, 22, 0.16);
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Mulish", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-weight: 900;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  transition: box-shadow 160ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand img {
  width: 182px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--accent);
}

.header-action,
.hero-search button,
.results-bar button,
.lead-form button,
.filters-title button,
.calculator button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-align: center;
}

.header-action:hover,
.hero-search button:hover,
.results-bar button:hover,
.lead-form button:hover,
.filters-title button:hover {
  background: var(--accent-dark);
}

.site-header .header-action {
  background: transparent;
  border: 1px solid var(--accent);
}

.site-header .header-action:hover {
  background: var(--accent);
}

.results-bar button:disabled {
  background: #b8c0ca;
  cursor: not-allowed;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--night);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide 18s infinite;
}

.hero-media img:nth-child(2) {
  animation-delay: 6s;
}

.hero-media img:nth-child(3) {
  animation-delay: 12s;
}

@keyframes slide {
  0%, 30% {
    opacity: 1;
    transform: scale(1.02);
  }
  35%, 100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(20, 23, 30, 0.45) 0%, rgba(20, 23, 30, 0.6) 55%, rgba(20, 23, 30, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 126px 0 56px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.9rem);
  line-height: 1.04;
}

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

.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0 20px;
  font-weight: 600;
}

.hero-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 4px 2px;
  color: white;
  font-size: 1.02rem;
}

.hero-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-search {
  width: min(100%, 780px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 26px 60px rgba(8, 10, 15, 0.4);
}

.hero-search label {
  position: relative;
}

.hero-search label + label::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line);
}

.hero-search select {
  min-height: 54px;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.hero-search button {
  width: 54px;
  min-height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
}

.hero-search button svg {
  width: 21px;
  height: 21px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 12px;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

.inventory-section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header h2,
.finance h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.pill-tabs {
  display: inline-flex;
  gap: 12px;
}

.pill-tab {
  min-height: 48px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #eef0f5;
  color: var(--ink);
  font-weight: 600;
}

.pill-tab.is-active {
  background: rgba(255, 70, 5, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

.view-tools {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.tool-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.tool-button.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(17, 19, 24, 0.08);
}

.inventory-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.filters-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filters-title h3 {
  margin: 0;
  font-size: 1.1rem;
}

.filters-title button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--night);
}

.filters output {
  color: var(--accent);
  font-weight: 700;
}

.inventory-main {
  display: grid;
  gap: 18px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-bar p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.results-bar strong {
  color: var(--ink);
  font-size: 1.4rem;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.load-more {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px 0 4px;
  text-align: center;
}

.load-more .page-status {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.load-more button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 26px;
  background: var(--night);
  color: white;
  font-weight: 600;
}

.load-more button:hover {
  background: var(--accent);
}

.results-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.vehicle-card.is-skeleton {
  pointer-events: none;
}

.vehicle-card.is-skeleton .card-media,
.vehicle-card.is-skeleton .card-body span {
  background: linear-gradient(90deg, #eef1f5 25%, #e2e7ee 37%, #eef1f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}

.vehicle-card.is-skeleton .card-body {
  display: grid;
  gap: 12px;
}

.vehicle-card.is-skeleton .card-body span {
  height: 14px;
  border-radius: 6px;
}

.vehicle-card.is-skeleton .card-body span:nth-child(1) {
  width: 70%;
}

.vehicle-card.is-skeleton .card-body span:nth-child(2) {
  width: 45%;
}

.vehicle-card.is-skeleton .card-body span:nth-child(3) {
  width: 90%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.vehicle-grid.is-list {
  grid-template-columns: 1fr;
}

.vehicle-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 2px;
  background: var(--ink);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.vehicle-grid.is-list .vehicle-card {
  grid-template-columns: 330px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #cfd6df;
  overflow: hidden;
}

.vehicle-grid.is-list .card-media {
  grid-row: 1 / -1;
  height: 100%;
  aspect-ratio: auto;
}

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

.badge {
  position: absolute;
  top: 15px;
  left: -34px;
  z-index: 1;
  width: 130px;
  padding: 4px 0;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.favorite {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 10, 15, 0.35);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.favorite:hover {
  background: rgba(8, 10, 15, 0.6);
}

.favorite.is-saved {
  background: var(--accent);
  color: white;
}

.card-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 20px 16px;
  background: var(--ink);
  color: white;
}

.card-body h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--accent);
}

.price {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-body .price {
  color: white;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.year-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 3px 11px;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.meta-text {
  color: #99a1b2;
  font-size: 0.88rem;
  font-weight: 500;
}

.meta-text:not(:first-of-type)::before {
  content: "•";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #99a1b2;
  font-size: 0.8rem;
  font-weight: 500;
}

.compare-check input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.specs div {
  min-width: 0;
  padding: 10px;
  background: var(--soft);
}

.specs dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.specs dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.services {
  padding: 76px 0;
  background: var(--paper);
}

.services-grid {
  display: grid;
  gap: 40px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.service-list article {
  display: grid;
  gap: 12px;
  text-align: center;
}

.service-list h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.service-list p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 400;
}

.finance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  padding: 76px 0;
}

.finance p {
  color: var(--muted);
  font-weight: 400;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.payment {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--night);
  color: white;
  font-size: 2.4rem;
  font-weight: 950;
  text-align: center;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.lead-form textarea,
.lead-form button,
.lead-form .form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  padding: 64px 0 0;
  background: var(--night);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-grid img {
  width: 190px;
  height: auto;
  margin-bottom: 16px;
}

.footer-desc {
  margin: 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding-top: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.footer-links a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 8px;
}

.footer-contact a,
.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-phone,
.footer-contact a.footer-phone {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 900;
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 400;
}

.nav a.is-active {
  color: var(--accent);
}

.header-action--dark {
  background: var(--night);
}

.header-action--dark:hover {
  background: #000;
}

/* Page banner + breadcrumb, used on every sub-page */
.page-banner {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-banner--compact {
  padding: 22px 0;
}

.page-banner h1 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.breadcrumb {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--muted);
}

.breadcrumb span:last-child {
  color: var(--accent);
}

.section-intro {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 400;
}

/* Home: featured + popular makes */
.featured-section {
  padding: 56px 0;
}

.popular-section {
  padding: 56px 0;
  background: var(--soft);
}

.make-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.make-pill {
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: white;
  text-align: center;
  transition: border-color 140ms ease;
}

.make-pill .make-name {
  font-size: 1rem;
  font-weight: 700;
}

.make-pill .make-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.make-pill.is-active {
  border-color: var(--accent);
  background: rgba(255, 70, 5, 0.05);
}

.make-pill.is-active .make-name,
.make-pill.is-active .make-count {
  color: var(--accent);
}

.vehicle-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CTA band, reused on home / about / faq */
.cta-band {
  padding: 60px 0;
  background: var(--ink);
  color: white;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta-grid h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .header-action--dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-band .header-action--dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* About page */
.about-section {
  padding: 56px 0 0;
}

.about-copy {
  max-width: 780px;
}

.about-copy p {
  color: var(--muted);
  font-weight: 400;
}

.team-section {
  padding: 56px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  text-align: center;
  justify-items: center;
}

.team-initial {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.3rem;
  font-weight: 950;
}

.team-card h3 {
  margin: 0;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

/* FAQ page */
.faq-section {
  padding: 56px 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
}

.faq-icon {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
  font-weight: 400;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding: 0 20px 20px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Finance page */
.finance-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.finance-breakdown div {
  padding: 14px 18px;
  background: white;
}

.finance-breakdown dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-breakdown dd {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 950;
}

/* Contact page */
.contact-grid-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding: 56px 0;
}

.contact-info h2 {
  margin: 8px 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.business-info {
  display: grid;
  gap: 14px;
  margin: 0;
}

.business-info dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-info dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* Compare page */
.compare-section {
  padding: 40px 0 60px;
}

.remove-compare {
  display: block;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

/* Similar vehicles + detail section spacing */
.detail-section {
  padding: 40px 0;
}

.similar-section {
  padding: 0 0 60px;
}

/* 404 page */
.not-found {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 100px 0;
  max-width: 620px;
}

.not-found .eyebrow {
  font-size: 1rem;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.not-found p {
  color: var(--muted);
  font-weight: 400;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.detail-media {
  position: relative;
}

.detail-layout img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .favorite {
  position: static;
  width: auto;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-actions .favorite.is-saved {
  background: var(--accent);
  color: white;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.compare-table {
  overflow-x: auto;
}

.compare-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--soft);
}

/* Team band (home) */
.team-band {
  padding: 30px 0 76px;
}

.team-band-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.team-band-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.08;
}

.team-band-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
}

/* Brand strip (home) */
.brand-strip {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.brand-strip span {
  color: #b6bdc9;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Promo duo (home) */
.duo {
  padding: 76px 0;
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.duo-panel {
  padding: 48px;
  border-radius: 18px;
  color: white;
}

.duo-panel--accent {
  background: var(--accent);
}

.duo-panel--dark {
  background: var(--ink);
}

.duo-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.duo-panel p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}

.pill-button:hover {
  background: var(--soft);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
}

.outline-button:hover {
  background: var(--accent);
}

/* Newsletter strip (home) */
.newsletter {
  padding: 64px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.newsletter-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 400;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 30px;
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: block;
    order: 3;
    justify-self: end;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    order: 4;
    justify-content: stretch;
    padding: 8px 0 16px;
  }

  .nav.is-open {
    display: grid;
    gap: 0;
  }

  .nav a {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .header-action {
    justify-self: end;
  }

  .inventory-layout,
  .vehicle-grid,
  .vehicle-grid--four,
  .service-list,
  .finance,
  .calculator,
  .lead-form,
  .detail-layout,
  .contact-grid-page,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-band-inner,
  .duo-grid,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .team-band-inner {
    padding: 40px;
  }

  .filters {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-title {
    grid-column: 1 / -1;
  }

  .vehicle-grid.is-list .vehicle-card {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .detail-copy .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: auto 1fr;
  }

  .brand img {
    width: 152px;
  }

  .site-header .header-action {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-bottom: 30px;
  }

  .hero-search,
  .filters,
  .inventory-layout,
  .vehicle-grid,
  .vehicle-grid.is-list,
  .vehicle-grid--four,
  .service-list,
  .finance,
  .calculator,
  .lead-form,
  .detail-layout,
  .cta-grid,
  .contact-grid-page,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-search label + label::before {
    display: none;
  }

  .hero-search select {
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .hero-search label:last-of-type select {
    border-bottom: 0;
  }

  .hero-search button {
    width: 100%;
  }

  .section-header,
  .results-bar,
  .footer-grid {
    display: grid;
  }

  .section-header .view-tools,
  .section-header .pill-tabs {
    justify-self: start;
  }

  .vehicle-grid.is-list .card-media {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

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

  .detail-layout img {
    min-height: 260px;
  }

  .detail-copy {
    padding: 24px;
  }

  .team-band-inner {
    padding: 28px;
  }

  .team-band-cards {
    grid-template-columns: 1fr;
  }

  .duo-panel {
    padding: 30px;
  }

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

  .brand-strip-inner {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
    opacity: 0;
  }

  .hero-media img:first-child {
    opacity: 1;
  }

  .vehicle-card,
  .make-pill,
  .site-header {
    transition: none;
  }

  .vehicle-card:hover {
    transform: none;
  }
}


/* ---------------------------------------------------------------------------
   Lead form additions (Phase 5)
   --------------------------------------------------------------------------- */

/* Honeypot. Hidden from people without display:none, which some bots detect
   and skip — the point is that bots DO fill it in. */
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: -8px 0 0;
  color: #c0362c;
  font-size: 14px;
  font-weight: 700;
}

/* Sold listings: a second badge sits below the Featured ribbon. */
.badge--sold {
  background: #c0362c;
  top: auto;
  bottom: 12px;
}

/* Server-rendered pagination replaces the old "Load more" button. */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.section-more { margin-top: 22px; }

/* Compare table (Phase 2 moved this server-side). */
.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e2e7f0);
  text-align: left;
  vertical-align: top;
}

.compare-table thead td img {
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 8px;
}

.compare-table thead td a { text-decoration: none; color: inherit; }
.compare-table th[scope="row"] { white-space: nowrap; font-size: 14px; }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.detail-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.detail-description { margin: 18px 0; }

.footer-social { display: flex; gap: 14px; margin-top: 12px; }
