/* ==========================================
   RTV VEÍCULOS — SITE PÚBLICO
   Preto e dourado. Mobile primeiro, animações discretas
   (desligadas com prefers-reduced-motion).
   ========================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --gold: #d7b568;
  --gold-light: #f0d99b;
  --gold-deep: #a8843d;
  --text: #f5f2eb;
  --soft: #cdc9bf;
  --muted: #9d998f;
  --line: rgba(215, 181, 104, .22);
  --border: rgba(255, 255, 255, .08);
  --field-line: #36322a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --pad-x: clamp(18px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", system-ui, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
::selection { background: var(--gold); color: #17130b; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 0; }
[hidden] { display: none !important; }

/* ---------- Botões ---------- */
.btn { position: relative; overflow: hidden; min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #17130b; box-shadow: 0 10px 30px -12px rgba(215, 181, 104, .7); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(215, 181, 104, .85); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-outline { border-color: rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(215,181,104,.06); }
.btn-full { width: 100%; margin-top: 22px; }
.btn span[aria-hidden="true"] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden="true"] { transform: translate(2px, -2px); }
.btn svg { flex-shrink: 0; }

/* ---------- Cabeçalho ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad-x); background: rgba(10,10,10,.55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: height .35s var(--ease), background .35s, border-color .35s, box-shadow .35s; }
.topbar.is-scrolled { --header-h: 64px; height: 64px; background: rgba(10,10,10,.9); border-bottom-color: var(--border); box-shadow: 0 10px 30px -18px #000; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { color: var(--gold); font: 700 25px "Playfair Display", Georgia, serif; letter-spacing: -2px; border: 1px solid var(--gold); padding: 1px 8px; border-radius: 4px; transition: background .3s, color .3s; }
.brand:hover .brand-mark { background: var(--gold); color: #111; }
.brand-name { font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.brand-dot { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--gold-light); background: rgba(255,255,255,.05); }
.nav a.is-active { color: var(--gold-light); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #17130b; background: var(--gold); padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: background .2s, transform .2s; }
.header-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.header-cta svg { width: 18px; height: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; color: var(--text); border: 0; border-radius: 50%; }
.menu-toggle svg { display: block; }
.menu-toggle path { transition: d .3s; }

/* ---------- Abertura (hero) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; padding: 90px var(--pad-x) 120px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 70px); overflow: hidden; background: #0c0c0c; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; animation: hero-zoom 22s ease-in-out infinite alternate; transform-origin: 70% 50%; }
.hero-overlay { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 80% 20%, rgba(215,181,104,.18), transparent 55%),
  linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.8) 42%, rgba(5,5,5,.2) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-content > * { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .25s; }
.hero-content > :nth-child(3) { animation-delay: .4s; }
.hero-content > :nth-child(4) { animation-delay: .55s; }
.hero-content > :nth-child(5) { animation-delay: .7s; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 { font-size: clamp(44px, 6.6vw, 88px); margin-bottom: 22px; }
h1 em { position: relative; font-style: italic; color: var(--gold); white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .07em; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; animation: draw-line 1.1s 1s var(--ease) forwards; }
.hero-copy { max-width: 500px; color: var(--soft); font-size: clamp(16px, 1.4vw, 18px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 46px 0 0; padding: 0; color: var(--soft); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.hero-points li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2317130b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; z-index: 1; width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; transform: translateX(-50%); opacity: 0; animation: fade-in 1s 1.3s forwards; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; border-radius: 4px; background: var(--gold); transform: translateX(-50%); animation: scroll-dot 1.8s ease-in-out infinite; }

/* ---------- Seções ---------- */
.section { padding: clamp(70px, 9vw, 120px) var(--pad-x); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-intro { max-width: 46ch; color: var(--muted); font-size: 16px; margin-bottom: 4px; }

/* Revelar ao rolar (só para o que começa fora da tela) */
.reveal-ready { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

/* ---------- Estoque ---------- */
.inventory { background: var(--bg); }
.filters { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px; padding: 12px; border: 1px solid var(--border); background: linear-gradient(180deg, #151515, #111); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters input, .filters select, .inventory-meta select, .finance-card input, .finance-card select { width: 100%; min-width: 0; min-height: 48px; color: var(--text); background: #0b0b0b; border: 1px solid var(--field-line); border-radius: 12px; padding: 11px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.filters select, .finance-card select, .inventory-meta select { color-scheme: dark; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23d7b568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.filters input:hover, .filters select:hover, .finance-card input:hover, .finance-card select:hover { border-color: #4a4436; }
.filters select:focus-visible, .finance-card input:focus-visible, .finance-card select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,181,104,.18); }
.search-field { display: flex; align-items: center; gap: 8px; padding-left: 14px; border: 1px solid var(--field-line); border-radius: 12px; color: var(--muted); background: #0b0b0b; transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,181,104,.18); color: var(--gold); }
.search-field svg { flex-shrink: 0; }
.search-field input { border: 0; background: transparent; outline: none; padding-left: 4px; }
.filters .btn { min-height: 48px; padding: 10px 20px; border-radius: 12px; }
.inventory-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 26px 0 20px; }
.inventory-meta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inventory-meta label { display: inline-flex; align-items: center; gap: 8px; }
.inventory-meta select { width: auto; min-height: 40px; padding: 7px 36px 7px 12px; font-size: 14px; border-radius: 999px; }
#resultsCount { color: var(--soft); font-weight: 500; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: none; color: var(--text); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .2s; }
.text-button:hover, .text-button[aria-pressed="true"] { color: var(--gold-light); }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.car-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, #161616, #111); transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease); animation: card-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.car-card:hover { transform: translateY(-6px); border-color: rgba(215,181,104,.5); box-shadow: 0 30px 60px -25px rgba(0,0,0,.85), 0 0 0 1px rgba(215,181,104,.12); }
.car-image-wrap { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #1a1a1a; cursor: pointer; }
.car-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 65%, rgba(0,0,0,.55)); pointer-events: none; }
.car-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), opacity .35s; }
.car-card:hover .car-image { transform: scale(1.06); }
.car-image-wrap.no-photo { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #161616 0 14px, #131313 14px 28px); }
.car-image-wrap.no-photo::before { content: "Fotos em breve"; color: var(--muted); font-size: 14px; }
.car-tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(8,8,8,.72); border: 1px solid rgba(255,255,255,.16); color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .03em; backdrop-filter: blur(6px); }
.car-tag.is-reserved { background: var(--gold); color: #17130b; border-color: var(--gold); font-weight: 700; }
.car-photo-count { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(8,8,8,.72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); pointer-events: none; }
.car-photo-dots { position: absolute; left: 50%; bottom: 14px; z-index: 1; display: flex; gap: 5px; transform: translateX(-50%); pointer-events: none; }
.car-photo-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.car-photo-dots span.is-active { background: #fff; transform: scale(1.25); }
.card-nav { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(10,10,10,.65); color: #fff; transform: translateY(-50%); opacity: 0; transition: opacity .25s, background .2s; backdrop-filter: blur(4px); }
.card-nav:hover { background: var(--gold); color: #17130b; }
.card-nav.prev { left: 10px; }
.card-nav.next { right: 10px; }
.car-image-wrap:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
.favorite-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,8,8,.65); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 0; backdrop-filter: blur(6px); transition: transform .25s var(--ease), color .2s, border-color .2s; }
.favorite-btn:hover { transform: scale(1.08); }
.favorite-btn svg { display: block; }
.favorite-btn.active { color: var(--gold); border-color: var(--gold); animation: pop .4s var(--ease); }
.favorite-btn.active path { fill: currentColor; }
.car-info { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.car-brand { margin-bottom: 4px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.car-info h3 { margin-bottom: 14px; font: 600 23px/1.2 "Playfair Display", Georgia, serif; }
.car-info h3 small { display: block; margin-top: 3px; color: var(--muted); font: 400 14px/1.4 "DM Sans", sans-serif; }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.car-specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--soft); font-size: 13px; }
.car-specs svg { color: var(--gold); flex-shrink: 0; }
.car-price-row { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 18px; }
.car-price { font-size: 26px; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.car-price-label { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.card-actions { display: flex; gap: 8px; margin-top: 16px; }
.card-actions .btn { flex: 1; min-height: 46px; padding: 10px 12px; font-size: 14px; }
.compare-check { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 6px; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .2s; }
.compare-check:hover { color: var(--soft); }
.compare-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }

/* Carregando */
.card-skeleton { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: #131313; }
.card-skeleton::before { content: ""; display: block; aspect-ratio: 16 / 11; }
.card-skeleton::after { content: ""; display: block; height: 190px; }
.card-skeleton::before, .card-skeleton::after { background: linear-gradient(100deg, #151515 30%, #1f1f1f 50%, #151515 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
.card-skeleton::after { border-top: 1px solid #1c1c1c; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; border: 1px dashed var(--border); border-radius: var(--radius); }
.demo-note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.load-error { grid-column: 1 / -1; text-align: center; padding: 45px 10px; color: var(--muted); }

/* Comparação */
.compare-jump { position: sticky; bottom: 20px; z-index: 5; display: flex; width: fit-content; min-height: 46px; align-items: center; gap: 10px; margin: 24px 0 0 auto; padding: 10px 20px; border-radius: 999px; background: var(--gold); color: #17130b; font-size: 14px; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(0,0,0,.7); animation: fade-up .5s var(--ease); }
.compare-jump:hover { background: var(--gold-light); }
.compare-panel { margin-top: 36px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #121212; animation: fade-up .5s var(--ease); }
.compare-panel > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.compare-panel h3 { margin: 0; font: 600 24px "Playfair Display", Georgia, serif; }
.compare-panel p { color: var(--muted); font-size: 14px; }
.compare-panel > .btn { margin: 10px 0 18px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { min-width: 140px; padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #2a261e; }
.compare-table th { color: var(--text); font-weight: 600; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 0; background: #121212; color: var(--muted); font-weight: 500; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare-remove { display: block; min-height: 40px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 400; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.compare-remove:hover { color: var(--gold-light); }

/* ---------- Financiamento ---------- */
.finance { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 500px); align-items: center; gap: clamp(30px, 7vw, 110px); background: radial-gradient(ellipse at 10% 0%, rgba(215,181,104,.14), transparent 50%), linear-gradient(180deg, #12110d, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.finance-copy > p { max-width: 460px; color: var(--muted); font-size: 17px; margin-top: 22px; }
.finance-disclaimer { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; max-width: 460px; font-size: 14px; color: var(--muted); margin-top: 28px; background: rgba(215,181,104,.04); }
.finance-disclaimer::before { content: "i"; flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: italic 700 12px Georgia, serif; }
.finance-card { position: relative; background: linear-gradient(180deg, rgba(26,26,26,.9), rgba(17,17,17,.95)); border: 1px solid rgba(215,181,104,.25); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.finance-card h3 { font: 600 24px "Playfair Display", Georgia, serif; margin-bottom: 8px; }
.finance-card label { display: block; color: var(--soft); font-size: 14px; font-weight: 500; margin: 16px 0 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.finance-result { color: var(--muted); font-size: 14px; padding: 18px; margin-top: 16px; background: #0b0b0b; border: 1px solid #2a261e; border-radius: 14px; font-variant-numeric: tabular-nums; transition: border-color .3s; }
.finance-result:has(strong) { border-color: var(--line); animation: fade-up .45s var(--ease); }
.finance-result strong { display: block; color: var(--gold-light); font-size: 34px; letter-spacing: -.02em; margin: 3px 0; }
.finance-result small { display: block; margin-top: 8px; font-size: 13px; }
.finance-result .btn { width: 100%; margin-top: 16px; }
.field-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---------- Formulários de contato ---------- */
.lead-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.lead-section:nth-of-type(even) { background: var(--bg); }
.lead-section .section-heading { align-items: start; }
.lead-card { max-width: 820px; padding: clamp(22px, 3vw, 34px); background: linear-gradient(180deg, #161616, #121212); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-card label { display: block; color: var(--soft); font-size: 14px; font-weight: 500; margin: 16px 0 7px; }
.lead-card input:not([type="checkbox"]), .lead-card select, .lead-card textarea { width: 100%; min-width: 0; min-height: 48px; color: var(--text); background: #0b0b0b; border: 1px solid var(--field-line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.lead-card input:not([type="checkbox"]):focus-visible, .lead-card select:focus-visible, .lead-card textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,181,104,.18); }
.lead-card select { color-scheme: dark; }
.lead-card textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.form-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.consent { display: flex !important; align-items: flex-start; gap: 10px; line-height: 1.5; margin-top: 20px !important; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 12px; }

/* ---------- A loja ---------- */
.about { position: relative; display: grid; grid-template-columns: auto 1.2fr 1fr auto; align-items: center; gap: clamp(24px, 4vw, 50px); background: var(--bg); border-top: 1px solid var(--border); }
.about-emblem { width: 100px; height: 100px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 28px "Playfair Display", Georgia, serif; box-shadow: 0 0 0 10px rgba(215,181,104,.06), 0 0 60px -10px rgba(215,181,104,.35); }
.about > p { color: var(--muted); font-size: 16px; margin: 0; }
.about h2 { font-size: clamp(28px, 3.2vw, 40px); }

/* ---------- Contato e rodapé ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding-top: 50px; padding-bottom: 50px; border-top: 1px solid var(--border); background: var(--bg-2); }
.contact-strip > div { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #131313; transition: border-color .3s, transform .3s var(--ease); }
.contact-strip > div:hover { border-color: var(--line); transform: translateY(-3px); }
.contact-strip h3 { margin-bottom: 8px; color: var(--gold-light); font: 600 18px "Playfair Display", Georgia, serif; }
.contact-strip p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.contact-strip a:hover { color: var(--gold-light); }
.footer { border-top: 1px solid var(--border); padding: 34px var(--pad-x); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--soft); transition: color .2s; }
.social-links a:hover { color: var(--gold-light); }

/* ---------- Botões flutuantes ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); animation: fade-up .6s 1.2s var(--ease) both; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2.6s ease-out infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 27px; bottom: 90px; z-index: 30; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(15,15,15,.85); color: var(--gold); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #17130b; }
body:not(:has(.wa-float)) .to-top { bottom: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 40px); padding: 13px 20px; border-radius: 999px; background: var(--gold); color: #15120b; font-size: 14px; font-weight: 600; box-shadow: 0 12px 34px #0009; transform: translateX(-50%); animation: toast-in .4s var(--ease); }

/* ---------- Detalhes do veículo (estilo anúncio) ---------- */
.car-dialog { width: min(1180px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; overscroll-behavior: contain; background: #111; color: var(--text); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 120px -20px #000; }
.car-dialog[open] { animation: dialog-in .45s var(--ease); }
.car-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.car-dialog[open]::backdrop { animation: fade-in .3s ease-out; }
.dialog-close { position: sticky; top: 14px; float: right; z-index: 5; width: 44px; height: 44px; margin: 14px 14px -58px 0; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(10,10,10,.8); color: var(--text); font-size: 26px; line-height: 1; backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .25s var(--ease); }
.dialog-close:hover { background: var(--gold); color: #17130b; transform: rotate(90deg); }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-areas: "gallery aside" "main aside"; gap: 0 32px; padding: 28px; }
.dialog-gallery-area { grid-area: gallery; min-width: 0; }
.dialog-main { grid-area: main; min-width: 0; }
.dialog-aside { grid-area: aside; position: relative; }
.dialog-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.dialog-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, #181818, #141414); }
.dialog-meta { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dialog-card h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 4px; }
.dialog-version { margin: 0; color: var(--muted); font-size: 15px; }
.dialog-price { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.dialog-price span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dialog-price strong { display: block; color: var(--gold-light); font-size: clamp(30px, 3vw, 38px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dialog-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dialog-actions .btn { width: 100%; }
.dialog-actions .btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 30px -12px rgba(37,211,102,.7); }
.dialog-actions .btn-wa:hover { background: #2fe377; }
.dialog-trust { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.dialog-trust li { display: flex; gap: 10px; align-items: flex-start; }
.dialog-trust svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.dialog-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; }
.dialog-specs div { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #151515; color: var(--muted); font-size: 13px; }
.dialog-specs svg { flex-shrink: 0; color: var(--gold); }
.dialog-specs strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.dialog-section-title { margin: 28px 0 12px; font: 600 22px "Playfair Display", Georgia, serif; }
.dialog-details { color: var(--soft); font-size: 15px; white-space: pre-line; }
.dialog-report { margin-top: 24px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #141414; }
.dialog-report h3 { color: var(--text); font: 600 20px "Playfair Display", Georgia, serif; margin-bottom: 10px; }
.dialog-report > p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.dialog-report > p:last-child { margin-bottom: 0; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; color: var(--muted); font-size: 14px; }
.report-grid strong { display: block; color: var(--text); font-weight: 600; }
.reserved-note { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(215,181,104,.08); color: var(--gold-light); font-size: 14px; }
.dialog-mobile-bar { display: none; }

/* ---------- Animações ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes draw-line { to { transform: scaleX(1); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .about { grid-template-columns: auto 1fr; }
  .about > p, .about .btn { grid-column: 2; }
  .about .btn { justify-self: start; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; order: 3; margin-right: -8px; }
  .header-cta { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--pad-x) 18px; background: rgba(12,12,12,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); font-size: 17px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav a { padding: 13px 14px; border-radius: 12px; }
  .nav a.is-active::after { left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .dialog-layout { grid-template-columns: 1fr; grid-template-areas: "gallery" "aside" "main"; gap: 22px; padding: 22px; }
  .dialog-sticky { position: static; }
  .finance { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --header-h: 66px; }
  .topbar.is-scrolled { height: 60px; }
  .brand-mark { font-size: 22px; }
  .brand-name { font-size: 11px; letter-spacing: 2px; }
  .header-cta { padding: 9px 14px; font-size: 13px; }
  .cta-long { display: none; }
  .hero { min-height: 88svh; padding-bottom: 90px; }
  .hero-image { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,.75) 45%, var(--bg) 100%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { margin-top: 32px; }
  .hero-scroll { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; }
  .filters .btn, #brandFilter { grid-column: 1 / -1; }
  .filters select { font-size: 15px; padding-left: 12px; padding-right: 32px; background-position: right 10px center; }
  .inventory-meta { flex-direction: column; align-items: stretch; }
  .inventory-meta-actions { justify-content: space-between; }
  .car-grid { gap: 18px; }
  .card-nav { opacity: 1; width: 32px; height: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .report-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: left; }
  .about > p, .about .btn { grid-column: 1; }
  .about-emblem { width: 76px; height: 76px; font-size: 22px; }
  .compare-panel { padding: 18px; }
  .compare-table th, .compare-table td { min-width: 120px; padding: 10px 8px; }
  .compare-table th:first-child { min-width: 0; max-width: 110px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .to-top { right: 19px; bottom: 80px; }
  body:has(.compare-jump:not([hidden])) .toast { bottom: 84px; }

  /* Detalhes vira tela cheia, com barra de contato fixa embaixo */
  .car-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .car-dialog[open] { animation: sheet-in .45s var(--ease); }
  .dialog-close { top: 10px; margin: 10px 10px -54px 0; }
  .dialog-layout { padding: 0 0 100px; gap: 18px; }
  .dialog-gallery-area .rg-stage { border-radius: 0; }
  .dialog-gallery-area .rg-thumbs { padding: 0 14px 4px; }
  .dialog-main, .dialog-aside { padding: 0 18px; }
  .dialog-card { padding: 20px; }
  .dialog-actions { display: none; }
  .dialog-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14,14,14,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .dialog-mobile-bar .bar-price { flex: 1; min-width: 0; }
  .dialog-mobile-bar .bar-price span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
  .dialog-mobile-bar .bar-price strong { display: block; color: var(--gold-light); font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dialog-mobile-bar .btn { flex-shrink: 0; min-height: 46px; padding: 10px 18px; }
}
@media (max-width: 380px) {
  .filters { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-content > * { opacity: 1; }
  .reveal-ready { opacity: 1; transform: none; }
  .btn:hover, .car-card:hover, .car-card:hover .car-image { transform: none; }
}
