/* Layout: showroom escuro — palco iluminado para cada viatura, faixa vermelha da marca como único gesto forte */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --surface: #16181e;
  --surface-2: #1d2027;
  --line: #2a2e37;
  --fg: #f2f3f5;
  --muted: #9ba1ad;
  --dim: #6c7280;
  --red: #e30613;
  --red-hi: #ff2b37;
  --red-deep: #8f0710;
  --blue: #2c4fae;
  --blue-soft: #8fa3dc;
  --ok: #2fbf71;
  --warn: #f0a500;
  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-logo: 'Montserrat', 'Arial Black', sans-serif;
  --r: 6px;
  --wrap: 1560px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 700 14px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,12,15,.7); backdrop-filter: blur(6px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { background: var(--red); border-color: var(--red); }

/* ---------- topo ---------- */
.topbar { background: #07080a; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a:hover { color: var(--fg); }
.topbar .sp { margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 3px 9px; font: 700 11px/1.4 var(--f-display); letter-spacing: .08em; color: var(--muted); }
.lang button.on { background: var(--fg); color: var(--bg); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(11,12,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: block; flex-shrink: 0; }
.logo svg { height: 50px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; font: 600 14px/1 var(--f-display); letter-spacing: .03em; color: var(--muted); border-radius: 4px; position: relative; }
.nav a:hover, .nav a.on { color: var(--fg); }
.nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -18px; height: 3px; background: var(--red); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.fav-link { position: relative; }
.fav-link .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); font: 700 11px/18px var(--f-display); text-align: center; padding: 0 4px; }
.burger { display: none; }

/* ---------- palco (área de imagem) ---------- */
.stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, #1c1f26 0%, #121419 62%, #0a0b0d 62.2%, #15171c 100%); }
.stage::after { content: ''; position: absolute; left: 8%; right: 8%; top: 62%; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,6,19,.65), transparent); }
.stage .veh-svg { position: absolute; left: 7%; right: 7%; width: 86%; bottom: 13%; height: auto; z-index: 1; }
.stage .badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.stage .tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 8px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 3px; font: 700 11px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; background: rgba(11,12,15,.8); border: 1px solid var(--line); }
.badge.b-novidade { background: var(--red); border-color: var(--red); }
.badge.b-baixa { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.badge.b-iva { background: rgba(44,79,174,.9); border-color: var(--blue); }
.status-band { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 7px 12px; font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.status-band.s-reservado { background: rgba(240,165,0,.92); color: #1a1200; }
.status-band.s-vendido { background: rgba(227,6,19,.92); }
.status-band.s-chegada { background: rgba(143,163,220,.92); color: #0b1530; }
.is-sold .veh-svg { filter: grayscale(.8) brightness(.6); }

/* ---------- cartão de viatura ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.vcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; min-width: 0; }
.vcard:hover { border-color: #444a56; transform: translateY(-2px); }
.vcard .stage { border-bottom: 1px solid var(--line); cursor: pointer; }
.vcard-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.vcard h3 { font-size: 19px; cursor: pointer; }
.vcard .ver { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { font: 600 12px/1 var(--f-body); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; color: #cfd3da; font-variant-numeric: tabular-nums; }
.vcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font: 800 24px/1 var(--f-display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.price small { display: block; font: 500 11px/1.3 var(--f-body); color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.price s { font: 500 13px/1 var(--f-body); color: var(--dim); margin-right: 6px; }
.cmp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.cmp-check input { accent-color: var(--red); width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 75% 40%, #1d2029 0%, var(--bg) 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; padding-block: 56px 40px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-stretch: 125%; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .slab { display: inline-block; background: var(--red); color: #fff; padding: 2px 14px 6px; margin-top: 6px; }
.hero .lead { color: var(--muted); font-size: 17px; max-width: 42ch; }
.hero-specs { display: flex; gap: 26px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); }
.hero-specs div { display: flex; flex-direction: column; gap: 4px; }
.hero-specs b { font: 800 20px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hero-specs span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero-price .price { font-size: 40px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
.hero-stage .veh-svg { position: absolute; inset: auto 0 6% 0; width: 100%; height: auto; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.hero-stage::before { content: ''; position: absolute; left: -10%; right: -30%; bottom: 0; height: 48%; background: linear-gradient(180deg, transparent, rgba(227,6,19,.12)); border-top: 1px solid rgba(227,6,19,.5); transform: skewX(-18deg); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border: 0; background: var(--line); padding: 0; }
.hero-dots button.on { background: var(--red); }
.bars { display: inline-flex; gap: 4px; align-items: flex-end; height: 18px; }
.bars i { display: block; width: 7px; background: var(--blue); }
.bars i:nth-child(1) { height: 100%; opacity: .45; } .bars i:nth-child(2) { height: 100%; opacity: .65; } .bars i:nth-child(3) { height: 100%; opacity: .85; } .bars i:nth-child(4) { height: 100%; }

/* ---------- pesquisa rápida ---------- */
.qs { position: relative; z-index: 5; margin-top: -1px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.qs .wrap { padding-block: 22px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 18px; font: 700 14px/1 var(--f-display); letter-spacing: .03em; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button .n { font: 600 11px/1 var(--f-body); color: var(--dim); }
.tabs button.on { color: var(--fg); border-color: var(--red); }
.qs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .flabel { font: 700 11px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input, .select, textarea.input { width: 100%; min-height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); outline: none; }
textarea.input { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--red); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.select option { background: var(--surface); }

/* ---------- secções ---------- */
.section { padding-block: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.carousel > * { scroll-snap-align: start; }
.car-nav { display: flex; gap: 8px; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat { background: var(--surface); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: background .15s; min-width: 0; }
.cat:hover { background: var(--surface-2); }
.cat .stage { aspect-ratio: 16 / 8; background: none; margin: 0 -10px 6px; }
.cat .stage::after { display: none; }
.cat h3 { font-size: 22px; }
.cat p { margin: 0; color: var(--muted); font-size: 13px; }
.cat .count { font: 700 13px/1 var(--f-display); color: var(--red-hi); margin-top: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; overflow: hidden; min-width: 0; }
.panel h2 { font-size: 30px; }
.panel p { margin: 0; color: var(--muted); max-width: 46ch; }
.panel.red { background: var(--red); border-color: var(--red); }
.panel.red p { color: rgba(255,255,255,.85); }
.panel.red .btn-red { background: #0b0c0f; }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.why div { display: flex; gap: 12px; align-items: center; font: 700 15px/1.25 var(--f-display); }
.why svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--red-hi); }

/* ---------- catálogo ---------- */
.page-head { padding-block: 36px 0; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 10px; }
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--fg); }
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-block: 24px 64px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-height: calc(100vh - 116px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.linkbtn { background: none; border: 0; color: var(--red-hi); font-weight: 600; font-size: 13px; padding: 0; }
.fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 20px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #cfd3da; transition: all .12s; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; flex-shrink: 0; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(16px); }
.alert-cta { margin: 16px 18px 18px; padding: 14px; border: 1px dashed #444a56; border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { font: 700 15px/1 var(--f-display); }
.toolbar .count b { color: var(--red-hi); }
.active-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 3px; background: var(--surface-2); font-size: 12px; font-weight: 600; border: 0; }
.tag i { font-style: normal; opacity: .6; }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty p { color: var(--muted); margin: 0; max-width: 44ch; }
.mobile-filter-btn { display: none; }

/* ---------- ficha ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; padding-block: 24px 64px; align-items: start; }
.gallery .stage { border-radius: var(--r); border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs .stage { aspect-ratio: 4 / 3; border-radius: 4px; cursor: pointer; opacity: .55; }
.thumbs .stage.on { opacity: 1; outline: 2px solid var(--red); }
.photo-note { font-size: 12px; color: var(--dim); margin-top: 8px; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.side-card h1 { font-size: 28px; }
.side-card .price { font-size: 36px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.p-disponivel { color: var(--ok); } .pill.p-reservado { color: var(--warn); } .pill.p-vendido { color: var(--red-hi); } .pill.p-chegada { color: var(--blue-soft); }
.spec-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-table span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-table b { font: 700 16px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.contact-lines div { display: flex; justify-content: space-between; gap: 8px; }
.contact-lines b { font-variant-numeric: tabular-nums; user-select: all; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; }
.success { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(47,191,113,.12); border: 1px solid rgba(47,191,113,.4); font-size: 14px; }
.success svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--ok); }
.market { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.market span { border: 1px solid var(--line); padding: 4px 8px; border-radius: 3px; font-weight: 700; color: #cfd3da; }

/* ---------- formulários por passos ---------- */
.wizard { max-width: 820px; margin: 0 auto; padding-block: 24px 72px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0; }
.step { display: flex; flex-direction: column; gap: 8px; font: 700 13px/1.2 var(--f-display); color: var(--dim); }
.step::before { content: ''; height: 4px; border-radius: 2px; background: var(--line); }
.step.done, .step.on { color: var(--fg); }
.step.done::before, .step.on::before { background: var(--red); }
.step em { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seg button { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 13px/1.2 var(--f-display); color: var(--muted); }
.seg button svg { width: 100%; max-width: 110px; height: 46px; }
.seg button.on { border-color: var(--red); color: var(--fg); background: rgba(227,6,19,.08); }
.rate { display: flex; gap: 6px; flex-wrap: wrap; }
.drop { border: 1px dashed #4a505c; border-radius: var(--r); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--red); color: var(--fg); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--dim); text-align: center; padding: 6px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.req { border-style: dashed; }
.hint { font-size: 12px; color: var(--dim); }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; }
.summary span { color: var(--muted); }
.err { color: var(--red-hi); font-size: 13px; }

/* ---------- comparador / listas ---------- */
.cmp-tray { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; background: var(--fg); color: var(--bg); border-radius: 40px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); font-weight: 700; max-width: calc(100% - 32px); }
.cmp-tray .btn { min-height: 38px; border-radius: 30px; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.cmp-table th { width: 180px; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
.cmp-table td { background: var(--surface); font-weight: 600; }
.cmp-table .best { color: var(--ok); }
.cmp-table .stage { border-radius: 4px; margin-bottom: 10px; }

/* ---------- listagem personalizada ---------- */
.sl-hero { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(227,6,19,.14), transparent 60%); }
.sl-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 40px; align-items: center; }
.sl-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; }
.sl-note { margin-top: 16px; color: #d5d8de; font-size: 16px; max-width: 60ch; border-left: 3px solid var(--red); padding-left: 16px; }
.seller { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font: 800 20px/1 var(--f-display); flex-shrink: 0; }
.sl-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sl-row .stage { height: 100%; aspect-ratio: auto; min-height: 180px; }
.sl-row .info { padding: 18px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sl-row .act { padding: 18px 22px 18px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.sl-list { display: flex; flex-direction: column; gap: 14px; }

/* ---------- sobre / contactos ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 40px; }
.about-hero p { color: var(--muted); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats div { background: var(--surface); padding: 22px; }
.stats b { display: block; font: 900 38px/1 var(--f-display); font-stretch: 120%; color: var(--fg); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { border-top: 3px solid var(--red); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.service h3 { font-size: 20px; }
.service p { margin: 0; color: var(--muted); }
.map { aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--r); border: 1px solid var(--line); background:
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.04) 38px 39px),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.04) 38px 39px), var(--bg-2);
  position: relative; display: grid; place-items: center; }
.map .pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: 0 0 0 10px rgba(227,6,19,.18); }
.map small { position: absolute; bottom: 12px; left: 14px; color: var(--dim); }

/* ---------- rodapé ---------- */
.footer { background: #07080a; border-top: 1px solid var(--line); padding-block: 48px 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer a:hover { color: var(--red-hi); }
.footer .legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.tel small { display: block; font-size: 11px; color: var(--dim); }

/* ---------- menu do protótipo ---------- */
.proto { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.proto > button { background: var(--blue); border: 0; color: #fff; border-radius: 30px; padding: 10px 16px; font: 700 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.proto-menu { position: absolute; bottom: 48px; left: 0; width: 250px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.proto-menu a { padding: 9px 12px; border-radius: 4px; font-size: 14px; }
.proto-menu a:hover { background: var(--surface); }
.proto-menu small { padding: 8px 12px 4px; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- gaveta (mobile) ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 90vw); background: var(--bg-2); z-index: 71; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 0 24px; border-left: 1px solid var(--line); }
.drawer .nav-m { display: flex; flex-direction: column; padding: 8px 16px; }
.drawer .nav-m a { padding: 14px 4px; border-bottom: 1px solid var(--line); font: 700 18px/1 var(--f-display); }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .nav, .header .hide-md { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .carousel { grid-auto-columns: minmax(270px, 46%); }
  .cats, .why, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog .filters { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sl-hero .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .topbar .hide-sm { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
  .hero-stage { order: -1; }
  .qs-row { grid-template-columns: 1fr 1fr; }
  .qs-row .btn { grid-column: 1 / -1; }
  .split, .about-hero, .services { grid-template-columns: minmax(0, 1fr); }
  .carousel { grid-auto-columns: 84%; }
  .spec-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .summary { grid-template-columns: minmax(0, 1fr); }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .step span { display: none; }
  .form-card { padding: 20px; }
  .sl-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sl-row .stage { aspect-ratio: 16 / 10; min-height: 0; }
  .sl-row .info { padding: 16px 16px 0; }
  .sl-row .act { padding: 16px; align-items: stretch; }
  .logo svg { height: 42px; }
  .section { padding-block: 44px; }
  .panel { padding: 22px; }
}
@media (max-width: 480px) {
  .cats, .why { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-specs { gap: 18px; }
}

/* idioma na barra de navegação */
.header-actions .lang { height: 40px; align-items: center; border: 0; border-radius: 0; overflow: visible; gap: 0; }
.header-actions .lang button { position: relative; padding: 6px 7px; background: none; color: var(--dim); font-size: 11px; letter-spacing: .1em; transition: color .15s; }
.header-actions .lang button + button { border-left: 1px solid var(--line); }
.header-actions .lang button:hover { color: var(--fg); }
.header-actions .lang button.on { background: none; color: var(--fg); }
.header-actions .lang button.on::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 1px; height: 2px; background: var(--red); }
@media (max-width: 760px) { .header-actions .lang { display: none; } }
