:root {
  --ink: #121821;
  --muted: #5f6875;
  --line: #d9dee5;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --navy: #17243a;
  --blue: #0b63ce;
  --red: #c9232c;
  --gold: #f4b544;
  --green: #12815d;
  --shadow: 0 18px 45px rgba(18, 24, 33, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-strip {
  background: var(--navy);
  color: white;
  font-size: 0.9rem;
}

.top-strip-inner,
.nav,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 7px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.btn,
.icon-btn {
  min-height: 42px;
  border-radius: 7px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: #eaf2ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #a9151f;
}

.btn-secondary {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-dark {
  color: white;
  background: var(--navy);
}

.hero {
  min-height: calc(100vh - 114px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(10, 15, 22, 0.92), rgba(10, 15, 22, 0.64) 46%, rgba(10, 15, 22, 0.15)),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1900&q=80") center/cover;
}

.hero .section-inner {
  padding: 72px 0 42px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-actions,
.card-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-search {
  margin-top: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.quick-search form,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
}

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

textarea {
  min-height: 116px;
  resize: vertical;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
}

.tile-grid,
.inventory-grid,
.detail-grid {
  display: grid;
  gap: 18px;
}

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

.tile,
.vehicle-card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tile {
  padding: 24px;
}

.tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

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

.vehicle-card {
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 24, 33, 0.08);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe5ec;
}

.vehicle-body {
  padding: 18px;
}

.price {
  color: var(--red);
  font-weight: 900;
  font-size: 1.45rem;
}

.meta-row,
.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.spec-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fbfcfe;
  font-weight: 750;
  font-size: 0.86rem;
}

.banner {
  color: white;
  background: var(--navy);
}

.banner p {
  color: rgba(255, 255, 255, 0.82);
}

.banner .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.page-title {
  padding: 54px 0 34px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-title p {
  max-width: 720px;
}

.filters {
  padding: 20px;
  margin: -28px 0 28px;
  position: relative;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.15fr) 0.85fr;
  align-items: start;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.panel {
  padding: 22px;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-table div {
  padding: 12px;
  background: var(--soft);
  border-radius: 7px;
}

.spec-table dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.spec-table dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 7px;
  color: #07452f;
  background: #e7f7ef;
  border: 1px solid #b9e6cf;
  font-weight: 800;
}

.notice[data-show="true"] {
  display: block;
}

.site-footer {
  padding: 44px 0;
  color: white;
  background: #0d1118;
}

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

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.empty-state {
  padding: 36px;
  text-align: center;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .top-strip-inner,
  .nav,
  .banner .section-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav {
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quick-search form,
  .filter-grid,
  .split,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .top-strip-inner,
  .nav,
  .section-inner {
    width: min(100% - 22px, 1160px);
  }

  .tile-grid,
  .inventory-grid,
  .form-grid,
  .spec-table,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero .section-inner {
    padding-top: 52px;
  }

  .section {
    padding: 50px 0;
  }
}
