:root {
  --ink: #161616;
  --muted: #5f656e;
  --line: #d9dde3;
  --paper: #f6f7f9;
  --white: #ffffff;
  --red: #b91f2e;
  --red-dark: #8f1722;
  --gold: #d99a27;
  --green: #1f7a5c;
  --shadow: 0 18px 45px rgba(22, 22, 22, 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;
}

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

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

.brand,
.main-nav,
.hero-actions,
.stock-summary {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  letter-spacing: 0;
}

.main-nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.header-call {
  text-decoration: none;
}

.main-nav a:hover,
.header-call:hover {
  color: var(--red);
}

.header-call {
  color: var(--red);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 410px);
  align-items: end;
  gap: clamp(24px, 6vw, 72px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px) 36px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0.14)),
    url("assets/hero-forecourt.jpg") center / cover;
}

.hero-content {
  max-width: 760px;
  padding-bottom: clamp(20px, 6vh, 72px);
}

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 9vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.hero p {
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.text-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

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

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.quick-search,
.calculator,
.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

textarea {
  resize: vertical;
}

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

.trust-strip div {
  padding: 22px clamp(16px, 3vw, 34px);
  background: var(--white);
}

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

.trust-strip strong {
  color: var(--red);
  font-size: 1.65rem;
}

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

.section,
.finance-band,
.contact-section {
  padding: clamp(48px, 8vw, 90px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stock-summary {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

.text-button {
  color: var(--red);
  background: transparent;
  font-weight: 800;
}

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

.vehicle-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.vehicle-card-content {
  padding: 18px;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.vehicle-meta li {
  padding: 5px 8px;
  background: var(--paper);
  border-radius: 4px;
}

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

.vehicle-card .button {
  width: 100%;
  margin-top: 14px;
}

.finance-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 440px);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(22, 22, 22, 0.94), rgba(22, 22, 22, 0.82)),
    url("assets/showroom-stock.jpg") center / cover;
}

.finance-band p:not(.eyebrow) {
  color: #d7d9dd;
  max-width: 620px;
}

.payment-result {
  display: block;
  padding: 18px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.location-photo {
  width: 100%;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.feature-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.feature-list p,
.contact-section p {
  color: var(--muted);
}

.contact-section {
  align-items: start;
  background: var(--white);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.hidden-field {
  display: none;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 56px);
  color: #d7d9dd;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.35)),
    url("assets/hero-forecourt.jpg") center / cover;
}

.thank-you-box {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 48px);
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thank-you-box h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

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

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section-heading,
  .finance-band,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .filters,
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .header-call {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .trust-strip,
  .filters,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .stock-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
