:root {
  color-scheme: dark;
  --ink: #f5f9fb;
  --muted: #b9c9d1;
  --soft: #d8e2e6;
  --line: rgba(255, 255, 255, 0.16);
  --brand: #00334a;
  --brand-deep: #001d2a;
  --brand-mid: #07455f;
  --brand-light: #0d5a78;
  --silver: #d7dde1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand-deep);
  font-family: Arial, Helvetica, sans-serif;
}

main section[id] {
  scroll-margin-top: 92px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(0, 29, 42, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 186px;
  height: 62px;
  object-fit: contain;
  object-position: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover {
  color: var(--white);
}

.nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
}

.header-cta,
.button,
.contact-details .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-cta,
.button.primary,
.contact-details .button.primary {
  color: var(--brand-deep);
  background: var(--silver);
}

.header-cta:hover,
.button.primary:hover,
.contact-details .button.primary:hover {
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  min-height: 680px;
  padding: 92px clamp(20px, 5vw, 64px) 56px;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 29, 42, 0.98), rgba(0, 51, 74, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(13, 90, 120, 0.28), transparent 34%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.slogan {
  margin-bottom: 22px;
  color: var(--silver);
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.75;
}

.hero-maintenance-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: start;
  max-width: 760px;
  padding: 20px 22px;
  margin-top: 28px;
  border: 1px solid rgba(215, 221, 225, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 221, 225, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(0, 29, 42, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.hero-maintenance-offer:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(215, 221, 225, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(0, 45, 65, 0.38);
}

.hero-maintenance-offer span {
  grid-column: 1;
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--silver);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-maintenance-offer strong {
  grid-column: 1 / -1;
  display: block;
  color: var(--white);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.hero-maintenance-offer small {
  grid-column: 1 / -1;
  display: block;
  max-width: 680px;
  color: var(--white);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-maintenance-offer em {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--brand-deep);
  background: var(--silver);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.hero-logo-panel {
  justify-self: end;
  width: min(100%, 500px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-logo-panel img {
  display: block;
  width: 100%;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-info article {
  padding: 34px clamp(20px, 5vw, 64px);
  background: var(--brand);
}

.quick-info span {
  color: var(--silver);
  font-weight: 900;
}

.quick-info strong {
  display: block;
  margin: 10px 0;
  font-size: 1.2rem;
}

.quick-info p,
.section-heading p,
.card-body p,
.service-grid p,
.split p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 76px clamp(20px, 5vw, 64px);
}

.inventory {
  position: relative;
  background: #00283a;
}

.inventory .section-heading,
.inventory .car-grid,
.inventory .inventory-summary,
.inventory .inventory-carousel {
  margin-right: auto;
  margin-left: auto;
}

.inventory .section-heading,
.inventory .inventory-summary,
.inventory .car-grid {
  max-width: 1120px;
}

.inventory .inventory-carousel {
  position: relative;
  max-width: none;
  padding-right: clamp(20px, 5vw, 64px);
  padding-left: clamp(20px, 5vw, 64px);
  margin-right: calc(0px - clamp(20px, 5vw, 64px));
  margin-left: calc(0px - clamp(20px, 5vw, 64px));
}

.inventory-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.inventory-controls {
  position: absolute;
  top: clamp(72px, 10vw, 112px);
  right: calc((100% - 100vw) / 2 + max(10px, env(safe-area-inset-right, 0px)));
  left: calc((100% - 100vw) / 2 + max(10px, env(safe-area-inset-left, 0px)));
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.inventory-scroll-hint {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.inventory-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(215, 221, 225, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.inventory-count {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  color: var(--white);
  font-size: 0.96rem;
}

.inventory-count::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--silver);
  box-shadow: 0 0 0 5px rgba(215, 221, 225, 0.1);
  content: "";
}

.inventory-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.inventory-tabs::-webkit-scrollbar {
  display: none;
}

.inventory-tab {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(215, 221, 225, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 20, 30, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inventory-tab span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--silver);
  font-size: 0.74rem;
  font-weight: 900;
}

.inventory-tab:hover,
.inventory-tab.is-active {
  border-color: rgba(215, 221, 225, 0.48);
  color: var(--white);
  background: rgba(215, 221, 225, 0.14);
}

.inventory-tab:focus-visible {
  outline: 2px solid rgba(215, 221, 225, 0.78);
  outline-offset: 3px;
}

.inventory-scroll-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(215, 221, 225, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(215, 221, 225, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.82;
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.inventory-scroll-button:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(215, 221, 225, 0.3);
  opacity: 1;
  transform: scale(1.04);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.trust-section {
  background: var(--brand-deep);
}

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

.trust-grid article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.trust-grid strong {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.35rem;
}

.trust-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.car-grid,
.service-grid {
  gap: 22px;
}

.car-grid {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 14px;
  scroll-padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 221, 225, 0.58) rgba(255, 255, 255, 0.08);
}

.car-grid::-webkit-scrollbar {
  height: 12px;
}

.car-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.car-grid::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(215, 221, 225, 0.68);
  background-clip: content-box;
}

.car-grid:focus-visible {
  outline: 2px solid rgba(215, 221, 225, 0.75);
  outline-offset: 6px;
}

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

.car-card,
.service-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.car-card {
  display: flex;
  flex: 0 0 min(500px, calc(100vw - 72px));
  flex-direction: column;
  scroll-snap-align: start;
}

.car-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-mid);
}

.car-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.car-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.car-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.car-slide:hover .car-photo {
  transform: scale(1.03);
}

.slide-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.68);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slide-button:hover {
  background: rgba(0, 29, 42, 0.9);
}

.slide-button.previous {
  left: 12px;
}

.slide-button.next {
  right: 12px;
}

.slide-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body,
.service-grid article {
  padding: 24px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}

.card-body span {
  color: var(--silver);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
}

.car-summary {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.car-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.car-features li {
  padding: 7px 10px;
  border: 1px solid rgba(205, 219, 228, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-weight: 800;
}

.car-actions,
.car-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.car-price {
  margin-right: auto;
  color: var(--white);
  font-weight: 900;
  font-size: 1.08rem;
}

.car-info-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.car-info-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.car-ad-link {
  min-height: 40px;
  padding: 0 14px;
}

.car-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: #001d2a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.car-dialog::backdrop {
  background: rgba(0, 15, 22, 0.72);
}

.car-dialog-content {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 32px);
}

.car-dialog-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.car-dialog-header span {
  display: block;
  margin-bottom: 6px;
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.car-dialog-header h3 {
  margin: 0;
}

.car-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.car-description {
  max-height: min(56vh, 520px);
  padding-right: 8px;
  margin: 0;
  overflow: auto;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.car-detail-main {
  min-height: 70vh;
  background: #00283a;
}

.car-detail-page {
  padding: 76px clamp(20px, 5vw, 64px);
}

.car-detail-layout,
.car-detail-lower,
.car-detail-description-panel,
.car-detail-empty {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.car-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.74fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.car-detail-gallery,
.car-detail-info,
.car-detail-description-panel,
.car-detail-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.car-detail-gallery {
  overflow: hidden;
}

.car-detail-main-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-mid);
}

.main-photo-enlarge {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.car-detail-main-photo img,
.car-detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-detail-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.car-detail-thumb {
  flex: 0 0 88px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--brand-mid);
  cursor: pointer;
  opacity: 0.72;
}

.car-detail-thumb.is-active,
.car-detail-thumb:hover {
  border-color: var(--silver);
  opacity: 1;
}

.detail-photo-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.68);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.detail-photo-button:hover {
  background: rgba(0, 29, 42, 0.9);
}

.detail-photo-button.previous {
  left: 14px;
}

.detail-photo-button.next {
  right: 14px;
}

.detail-photo-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.72);
  font-size: 0.84rem;
  font-weight: 900;
}

.photo-lightbox {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 15, 22, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.photo-lightbox::backdrop {
  background: rgba(0, 8, 12, 0.82);
}

.photo-lightbox-content {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(760px, calc(100vh - 28px));
}

.photo-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 28px);
  object-fit: contain;
}

.photo-lightbox-close,
.photo-lightbox-button {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.72);
  cursor: pointer;
  font-weight: 900;
}

.photo-lightbox-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
}

.photo-lightbox-button {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.photo-lightbox-button.previous {
  left: 14px;
}

.photo-lightbox-button.next {
  right: 14px;
}

.photo-lightbox-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 29, 42, 0.76);
  font-size: 0.86rem;
  font-weight: 900;
}

.car-detail-info,
.car-detail-description-panel,
.car-detail-empty {
  padding: clamp(22px, 4vw, 34px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--silver);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.car-detail-info h1,
.car-detail-empty h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.car-detail-price {
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
}

.car-detail-summary {
  margin: 0 0 18px;
  color: var(--soft);
  line-height: 1.7;
}

.car-detail-features {
  margin-bottom: 22px;
}

.car-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.car-detail-description-panel {
  min-width: 0;
}

.car-detail-description-panel h2 {
  margin-bottom: 18px;
}

.car-detail-description-panel .car-description {
  max-height: none;
  overflow: visible;
}

.car-detail-empty {
  max-width: 760px;
}

.car-detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: 28px;
}

.related-cars-side {
  position: sticky;
  top: 98px;
  padding: 18px;
  border: 1px solid rgba(215, 221, 225, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.related-cars-side h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.related-cars {
  width: min(1240px, 100%);
  margin: 42px auto 0;
}

.related-cars .section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.related-car-grid {
  display: grid;
  gap: 12px;
}

.related-car-card {
  overflow: hidden;
  border: 1px solid rgba(215, 221, 225, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.related-car-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--brand-mid);
}

.related-car-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-car-card > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.related-car-card span {
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.related-car-card h3,
.related-car-card p {
  margin: 0;
}

.related-car-card h3 {
  font-size: 0.98rem;
  line-height: 1.2;
}

.related-car-card p {
  display: none;
  color: var(--muted);
  line-height: 1.6;
}

.related-car-card strong {
  color: var(--white);
  font-size: 0.92rem;
}

.related-car-card .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
  width: 100%;
}

.empty-state {
  flex: 1 0 100%;
  padding: 24px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.services {
  background: var(--brand-deep);
}

.maintenance-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(215, 221, 225, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.maintenance-promo h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.maintenance-promo p {
  max-width: 760px;
  color: var(--soft);
  line-height: 1.7;
}

.promo-price-block {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 29, 42, 0.5);
}

.promo-price-block strong {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.promo-price-block span {
  color: var(--muted);
  font-weight: 800;
}

.promo-conditions-button {
  width: 100%;
}

.promo-dialog .car-dialog-content {
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.promo-conditions-text {
  display: grid;
  gap: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.promo-conditions-text p {
  margin: 0;
}

.promo-conditions-group h4 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1rem;
}

.promo-conditions-group ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  background: var(--brand);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--silver);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 88px);
  padding: 76px clamp(20px, 5vw, 64px);
  background: var(--brand-deep);
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-details article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-details dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-details dl div {
  display: grid;
  gap: 4px;
}

.contact-details dt {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.contact-details a:not(.button) {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details .address-link {
  display: inline-grid;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  padding: 13px 14px;
  border: 1px solid rgba(215, 221, 225, 0.36);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 221, 225, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(0, 51, 74, 0.62);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.contact-details .address-link:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(215, 221, 225, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(0, 51, 74, 0.78);
}

.contact-details .address-link small {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.hours-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hours-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hours-note {
  margin: 18px 0 0;
  color: var(--soft);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: #001722;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 164px;
    height: 56px;
  }

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

  .header-cta {
    width: 100%;
  }

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

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

  .hero-logo-panel {
    justify-self: stretch;
  }

  .quick-info,
  .trust-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

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

  .related-cars-side {
    position: static;
  }

  .maintenance-promo {
    grid-template-columns: 1fr;
  }

  .promo-price-block {
    justify-items: stretch;
  }
}

@media (max-width: 520px) {
  .hero-maintenance-offer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 14px;
    margin-top: 20px;
  }

  .hero-maintenance-offer span,
  .hero-maintenance-offer em {
    grid-row: auto;
    justify-self: start;
  }

  .hero-maintenance-offer span {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .hero-maintenance-offer strong {
    font-size: 1.28rem;
  }

  .hero-maintenance-offer small {
    font-size: 0.95rem;
  }

  .inventory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .inventory-tabs {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 2px;
  }

  .inventory-scroll-button {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .inventory-controls {
    top: clamp(58px, 17vw, 92px);
    right: calc((100% - 100vw) / 2 + max(8px, env(safe-area-inset-right, 0px)));
    left: calc((100% - 100vw) / 2 + max(8px, env(safe-area-inset-left, 0px)));
  }

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

  .hero-proof {
    align-items: stretch;
    flex-direction: column;
  }

  .car-actions,
  .car-dialog-actions,
  .car-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .car-detail-actions .button {
    width: 100%;
  }

  .car-price {
    margin-right: 0;
  }

  .car-info-button,
  .car-actions .button,
  .car-dialog-actions .button {
    width: 100%;
  }

}

/* Logo rechts in de hero verbergen op mobiel */
@media (max-width: 900px) {
  .hero-logo-panel {
    display: none;
  }
}

/* Mobiele navigatie compacter maken */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 96px;
  }

  main section[id] {
    scroll-margin-top: 96px;
  }

  body {
    padding-top: 64px;
  }

  .site-header {
    position: static;
    gap: 14px;
    padding: 14px 18px;
    backdrop-filter: none;
  }

  .hero {
    padding-top: 20px;
  }

  .nav {
    position: fixed;
    right: 12px;
    top: 10px;
    bottom: auto;
    left: 12px;
    z-index: 60;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    color: var(--soft);
    background: rgba(0, 29, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: clamp(0.72rem, 3.1vw, 0.86rem);
    white-space: nowrap;
  }

  .nav a.is-active {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.14);
  }

  .brand img {
    width: min(150px, 44vw);
    height: auto;
  }

  .header-cta {
    min-height: 40px;
    font-size: clamp(0.72rem, 3.1vw, 0.9rem);
  }
}

/* Op mobiel de grote afspraakknop in de header verbergen */
@media (max-width: 700px) {
  .header-cta {
    display: none;
  }
}
