:root {
  --gold: #977b34;
  --ink: #35312c;
  --taupe: #61574d;
  --bronze: #6f5624;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --line: #ded7ca;
  --green: #16a34a;
  --shadow: 0 18px 42px rgba(53, 49, 44, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  overflow: visible;
  padding: 0 clamp(24px, 5vw, 68px);
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid rgba(151, 123, 52, 0.18);
  backdrop-filter: blur(16px);
}

.site-brand {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  transform: translateX(-50%);
}

.site-brand img {
  width: clamp(132px, 12vw, 176px);
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(53, 49, 44, 0.32));
}

.site-menu-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(151, 123, 52, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 21px;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 16px;
}

.site-brand small {
  color: var(--taupe);
  font-size: 12px;
}

.site-nav {
  grid-column: 1;
  display: none;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  justify-self: start;
  z-index: 2;
  color: var(--taupe);
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--bronze);
}

.site-social-links {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  z-index: 2;
  gap: 10px;
  min-width: 104px;
  min-height: 42px;
}

.site-social-links:empty {
  visibility: hidden;
}

.site-social-links a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(151, 123, 52, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 18px;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--bronze);
}

.site-main {
  overflow: hidden;
}

.site-hero {
  position: relative;
  min-height: clamp(520px, calc(100svh - 75px), 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(33, 29, 24, 0.92), rgba(33, 29, 24, 0.62), rgba(33, 29, 24, 0.24));
  pointer-events: none;
}

.site-hero-slider {
  position: absolute;
  inset: 0;
}

.site-hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 5000ms ease;
}

.site-hero-slider img.active {
  opacity: 1;
  transform: scale(1);
}

.site-hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
}

.site-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.92);
  color: var(--bronze);
  font-weight: 900;
  font-size: 13px;
}

.site-hero h1,
.site-section h2,
.detail-content h1,
.site-message h1 {
  margin: 14px 0 10px;
  letter-spacing: 0;
  line-height: 1.04;
}

.site-hero h1 {
  margin-top: 0;
  font-size: clamp(36px, 5vw, 68px);
  max-width: 100%;
}

.site-hero p {
  width: min(880px, 100%);
  margin: 0;
  font-size: clamp(14px, 1.35vw, 17px);
  color: rgba(255, 255, 255, 0.9);
}

.site-hero-actions,
.site-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.site-button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.site-button.secondary {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-button.ghost {
  background: #fff;
}

.site-button.large {
  min-height: 52px;
  padding-inline: 22px;
}

.site-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
}

.site-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.site-section h2 {
  font-size: clamp(26px, 4vw, 44px);
}

.site-section-heading strong {
  color: var(--bronze);
}

.site-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(53, 49, 44, 0.08);
}

.site-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 900;
  color: var(--bronze);
}

.site-filter-grid input,
.site-filter-grid select {
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.site-filter-actions {
  grid-column: 1 / -1;
  margin: 0;
}

.site-vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.site-vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(53, 49, 44, 0.08);
}

.site-vehicle-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9e1d1;
}

.site-vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-vehicle-photo span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.92);
  color: var(--bronze);
  font-weight: 900;
  font-size: 12px;
}

.site-vehicle-info {
  padding: 16px;
}

.site-vehicle-info small {
  color: var(--bronze);
  font-weight: 900;
}

.site-vehicle-info h3 {
  margin: 4px 0;
  font-size: 22px;
}

.site-vehicle-info p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--taupe);
}

.site-vehicle-info strong,
.detail-price {
  display: block;
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.site-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--bronze);
  font-weight: 900;
}

.site-empty-state,
.site-message {
  grid-column: 1 / -1;
  padding: 42px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.site-empty-state i {
  color: var(--gold);
  font-size: 34px;
}

.split-section,
.contact-section {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.split-section p,
.contact-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.contact-section {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.contact-section p {
  color: var(--taupe);
}

.compact-page {
  padding: clamp(22px, 4vw, 46px) 0;
}

.vehicle-detail-site {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.detail-gallery,
.detail-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(53, 49, 44, 0.08);
}

.detail-gallery {
  overflow: hidden;
}

.detail-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.detail-content {
  padding: clamp(18px, 4vw, 34px);
}

.back-link {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bronze);
  font-weight: 900;
}

.detail-content h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.detail-subtitle,
.detail-notes {
  color: var(--taupe);
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-spec-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.detail-spec-grid small,
.detail-spec-grid strong {
  display: block;
}

.detail-spec-grid small {
  color: var(--taupe);
  font-weight: 900;
}

.detail-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-items span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1eadb;
  color: var(--bronze);
  font-weight: 900;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 32px clamp(18px, 4vw, 56px);
  background: #35312c;
  color: #fff;
  text-align: center;
}

.site-footer-brand {
  display: grid;
  gap: 4px;
}

.site-footer-brand strong {
  font-size: 18px;
}

.site-footer-brand span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer-social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 244, 239, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(151, 123, 52, 0.78);
  background: rgba(151, 123, 52, 0.2);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 26px;
}

.offline-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: var(--offline-bg-color, var(--ink));
  background-image:
    linear-gradient(180deg, rgba(30, 27, 22, 0.18), rgba(30, 27, 22, 0.28)),
    var(--offline-bg-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.offline-screen.no-logo {
  place-items: stretch;
}

.offline-logo {
  width: min(520px, 86vw);
  height: auto;
}

@media (min-width: 720px) {
  .site-nav {
    display: inline-flex;
  }

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

  .split-section,
  .contact-section,
  .vehicle-detail-site {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .site-filter-grid {
    grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.2fr) minmax(130px, 0.7fr) minmax(160px, 0.8fr) auto;
    align-items: end;
  }

  .site-filter-actions {
    grid-column: auto;
    flex-wrap: nowrap;
  }

  .site-filter-actions .site-button {
    min-width: 96px;
  }

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

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 8px;
    min-height: 76px;
    padding: 7px 12px;
  }

  .site-menu-toggle {
    display: grid;
    grid-column: 1;
    justify-self: start;
  }

  .site-brand {
    position: static;
    transform: none;
    grid-column: 2;
    justify-self: center;
  }

  .site-brand img {
    width: 98px;
    height: 62px;
    filter: drop-shadow(0 8px 12px rgba(53, 49, 44, 0.24));
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 4;
    display: none;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(151, 123, 52, 0.22);
    border-radius: 8px;
    background: rgba(246, 244, 239, 0.98);
    box-shadow: 0 18px 34px rgba(53, 49, 44, 0.18);
  }

  .site-header.menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: rgba(151, 123, 52, 0.1);
  }

  .site-social-links {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    gap: 4px;
    min-height: 36px;
  }

  .site-social-links a {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .site-filter-grid,
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: calc(100svh - 76px);
    align-items: center;
    padding: 50px 18px 54px;
  }

  .site-hero h1 {
    font-size: clamp(27px, 8.3vw, 36px);
    max-width: 100%;
  }

  .site-hero p {
    width: 100%;
    font-size: clamp(12px, 3.45vw, 14px);
  }

  .site-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 292px);
    margin-top: 18px;
  }

  .site-hero-actions .site-button {
    min-height: 42px;
  }

  .site-footer {
    padding-bottom: 88px;
  }
}
