:root {
  --site-width: 1440px;
  --gold: #d2a02f;
  --gold-dark: #76561a;
  --black: #080808;
  --red: #a6060b;
  --ink: #2f3032;
  --muted: #6f747a;
  --light: #f1f2f3;
  --white: #fff;
  --border: #dfe1e3;
  --shadow: 0 10px 30px rgb(20 20 20 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--site-width), calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  height: 238px;
  overflow: visible;
  color: #141414;
  background: var(--black);
  border-bottom: 8px solid #050505;
}

.header-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #030303 url('../images/header-background.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  width: min(var(--site-width), calc(100% - 36px));
  height: 100%;
  margin-inline: auto;
}

.main-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  align-items: start;
  height: 100%;
}

.nav-side {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  align-items: end;
  column-gap: 28px;
  padding-top: 47px;
}

.nav-left {
  padding-right: 22px;
}

.nav-right {
  padding-left: 22px;
}

.nav-side > a:not(.social-link) {
  margin-top: 92px;
  padding: 0 0 25px;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgb(255 255 255 / 85%), 0 0 5px rgb(255 255 255 / 45%);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}

.nav-side > a:not(.social-link):hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-link {
  position: absolute;
  z-index: 4;
  display: block;
  top: 47px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  border-radius: 18px;
  background: rgb(255 255 255 / 12%);
  box-shadow: 0 7px 14px rgb(0 0 0 / 28%), 0 2px 4px rgb(0 0 0 / 18%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: inherit;
  background: linear-gradient(145deg, rgb(255 255 255 / 18%), transparent 55%);
  pointer-events: none;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgb(0 0 0 / 34%), 0 3px 6px rgb(0 0 0 / 18%);
}

.social-link:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgb(0 0 0 / 24%);
}

.social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.nav-left .social-link {
  left: calc(50% - 270px);
}

.nav-right .social-link {
  left: calc(50% + 200px);
}

.social-link img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }
}

.brand {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 260px;
  height: 260px;
}

.brand img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 25%)) drop-shadow(0 8px 8px rgb(0 0 0 / 30%));
}

.menu-toggle {
  display: none;
}

main {
  min-height: 35vh;
}

.flash {
  margin-top: 34px;
  padding: 15px 18px;
  border: 1px solid #bddfc2;
  border-radius: 4px;
  color: #18552a;
  background: #eaf8ec;
}

.flash-error {
  border-color: #efb8b8;
  color: #822224;
  background: #fff0f0;
}

.flash ul {
  margin: 8px 0 0;
}

.stock-section {
  padding: 24px 0 40px;
  background: linear-gradient(145deg, #f7f7f7, #e6e8ea 60%, #f9f9f9);
}

.purchase-options {
  margin-bottom: 24px;
  padding: 18px 24px;
  border: 1px solid #dfd6bf;
  border-radius: 10px;
  background: linear-gradient(110deg, #fffdf7, #fff 65%);
  box-shadow: 0 4px 14px rgb(38 30 12 / 5%);
}

.purchase-options-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-options-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #343434;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.purchase-options-list strong {
  color: #8c6519;
  font-weight: 800;
}

.purchase-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e7d6ac;
  border-radius: 12px;
  color: #96701f;
  background: #f8f0dd;
}

.purchase-icon svg { width: 25px; height: 25px; }

.purchase-footnote-link {
  color: #8c6519;
  margin-left: 2px;
}

.purchase-footnote-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-bottom .installment-note {
  margin-bottom: 14px;
  color: #efc04f;
  scroll-margin-top: 20px;
}

@media (max-width: 760px) {
  .purchase-options { padding: 16px; }
  .purchase-options-list { justify-content: flex-start; gap: 14px 24px; }
  .purchase-options-list li { font-size: 13px; }
  .purchase-options-list li:last-child { flex-basis: 100%; }
}

.stock-catalog {
  min-width: 0;
}

.stock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid #e4e1d9;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(115deg, #fff 60%, #faf6eb);
  box-shadow: 0 3px 12px rgb(25 25 25 / 4%);
}

.stock-heading h1 {
  margin: 0;
  color: #242a32;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 750;
  letter-spacing: -.6px;
  line-height: 1.25;
}

.stock-heading h1 span {
  color: #946a17;
}

.stock-heading p {
  margin: 4px 0 0;
  color: #6f747a;
  font-size: 13px;
}

.stock-count {
  padding: 7px 12px;
  border: 1px solid #e8ddc2;
  border-radius: 30px;
  background: #f7f0de;
  color: #74551b;
  font-size: 12px;
  font-weight: 600;
}

.stock-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  gap: 10px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.vehicle-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 13px rgb(25 25 25 / 5%);
  transition: transform .22s ease, box-shadow .22s ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.vehicle-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.035);
}

.vehicle-card-body {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 10px 12px 0;
  text-align: center;
}

.vehicle-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 9px;
  color: #555;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.22;
}

.vehicle-price {
  display: block;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.27rem;
  font-weight: 750;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto -12px 0;
  padding: 8px 6px;
  border-top: 1px solid #f0f0f0;
  color: #3e4246;
}

.vehicle-specs span {
  display: grid;
  gap: 1px;
  justify-items: center;
  font-size: .76rem;
  line-height: 1.05;
}

.vehicle-specs b {
  color: #7c858b;
  font-size: .92rem;
}

.customer-gallery {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  background: rgb(255 255 255 / 76%);
}

.customer-gallery h2 {
  margin: 4px 0 2px;
  color: #5a5a5a;
  font-size: .9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.customer-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 54px;
  border: 0;
  color: #fff;
  background: rgb(0 0 0 / 50%);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
}

.gallery-thumb {
  flex: 0 0 106px;
  padding: 0;
  border: 3px solid transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--gold);
}

.gallery-thumb img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.vehicle-summary h1 {
  margin: 12px 0 22px;
  font-size: 1.16rem;
  font-weight: 600;
}

.vehicle-summary h2 {
  margin: 20px 0 12px;
  font-size: 1.8rem;
  font-weight: 500;
}

.summary-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.summary-specs div {
  padding: 9px 11px;
  background: #f5f5f5;
}

.summary-specs dt {
  color: #777;
  font-size: .72rem;
  text-transform: uppercase;
}

.summary-specs dd {
  margin: 0;
  font-weight: 600;
}

.price-label {
  margin: 18px 0 -4px;
  color: #666;
}

.detail-price {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 2.25rem;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #68727c;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.button:hover {
  background: #3f4850;
  transform: translateY(-1px);
}

.button-whatsapp {
  background: #168c4c;
}

.button-whatsapp:hover {
  background: #0d6f3a;
}

.share-box h2 {
  margin-bottom: 8px;
}

.share-links {
  display: flex;
  gap: 9px;
}

.share-links a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #3265a1;
  font-size: 1.55rem;
  font-weight: 750;
}

.share-links a:nth-child(2) { background: #21a85b; }
.share-links a:nth-child(3) { background: #2197c8; }

.vehicle-description {
  grid-column: 1 / -1;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 1.02rem;
}

.vehicle-description h2 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
  padding: 0;
  list-style: none;
}

.feature-list li::before {
  content: "✓";
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  margin-right: 7px;
  border-radius: 3px;
  color: #fff;
  background: #58a35a;
  font-size: .8rem;
}

.description-price {
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 700;
}

.form-page,
.contact-page,
.location-page,
.text-page,
.empty-page {
  padding-top: 34px;
  padding-bottom: 62px;
}

.form-page h1,
.contact-page h1,
.location-page h1,
.text-page h1,
.empty-page h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 550;
}

.site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
}

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

.field label {
  margin-bottom: 3px;
}

.field label span {
  color: #d12b31;
}

.field input:not([type="file"]),
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #979b9f;
  border-radius: 2px;
  background: #fff;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(210 160 47 / 16%);
}

.file-field {
  padding: 8px 0;
}

.file-field input {
  padding: 8px;
  border: 1px dashed #aaa;
  background: #fafafa;
}

.form-note {
  margin: 18px 0 6px;
}

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-card h1 {
  margin-top: 14px;
}

.contact-card a {
  color: #3f4e59;
}

.contact-form-wrap > h1 {
  font-size: 2rem;
}

.contact-form {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  font-size: .9rem;
}

.consent input {
  margin-top: 5px;
}

.location-address {
  font-size: 1.1rem;
}

.location-map {
  height: 520px;
  margin: 22px 0;
  background: #eee;
}

.location-map iframe,
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.text-page {
  max-width: 900px;
}

.text-page h2 {
  margin-top: 26px;
}

.empty-page {
  min-height: 430px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--gold);
  font-size: 6rem;
  font-weight: 800;
}

.footer-map {
  height: 300px;
  background: #ececec;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-top: 14px solid #6d6d6d;
  background: #fff;
}

.footer-nav a {
  padding: 12px 18px;
  color: #ba3559;
}

.footer-nav a:hover {
  color: #fff;
  background: #474b50;
}

.footer-main {
  padding: 30px 0;
  color: #39301f;
  background: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
}

.footer-about {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
}

.footer-about img {
  width: 90px;
}

.footer-main h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.footer-main ul {
  padding-left: 20px;
}

.footer-bottom {
  padding: 17px;
  color: #eee;
  background: #111;
  font-size: .82rem;
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom a {
  color: #efc04f;
}

.whatsapp-float {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #21a85b;
  box-shadow: 0 6px 20px rgb(0 0 0 / 25%);
  font-size: 2rem;
}

@media (max-width: 1040px) {
  .main-nav {
    grid-template-columns: 1fr 220px 1fr;
  }

  .brand,
  .brand img {
    width: 220px;
    height: 220px;
  }

  .social-link,
  .social-link img {
    width: 58px;
    height: 58px;
  }

  .nav-left .social-link { left: calc(50% - 225px); }
  .nav-right .social-link { left: calc(50% + 167px); }

  .nav-side {
    column-gap: 8px;
  }

  .stock-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

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

@media (max-width: 760px) {
  .site-header {
    height: 132px;
    border-bottom-width: 5px;
  }

  .header-inner {
    width: 100%;
  }

  .menu-toggle {
    position: absolute;
    z-index: 6;
    top: 50px;
    left: 16px;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgb(0 0 0 / 24%);
    border-radius: 3px;
    background: rgb(255 255 255 / 78%);
    font-weight: 700;
    cursor: pointer;
  }

  .main-nav {
    display: block;
  }

  .brand {
    position: absolute;
    top: 4px;
    left: 50%;
    display: block;
    width: 132px;
    height: 132px;
    transform: translateX(-50%);
  }

  .brand img {
    width: 132px;
    height: 132px;
  }

  .nav-side {
    position: absolute;
    top: 132px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #111;
  }

  .main-nav.open .nav-side {
    display: grid;
  }

  .nav-left { z-index: 5; }
  .nav-right { z-index: 5; top: 258px; }

  .nav-side > a:not(.social-link) {
    margin-top: 0;
    padding: 11px 20px;
    border-bottom: 1px solid #2a2a2a;
    color: #fff;
    text-align: left;
  }

  .social-link {
    display: none;
  }

  .stock-section {
    padding-top: 22px;
  }

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

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

  .customer-gallery h2 {
    grid-column: 1 / -1;
  }

  .vehicle-detail {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .vehicle-summary h1 {
    margin-top: 0;
  }

  .vehicle-description {
    grid-column: auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    margin-top: 16px;
  }

  .footer-map {
    height: 240px;
  }

  .footer-grid,
  .footer-about {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-about img {
    width: 110px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, var(--site-width));
  }

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

  .vehicle-card h2 {
    font-size: .84rem;
  }

  .vehicle-price {
    font-size: 1.45rem;
  }

  .customer-gallery {
    grid-template-columns: 1fr;
  }

  .site-form,
  .summary-specs {
    grid-template-columns: 1fr;
  }

  .field-full,
  .field-wide,
  .field-small {
    grid-column: auto;
  }

  .detail-price {
    font-size: 1.9rem;
  }

  .form-page h1,
  .contact-page h1,
  .location-page h1,
  .text-page h1 {
    font-size: 1.65rem;
  }

  .location-map {
    height: 360px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav a {
    padding: 10px;
    text-align: center;
  }
}
