/* ============================================================
   DOUGLAS CAR — Estilo (preto/grafite + dourado + prata)
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --surface: #16161c;
  --surface-2: #1d1d24;
  --line: #2a2a33;
  --text: #f6f5f2;
  --muted: #9a9aa6;
  --muted-2: #6f6f7a;

  --gold: #d4af37;
  --gold-bright: #f4d97a;
  --gold-deep: #a9822a;
  --grad-gold: linear-gradient(135deg, #f4d97a 0%, #d4af37 45%, #a9822a 100%);
  --grad-silver: linear-gradient(135deg, #ffffff 0%, #cfd2d8 40%, #8b8e96 100%);

  --wa: #25d366;
  --wa-dark: #1ebe5a;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-gold: 0 14px 40px -14px rgba(212,175,55,.45);
  --maxw: 1200px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.i { display: inline-flex; align-items: center; justify-content: center; }
.i svg { width: 1.15em; height: 1.15em; }

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--grad-gold); color: #1a1400; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #04310f; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- Preloader (logo de entrada) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 30%, var(--surface) 0%, var(--bg) 70%);
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo {
  width: 158px; height: auto;
  filter: drop-shadow(0 0 30px rgba(212,175,55,.4));
  opacity: 0; transform: scale(.82);
  animation: preloaderLogoIn 1s cubic-bezier(.2,.8,.2,1) forwards .1s;
}
@keyframes preloaderLogoIn { to { opacity: 1; transform: scale(1); } }
.preloader-bar { width: 140px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--grad-gold); animation: preloaderBar 1.1s ease-in-out infinite; }
@keyframes preloaderBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
:root[data-theme="light"] .preloader { background: radial-gradient(120% 120% at 50% 30%, #ffffff 0%, #f0ede6 70%); }
@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; opacity: 1; transform: none; }
  .preloader-bar span { animation: none; width: 100%; }
  .preloader { transition: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s;
}
.header.scrolled { background: rgba(11,11,13,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 124px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 86px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
@media (min-width: 981px) {
  .header-inner .brand img { height: 100px; }
}
:root[data-theme="light"] .brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-txt b { font-size: 1.05rem; letter-spacing: 2px; }
.brand .brand-txt span { font-size: .62rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .93rem; color: var(--muted); font-weight: 500; position: relative; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-gold); transition: width .25s;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.header-phone svg { width: 17px; height: 17px; color: var(--gold); }

.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero (capa cinematográfica) ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding: 90px 0 60px; perspective: 1000px; }
.hero-bg { display: none; }
.hero-video {
  display: block; position: absolute; inset: -3%;
  width: 106%; height: 106%; object-fit: cover; object-position: center 38%;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.hero-overlay { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,11,13,.78) 20%, rgba(11,11,13,.38) 42%, rgba(11,11,13,.08) 68%, transparent 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 26%);
}
/* Camadas de profundidade (efeito 3D leve, sem libs externas) */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  will-change: transform; transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.hero-orb.o1 { width: 380px; height: 380px; top: -100px; right: 6%; background: var(--grad-gold); opacity: .28; animation: orbFloat1 17s ease-in-out infinite; }
.hero-orb.o2 { width: 280px; height: 280px; bottom: -80px; right: 26%; background: var(--grad-silver); opacity: .14; animation: orbFloat2 21s ease-in-out infinite; }
.hero-orb.o3 { width: 200px; height: 200px; top: 32%; right: 1%; background: var(--gold); opacity: .16; animation: orbFloat3 14s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-34px,26px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(28px,-22px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px,-18px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
  .hero-bg, .hero-video, .hero-orb { transition: none; }
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--muted);
  margin-bottom: 22px; background: rgba(255,255,255,.02);
}
.hero-badge b { color: var(--gold-bright); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -1px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero h1 span { display: block; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; margin: 20px 0 30px; max-width: 500px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat { display: flex; align-items: center; gap: 11px; }
.hero-stats .stat .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--gold);
}
.hero-stats .stat .ic svg { width: 20px; height: 20px; }
.hero-stats .stat b { display: block; font-size: .95rem; }
.hero-stats .stat span { font-size: .78rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3.2; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-glow { position: absolute; inset: -2px; border-radius: var(--radius-lg); background: var(--grad-gold); opacity: .5; filter: blur(30px); z-index: -1; }

/* ---------- Placeholder de foto de carro ---------- */
.car-photo {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, #23232c 0%, #131318 55%, #0d0d11 100%);
  display: grid; place-items: center; overflow: hidden;
}
.car-photo img.real { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.car-photo.has-img { background: radial-gradient(120% 90% at 50% 0%, #2a2a32 0%, #17171c 60%, #101014 100%); }
:root[data-theme="light"] .car-photo.has-img { background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f0ede6 100%); }
.car-photo .ph-car { width: 62%; max-width: 320px; color: #3a3a46; }
.car-photo .ph-car .accent { color: var(--gold); }
.car-photo .ph-label {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px;
}
.car-photo .ph-tag {
  padding: 4px 10px; border-radius: 999px; background: rgba(212,175,55,.12);
  color: var(--gold-bright); border: 1px solid rgba(212,175,55,.3); font-size: .68rem;
}
.car-photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/></svg>");
  pointer-events: none;
}

/* ---------- Barra de busca ---------- */
.searchbar { position: relative; margin-top: -10px; z-index: 5; }
.search-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding-left: 2px; }
.field select, .field input {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 12px; border-radius: 12px; font-family: inherit; font-size: .9rem;
  appearance: none; cursor: pointer; transition: border-color .2s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.field.select-wrap { position: relative; }
.field.select-wrap::after {
  content: ""; position: absolute; right: 14px; bottom: 17px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head .eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  font-weight: 600; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.head-row h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.head-row .eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.link-gold { color: var(--gold-bright); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.link-gold:hover { gap: 10px; transition: gap .2s; }

/* ---------- Faixa de marcas ---------- */
.brands-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; overflow: hidden; }
.marquee { display: flex; gap: 60px; width: max-content; animation: marquee 34s linear infinite; }
.brands-strip:hover .marquee { animation-play-state: paused; }
.marquee .brand-mark {
  display: flex; align-items: center; gap: 12px; color: #6a6a76; transition: color .3s;
  flex-shrink: 0;
}
.marquee .brand-mark:hover { color: var(--gold-bright); }
.marquee .brand-mark .blogo { width: 46px; height: 46px; }
.marquee .brand-mark span { font-weight: 600; letter-spacing: .5px; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filtro por marca (chips) ---------- */
.brand-filters-toggle { display: none; }
.brand-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: .88rem; font-weight: 500; cursor: pointer; transition: .2s;
}
.chip svg { width: 20px; height: 20px; }
.chip .blogo { width: 26px; height: 26px; border-radius: 7px; padding: 3px; box-shadow: none; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { color: #1a1400; background: var(--grad-gold); border-color: transparent; }
.chip.active svg { color: #1a1400; }

/* ---------- Grid de carros ---------- */
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.5); box-shadow: var(--shadow); }
.car-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.car-card .thumb .car-photo { transition: transform .5s; }
.car-card:hover .thumb .car-photo { transform: scale(1.05); }
.car-card .brand-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 42px; height: 42px;
}

/* Badge branco padrão pras logos das marcas */
.blogo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; padding: 6px;
  background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25);
  flex-shrink: 0; overflow: hidden;
}
.blogo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.car-card .brand-badge .blogo { width: 100%; height: 100%; }
.car-card .tag-new {
  position: absolute; top: 14px; right: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: var(--grad-gold); color: #1a1400; text-transform: uppercase; letter-spacing: .5px;
}
.car-card .body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-card .body h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.car-card .body .ver { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.car-card .specs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 2px; }
.car-card .specs .sp { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.car-card .specs .sp svg { width: 15px; height: 15px; color: var(--gold); }
.car-card .price-row { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.car-card .price { font-size: 1.35rem; font-weight: 700; }
.car-card .price small { display: block; font-size: .68rem; color: var(--muted); font-weight: 400; }
.car-card .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); transition: .25s; }
.car-card:hover .go { background: var(--grad-gold); color: #1a1400; border-color: transparent; }
.car-card .go svg { width: 17px; height: 17px; }

.no-results { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1/-1; }

/* ---------- Diferenciais ---------- */
.perks-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.perk { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .3s; }
.perk:hover { border-color: rgba(212,175,55,.5); transform: translateY(-4px); }
.perk .ic { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 15px; display: grid; place-items: center; background: rgba(212,175,55,.1); color: var(--gold); }
.perk .ic svg { width: 26px; height: 26px; }
.perk h4 { font-size: 1rem; margin-bottom: 6px; }
.perk p { font-size: .82rem; color: var(--muted); }

/* ---------- Depoimentos ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .3s; }
.review:hover { border-color: rgba(212,175,55,.4); transform: translateY(-4px); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.review p { color: var(--text); opacity: .92; font-size: .95rem; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; color: #1a1400; font-weight: 700; }
.review .who b { display: block; font-size: .9rem; }
.review .who span { font-size: .78rem; color: var(--muted); }

/* ---------- CTA financiamento ---------- */
.cta-fin { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 56px; border: 1px solid var(--line);
  background: linear-gradient(120deg, #16130a 0%, #0f0f13 55%);
}
.cta-fin::before { content: ""; position: absolute; right: -10%; top: -30%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(212,175,55,.22), transparent 65%); }
.cta-fin .inner { position: relative; max-width: 560px; }
.cta-fin .eyebrow { color: var(--gold); font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.cta-fin h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: 12px 0 14px; }
.cta-fin p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Localização / mapa ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.map-info { display: flex; flex-direction: column; justify-content: center; }
.map-info .info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.map-info .info-item:last-of-type { border-bottom: 0; }
.map-info .info-item .ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(212,175,55,.1); color: var(--gold); }
.map-info .info-item .ic svg { width: 20px; height: 20px; }
.map-info .info-item b { font-size: .95rem; }
.map-info .info-item span { color: var(--muted); font-size: .88rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer .brand img { height: 86px; }
.footer p.desc { color: var(--muted); font-size: .88rem; margin: 16px 0; max-width: 280px; }
.footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer ul li a:hover { color: var(--text); }
.footer .social { display: flex; gap: 12px; margin-top: 18px; }
.footer .social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: .25s; }
.footer .social a:hover { color: var(--gold-bright); border-color: var(--gold); transform: translateY(-3px); }
.footer .social a svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted-2); font-size: .82rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1; animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   PÁGINA DO ANÚNCIO (carro.html)
   ============================================================ */
.breadcrumb { padding: 22px 0; color: var(--muted); font-size: .85rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { color: var(--muted-2); }

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; padding-bottom: 40px; }
.gallery .main-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10.5; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery .thumbs .t { border-radius: 12px; overflow: hidden; aspect-ratio: 16/11; border: 1px solid var(--line); cursor: pointer; opacity: .6; transition: .2s; }
.gallery .thumbs .t.active, .gallery .thumbs .t:hover { opacity: 1; border-color: var(--gold); }

.detail-side { position: sticky; top: 100px; }
.detail-title { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.detail-title .brand-badge { width: 54px; height: 54px; flex-shrink: 0; }
.detail-title .brand-badge .blogo { width: 100%; height: 100%; border-radius: 13px; }
.preco-de { color: var(--muted); font-size: .95rem; text-decoration: line-through; margin-bottom: 2px; }
.detail-title h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.detail-side .ver { color: var(--muted); margin-bottom: 20px; }
.detail-price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.detail-price .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.detail-price .val { font-size: 2.3rem; font-weight: 700; margin: 4px 0 18px; }
.detail-price .btn { margin-bottom: 10px; }
.detail-price .fin-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; }

.quick-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.quick-specs .qs { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.quick-specs .qs .ic { color: var(--gold); }
.quick-specs .qs .ic svg { width: 22px; height: 22px; }
.quick-specs .qs span { font-size: .74rem; color: var(--muted); display: block; }
.quick-specs .qs b { font-size: .92rem; }

.detail-block { margin-top: 40px; }
.detail-block h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.detail-block h2::before { content: ""; width: 4px; height: 22px; background: var(--grad-gold); border-radius: 2px; }
.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-table .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table .row span { color: var(--muted); }
.spec-table .row b { font-weight: 600; }
.opcionais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opcionais .op { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.opcionais .op svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.desc-text { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 780px; }

/* ---------- Botão de alternar tema (claro/escuro) ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--gold);
  display: grid; place-items: center; cursor: pointer; transition: .25s;
}
.theme-toggle:hover { border-color: var(--gold); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }

/* ============================================================
   TEMA CLARO — "versão branca com fundo branco"
   ============================================================ */
:root[data-theme="light"] {
  --bg: #f6f4f0;
  --bg-2: #ecE9e3;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --line: #e3dfd7;
  --text: #1b1b1f;
  --muted: #6c6c75;
  --muted-2: #9a9aa2;
  --gold: #b8860b;
  --gold-bright: #a9822a;
  --gold-deep: #7a5c15;
  --grad-gold: linear-gradient(135deg, #e0b84e 0%, #c19026 45%, #97711d 100%);
  --shadow: 0 20px 50px -24px rgba(60,50,20,.35);
  --shadow-gold: 0 14px 40px -16px rgba(184,134,11,.45);
}
:root[data-theme="light"] .header { background: rgba(255,255,255,.72); border-bottom: 1px solid rgba(0,0,0,.06); }
:root[data-theme="light"] .header.scrolled { background: rgba(255,255,255,.95); }
:root[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(246,244,240,.78) 20%, rgba(246,244,240,.4) 42%, rgba(246,244,240,.08) 68%, transparent 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 26%);
}
:root[data-theme="light"] .hero-badge { background: rgba(0,0,0,.03); }
:root[data-theme="light"] .car-photo {
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eeebe4 60%, #e6e2da 100%);
}
:root[data-theme="light"] .car-photo .ph-car { color: #c9c4b8; }
:root[data-theme="light"] .cta-fin { background: linear-gradient(120deg, #fbf3dd 0%, #ffffff 55%); }
:root[data-theme="light"] .blogo { border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
:root[data-theme="light"] .brands-strip { background: var(--surface); }
:root[data-theme="light"] .map-embed iframe { filter: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav, .header-phone { display: none; }
  .burger { display: flex; }

  /* Cabeçalho mobile: mais baixo, logo centralizada em tamanho bom + menu no canto */
  .header-inner { position: relative; justify-content: flex-end; height: 84px; }
  .header-inner .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand img { height: 68px; }
  .header-cta { gap: 0; }
  .header-cta > .btn { display: none; }
  .burger span { width: 22px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .search-card { grid-template-columns: repeat(2, 1fr); }
  .search-card .btn { grid-column: 1/-1; }
  .cars-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec-table, .opcionais { grid-template-columns: 1fr; }
  .opcionais { grid-template-columns: 1fr 1fr; }

  /* Filtro de marcas: vira um botão "Marcas" que abre/fecha as opções */
  .brand-filters-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 14px 20px; margin-bottom: 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font-size: 1rem; font-weight: 600; cursor: pointer;
  }
  .brand-filters-toggle .i svg { width: 20px; height: 20px; color: var(--gold); transition: transform .25s; }
  .brand-filters-toggle.open .i svg { transform: rotate(180deg); }
  .brand-filters-toggle.has-filter { border-color: var(--gold); color: var(--gold-bright); }
  .brand-filters {
    justify-content: flex-start;
    max-height: 0; overflow: hidden; margin-bottom: 0;
    opacity: 0; transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
  }
  .brand-filters.open { max-height: 600px; opacity: 1; margin-bottom: 30px; }

  /* Menu mobile */
  .nav.open {
    display: flex; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 22px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav.open a::after { display: none; }
}
@media (max-width: 620px) {
  .cars-grid, .reviews-grid, .perks-grid { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-fin { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .header-cta .btn span.hide-sm { display: none; }

  /* No mobile o texto ocupa a largura toda por cima da imagem —
     reforça o véu escuro pra não brigar com a logo/carros da capa */
  .hero { min-height: 84vh; padding: 70px 0 50px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11,11,13,.4) 0%, rgba(11,11,13,.62) 38%, rgba(11,11,13,.78) 68%, var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, rgba(11,11,13,.35) 30%, transparent 75%);
  }
  .hero-orbs { opacity: .5; }
  :root[data-theme="light"] .hero-overlay {
    background:
      linear-gradient(180deg, rgba(246,244,240,.55) 0%, rgba(246,244,240,.8) 38%, rgba(246,244,240,.92) 68%, var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, rgba(246,244,240,.5) 30%, transparent 75%);
  }
}
