:root {
  --km-blue: #12a8df;
  color: #1e2429;
  background: #f4f5f6;
  font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f5f6;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[v-cloak] {
  display: none;
}

.site-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e0e4e7;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  padding: 16px max(20px, calc((100vw - 1160px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  justify-self: start;
  min-height: 72px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 68px;
  object-fit: contain;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  justify-self: center;
}

.nav-links a {
  color: #4f5964;
  border-radius: 8px;
  font-weight: 400;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--km-blue);
  outline: 0;
}

.nav-links a.active {
  color: var(--km-blue);
}

.menu-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: none;
  height: 38px;
  justify-content: center;
  justify-self: end;
  padding: 0;
  position: relative;
  width: 38px;
}

.menu-toggle__icon {
  display: block;
  height: 20px;
  object-fit: contain;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 20px;
}

.menu-toggle__close,
.menu-toggle__close::before {
  background: #111820;
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 160ms ease, background-color 160ms ease;
  width: 20px;
}

.menu-toggle__close::before {
  left: 0;
  top: 0;
  transform: rotate(90deg);
}

.menu-toggle:hover .menu-toggle__close,
.menu-toggle:hover .menu-toggle__close::before,
.menu-toggle:focus-visible .menu-toggle__close,
.menu-toggle:focus-visible .menu-toggle__close::before {
  background: var(--km-blue);
}

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 42px 20px 70px;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.eyebrow {
  color: #d29000;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Outfit", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

h1 {
  color: #121922;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 16px;
}

.page-intro p:last-child {
  color: #5e6974;
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.inventory {
  display: grid;
  gap: 36px;
}

.vehicle-listing {
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  overflow: hidden;
}

.vehicle-listing.sold {
  border-color: rgba(220, 38, 38, 0.32);
}

.carousel-shell {
  position: relative;
}

.sold-badge {
  background: #dc2626;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  left: 24px;
  padding: 8px 13px;
  position: absolute;
  text-transform: uppercase;
  top: 24px;
  z-index: 4;
}

.vehicle-carousel {
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(245px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-item {
  background: #e8ecef;
  border: 0;
  border-radius: 8px;
  display: block;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
}

.carousel-item img {
  display: block;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.carousel-item:hover img {
  transform: scale(1.03);
}

.view-badge {
  background: var(--km-blue);
  border-radius: 999px;
  bottom: 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 11px;
  position: absolute;
  right: 12px;
}

.carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe4e8;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(18, 25, 34, 0.16);
  color: var(--km-blue);
  display: flex;
  font-size: 2rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.carousel-arrow--left {
  left: 22px;
}

.carousel-arrow--right {
  right: 22px;
}

.vehicle-info-card {
  align-items: center;
  border-top: 1px solid #e6eaee;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 20px;
}

.vehicle-info-card h2 {
  color: #151c24;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 7px;
}

.vehicle-meta,
.image-count {
  color: #65717c;
  margin-bottom: 0;
}

.vehicle-price {
  color: #111820;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-align: right;
  white-space: nowrap;
}

.sold-label {
  color: #dc2626;
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.sold-label--modal {
  text-align: left;
}

.details-button {
  align-items: center;
  background: var(--km-blue);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-align: center;
  text-decoration: none;
}

.details-button:hover {
  background: #078fc2;
}

.details-button--wide {
  width: 100%;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.28);
  color: #ffffff;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  position: fixed;
  right: 24px;
  text-decoration: none;
  width: 54px;
  z-index: 40;
}

.whatsapp-float:hover {
  background: #1fbd5a;
}

.whatsapp-icon {
  display: block;
  height: 30px;
  width: 30px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e0e4e7;
  color: #65717c;
  padding: 22px 20px;
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
  margin: 0;
}

.services-page {
  display: grid;
  gap: 42px;
}

.services-hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 0 10px;
}

.services-hero h1 {
  max-width: 780px;
}

.services-hero p {
  color: #5e6974;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 780px;
}

.services-hero__button {
  min-width: 150px;
}

.services-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  overflow: hidden;
  padding: 34px;
}

.services-banner__content {
  display: grid;
  gap: 16px;
}

.services-banner__content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 0;
  max-width: 620px;
}

.services-banner__content p {
  color: #5e6974;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 640px;
}

.services-banner__content ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.services-banner__content li {
  color: #1e2429;
  font-weight: 600;
  padding-left: 24px;
  position: relative;
}

.services-banner__content li::before {
  background: var(--km-blue);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 8px;
}

.services-banner__image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

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

.brand-strip {
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  padding: 24px;
}

.brand-strip h2 {
  font-size: 1.35rem;
  margin: 0;
}

.brand-list {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-list span {
  background: #f4f5f6;
  border: 1px solid #e2e7eb;
  border-radius: 8px;
  color: #4f5964;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 12px 10px;
  text-align: center;
}

.services-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.service-list {
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  overflow: hidden;
}

.service-row {
  border-bottom: 1px solid #e7ebef;
  cursor: pointer;
  display: grid;
  gap: 22px;
  grid-template-columns: 66px minmax(0, 1fr);
  padding: 24px;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.service-row:hover h2,
.service-row:hover span {
  color: #111820;
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row span {
  color: #a3a8ad;
  font-family: "Outfit", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  transition: color 220ms ease, transform 220ms ease;
}

.service-row h2 {
  color: #9a9fa4;
  font-size: 1.55rem;
  margin-bottom: 8px;
  transition: color 220ms ease, transform 220ms ease;
}

.service-row p {
  color: #5e6974;
  line-height: 1.6;
  margin: 0;
  transition: color 220ms ease;
}

.service-row.active span,
.service-row.active h2 {
  color: #111820;
}

.service-row.active {
  background: #ffffff;
  box-shadow: inset 5px 0 0 var(--km-blue);
}

.service-row.active span,
.service-row.active h2 {
  transform: translateX(3px);
}

.insurance-panel {
  background: #111820;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 20px;
  padding: 28px;
}

.insurance-panel h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.insurance-panel p {
  color: #d5dde4;
  line-height: 1.65;
  margin-bottom: 0;
}

.insurance-highlights {
  display: grid;
  gap: 12px;
}

.insurance-highlights div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.insurance-highlights strong {
  color: var(--km-blue);
  font-family: "Outfit", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.insurance-highlights span {
  color: #e6ebef;
}

.contact-band {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 26px;
}

.contact-band h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-band p {
  color: #5e6974;
  line-height: 1.55;
  margin-bottom: 0;
}

.contact-page {
  display: grid;
  gap: 32px;
}

.contact-hero {
  max-width: 760px;
}

.contact-hero p {
  color: #5e6974;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.contact-card,
.map-card {
  background: #ffffff;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
}

.contact-card {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.contact-label {
  color: var(--km-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: -8px;
  text-transform: uppercase;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.contact-card address {
  color: #4f5964;
  font-style: normal;
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.map-button {
  align-items: center;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  color: #1e2429;
  display: flex;
  font-weight: 600;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.map-button:hover {
  border-color: var(--km-blue);
  color: var(--km-blue);
}

.map-button span {
  align-items: center;
  background: var(--km-blue);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.contact-whatsapp {
  background: #25d366;
}

.contact-whatsapp:hover {
  background: #1fbd5a;
}

.map-card {
  min-height: 520px;
  overflow: hidden;
}

.map-card iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 520px;
  width: 100%;
}

.whatsapp-modal-button {
  background: #25d366;
}

.whatsapp-modal-button:hover {
  background: #1fbd5a;
}

.gallery-modal {
  background: rgba(8, 10, 13, 0.96);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.modal-mobile-gallery {
  display: none;
}

.modal-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(18, 25, 34, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  color: #111820;
  cursor: pointer;
  display: flex;
  font-size: 2.1rem;
  font-weight: 500;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 22px;
  top: 18px;
  width: 52px;
  z-index: 120;
}

.modal-close:hover {
  background: var(--km-blue);
  color: #ffffff;
}

.modal-media {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 34px 74px;
  position: relative;
}

.modal-media img {
  max-height: calc(100vh - 68px);
  max-width: 100%;
  object-fit: contain;
}

.modal-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 2.5rem;
  height: 54px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
}

.modal-arrow:hover {
  background: var(--km-blue);
  border-color: var(--km-blue);
}

.modal-arrow--left {
  left: 24px;
}

.modal-arrow--right {
  right: 24px;
}

.modal-side {
  background: #fff;
  color: #182029;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  max-height: 100vh;
  overflow-y: auto;
  padding: 24px 18px;
}

.modal-summary {
  padding-right: 52px;
}

.modal-summary h2 {
  font-size: 1.1rem;
  line-height: 1.28;
  margin-bottom: 12px;
}

.modal-summary .vehicle-price {
  text-align: left;
}

.thumbnail-list {
  align-content: start;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.thumbnail {
  background: #e8ecef;
  border: 3px solid transparent;
  border-radius: 8px;
  height: 84px;
  overflow: hidden;
  padding: 0;
}

.thumbnail.active {
  border-color: var(--km-blue);
}

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

.modal-details {
  border-top: 1px solid #e2e7eb;
  color: #3f4a55;
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.modal-details dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.modal-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.modal-details dt {
  color: #6b7680;
  font-weight: 800;
}

.modal-details dd {
  color: #17202a;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.modal-details p {
  line-height: 1.5;
  margin-bottom: 0;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .services-hero,
  .brand-strip,
  .services-layout,
  .contact-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-banner {
    grid-template-columns: 1fr;
  }

  .services-banner__image {
    justify-self: center;
    max-width: 360px;
    width: 100%;
  }

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

  .gallery-modal {
    background: #ffffff;
    color: #182029;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-media {
    display: none;
  }

  .modal-mobile-gallery {
    background: #080a0d;
    display: grid;
    gap: 10px;
    grid-auto-columns: minmax(82vw, 1fr);
    grid-auto-flow: column;
    min-height: 66vh;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 72px 16px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .modal-mobile-gallery::-webkit-scrollbar {
    display: none;
  }

  .modal-mobile-slide {
    background: #111820;
    border: 0;
    border-radius: 8px;
    display: flex;
    min-height: 54vh;
    overflow: hidden;
    padding: 0;
    scroll-snap-align: center;
  }

  .modal-mobile-slide img {
    display: block;
    height: auto;
    max-height: 74vh;
    object-fit: contain;
    width: 100%;
  }

  .modal-side {
    display: grid;
    gap: 16px;
    grid-template-rows: auto auto auto;
    max-height: none;
    min-height: auto;
    overflow: visible;
    padding: 22px 18px 34px;
  }

  .thumbnail-list {
    display: none;
  }

  .modal-summary {
    padding-right: 42px;
  }

  .modal-summary .image-count {
    color: #65717c;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .brand img {
    height: 54px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__icon {
    opacity: 0;
    transform: scale(0.75);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__close,
  .menu-toggle[aria-expanded="true"] .menu-toggle__close::before {
    opacity: 1;
  }

  .nav-links {
    background: #ffffff;
    border-top: 1px solid #e6eaee;
    display: none;
    gap: 0;
    grid-column: 1 / -1;
    justify-content: stretch;
    justify-self: stretch;
    margin: 0 -20px -12px;
    overflow: hidden;
    padding: 8px 20px 14px;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    padding: 14px 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  main {
    padding-top: 30px;
  }

  .vehicle-info-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .vehicle-price {
    text-align: left;
  }

  .sold-label {
    text-align: left;
  }

  .carousel-arrow {
    display: none;
  }

  .vehicle-carousel {
    grid-auto-columns: minmax(250px, 86vw);
  }

  .services-page {
    gap: 28px;
  }

  .services-hero {
    align-items: start;
  }

  .services-hero__button,
  .contact-band .details-button {
    justify-self: start;
  }

  .services-banner {
    padding: 24px 18px;
  }

  .services-banner__image {
    max-width: 260px;
    order: -1;
  }

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

  .service-row {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service-row span {
    font-size: 1.1rem;
  }

  .service-row h2 {
    font-size: 1.35rem;
  }

  .insurance-panel {
    padding: 22px;
  }

  .insurance-panel h2 {
    font-size: 1.55rem;
  }

  .contact-card {
    padding: 22px;
  }

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

  .modal-close {
    right: 14px;
    top: 14px;
    height: 46px;
    width: 46px;
  }

  .modal-arrow {
    height: 44px;
    width: 44px;
  }

  .modal-arrow--left {
    left: 10px;
  }

  .modal-arrow--right {
    right: 10px;
  }

  .modal-side {
    padding: 18px 14px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
}
