@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --dark: #151515;
  --muted: #5b5957;
  --on-dark: #c6c3c1;
  --paper: #f6f5f3;
  --red: #952a35;
  --red-hover: #ac3542;
  --rule: #ddd9d6;
  --header-height: 4.75rem;
  font-family: "Instrument Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #d54c59;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(100% - 2 * clamp(1.5rem, 5vw, 5.25rem), 82rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid #ffffff18;
  background: var(--dark);
  color: white;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .7rem;
  width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 3px;
  background: var(--red);
  color: white;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name { display: grid; gap: .1rem; line-height: 1; }
.brand-name strong { font-size: 1.35rem; font-weight: 700; letter-spacing: .055em; }
.brand-name > span { font-size: .72rem; font-weight: 600; letter-spacing: .17em; color: #cbc5c3; }

.desktop-nav, .footer-row nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.3vw, 3rem);
}

.desktop-nav a, .footer-row nav a {
  color: var(--on-dark);
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.desktop-nav a:hover, .desktop-nav a[aria-current], .footer-row nav a:hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button-header {
  justify-self: end;
  min-height: 2.6rem;
  padding: .6rem .9rem;
  border-color: #ffffff40;
  font-size: .88rem;
  white-space: nowrap;
}

.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: var(--red-hover); }
.button-ghost { color: white; border-color: #ffffff55; background: #15151542; }
.button-ghost:hover, .button-header:hover { border-color: #ffffff8a; background: #ffffff18; }
.button-outline { color: var(--ink); background: transparent; border-color: #bdb6b2; }
.button-outline:hover { border-color: var(--red); color: var(--red); }
.button-whatsapp { color: white; background: #177245; }
.button-whatsapp:hover { background: #125c37; }
button.button { cursor: pointer; }
button.button:disabled { opacity: .65; cursor: wait; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 42vw, 42rem);
  overflow: hidden;
  background: #1c1b1a;
  color: white;
}

.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image { object-fit: cover; object-position: 50% 60%; }

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #151515f0 0%, #151515ad 28%, #15151538 52%, #15151500 74%),
    linear-gradient(0deg, #1515154d, #15151500 30%);
}

.hero-content { padding-block: 4.5rem; }

.location {
  display: flex;
  align-items: center;
  gap: .72rem;
  margin-bottom: 1.25rem;
  color: #f3eeeb;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.location::before { content: ""; width: 1.75rem; height: 2px; background: #d6525e; }

.hero h1 {
  color: #fff;
  font-size: clamp(4rem, 6vw, 6.55rem);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .99;
  text-wrap: balance;
}

.hero-copy {
  max-width: 23rem;
  margin-top: 1.45rem;
  color: #efebe9;
  font-size: 1.06rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.showroom { padding-block: clamp(3.5rem, 5.5vw, 5.6rem) clamp(4.25rem, 6vw, 6.25rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2, .contact h2 {
  font-size: clamp(2.6rem, 4.2vw, 4.55rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1;
}

.contact-intro p {
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.catalog-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  min-height: 7rem;
  padding: 1.35rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
}

.catalog-message p { color: var(--muted); line-height: 1.5; }
.catalog-more { display: flex; margin: 1.7rem auto 0; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.vehicle-card {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vehicle-card:hover {
  border-color: #bda8a8;
  box-shadow: 0 7px 27px #27181712;
}

.vehicle-image {
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  aspect-ratio: 1.65;
  background: #d6d0cc;
}

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

.vehicle-card:hover img { transform: scale(1.045); }
.vehicle-card h3 { font-size: 1.25rem; font-weight: 650; }

.vehicle-card button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.18rem .45rem;
  border: 0;
  border-top: 1px solid #0000000d;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.vehicle-card button::before { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.vehicle-card button:focus-visible { outline: 0; }
.vehicle-card button:focus-visible::before { outline: 3px solid var(--red); outline-offset: 4px; }

.vehicle-summary { display: grid; gap: .5rem; padding: 0 1.18rem 1.1rem; }
.vehicle-summary p { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.vehicle-summary .vehicle-price { color: var(--red); font-size: 1.07rem; font-weight: 700; }

.card-plus {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e4d8d8;
  border-radius: 50%;
  color: var(--red);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.card-plus::before, .card-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .72rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.card-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.vehicle-card:hover .card-plus, .vehicle-card:focus-within .card-plus { color: white; border-color: var(--red); background: var(--red); }

.contact {
  padding-block: clamp(3.6rem, 6.1vw, 6.25rem);
  background: #231b1c;
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 8rem);
}

.contact-intro p { margin-block: 1rem 1.55rem; color: var(--on-dark); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.instagram-icon {
  position: relative;
  width: 1.03rem;
  height: 1.03rem;
  border: 1.5px solid currentColor;
  border-radius: .28rem;
}

.instagram-icon::before, .instagram-icon::after { content: ""; position: absolute; border-radius: 50%; }
.instagram-icon::before { inset: 24%; border: 1.4px solid currentColor; }
.instagram-icon::after { top: 2px; right: 2px; width: 2px; height: 2px; background: currentColor; }

.contact-details { font-style: normal; }

.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid #ffffff30;
  padding-block: 1.15rem;
}

.contact-row:last-child { border-bottom: 1px solid #ffffff30; }
.contact-label { font-size: .88rem; font-weight: 500; color: var(--on-dark); }
.contact-row > a { width: fit-content; font-weight: 600; line-height: 1.55; text-decoration: none; }
.contact-row > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-label { display: block; color: var(--on-dark); margin-top: .3rem; font-size: .88rem; font-weight: 500; }

.site-footer {
  padding-block: 1.35rem;
  border-top: 1px solid #ffffff13;
  background: var(--dark);
  color: white;
}

.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.vehicle-dialog {
  position: fixed;
  max-height: calc(100dvh - 2rem);
  width: min(48rem, 100% - 2rem);
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 75px #0006;
}

.vehicle-dialog::backdrop { background: #0f0d0dd1; }
.dialog-close-form { position: absolute; z-index: 1; top: .75rem; right: .75rem; }

.dialog-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0 .15rem;
  border: none;
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { background: var(--paper); }
.dialog-image { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: contain; background: #211e1e; }
.photo-thumbnails { display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 1rem; border-bottom: 1px solid var(--rule); }
.photo-thumbnails button { flex: none; padding: 2px; border: 2px solid transparent; border-radius: 3px; background: white; cursor: pointer; }
.photo-thumbnails button[aria-pressed="true"] { border-color: var(--red); }
.photo-thumbnails img { width: 4.35rem; height: 2.75rem; object-fit: cover; }
.dialog-content { padding: clamp(1.35rem, 4vw, 2.25rem); }
.dialog-content h2 { font-size: 2.35rem; line-height: 1.1; letter-spacing: -.045em; }
.dialog-content p { margin-top: .6rem; line-height: 1.55; color: var(--muted); }
.dialog-content .dialog-price { color: var(--red); font-size: 1.3rem; font-weight: 700; }
.dialog-content .button { margin-top: 1.2rem; }
.vehicle-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); gap: .85rem; margin: 1.15rem 0 0; }
.vehicle-facts:empty { display: none; }
.vehicle-facts > div { border-top: 1px solid var(--rule); padding-block: .65rem .1rem; }
.vehicle-facts dt { color: var(--muted); font-size: .875rem; }
.vehicle-facts dd { margin: .2rem 0 0; font-weight: 600; }
.vehicle-description { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  :root { --header-height: 4.125rem; }
  .header-row { display: flex; justify-content: space-between; }
  .desktop-nav, .button-header { display: none; }
  .mobile-menu { display: block; }

  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    list-style: none;
    border: 1px solid #ffffff40;
    border-radius: 3px;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { position: relative; width: 1.05rem; height: 1rem; }
  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    inset: .27rem 0 auto;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .menu-icon::after { transform: translateY(.38rem); }
  .mobile-menu[open] .menu-icon::before { transform: translateY(.19rem) rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { transform: translateY(.19rem) rotate(-45deg); }

  .mobile-menu nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: grid;
    padding: .35rem clamp(1.5rem, 5vw, 5.25rem) .85rem;
    background: var(--dark);
    border-bottom: 1px solid #ffffff25;
    box-shadow: 0 12px 20px #0003;
  }

  .mobile-menu nav a { padding: .8rem 0; line-height: 1.35; font-weight: 500; text-decoration: none; }
  .mobile-menu nav a + a { border-top: 1px solid #ffffff26; }
  .vehicle-grid { gap: .85rem; }
}

@media (max-width: 40rem) {
  .hero { align-items: start; min-height: 38rem; }
  .hero-content { padding-top: 2.75rem; padding-bottom: 14.25rem; }
  .hero-image {
    inset: auto 0 0 auto;
    width: 144%;
    max-width: none;
    height: auto;
    transform: translateX(2%);
  }
  .hero::after { background: linear-gradient(180deg, #1c1b1a 0%, #1c1b1a 36%, #1c1b1a00 66%, #15151520); }
  .location { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.9rem); letter-spacing: -.068em; }
  .hero-copy { margin-top: 1rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-actions .button { padding-inline: 1rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .9rem; margin-bottom: 1.4rem; }
  .vehicle-grid, .contact-grid { grid-template-columns: 1fr; }
  .vehicle-grid { gap: 1rem; }
  .contact-grid { gap: 1.65rem; }
  .contact-row { grid-template-columns: 5.45rem 1fr; gap: .75rem; }
  .footer-row nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
