:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-soft: #171717;
  --line: rgba(238, 232, 218, 0.16);
  --line-strong: rgba(238, 232, 218, 0.28);
  --text: #f5f1e8;
  --muted: #aaa59a;
  --cream: #eee8da;
  --champagne: #c7a764;
  --green: #a9d6b3;
  --danger: #ff7777;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --font-body: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 168px 1fr auto;
  align-items: center;
  gap: 24px;
  height: 88px;
  padding: 0 clamp(18px, 5vw, 78px);
  border-bottom: 1px solid rgba(199, 167, 100, 0.25);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 78px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 68px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav a,
.mobile-menu a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--cream);
}

.nav-cta,
.primary-link,
.secondary-link,
.text-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
}

.nav-cta,
.primary-link {
  background: var(--cream);
  color: #101010;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--cream);
}

.mobile-menu {
  position: fixed;
  z-index: 28;
  inset: 88px 16px auto 16px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.hero {
  min-height: 760px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 150px clamp(20px, 6vw, 108px) 72px;
  border-bottom: 1px solid rgba(199, 167, 100, 0.22);
  overflow: hidden;
}

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

.hero-media {
  background-image: url("/assets/hero-c200-cabrio.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.74) 35%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--champagne);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 98px);
  font-weight: 600;
  line-height: 1;
}

.hero-copy {
  max-width: 500px;
  color: var(--cream);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.28;
  font-weight: 400;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
  max-width: 640px;
}

.hero-stats div {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 14, 14, 0.58);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
}

.hero-stats span,
.section-heading p,
.about-card p,
.contact-panel p,
.map-card p {
  color: var(--muted);
}

.inventory-section,
.about-section,
.contact-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 78px);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.about-section h2,
.contact-panel h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1320px;
  margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.filter-bar label:last-child {
  border-right: 0;
}

.filter-bar span {
  color: var(--muted);
  font-size: 13px;
}

.filter-bar select,
.filter-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.filter-bar option {
  background: #111;
  color: var(--text);
}

.inventory-meta {
  max-width: 1320px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
}

.vehicle-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.vehicle-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 35%, rgba(238, 232, 218, 0.18), transparent 36%),
    linear-gradient(135deg, #232323, #0b0b0b);
}

.vehicle-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-visual.has-logo img {
  width: min(45%, 190px);
  height: min(45%, 190px);
  object-fit: contain;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.vehicle-status {
  position: absolute;
  top: 14px;
  left: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--green);
  color: #07100a;
  font-size: 14px;
  font-weight: 700;
}

.vehicle-body {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(76px, auto) minmax(48px, auto) minmax(88px, auto) minmax(56px, auto) auto;
  align-content: stretch;
  padding: 24px;
  text-align: center;
}

.vehicle-body h3 {
  min-height: 76px;
  margin-bottom: 8px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-body);
  font-size: clamp(23px, 1.65vw, 30px);
  font-weight: 700;
  line-height: 1.16;
}

.vehicle-detail {
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  align-content: start;
  align-items: flex-start;
  margin: 18px 0 12px;
}

.chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.price {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 20px;
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(238, 232, 218, 0.045), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 20% 20%, rgba(199, 167, 100, 0.09), transparent 34%),
    #080808;
}

.about-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.65;
}

.about-points,
.process-list {
  display: grid;
  gap: 10px;
}

.about-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 28px;
}

.about-points span,
.process-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cream);
  font-weight: 600;
}

.about-card,
.contact-panel,
.map-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.035);
}

.about-card {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.card-label {
  color: var(--champagne);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.18;
  font-weight: 600;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 22px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-panel,
.map-card {
  min-height: 300px;
  display: grid;
  align-content: center;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(238, 232, 218, 0.08), transparent 42%),
    #0a0a0a;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.72);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.35)),
    radial-gradient(circle at 50% 55%, transparent 0 42%, rgba(5, 5, 5, 0.34) 78%);
}

.map-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 232, 218, 0.32);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(5, 5, 5, 0.74);
  color: var(--cream);
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 83px;
}

.vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 24px;
}

.vehicle-modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0b0b;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: var(--cream);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
}

.detail-visual {
  min-height: 100%;
  aspect-ratio: 4 / 5;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-visual.has-logo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(238, 232, 218, 0.16), transparent 34%),
    linear-gradient(135deg, #282828, #090909);
}

.detail-visual.has-logo img {
  width: min(46%, 240px);
  height: auto;
  padding: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
}

.detail-content {
  padding: clamp(26px, 4vw, 46px);
}

.detail-content h3 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
}

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

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

  .desktop-nav {
    gap: 20px;
  }

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

  .filter-bar,
  .about-section,
  .contact-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    height: 78px;
    padding: 0 16px;
    gap: 0;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: 71px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    grid-column: 3;
    display: flex;
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding: 420px 18px 38px;
    align-items: start;
  }

  .hero-media {
    inset: 78px 0 auto 0;
    height: 380px;
    background-size: 178% auto;
    background-position: 64% top;
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.02) 78px, rgba(0, 0, 0, 0.12) 225px, rgba(5, 5, 5, 0.96) 455px, #050505 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.45));
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-stats div {
    min-height: 84px;
  }

  .filter-bar,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-bar label:last-child {
    border-bottom: 0;
  }

  .inventory-meta {
    align-items: center;
  }

  .vehicle-body {
    padding: 20px;
  }

  .vehicle-body h3 {
    min-height: 0;
  }

  .vehicle-body {
    grid-template-rows: auto auto auto auto auto;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .map-card,
  .map-card iframe {
    min-height: 330px;
  }

  .map-open {
    right: 14px;
    bottom: 14px;
  }

  .card-actions,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .vehicle-modal {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
  }
}
