/* Home page layout overrides, served as a static stylesheet. */
:root {
  --page-width: 1220px;
  --page-gutter: 28px;
}

.wrap,
.site-header .nav,
.hero-shell,
footer .foot {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.site-header .nav,
.hero-shell {
  padding-left: 0;
  padding-right: 0;
}

.gem-hero .hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  min-height: 720px;
  gap: 38px;
  padding-top: 150px;
  padding-bottom: 70px;
}

.gem-hero .hero-copy {
  display: block;
  max-width: none;
  padding: 0;
}

.gem-hero .hero-copy h1 {
  font-size: clamp(3.4rem, 6vw, 5.4rem);
}

.gem-hero .hero-copy p {
  font-size: 1.07rem;
}

.gem-showcase {
  min-width: 0;
  margin: 0;
  border: 1px solid #a6c76872;
  border-radius: 20px;
  overflow: hidden;
  background: #1c261e;
}

.gem-showcase img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

@media (max-width: 950px) {
  .gem-hero .hero-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 138px;
    padding-bottom: 55px;
  }

  .gem-hero .hero-copy {
    max-width: 700px;
  }

  .gem-showcase {
    width: 100%;
    max-width: 760px;
  }
}

.trust-band,
.catalog-section,
.enquiry-section,
.savings-section,
.service-feature,
.locations-section,
.final-cta {
  padding-left: 0;
  padding-right: 0;
}

.section-heading {
  align-items: flex-start;
}

.section-heading > div {
  flex: 1;
}

.section-heading > p {
  margin-top: 27px;
}

.catalog-grid,
.trust-items,
.location-cards {
  align-items: stretch;
}

.vehicle-card,
.trust-items > div,
.location-cards article {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.vehicle-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.vehicle-content p {
  min-height: 0;
}

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

.vehicle-art {
  position: relative;
  overflow: hidden;
}

.vehicle-art .series,
.model-variant {
  position: relative;
  z-index: 1;
}

.model-variant {
  border: 1px solid #d6e8a766;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .875rem;
  font-weight: 800;
  background: #192e2980;
}

.vehicle-art .model-monogram {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.vehicle-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-art:has(img) .series {
  background: #192e29cc;
  padding: 5px 8px;
  border-radius: 4px;
}

.vehicle-card {
  min-width: 0;
}

.vehicle-content h3 {
  overflow-wrap: anywhere;
}

.vehicle-actions {
  flex-wrap: wrap;
}

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

.vehicle-actions,
.trust-items p {
  margin-top: auto;
}

.enquiry-grid,
.savings-grid,
.service-layout {
  align-items: stretch;
}

.enquiry-grid > div:first-child,
.service-layout > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.savings-grid > div:first-child {
  align-self: center;
}

.savings-result {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.location-cards p {
  min-height: 0;
  flex: 1;
}

.final-cta .wrap {
  min-height: 118px;
}

.foot {
  align-items: center;
}

.foot > span:last-child {
  text-align: right;
}

@media (max-width: 750px) {
  :root {
    --page-gutter: 22px;
  }

  .section-heading > p {
    margin-top: 0;
  }

  .enquiry-grid > div:first-child,
  .service-layout > div:first-child {
    display: block;
  }

  .final-cta .wrap {
    min-height: 0;
  }

  .foot > span:last-child {
    text-align: left;
  }
}

@media (max-width: 500px) {
  :root {
    --page-gutter: 18px;
  }

  .site-header .brand {
    gap: 7px;
  }

  .site-header .logo-crop {
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    flex: none;
  }

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

  .gem-hero .hero-shell {
    padding-top: 125px;
    padding-bottom: 44px;
    gap: 28px;
  }
}
