:root {
  --black: #080808;
  --charcoal: #171717;
  --panel: #242424;
  --red: #ef1111;
  --red-dark: #bf0d0d;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --muted: #666666;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--white);
  color: var(--black);
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}

.top-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 16px;
  color: var(--white);
  background: #000;
  font-size: 0.92rem;
}

.top-bar a {
  text-decoration: none;
}

.nav-shell,
.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.brand-link img {
  width: min(330px, 58vw);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.menu-overlay {
  display: none;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.36)),
    url("https://i.ibb.co/3SpcfWn/Pngtree-detailed-3d-model-of-car-16185945.png") right center / contain no-repeat,
    var(--black);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
  padding: 64px 0;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin: 14px 0 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 16px;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 8px;
}

.hero-copy p {
  max-width: 660px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #eeeeee;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

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

.button-light {
  background: var(--white);
  color: var(--black);
}

.button-small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.inquiry-card,
.panel-card,
.product-card,
.review-card,
.contact-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inquiry-card {
  background: var(--white);
  color: var(--charcoal);
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(239, 17, 17, 0.38);
  outline-offset: 2px;
}

.section {
  padding: 72px 0;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-muted {
  background: #ececec;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-intro p,
.section-red .section-intro p {
  color: rgba(255, 255, 255, 0.84);
}

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

.panel-card,
.contact-card {
  background: var(--white);
  padding: 22px;
  color: var(--charcoal);
}

.panel-card strong {
  color: var(--red);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 14px;
  align-items: center;
}

.brand-strip img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid #e1e1e1;
  border-radius: var(--radius);
  padding: 10px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--white);
  color: var(--charcoal);
  padding: 20px;
}

.stars {
  color: var(--red);
  font-weight: 900;
  margin-bottom: 8px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 28px 0;
}

.results-count {
  font-weight: 800;
  color: var(--red);
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e3e3e3;
}

.product-image-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f2f2f2;
  cursor: pointer;
}

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

.product-card-body {
  padding: 18px;
}

.product-card p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-row,
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eeeeee;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-available {
  background: #dff6e4;
  color: #116424;
}

.status-stripping {
  background: #fff1cf;
  color: #744800;
}

.status-sold {
  background: #ffe1e1;
  color: #8a1111;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.page-button.is-active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px;
  background: var(--white);
  border-radius: var(--radius);
}

dialog {
  border: 0;
  border-radius: var(--radius);
  width: min(960px, calc(100% - 24px));
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  background: var(--black);
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.modal-gallery {
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
}

.modal-gallery img {
  width: 100%;
  border-radius: var(--radius);
}

dl {
  display: grid;
  gap: 10px;
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
}

.map-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #d8d8d8;
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

.site-footer {
  background: #000;
  color: var(--white);
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer img {
  width: 240px;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: #20b358;
  color: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero-grid,
  .modal-body,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.8)),
      url("https://i.ibb.co/3SpcfWn/Pngtree-detailed-3d-model-of-car-16185945.png") center bottom / contain no-repeat,
      var(--black);
  }

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

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

@media (max-width: 720px) {
  .top-bar {
    display: none;
  }

  .nav-shell {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 86px 18px 18px;
    background: var(--black);
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .menu-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section {
    padding: 46px 0;
  }

  .form-grid,
  .feature-grid,
  .contact-grid,
  .products-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 12px;
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
    text-align: center;
  }
}
