:root {
  --black: #010101;
  --ink: #171717;
  --orange: #f99900;
  --orange-dark: #d77f00;
  --paper: #f5f5f3;
  --surface: #ffffff;
  --muted: #6b6b68;
  --line: #deded8;
  --green: #0f9f53;
  --shadow: 0 18px 38px rgba(1, 1, 1, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-top: 82px;
  overflow-x: hidden;
  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;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(249, 153, 0, 0.3);
  background: rgba(1, 1, 1, 0.97);
  color: #fff;
  backdrop-filter: blur(14px);
}

.site-brand {
  grid-column: 2;
  justify-self: center;
  width: clamp(230px, 28vw, 360px);
  padding: 8px 18px;
}

.site-brand img {
  width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.site-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  justify-self: start;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a,
.header-social a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--orange);
}

.header-social {
  grid-column: 3;
  display: flex;
  justify-self: end;
  gap: 8px;
}

.header-social a,
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
}

.header-social a:hover,
.footer-social a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.menu-toggle {
  display: none;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-size: 22px;
}

.hero {
  position: relative;
  display: grid;
  height: calc(100svh - 82px);
  min-height: calc(100svh - 82px);
  overflow: hidden;
  align-items: center;
  padding: 32px clamp(20px, 6vw, 88px);
  background: var(--black);
  color: #fff;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 800ms ease, transform 5800ms ease;
}

.hero-media img.active {
  opacity: 0.72;
  transform: scale(1);
}

.hero-overlay {
  background: rgba(1, 1, 1, 0.64);
}

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

.eyebrow,
.section-kicker {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(249, 153, 0, 0.62);
  border-radius: 999px;
  background: rgba(1, 1, 1, 0.64);
}

.hero h1 {
  max-width: 900px;
  margin: 18px 0 16px;
  font-size: clamp(43px, 6.2vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero p {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.5vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.button.primary:hover {
  border-color: #ffb031;
  background: #ffb031;
}

.button.outline {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(1, 1, 1, 0.34);
  color: #fff;
}

.button.dark {
  background: var(--black);
  color: #fff;
}

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

.hero-scroll {
  position: absolute;
  right: clamp(20px, 4vw, 58px);
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
}

.inventory-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0;
}

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

.section-heading h2,
.about-section h2,
.contact-section h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading > strong {
  flex: 0 0 auto;
  color: var(--muted);
}

.inventory-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 48px;
  align-items: end;
  gap: 10px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(1, 1, 1, 0.07);
}

.inventory-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.inventory-filters label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-filters input,
.inventory-filters select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 750;
}

.inventory-filters input:focus,
.inventory-filters select:focus {
  outline: 2px solid rgba(249, 153, 0, 0.26);
  border-color: var(--orange);
}

.filter-submit,
.filter-clear {
  display: grid;
  place-items: center;
  width: 48px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--black);
  cursor: pointer;
  font-size: 19px;
}

.filter-clear {
  background: #ecece8;
  color: var(--ink);
}

.inventory-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(1, 1, 1, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.vehicle-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e9e9e5;
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.vehicle-card:hover .vehicle-photo img {
  transform: scale(1.025);
}

.vehicle-placeholder,
.detail-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--black);
  color: var(--orange);
  font-size: 52px;
}

.vehicle-status {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
}

.vehicle-card-body {
  padding: 16px;
}

.vehicle-card-body > small {
  color: var(--orange-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-card h3 {
  margin: 4px 0 12px;
  font-size: 23px;
  line-height: 1.1;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vehicle-price,
.detail-price {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.vehicle-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.vehicle-link i {
  color: var(--orange-dark);
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed #bdbdb6;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.empty-state > i {
  color: var(--orange);
  font-size: 44px;
}

.empty-state h3 {
  margin-bottom: 4px;
}

.empty-state p {
  margin-top: 0;
  color: var(--muted);
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 8px;
}

.about-section {
  background: var(--black);
  color: #fff;
}

.about-section p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.about-section p {
  color: rgba(255, 255, 255, 0.72);
}

.about-mark {
  color: var(--orange);
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 950;
  line-height: 0.8;
}

.contact-section {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: #fff;
}

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

.vehicle-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

.detail-gallery {
  align-self: start;
  overflow: hidden;
}

.detail-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #e8e8e4;
  touch-action: pan-y;
}

.detail-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 260ms ease;
}

.detail-stage > img.is-changing {
  opacity: 0.35;
  transform: scale(1.008);
}

.gallery-arrow,
.thumb-arrow {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  background: rgba(1, 1, 1, 0.76);
  color: #fff;
  font-size: 20px;
}

.gallery-arrow:hover,
.thumb-arrow:hover {
  background: var(--orange);
  color: var(--black);
}

.gallery-arrow.previous {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(1, 1, 1, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.thumb-shell {
  position: relative;
  padding: 10px 48px;
  border-top: 1px solid var(--line);
}

.thumb-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.thumb-track::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex: 0 0 92px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #ededeb;
  cursor: pointer;
  opacity: 0.62;
  scroll-snap-align: center;
}

.gallery-thumb.active {
  border-color: var(--orange);
  opacity: 1;
}

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

.thumb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  background: var(--black);
  color: #fff;
}

.thumb-arrow.previous {
  left: 8px;
}

.thumb-arrow.next {
  right: 8px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.detail-status {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf8f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.detail-content h1 {
  margin: 22px 0 6px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.detail-summary,
.vehicle-notes {
  color: var(--muted);
}

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

.spec-grid span {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafaf8;
}

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

.spec-grid small {
  color: var(--muted);
  font-weight: 800;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.item-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1d8;
  color: #744600;
  font-size: 13px;
  font-weight: 850;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #13aa52;
  color: #fff;
  box-shadow: 0 14px 30px rgba(19, 170, 82, 0.32);
  font-size: 27px;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 34px 20px;
  background: var(--black);
  color: #fff;
  text-align: center;
}

.site-footer > img {
  width: min(270px, 70vw);
  max-height: 64px;
  object-fit: contain;
}

.site-footer > span {
  color: rgba(255, 255, 255, 0.62);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.offline-page,
.error-page {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  background: var(--black);
  color: #fff;
  text-align: center;
}

.offline-page img {
  width: min(720px, 90vw);
}

.error-page > span {
  color: var(--orange);
  font-size: 72px;
  font-weight: 950;
}

.error-page h1,
.error-page p {
  margin: 0;
}

@media (max-width: 1000px) {
  body {
    padding-top: 76px;
  }

  .site-header {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 0 14px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-brand {
    grid-column: 2;
    width: min(260px, 52vw);
    padding: 7px 10px;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 14px 18px;
    border-bottom: 1px solid rgba(249, 153, 0, 0.3);
    background: var(--black);
  }

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

  .site-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-social {
    grid-column: 3;
  }

  .header-social a {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: calc(100svh - 76px);
    min-height: calc(100svh - 76px);
    padding-block: 44px;
  }

  .inventory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 48px;
  }

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

  .about-section {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .about-section p {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  body {
    padding-top: 68px;
  }

  .site-header {
    min-height: 68px;
  }

  .site-brand {
    width: min(200px, 55vw);
  }

  .site-brand img {
    max-height: 50px;
  }

  .header-social a:nth-child(n + 3) {
    display: none;
  }

  .site-nav {
    inset-block-start: 68px;
  }

  .hero {
    height: calc(100svh - 68px);
    min-height: calc(100svh - 68px);
    padding: 64px 18px 78px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-scroll {
    right: 18px;
    bottom: 18px;
  }

  .inventory-section {
    width: min(100% - 20px, 1240px);
    padding-block: 44px;
  }

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

  .section-heading > strong {
    padding-top: 24px;
    font-size: 13px;
  }

  .inventory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 10px;
  }

  .inventory-filters label > span {
    font-size: 10px;
  }

  .inventory-filters input,
  .inventory-filters select {
    height: 44px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .filter-submit,
  .filter-clear {
    width: 100%;
    height: 42px;
  }

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

  .about-section,
  .contact-section {
    width: min(100% - 20px, 1240px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 20px;
  }

  .about-mark {
    font-size: 76px;
  }

  .contact-section .button {
    width: 100%;
  }

  .vehicle-detail {
    width: min(100% - 20px, 1240px);
    gap: 12px;
  }

  .detail-stage {
    aspect-ratio: 4 / 3;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .thumb-shell {
    padding-inline: 40px;
  }

  .gallery-thumb {
    flex-basis: 76px;
  }

  .detail-status {
    margin: 12px 0 0;
  }

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

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