:root {
  --ink: #16191f;
  --muted: #5f6875;
  --paper: #f7f8fa;
  --line: #d9dde5;
  --white: #ffffff;
  --red: #d82532;
  --red-dark: #a81825;
  --teal: #0f6f74;
  --gold: #d3a33b;
  --shadow: 0 18px 45px rgba(22, 25, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--red);
  border-bottom: 4px solid var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  gap: clamp(14px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

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

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button,
input,
textarea {
  font: inherit;
}

.lang-toggle,
.call-link,
.primary-button,
.secondary-button,
.filter,
.inquire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lang-toggle {
  width: 48px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.call-link,
.primary-button {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(216, 37, 50, 0.22);
}

.secondary-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 68px));
  max-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(12, 14, 19, 0.82), rgba(12, 14, 19, 0.5) 46%, rgba(12, 14, 19, 0.06) 82%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  color: var(--white);
  padding-bottom: 8vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #ffb347;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.26rem);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 22px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.trust-band strong,
.trust-band span {
  display: block;
}

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

.section,
.split-section,
.contact-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow),
.split-section p,
.contact-section p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  background: var(--white);
  border-color: var(--line);
  color: var(--muted);
}

.filter.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

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

.vehicle-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vehicle-photo-wrap {
  position: relative;
  min-height: 190px;
  background: #e7ebf0;
}

.vehicle-photo-wrap > img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
}

.vehicle-photo-wrap > video {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  background: #111;
  object-fit: cover;
}

.vehicle-photo {
  height: 100%;
  min-height: 190px;
  background:
    radial-gradient(circle at 70% 34%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #252b33, #8c949e);
  position: relative;
}

.vehicle-photo::before,
.vehicle-photo::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
}

.vehicle-photo::before {
  bottom: 52px;
  height: 48px;
  border-radius: 90px 100px 22px 22px;
  background: currentColor;
  box-shadow: inset 36px 13px 0 rgba(255, 255, 255, 0.18);
}

.vehicle-photo::after {
  bottom: 32px;
  height: 30px;
  border-radius: 8px 12px 22px 22px;
  background: currentColor;
  border-bottom: 8px solid rgba(0, 0, 0, 0.22);
}

.vehicle-photo.suv {
  color: #c2c8cf;
}

.vehicle-photo.sedan {
  color: #b51e2a;
}

.vehicle-photo.compact {
  color: #0f6f74;
}

.vehicle-photo.truck {
  color: #3d4652;
}

.sold-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.prep-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.vehicle-card.is-sold {
  opacity: 0.76;
}

.vehicle-meta,
.inventory-state {
  margin: 0;
  color: var(--muted);
}

.inventory-state {
  grid-column: 1 / -1;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.stock {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.price {
  margin: 0;
  color: var(--red);
  font-size: 1.55rem;
  font-weight: 800;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
}

dd {
  margin: 0;
  font-weight: 700;
}

.inquire-button {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.split-section p {
  color: rgba(255, 255, 255, 0.78);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.steps p {
  margin: 0;
}

.sell-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: #0e1116;
}

.footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 14, 19, 0.86), rgba(12, 14, 19, 0.56) 56%, rgba(12, 14, 19, 0.28));
  }

  .hero-content {
    margin: 0 18px;
    align-self: end;
    padding-bottom: 72px;
  }

  h1 {
    max-width: 11ch;
  }

  .trust-band,
  .inventory-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .sell-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .call-link {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions,
  .header-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lang-toggle {
    width: 46px;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .vehicle-card {
    grid-template-rows: 170px 1fr;
  }
}
