:root {
  /* paleta da marca: preto, azul-marinho fluorescente, laranja */
  --bg: #050a16;           /* preto-azulado */
  --bg-2: #0a1c3d;         /* navy */
  --ink: #0a1020;          /* texto quase preto */
  --muted: #5b6b7f;
  --line: #e6ebf2;
  --card: #ffffff;
  --brand: #f1571f;        /* laranja da logo */
  --brand-2: #ff8a1e;      /* laranja claro (degradê) */
  --accent: #123a8a;       /* azul-marinho */
  --accent-2: #2f6bff;     /* azul fluorescente (realce) */
  --ok: #1f9d55;
  --soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(5, 12, 30, .12);
  --shadow-sm: 0 2px 10px rgba(5, 12, 30, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #000;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brand-2);
  box-shadow: 0 2px 14px rgba(255, 138, 30, .45);
}
.site-header .nav nav a { color: #d6deea; }
.site-header .nav nav a:hover { color: var(--brand-2); }
.site-header .brand-logo { background: transparent; padding: 0; }
.site-header .brand-logo img { height: 42px; }
.site-header .theme-btn { color: #fff; border-color: rgba(255,255,255,.3); }
.site-header .theme-btn:hover { border-color: var(--brand-2); color: var(--brand-2); box-shadow: 0 0 10px rgba(255,138,30,.4); }
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.nav .logo img { height: 40px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
  font-size: 15px;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.dark { background: var(--accent); }
.btn.wide { width: 100%; justify-content: center; }
.menu-toggle { display: none; }

/* official logo on dark chip (logo art is white-on-dark) */
.brand-logo { display: inline-flex; align-items: center; background: #0d1b2a; border-radius: 10px; padding: 7px 13px; line-height: 0; }
.brand-logo img { height: 28px; display: block; width: auto; }
.admin-top .brand-logo img { height: 26px; }
.login-card .brand-logo { display: inline-flex; }
.login-card .brand-logo img { height: 34px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  background: var(--bg) url("../img/hero.png") center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,27,42,.86) 0%, rgba(13,27,42,.66) 42%, rgba(13,27,42,.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 60px 0; }

/* ---- Parallax home: facade fixed in back, page scrolls over ---- */
.facade-bg {
  position: fixed; inset: 0; z-index: -2;
  background: var(--bg) url("../img/hero.png") center/cover no-repeat;
}
.facade-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.55) 0%, rgba(13,27,42,.35) 45%, rgba(13,27,42,.78) 100%);
}
body[data-page="home"] { background: transparent; }
body[data-page="home"] .hero {
  background: transparent; min-height: 100vh;
  flex-direction: column; justify-content: center; align-items: stretch;
}
/* bloco de texto: 15% à esquerda */
body[data-page="home"] .hero-copy { transform: translateX(-15%); }
/* painel de números: centralizado, logo abaixo (visível ao entrar) */
body[data-page="home"] .hero-stats-wrap { margin-top: 22px; }
.hero-stats { margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) {
  body[data-page="home"] .hero-copy { transform: none; }
}
body[data-page="home"] .hero::after { display: none; }
/* opaque sheet that runs over the fixed facade */
.page-sheet {
  position: relative; z-index: 3;
  background: var(--soft);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 50px rgba(13, 27, 42, .35);
  padding-top: 28px;
}
body[data-page="home"] .stats { margin-top: 0; }
.hero h1 { font-size: clamp(30px, 4vw, 52px); margin: 0 0 14px; line-height: 1.08; max-width: 720px; }
.hero p { font-size: clamp(16px, 1.6vw, 20px); color: #d6deea; max-width: 560px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: #fff; }

/* search bar on hero */
.search-bar {
  margin-top: 30px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: grid;
  grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; max-width: 880px;
}
.search-bar select, .search-bar input {
  padding: 12px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink); background: #fff; width: 100%;
}

/* ---- Stat strip ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: -40px auto 0; position: relative; z-index: 5;
}
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; text-align: center;
}
.stat b { display: block; font-size: 26px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Audience cards ---- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud-card {
  border-radius: var(--radius); padding: 30px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.aud-card.sell { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.aud-card h3 { margin: 0 0 10px; font-size: 22px; }
.aud-card ul { margin: 14px 0 22px; padding-left: 18px; }
.aud-card li { margin-bottom: 6px; }

/* ---- Vehicle grid (compact) ---- */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .badge {
  position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 999px;
}
.card .body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .body h3 { margin: 0; font-size: 14.5px; line-height: 1.2; }
.card .ver { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.card .specs span {
  font-size: 11px; color: var(--accent); background: var(--soft);
  padding: 2px 7px; border-radius: 999px;
}
.card .price-row { margin-top: auto; }
.card .fipe { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.card .price { font-size: 18px; font-weight: 800; color: var(--ink); }
.card .save { font-size: 11px; color: var(--ok); font-weight: 700; }
.card .loc { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Filters (estoque) ---- */
.estoque-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.filters {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 84px;
}
.filters h4 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.filters .group { margin-bottom: 18px; }
.filters label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.filters select, .filters input {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-weight: 600; }
.toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-left: auto; }

/* ---- Vehicle detail ---- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.gallery { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.gallery .main { aspect-ratio: 16/10; background: var(--bg-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
.gallery .strip img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: pointer; }
.detail-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: sticky; top: 84px; }
.detail-card h1 { font-size: 26px; margin: 0 0 4px; }
.detail-card .ver { color: var(--muted); margin-bottom: 14px; }
.detail-card .fipe { color: var(--muted); text-decoration: line-through; }
.detail-card .price { font-size: 34px; font-weight: 800; }
.detail-card .save { color: var(--ok); font-weight: 700; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); }
.spec-table td:last-child { text-align: right; font-weight: 600; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt-list span { font-size: 13px; background: var(--soft); color: var(--accent); padding: 5px 11px; border-radius: 999px; }
.desc-box { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 24px; }

.pill-warn { display: inline-block; background: #fff3e0; color: #b35900; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--accent), #0d1b2a); color: #fff; text-align: center; border-radius: var(--radius); padding: 44px; }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.cta-band p { color: #cdd8e8; margin: 0 0 22px; }

/* ---- Footer ---- */
.site-footer { background: var(--bg); color: #b9c5d6; padding: 48px 0 28px; margin-top: 40px; }
.footer-map {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px;
  padding-bottom: 34px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 300px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(.2); }
.contact-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; }
.contact-card h4 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.contact-card .addr { color: #d6deea; margin: 0 0 16px; font-weight: 600; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.contact-list li span:first-child { color: #8aa0bb; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--brand-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer a { display: block; color: #b9c5d6; font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #7e8da0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---- Sold state ---- */
.sold-tag {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: #0d1b2a; color: #fff; font-weight: 800; font-size: 12px;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.25);
}
.card.is-sold .thumb img { filter: grayscale(.85) brightness(.8); }
.card.is-sold .thumb::after {
  content: "VENDIDO"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 22px; letter-spacing: .15em;
  background: rgba(13,27,42,.42); text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.detail-sold { top: 14px; right: 14px; font-size: 14px; padding: 7px 14px; }
.sold-banner {
  background: #0d1b2a; color: #fff; text-align: center; font-weight: 800;
  padding: 13px; border-radius: 12px; margin: 8px 0;
}

/* ---- Admin ---- */
.admin-body { background: #eef2f7; }
.admin-shell { width: min(1280px, 95%); margin: 0 auto; padding: 24px 0 60px; }
.admin-top {
  display: flex; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-top img { height: 34px; }
.admin-top .tag { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.admin-top .spacer { margin-left: auto; }
.admin-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
}
.admin-bar input, .admin-bar select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff;
}
.admin-bar .grow { flex: 1; min-width: 200px; }
.admin-stats { display: flex; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.admin-table th { background: var(--soft); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.admin-table tr:hover td { background: #fafcff; }
.admin-table .thumb-sm { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.admin-table .row-sold td { opacity: .6; }
.chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.chip.ok { background: #e3f6ec; color: var(--ok); }
.chip.sold { background: #fdecea; color: #c0392b; }
.chip.draft { background: #fff3e0; color: #b35900; }
.icon-btn.pub { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.icon-btn.pub:hover { background: var(--ok); color: #fff; }

/* guided drawer */
.ad-banner { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-banner.draft { background: #fff3e0; color: #8a5200; }
.ad-banner.live { background: #e3f6ec; color: #1f7a4d; }
.ad-banner.sold { background: #fdecea; color: #a23022; }
.ad-banner .pub-btn { margin-left: auto; background: var(--ok); padding: 9px 16px; }
.ad-banner .pub-btn:disabled { background: #b9c5d6; cursor: not-allowed; transform: none; }
.sec-head { display: flex; align-items: center; gap: 9px; margin: 22px 0 12px; font-weight: 800; font-size: 15px; color: var(--ink); }
.sec-head:first-of-type { margin-top: 4px; }
.sec-head .sec-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.sec-head small { font-weight: 500; color: var(--muted); margin-left: auto; font-size: 12px; }
.field label.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink); }
.field label.chk input { width: auto; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 6px; }
.check-grid .chk { font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; }
.opt-pick-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.opt-pick {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  transition: all .12s ease; font-family: inherit;
}
.opt-pick:hover { border-color: var(--accent); }
.opt-pick.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.opt-pick.on::before { content: "✓ "; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: #c0392b; color: #c0392b; }

/* login */
.login-card {
  max-width: 380px; margin: 12vh auto; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.login-card img { height: 40px; margin-bottom: 18px; }
.login-card h2 { margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; font-size: 15px; }
.login-card .err { color: #c0392b; font-size: 13px; min-height: 18px; margin-bottom: 6px; }

/* drawer (edit) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13,27,42,.5); z-index: 90; display: none; }
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 96%);
  background: #fff; z-index: 91; box-shadow: -10px 0 40px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-head .close { margin-left: auto; }
.drawer-body { padding: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 8px; }
.photo-cell { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .px { position: absolute; top: 3px; right: 3px; background: rgba(13,27,42,.8); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 11px; padding: 2px 6px; }
.photo-cell .cover-btn { position: absolute; bottom: 3px; left: 3px; background: rgba(255,255,255,.9); border: none; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 700; padding: 2px 6px; }
.photo-cell.is-cover { outline: 2px solid var(--brand); }
.upload-zone {
  border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center;
  color: var(--muted); cursor: pointer; font-size: 14px; margin-top: 10px;
}
.upload-zone:hover { border-color: var(--brand); color: var(--brand); }
.drawer-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0d1b2a; color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 100; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (max-width: 720px) {
  .admin-table .hide-sm { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .estoque-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
}

/* ============ FUTURISTA ============ */
/* glow nos botões */
.btn { position: relative; }
.btn:not(.ghost):hover { box-shadow: 0 6px 22px rgba(241,87,31,.45), 0 0 0 1px rgba(255,138,30,.4); }
.btn.dark:hover { box-shadow: 0 6px 22px rgba(47,107,255,.5), 0 0 0 1px rgba(47,107,255,.5); }

/* texto degradê animado */
.grad-text {
  background: linear-gradient(90deg, #ff8a1e, #2f6bff, #ff8a1e);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradslide 5s linear infinite;
}
@keyframes gradslide { to { background-position: 200% center; } }

/* card neon hover */
.veh-grid .card { position: relative; }
.veh-grid .card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(47,107,255,.20), 0 0 0 1px var(--accent-2);
}
.card .thumb img { transition: transform .4s ease; }
.veh-grid .card:hover .thumb img { transform: scale(1.06); }

/* favoritar ♥ */
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(5,10,22,.55); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); font-size: 15px; line-height: 1;
  transition: transform .15s ease, color .15s ease, box-shadow .15s ease;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.on { color: #ff3b5c; border-color: #ff3b5c; box-shadow: 0 0 12px rgba(255,59,92,.6); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* stat number glow */
.stat b { text-shadow: 0 0 18px rgba(241,87,31,.35); }

/* glass na search bar do hero */
.search-bar { border: 1px solid rgba(255,255,255,.12); }

/* toolbar fav toggle */
.fav-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.fav-toggle.on { border-color: #ff3b5c; color: #ff3b5c; box-shadow: 0 0 10px rgba(255,59,92,.25); }

/* botões flutuantes */
.fab-stack { position: fixed; right: 20px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 24px; cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.3); transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab.wa { background: #25d366; box-shadow: 0 8px 26px rgba(37,211,102,.5); }
.fab.top { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 26px rgba(47,107,255,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .15s ease; }
.fab.top.show { opacity: 1; pointer-events: auto; }

/* simulador de financiamento */
.sim {
  margin-top: 24px; background: linear-gradient(150deg, #071226, #0a1c3d);
  color: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(47,107,255,.3); box-shadow: 0 0 30px rgba(47,107,255,.12) inset;
}
.sim h3 { margin: 0 0 4px; font-size: 19px; }
.sim .sub { color: #9fb3d4; font-size: 13px; margin-bottom: 18px; }
.sim .row { margin-bottom: 16px; }
.sim .row .lab { display: flex; justify-content: space-between; font-size: 13px; color: #c7d6ef; margin-bottom: 7px; }
.sim .row .lab b { color: #fff; }
.sim input[type=range] { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); outline: none; }
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-2); cursor: pointer; box-shadow: 0 0 10px rgba(47,107,255,.8); border: 2px solid #fff; }
.sim .result { background: rgba(255,255,255,.06); border-radius: 12px; padding: 16px; text-align: center; margin-top: 8px; }
.sim .result .big { font-size: 30px; font-weight: 800; color: #fff; }
.sim .result .big span { color: var(--brand-2); }
.sim .result small { color: #9fb3d4; display: block; margin-top: 4px; }
.sim .disc { font-size: 11px; color: #7e93b5; margin-top: 12px; }

/* ============ DARK MODE ============ */
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: 17px; display: grid; place-items: center;
  color: var(--ink); transition: .15s ease;
}
.theme-btn:hover { border-color: var(--accent-2); color: var(--accent-2); box-shadow: 0 0 10px rgba(47,107,255,.3); }

html[data-theme="dark"] {
  --soft: #0a1424; --card: #0f1d36; --ink: #e7eef9; --line: #21314e; --muted: #93a6c2;
  --shadow: 0 8px 30px rgba(0,0,0,.5); --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
}
html[data-theme="dark"] body { background: var(--soft); }
html[data-theme="dark"] .site-header { background: rgba(8,16,30,.88); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav nav a { color: var(--muted); }
html[data-theme="dark"] .search-bar,
html[data-theme="dark"] .search-bar select, html[data-theme="dark"] .search-bar input,
html[data-theme="dark"] .filters select, html[data-theme="dark"] .filters input,
html[data-theme="dark"] .toolbar select, html[data-theme="dark"] .fav-toggle {
  background: var(--card); color: var(--ink); border-color: var(--line);
}
html[data-theme="dark"] .card .specs span { background: #14233f; color: #9fc0ff; }
html[data-theme="dark"] .card .price { color: #fff; }
html[data-theme="dark"] .panel { background: var(--card); }
html[data-theme="dark"] .section-head h2 { color: var(--ink); }
html[data-theme="dark"] .pill-warn { background: #2a2010; color: #ffc27a; }
html[data-theme="dark"] .opt-list span { background: #14233f; color: #9fc0ff; }
html[data-theme="dark"] .spec-table td { border-color: var(--line); }

/* ============ COMPARADOR ============ */
.cmp-btn {
  position: absolute; top: 8px; right: 46px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(5,10,22,.55); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); font-size: 15px; line-height: 1; transition: .15s ease;
}
.cmp-btn:hover { transform: scale(1.15); }
.cmp-btn.on { color: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 12px rgba(47,107,255,.7); }

.cmp-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 85; background: #0c1830; color: #fff; border: 1px solid rgba(47,107,255,.4);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: 94vw;
}
.cmp-bar.show { transform: translateX(-50%) translateY(0); }
.cmp-bar .thumbs { display: flex; gap: 8px; }
.cmp-bar .thumbs .ct { position: relative; width: 56px; height: 42px; border-radius: 7px; overflow: hidden; background: var(--bg-2); border: 1px solid rgba(255,255,255,.15); }
.cmp-bar .thumbs .ct img { width: 100%; height: 100%; object-fit: cover; }
.cmp-bar .thumbs .ct b { position: absolute; top: -1px; right: -1px; background: #ff3b5c; color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; cursor: pointer; }
.cmp-bar .cmp-go { background: var(--accent-2); white-space: nowrap; }
.cmp-bar .cmp-clear { background: transparent; border: none; color: #9fb3d4; cursor: pointer; font-size: 13px; }

.cmp-modal { position: fixed; inset: 0; z-index: 95; background: rgba(5,10,22,.7); backdrop-filter: blur(4px); display: none; padding: 4vh 3vw; overflow: auto; }
.cmp-modal.open { display: block; }
.cmp-panel { max-width: 1000px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cmp-panel .ch { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cmp-panel .ch h3 { margin: 0; font-size: 19px; }
.cmp-panel .ch .x { margin-left: auto; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.cmp-table thead th { background: var(--soft); }
.cmp-table .veh-head img { width: 100%; max-width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.cmp-table td.lbl { color: var(--muted); font-weight: 600; white-space: nowrap; }
.cmp-table .best { color: var(--ok); font-weight: 800; }
@media (max-width: 640px) { .cmp-table th, .cmp-table td { padding: 8px; font-size: 12px; } .cmp-bar .cmp-clear { display: none; } }

/* WhatsApp FAB com rótulo expansível */
.fab.wa {
  width: auto; padding: 0; border-radius: 32px; overflow: hidden;
  display: inline-flex; align-items: center; max-width: 54px;
  transition: max-width .35s cubic-bezier(.2,.8,.2,1), transform .15s ease, box-shadow .15s ease;
}
.fab.wa .fab-ico { width: 54px; height: 54px; display: grid; place-items: center; flex: none; }
.fab.wa .fab-label { white-space: nowrap; font-size: 15px; font-weight: 700; padding-right: 20px; opacity: 0; transition: opacity .25s ease; }
.fab.wa:hover { max-width: 240px; }
.fab.wa:hover .fab-label { opacity: 1; }
/* hint pulse to invite first interaction */
@keyframes waPulse { 0%,100% { box-shadow: 0 8px 26px rgba(37,211,102,.5); } 50% { box-shadow: 0 8px 26px rgba(37,211,102,.5), 0 0 0 10px rgba(37,211,102,.12); } }
.fab.wa { animation: waPulse 2.4s ease-in-out infinite; }
.fab.wa:hover { animation: none; }

/* ============ HERO CABEÇALHO INOVADOR ============ */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,138,30,.45);
  color: #ffd9b0; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  backdrop-filter: blur(6px); box-shadow: 0 0 20px rgba(255,138,30,.2);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }
.hero-title {
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
  letter-spacing: -.5px;
}
.hero-title .grad-text {
  filter: drop-shadow(0 0 18px rgba(255,138,30,.5));
  font-weight: 900;
}

/* ============ STATS BAND (rodapé da home) ============ */
.stats-band { background: var(--card); border-top: 1px solid var(--line); }
html[data-theme="dark"] .stats-band { background: var(--card); }
.stats-band .stats { margin: 0; }
.stats-band .stat {
  background: linear-gradient(160deg, #0c1830, #07101f);
  border: 1px solid rgba(47,107,255,.28); color: #fff;
  position: relative; overflow: hidden;
}
.stats-band .stat::before {
  content: ""; position: absolute; top: -40%; left: -40%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(255,138,30,.18), transparent 70%);
}
.stats-band .stat b { font-size: 34px; color: var(--brand-2); text-shadow: 0 0 22px rgba(255,138,30,.5); }
.stats-band .stat span { color: #9fb3d4; position: relative; }

/* ============ HERO STATS (painel embaixo da busca, oscilando) ============ */
.hero-stats { margin-top: 22px; max-width: 880px; }
.hero-stats .stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-stats .stat span { color: #dce6f5; }
.hero-stats .stat b { font-size: clamp(24px, 3vw, 32px); }

/* número oscilando + alternando cor (igual destaque do título) */
.osc {
  background: linear-gradient(90deg, #ff8a1e, #2f6bff, #ff3b5c, #ff8a1e);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: oscColor 4.5s linear infinite, oscFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255,138,30,.4));
}
@keyframes oscColor { to { background-position: 300% center; } }
@keyframes oscFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero-stats .stat:nth-child(2) .osc { animation-delay: -.8s, -.5s; }
.hero-stats .stat:nth-child(3) .osc { animation-delay: -1.6s, -1s; }
.hero-stats .stat:nth-child(4) .osc { animation-delay: -2.4s, -1.5s; }

/* ============ SCROLL HINT (seta canto inferior esquerdo) ============ */
.scroll-hint {
  position: absolute; left: 4%; bottom: 80px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-weight: 800; font-size: 15px; letter-spacing: .5px; cursor: pointer;
  text-align: center;
}
.scroll-hint .sh-arrow { font-size: 30px; line-height: .8; animation: oscColor 4.5s linear infinite, shBounce 1.6s ease-in-out infinite; }
.scroll-hint:hover { filter: brightness(1.15); }
@keyframes shBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (max-width: 640px) { .scroll-hint { left: 50%; transform: translateX(-50%); font-size: 13px; } }
