:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-soft: #ebe6dd;
  --text: #171514;
  --muted: #665f57;
  --line: rgba(23, 21, 20, 0.13);
  --accent: #9b6b43;
  --accent-strong: #6f472a;
  --button-text: #fffaf4;
  --shadow: 0 24px 70px rgba(30, 24, 19, 0.13);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101214;
  --surface: #171a1d;
  --surface-soft: #202429;
  --text: #f5f1ea;
  --muted: #bbb2a7;
  --line: rgba(245, 241, 234, 0.14);
  --accent: #d1a06d;
  --accent-strong: #f0c18a;
  --button-text: #16110d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background-color 180ms ease, color 180ms ease;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
}

.inner-header {
  position: fixed;
}

.brand,
.nav-links,
.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 14, 0.46);
  color: #fffaf4;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 16px 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 6px solid #d1a06d;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  border-radius: 999px;
  padding: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 250, 244, 0.78);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf4;
}

.theme-toggle {
  justify-self: end;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[data-theme="dark"] .sun-icon,
html:not([data-theme="dark"]) .moon-icon {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 42px;
  align-items: end;
  isolation: isolate;
}

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

.hero-image {
  z-index: -3;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 44%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 48%);
}

.hero-content {
  width: min(650px, 100%);
  color: #fffaf4;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e5b882;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 11ch;
  font-size: clamp(3.15rem, 8vw, 7.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.7vw, 4.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 250, 244, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: normal;
}

.button.primary {
  background: var(--accent);
  color: var(--button-text);
}

.button.secondary {
  border-color: rgba(255, 250, 244, 0.34);
  color: #fffaf4;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fffaf4;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-stats div {
  min-height: 94px;
  padding: 18px;
  background: rgba(8, 9, 10, 0.42);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.55rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  align-self: start;
}

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

.vehicle-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  min-height: 430px;
  align-content: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  padding: 14px;
  box-shadow: var(--shadow);
}

.vehicle-card.featured {
  background: var(--surface-soft);
}

.vehicle-tag {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 16px;
  padding: 6px 10px;
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: var(--surface-soft);
  object-fit: cover;
}

.vehicle-card p {
  margin: 0;
  color: var(--muted);
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-meta span {
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.featured .vehicle-meta span {
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.feature-band {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 40px 0 90px;
}

.feature-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 1.36;
  object-fit: cover;
}

.feature-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.feature-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.feature-points span {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 26px;
}

.service-item + .service-item {
  padding-top: 14px;
}

.service-item span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.visit-band {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 auto 28px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 34px;
}

.visit-band .eyebrow {
  color: var(--accent);
}

.visit-band p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--bg) 76%, transparent);
}

.visit-band .button {
  max-width: 100%;
  text-align: center;
}

.process {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-grid article,
.inventory-card,
.booking-panel,
.booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.process-grid article {
  min-height: 230px;
  padding: 22px;
}

.process-grid span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.process-grid h3 {
  margin-top: 34px;
}

.process-grid p,
.inventory-card p,
.page-hero p,
.booking-panel p {
  color: var(--muted);
}

.page-main {
  padding-top: 52px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 42px;
}

.page-hero h1 {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.inventory-section {
  padding-top: 24px;
}

.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-bottom: 22px;
}

.inventory-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

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

.inventory-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 12px;
  min-height: 520px;
  align-content: stretch;
  overflow: hidden;
  padding: 14px;
}

.inventory-card h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.card-link {
  width: max-content;
  color: var(--accent-strong);
  font-weight: 800;
}

.booking-layout {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
}

.booking-form textarea {
  resize: vertical;
}

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

.booking-panel {
  align-self: start;
  padding: 26px;
}

.booking-panel h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.booking-detail {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.booking-detail span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-panel .card-link {
  display: inline-flex;
  margin-top: 26px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-content: center;
    padding-top: 10px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    min-height: 42px;
    border-radius: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 86svh;
    padding-top: 164px;
  }

  .section-heading,
  .split,
  .visit-band,
  .feature-band,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .car-grid {
    grid-template-columns: 1fr;
  }

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

  .vehicle-card {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 112px;
  }

  .brand {
    max-width: calc(100vw - 86px);
    padding-right: 13px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 91svh;
    padding: 164px 16px 26px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .hero-stats div {
    min-height: 76px;
    padding: 14px 16px;
  }

  .section,
  .feature-band,
  .page-hero,
  .booking-layout {
    width: calc(100% - 28px);
    padding: 56px 0;
  }

  .page-main {
    padding-top: 34px;
  }

  .page-hero {
    padding-top: 84px;
    padding-bottom: 24px;
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.3rem);
  }

  .section-heading {
    gap: 14px;
  }

  .vehicle-card {
    padding: 12px;
  }

  .service-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .visit-band {
    width: calc(100% - 28px);
    padding: 22px;
  }

  .process-grid,
  .inventory-grid,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-form {
    padding: 18px;
  }

  .inventory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
