/* ---------- Tokens ---------- */
:root {
  --black: #0a0a0a;
  --dark: #121212;
  --dark-2: #1a1a1a;
  --red: #e21b1b;
  --red-dark: #a80f16;
  --red-glow: #ff3b3b;
  --gold: #ffc233;
  --white: #ffffff;
  --gray-050: #f6f6f7;
  --gray-100: #eceef0;
  --gray-300: #c7ccd1;
  --gray-500: #75808a;
  --gray-700: #3a4147;
  --font-display: "Anton", Impact, sans-serif;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(226, 27, 27, .6);
}
.btn-whats {
  background: #25d366;
  color: #06330f;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { border-radius: 50%; width: 46px; height: 46px; object-fit: cover; }
.logo-text {
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: .04em;
  font-size: 17px;
  text-transform: uppercase;
}
.logo-text strong { color: var(--red-glow); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--gray-300);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 500;
  transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--red); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 62px 0 96px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
  background-image: url("../assets/hero-banner.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero-rays {
  position: absolute;
  inset: -20% -20%;
  background: repeating-conic-gradient(
    from 0deg at 30% 50%,
    rgba(255, 60, 60, .12) 0deg 3deg,
    transparent 3deg 13deg
  );
  mix-blend-mode: screen;
  opacity: .7;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 620px; }
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(38px, 5.6vw, 62px);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.03;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.hero-title .highlight { color: var(--gold); text-shadow: 0 0 34px rgba(255,194,51,.45); }
.hero-sub {
  color: var(--gray-300);
  font-size: 17px;
  max-width: 470px;
  margin: 20px 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-300);
  font-size: 13.5px;
}
.hero-trust strong { color: #fff; font-weight: 600; }
.hero-trust svg { width: 20px; height: 20px; color: var(--red-glow); flex-shrink: 0; }

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--gray-050);
  padding: 0 0 40px;
}
.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px clamp(20px, 4vw, 40px);
  margin-top: -60px;
  position: relative;
  z-index: 3;
  border-top: 4px solid var(--red);
}
.search-card h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 22px;
  color: var(--black);
}
.search-card h2 { margin-bottom: 22px; }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 18px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
}
.field label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--gray-300); }
.field select {
  appearance: none;
  padding: 11px 36px 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  background: var(--gray-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2375808a' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}
.field select:focus { outline: 2px solid var(--red); outline-offset: 1px; }

.field-actions {
  flex-direction: row;
  gap: 12px;
}
.field-actions .btn { flex: 1; }

/* ---------- Vehicles grid ---------- */
.vehicles-section { padding: 56px 0 80px; background: var(--gray-050); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 24px;
  color: var(--black);
}
.result-count { color: var(--gray-500); font-size: 14px; }

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vehicle-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.vehicle-card { cursor: pointer; }
.vehicle-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -14px rgba(0,0,0,.4); }
.vehicle-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
}
.vehicle-photo { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo-empty {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(226,27,27,.18) 0%, transparent 62%),
    linear-gradient(135deg, var(--dark), #0c0c0c);
}
.vehicle-photo-empty img { width: 84px; height: 84px; opacity: .85; }
.vehicle-photo-empty span {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.vehicle-overlay-btn {
  position: absolute;
  left: 16px;
  bottom: -14px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 16px -6px rgba(226,27,27,.65);
}
.vehicle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.vehicle-badge.destaque { background: var(--gold); color: var(--black); }
.vehicle-body { padding: 26px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vehicle-title { font-family: var(--font-heading); font-size: 17px; color: var(--black); text-transform: uppercase; }
.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--gray-500);
}
.vehicle-specs span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--gray-300); }
.vehicle-resumo { font-size: 13.5px; color: var(--gray-500); flex: 1; }
.vehicle-price {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--red);
  font-weight: 600;
}
.vehicle-cta { margin-top: 4px; display: flex; gap: 10px; }
.vehicle-cta .btn { flex: 1; padding: 10px 12px; font-size: 12px; }

.no-results {
  text-align: center;
  color: var(--gray-500);
  padding: 40px 0;
}
.no-results button {
  background: none;
  border: none;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ---------- Modal de detalhes ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,.75);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-panel {
  background: #fff;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.modal-media {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}
.modal-media .vehicle-photo { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.modal-content h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--black);
  font-size: 21px;
  margin: 4px 0 0;
}
.modal-price { font-family: var(--font-heading); color: var(--red); font-size: 25px; font-weight: 600; margin: 0; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 13.5px; }
.modal-specs div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--gray-100); padding-bottom: 6px; gap: 8px; }
.modal-specs span:first-child { color: var(--gray-500); }
.modal-specs span:last-child { font-weight: 600; color: var(--black); text-align: right; }
.modal-desc { color: var(--gray-500); font-size: 14px; margin: 0; }
.modal-opcionais { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.modal-opcionais span {
  background: var(--gray-050);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--gray-700);
}

/* ---------- Diferenciais ---------- */
.diferenciais {
  position: relative;
  background: var(--black);
  padding: 90px 0;
  overflow: hidden;
}
.hex-pattern {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(0deg, rgba(226,27,27,.15) 0 2px, transparent 2px 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'%3E%3Cpath d='M28 0 56 15 56 45 28 60 0 45 0 15Z'/%3E%3Cpath d='M28 60 56 75 56 105 28 120 0 105 0 75Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 3px, 56px 100px;
  background-position: top left, center;
  background-repeat: no-repeat, repeat;
}
.diferenciais::before,
.diferenciais::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: repeating-linear-gradient(115deg, var(--red) 0 22px, transparent 22px 44px);
  opacity: .85;
}
.diferenciais::before { top: 0; }
.diferenciais::after { bottom: 0; }
.diferenciais .container { position: relative; z-index: 2; }
.section-title-light {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 46px;
}
.section-title-light .highlight { color: var(--gold); }
.diferenciais .section-title-light { margin-bottom: 10px; }
.section-sub-light {
  color: var(--gray-300);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 15.5px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.diff-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 3px solid var(--red);
}
.diff-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(226,27,27,.16);
  color: var(--red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.diff-icon svg { width: 21px; height: 21px; }
.diff-card h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15.5px;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 8px;
}
.diff-card p { color: var(--gray-300); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---------- Faixa de CTA final ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  padding: 44px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 27px);
  margin-bottom: 6px;
}
.cta-band p { color: rgba(255,255,255,.88); margin: 0; font-size: 15px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: #050505; border-top: 3px solid var(--red); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 40px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--gray-500); font-size: 13.5px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }

.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--gray-300); font-size: 13.5px; }
.footer-nav a:hover { color: #fff; }

.footer-col p {
  color: var(--gray-300);
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.footer-col p svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--red-glow); }
.footer-col p a:hover, .footer-bottom-inner a:hover { color: #fff; }
.footer-bottom-inner a { color: var(--gray-300); }
.estado-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.estado-badges span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .04em;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  color: var(--gray-500);
  font-size: 12.5px;
}
.footer-bottom-inner p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-content { max-width: 100%; }
  .hero-bg { background-position: 74% center; }
  .filters-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .modal-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 65px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 18px 20px; gap: 4px; transform: translateY(-130%); transition: transform .2s ease; border-bottom: 3px solid var(--red); }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero { padding: 300px 0 56px; min-height: 0; }
  .hero-bg {
    background-position: 62% top;
    background-size: 190% auto;
  }
  /* no celular a arte fica no topo e o texto sobre a área escurecida */
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.55) 30%, rgba(10,10,10,.94) 46%, var(--black) 60%);
  }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-sub { font-size: 15.5px; }
  .hero-cta .btn { flex: 1; min-width: 100%; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-trust li { font-size: 13.5px; }
  .filters-grid { grid-template-columns: 1fr; }
  .field-actions { flex-direction: row; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .footer-bottom-inner { flex-direction: column; }
  .modal-media { min-height: 160px; }
}

@media (max-width: 760px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
}
