:root {
  --red: #d32d27;
  --red-dark: #b01f1b;
  --red-soft: rgba(211, 45, 39, 0.12);
  --black: #0c0c0e;
  --ink: #16161a;
  --muted: #6a6a74;
  --line: #e7e7ec;
  --bg: #f4f4f7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 12, 14, 0.1);
  --radius: 18px;
  --header: 78px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 52px;
  width: auto;
}

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

.nav a {
  color: #ececf1;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: #232328;
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #c8c8d0;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--red);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #232328;
  color: var(--white);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: var(--black);
  padding: 28px 22px;
  z-index: 35;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  background: var(--black);
  overflow: hidden;
  color: var(--white);
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.82) 0%, rgba(12, 12, 14, 0.35) 58%, rgba(12, 12, 14, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.15), rgba(12, 12, 14, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0c7c5;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.hero p.lead {
  max-width: 540px;
  margin: 22px 0 32px;
  color: #d8d8df;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kaiyi-badge {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.kaiyi-badge img {
  height: 36px;
  width: auto;
  filter: brightness(1.4);
}

.kaiyi-badge small {
  display: block;
  color: #bdbdc6;
  font-size: 0.78rem;
}

.slide-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.slide-dots button.active {
  background: var(--red);
  width: 22px;
  border-radius: 999px;
}

/* Stats */
.stats {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 0;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat span {
  color: #b8b8c2;
  font-size: 0.88rem;
}

.brands {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 0;
}

.brands-row img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

.brands-row img:hover {
  filter: none;
  opacity: 1;
}

/* Sections */
section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 em {
  color: var(--red);
  font-style: normal;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
}

/* About */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
}

.about-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--white);
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 230px;
}

.about-card b {
  color: var(--red);
}

.about-copy p {
  color: #3d3d46;
  margin-bottom: 16px;
}

.about-copy h3 {
  margin-top: 8px;
  color: var(--red);
  font-size: 1rem;
}

/* Cards / grids */
.cards-3,
.cards-5,
.vehicle-grid,
.accessories-grid,
.luxury-grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-5 {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #ececf1;
}

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

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.price {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 700;
}

.service-card img {
  height: 150px;
}

.service-card h3 {
  margin: 0;
}

/* Vehicles */
.vehicles {
  background: var(--bg);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}

.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

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

.vehicle-card.hidden {
  display: none;
}

.badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge.order {
  background: #ececf1;
  color: #44444c;
}

.vehicle-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.vehicle-card .btn {
  margin-top: auto;
  width: 100%;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.category {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  color: var(--white);
}

.category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.category span {
  position: absolute;
  inset: auto 16px 16px 16px;
  font-weight: 700;
  font-size: 1.2rem;
}

.category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

/* Luxury / accessories */
.luxury-grid {
  grid-template-columns: repeat(4, 1fr);
}

.accessories-grid {
  grid-template-columns: repeat(4, 1fr);
}

.accessory-card img {
  height: 150px;
  object-fit: cover;
}

/* Contact */
.contact {
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.82), rgba(12, 12, 14, 0.88)),
    url("../images/contact-bg.jpg") center/cover;
  color: var(--white);
}

.contact .kicker,
.contact h2 em {
  color: #ff8d88;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card,
form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 28px;
}

.contact-card p,
.contact-item {
  color: #d5d5dc;
}

.contact-item {
  display: block;
  margin: 14px 0;
}

.contact-item b {
  display: block;
  color: var(--white);
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 14, 0.35);
  color: var(--white);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--red);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.map-wrap {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* Footer */
.footer {
  background: var(--black);
  color: #cfcfd6;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin: 8px 0;
}

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

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.85rem;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 14, 0.72);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-box {
  width: min(720px, 100%);
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

.modal-box img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #111;
}

.modal-body {
  padding: 20px 22px 24px;
}

.swatches {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px #ccc;
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--red);
}

.swatch.red { background: #d32d27; }
.swatch.black { background: #111; }
.swatch.gray { background: #8b8b93; }
.swatch.white { background: #f4f4f4; }

/* Hidden language blocks */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="pt"] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="en"] span[data-lang="en"],
html[lang="en"] a[data-lang="en"],
html[lang="en"] button[data-lang="en"] { display: inline; }

@media (max-width: 980px) {
  .nav,
  .header .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .stats-grid,
  .about-grid,
  .cards-3,
  .cards-5,
  .vehicle-grid,
  .luxury-grid,
  .accessories-grid,
  .categories,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-5,
  .accessories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo img {
    height: 340px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .cards-5,
  .accessories-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 48px;
  }
}
