/* Home banners */
.legacy-band {
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  background: #050505;
  overflow: hidden;
}

.legacy-band-inner {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.legacy-band-copy {
  padding: 42px max(20px, calc((100vw - var(--max)) / 2));
}

.legacy-band-media {
  height: 100%;
  min-height: 260px;
  position: relative;
}

.legacy-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-band-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050505, transparent 38%);
}

.legacy-band > .container {
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 34px;
}

.closing-banner {
  position: relative;
  min-height: 310px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #777;
}

.closing-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050505ed, #05050586 48%, transparent);
}

.closing-banner .container {
  position: relative;
  z-index: 2;
}

.closing-banner h2 {
  max-width: 760px;
}

/* Empresa */
.brand-words {
  position: absolute;
  right: 6%;
  bottom: 35px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.55;
  font-size: 0.78rem;
  color: #fff;
}

.company-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

.company-copy {
  padding: 55px max(24px, calc((100vw - var(--max)) / 2));
}

.company-visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.company-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050505, transparent 30%);
}

.company-page-proofs {
  position: relative;
  isolation: isolate;
  background: #050505;
}

.company-page-proofs:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../hd/textura-grade-4096.webp") center / 680px;
  opacity: 0.2;
}

.directions {
  margin-top: 34px;
  padding: 36px;
  border-radius: 0;
  border: 1px solid #777;
  min-height: 240px;
  background-image:
    linear-gradient(90deg, #050505f2, #05050585),
    url("../hd/textura-grade-4096.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.directions p {
  margin: 0;
  color: #e5e5e5;
}

/* Estoque */
.store-hero {
  min-height: 390px;
  background:
    linear-gradient(90deg, #030303f2, #03030372),
    url("../hd/textura-grade-4096.webp") center / 620px;
  display: grid;
  align-items: center;
  padding-top: 74px;
  border-bottom: 1px solid #777;
}

.store-hero h1 {
  margin: 0;
  text-transform: uppercase;
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 17px;
  border: 1px solid #555;
  background: #070708;
}

.store-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #777;
  color: #cfd2d6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.store-brand:hover,
.store-brand.is-active {
  border-color: #fff;
  color: #fff;
  background: #161616;
}

.store-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.store-count {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.store-search {
  width: min(420px, 100%);
  min-width: 300px;
  border: 1px solid #777;
  background: #101011;
  color: #fff;
  padding: 12px 14px;
}

/* Veículo */
.detail-shell {
  padding-top: 120px;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid #8b8b8b;
  background:
    linear-gradient(90deg, #050505d9, #0505058a),
    url("../hd/textura-grade-4096.webp") center / 560px;
}

.detail-title h1 {
  margin-bottom: 8px;
}

.price {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #343438;
  background: #111;
}

.gallery-main img,
.gallery-main iframe,
.gallery-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-main img {
  object-fit: cover;
}

.gallery-facade {
  padding: 0;
  background: #111;
  cursor: pointer;
}

.gallery-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid #fff9;
  background: #090909b8;
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumbs button {
  position: relative;
  padding: 0;
  border: 1px solid #333;
  background: #111;
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: #eee;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs .gallery-play {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.gallery-thumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 35%);
}

.vehicle-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.vehicle-top .proposal-card {
  position: static;
}

.vehicle-top .content-card {
  height: 100%;
  margin: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: 34px;
  align-items: start;
  margin-top: 48px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2b2b2d;
  border: 1px solid #2b2b2d;
}

.spec {
  background: #0c0c0d;
  padding: 20px;
}

.spec small {
  display: block;
  color: #8e9298;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.67rem;
  margin-bottom: 6px;
}

.spec strong {
  font-size: 0.98rem;
  color: #fff;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.option {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #d6d7d9;
}

.check {
  width: 20px;
  height: 20px;
  border: 1px solid #777;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.feature-tile {
  border: 1px solid #555;
  padding: 16px 10px;
  text-align: center;
  min-height: 105px;
  display: grid;
  place-items: center;
  color: #eee;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.feature-tile .check {
  margin-left: auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.differentials {
  background: #050505;
  color: #d4d4d5;
  border-left: 2px solid #777;
  padding: 5px 0 5px 22px;
}

.proposal-card {
  position: sticky;
  top: 105px;
}

.proposal-card .btn {
  width: 100%;
  margin-bottom: 20px;
}

/* Contato */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.address-card {
  min-height: 490px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid #777;
}

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

.address-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #050505f5 4%, #05050525 75%);
}

.address-copy {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.address-copy img {
  position: static;
  inset: auto;
  height: auto;
  object-fit: contain;
}

.address-copy h2 {
  font-size: 2rem;
}

.address-copy p {
  color: #fff;
  margin-bottom: 20px;
}

.contact-form {
  padding: 36px;
  border: 1px solid #777;
  border-radius: var(--radius);
  background: #0d0d0e;
}

.contact-form .btn {
  width: 100%;
}

.contact-closing {
  min-height: 270px;
  background: #040404;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.contact-closing img {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
}

.contact-closing:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #030303 40%, transparent 75%);
}

.contact-closing .container {
  position: relative;
  z-index: 2;
}

.contact-closing h2 {
  max-width: 660px;
}

@media (max-width: 900px) {
  .legacy-band-inner,
  .company-story,
  .vehicle-top,
  .contact-wrap,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .legacy-band-copy,
  .company-copy {
    padding: 42px 24px;
  }

  .company-visual {
    min-height: 360px;
  }

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

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

  .brand-words {
    display: none;
  }

  .proposal-card {
    position: static;
  }

  .detail-title {
    align-items: start;
    flex-direction: column;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 620px) {
  .directions {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .store-search {
    min-width: 0;
    width: 100%;
  }

  .detail-shell {
    padding-top: 95px;
  }

  .vehicle-top {
    display: block;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .spec-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .address-card {
    min-height: 440px;
  }

  .contact-closing img {
    width: 100%;
    opacity: 0.45;
  }

  .contact-closing:after {
    background: #0303037d;
  }
}
