:root {
  --ivory: #f3eee6;
  --ivory-2: #e7e0d4;
  --ink: #141816;
  --muted: #5c574f;
  --line: rgba(20, 24, 22, 0.14);
  --brass: #8d6840;
  --brass-soft: #c6a36a;
  --pine: #121916;
  --oxblood: #7c2430;
  --cream: #f7f3ec;
  --header: 4.75rem;
  --wrap: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: #e4d2b0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  padding: 0.55rem 0.8rem;
  z-index: 80;
}
.skip:focus { top: 0.6rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
  padding: 0 1.5rem;
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.home .site-header {
  position: fixed;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--cream);
}
.home .site-header.is-stuck,
.site-header:has(.is-open) {
  background: rgba(243, 238, 230, 0.96);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header:has(.is-open) {
  background: var(--pine);
  color: var(--cream);
  border-bottom-color: transparent;
}
.logo {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }
.header-cta {
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
}
.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 50;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span:nth-of-type(2) { top: 0.95rem; }
.nav-toggle span:nth-of-type(3) { top: 1.35rem; }
.nav-toggle span:nth-of-type(4) { top: 1.75rem; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: calc(var(--header) + 2rem) 6vw 4.5rem;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.78), rgba(10, 14, 12, 0.28) 58%, rgba(10, 14, 12, 0.45)),
    url("assets/hero.jpg") center 40% / cover no-repeat;
}
.eyebrow {
  color: var(--brass-soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1, .section-title, .split h2, .prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.hero h1 { font-size: clamp(3.6rem, 8vw, 7rem); max-width: 10ch; }
.lede { max-width: 36rem; font-weight: 300; font-size: 1.15rem; color: rgba(247, 243, 236, 0.86); }
.hero-actions, .btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cream);
  color: var(--pine);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { background: #fff; }
.btn-dark { background: var(--pine); color: var(--cream); }
.btn-dark:hover { background: #24312b; }
.btn-line, .btn-ghost {
  background: transparent;
  border-color: currentColor;
}
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { background: rgba(247, 243, 236, 0.08); }
.btn-line { color: var(--ink); }
.btn-line:hover { border-color: var(--brass); color: var(--brass); }

.places {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.85rem 6vw;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-title { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.section-head p, .prose p, .split p, .quiet { color: var(--muted); }
.section-head p { max-width: 36rem; }

.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}
.car-card { display: flex; flex-direction: column; min-width: 0; }
.car-media {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--ivory-2);
}
.car-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
  transition: transform 0.5s ease;
}
.car-card:hover .car-media img { transform: scale(1.035); }
.ribbon {
  position: absolute;
  top: 22px;
  left: -42px;
  width: 170px;
  transform: rotate(-42deg);
  background: var(--oxblood);
  color: var(--cream);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.38rem 0;
  z-index: 1;
}
.car-info { padding: 1rem 0.1rem 0.2rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.make {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.car-info h2, .car-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.car-info h2 a, .car-info h3 a { text-decoration: none; }
.deriv { color: var(--muted); }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.meta li {
  border: 1px solid var(--line);
  padding: 0.22rem 0.5rem;
  font-size: 0.85rem;
}
.car-buy { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.7rem; }
.price { font-family: var(--serif); font-size: 1.7rem; }
.month { font-size: 0.92rem; }
.month a { color: var(--brass); }
.car-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pine);
  color: var(--cream);
}
.service {
  padding: 4rem 6vw;
  text-decoration: none;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
}
.service + .service { border-left: 1px solid rgba(247, 243, 236, 0.14); }
.service h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0.7rem;
}
.service p { color: rgba(247, 243, 236, 0.76); max-width: 34rem; }
.service span { display: inline-block; margin-top: 1.2rem; border-bottom: 1px solid var(--brass-soft); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% center; height: auto; }
.split.flat img { aspect-ratio: 16 / 10; object-position: center; }
.prose { display: grid; gap: 1rem; }
.prose h2, .split h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); margin-bottom: 0.4rem; }
.steps, .faq { display: grid; gap: 0; margin-top: 1.5rem; }
.steps article, .faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.steps h3, .faq summary {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.faq summary { cursor: pointer; }
.faq p { margin-top: 0.45rem; }

.page-hero {
  --hero: url("assets/car-m5.jpg");
  padding: calc(var(--header) + 3.5rem) 0 2.5rem;
  background-color: #121916;
  background-image: linear-gradient(180deg, rgba(18, 25, 22, 0.5), rgba(18, 25, 22, 0.72)), var(--hero);
  background-size: cover;
  background-position: center 45%;
  color: var(--cream);
}
.page-hero .wrap { display: grid; gap: 0.8rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); max-width: 12ch; }
.page-hero p { max-width: 38rem; color: rgba(247, 243, 236, 0.84); font-weight: 300; }

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.7rem;
  margin: -2rem auto 1.5rem;
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.9rem;
}
.filters label, .fields label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters select, .fields input, .fields select, .fields textarea, .calc input, .calc select {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.toolbar select { border: 1px solid var(--line); background: transparent; min-height: 2.5rem; padding: 0 0.6rem; }
.empty { padding: 1.5rem 0 3rem; }

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.3rem;
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}
.calc { display: grid; gap: 0.75rem; }
.result {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.result strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fine { font-size: 0.88rem; color: var(--muted); margin-top: 0.7rem; }
.hours { margin: 0; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
}
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.span-2 { grid-column: 1 / -1; }
.fields textarea { min-height: 8rem; resize: vertical; }
.form-error { color: var(--oxblood); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.thanks h2 { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; margin-bottom: 0.4rem; }

.vehicle-hero img { width: 100%; max-height: 70vh; object-fit: cover; }
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
  margin: 1.2rem 0;
}
.specs dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.also a { text-decoration: none; }
.also img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.also p { margin-top: 0.45rem; font-family: var(--serif); font-size: 1.2rem; }

.site-footer {
  background: var(--pine);
  color: rgba(247, 243, 236, 0.78);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .logo { color: var(--cream); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer nav, .site-footer ul { display: grid; gap: 0.35rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.legal { margin-top: 2rem; font-size: 0.85rem; }

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

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--pine);
    color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1.2rem;
    transform: translateY(-110%);
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-family: var(--serif); font-size: 2rem; }
  .section-head, .stock-grid, .services, .split, .layout, .filters, .fields, .specs, .also, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service + .service { border-left: 0; }
  .places { display: none; }
  .hero h1 { font-size: 3.4rem; }
  .split img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car-media img { transition: none; }
}
