@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --fundo: #0d0d0f;
  --fundo-2: #1c1c20;
  --linha: #2a2a2e;
  --linha-2: #1f1f23;
  --texto: #f1ede6;
  --texto-2: #e8e4dc;
  --suave: #c9c5bd;
  --suave-2: #a7a39b;
  --apagado: #8a867f;
  --rodape: #77736c;
  --cinza: #6d6a64;
  --vermelho: #e0262f;
  --whats: #25d366;
  --whats-texto: #08140c;
  --margem: max(16px, 5vw);
  --largura: 1400px;
  --curva: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.4;
}
img, video { display: block; max-width: 100%; }
a { color: var(--texto); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2 { overflow-wrap: break-word; }
::selection { background: var(--vermelho); color: #fff; }
:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 3px; }

.so-leitor {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--vermelho); color: #fff; border-radius: 4px; transition: top .2s;
}
.pular:focus { top: 12px; }

.rotulo { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--vermelho); }
.display { font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .92; }
.conteudo { max-width: var(--largura); margin: 0 auto; padding-left: var(--margem); padding-right: var(--margem); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--margem);
  background: linear-gradient(#0d0d0fcc, #0d0d0f00);
}
.menu-marca { font-stretch: 125%; font-weight: 800; letter-spacing: .04em; font-size: 15px; white-space: nowrap; }
.menu-marca span { color: var(--vermelho); }
.menu-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.menu-links a:not(.botao-whats) { color: var(--suave); }
.menu-links a:not(.botao-whats):hover { color: #fff; }
.botao-whats {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--whats); color: var(--whats-texto); font-weight: 700; white-space: nowrap;
}
.botao-whats:hover { color: var(--whats-texto); filter: brightness(1.08); }
.botao-whats svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) {
  .menu-links a:not(.botao-whats) { display: none; }
}

/* ---------- Abertura (vídeo no scroll) ---------- */
.abertura { position: relative; height: 320vh; }
.abertura-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.abertura video, .abertura-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (orientation: portrait) {
  /* Vídeo é 16:9; em tela em pé o "cover" mostraria só um farol. Mostra o carro inteiro, com leve corte nas laterais. */
  .abertura video, .abertura-poster { inset: auto; left: -12%; width: 124%; top: 50%; height: auto; aspect-ratio: 16 / 9; transform: translateY(-40%); }
  .abertura-palco { background: radial-gradient(120% 60% at 50% 55%, #2a2d31 0%, var(--fundo) 70%); }
}
.abertura-sombra {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d0d0f99 0%, #0d0d0f00 30%, #0d0d0f00 50%, #0d0d0fee 100%);
}
.abertura-titulo {
  position: absolute; left: var(--margem); right: var(--margem); top: max(84px, 14vh);
  will-change: transform, opacity; transform-origin: left top;
}
.abertura-titulo .sobre { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--texto-2); }
.abertura h1 {
  margin-top: 14px; font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 13.5vw, 220px); line-height: .82; letter-spacing: -.02em;
}
.abertura-info {
  position: absolute; left: var(--margem); right: var(--margem); bottom: max(40px, 8vh);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px;
}
.selos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.selos span {
  padding: 8px 14px; border: 1px solid #f1ede655; border-radius: 999px; font-size: 14px;
  background: #0d0d0f40; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap;
}
.abertura-preco { text-align: right; margin-left: auto; }
.abertura-preco .rot { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
.abertura-preco strong { display: block; font-stretch: 112%; font-weight: 800; font-size: clamp(34px, 5vw, 72px); line-height: 1; white-space: nowrap; }
.abertura-barra { position: absolute; left: var(--margem); right: var(--margem); bottom: max(16px, 3.5vh); height: 2px; background: #f1ede622; }
.abertura-barra i { display: block; height: 100%; width: 0; background: var(--vermelho); }
@media (max-height: 520px) and (orientation: landscape) {
  .abertura h1 { font-size: clamp(40px, 9vw, 120px); }
  .abertura-titulo { top: 64px; }
}

/* ---------- Preço x FIPE ---------- */
.preco { padding-top: 18vh; padding-bottom: 14vh; }
.preco h2 { margin-top: 16px; font-size: clamp(38px, 7vw, 110px); line-height: .9; letter-spacing: -.01em; max-width: 12ch; }
.preco-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; margin-top: 9vh; align-items: end; }
.barras { display: grid; gap: 28px; }
.barra { display: grid; gap: 10px; }
.barra-topo { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--suave); }
.barra-topo strong { color: var(--texto); }
.barra-trilho { height: 14px; background: var(--fundo-2); border-radius: 2px; overflow: hidden; }
.barra-trilho i { display: block; height: 100%; width: 0; background: var(--cinza); transition: width 1.4s var(--curva); }
.barra-trilho.este i { background: var(--vermelho); transition-delay: .2s; }
.nota { font-size: 13px; color: var(--apagado); line-height: 1.5; }
.diferenca { border-top: 1px solid var(--linha); padding-top: 28px; }
.diferenca .rot { font-size: 15px; color: var(--suave); }
.diferenca { min-width: 0; container-type: inline-size; }
.diferenca strong { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(40px, 15cqi, 120px); line-height: .9; margin-top: 10px; white-space: nowrap; }
.diferenca .pct { font-size: 18px; margin-top: 12px; color: var(--texto-2); }

/* ---------- Números ---------- */
.numeros { border-top: 1px solid var(--linha-2); border-bottom: 1px solid var(--linha-2); }
.numeros-grade {
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px; background: var(--linha-2);
}
.numero { background: var(--fundo); padding: 6vh clamp(16px, 3vw, 48px); display: grid; gap: 8px; container-type: inline-size; }
@media (max-width: 460px) { .numero { padding-left: var(--margem); padding-right: var(--margem); } }
/* 199.000 mede 5em: 19cqi mantém o número dentro da coluna em qualquer tela */
.numero strong { font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 19cqi, 76px); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.numero > span { color: var(--suave-2); font-size: 15px; }

/* ---------- História ---------- */
.historia {
  padding-top: 16vh; padding-bottom: 16vh;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 8vw, 120px); align-items: start;
}
.historia-foto { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 4px; background: var(--fundo-2); }
.historia-foto img { width: 100%; height: 100%; object-fit: cover; }
.historia-texto { display: grid; gap: 40px; container-type: inline-size; }
/* "CONHECIDA." mede 8,3em */
.historia h2 { font-size: clamp(28px, 11.4cqi, 76px); }
.linha-tempo { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--linha); }
.marco { position: relative; padding: 0 0 36px 32px; }
.marco:last-child { padding-bottom: 0; }
.marco::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--cinza); }
.marco:nth-child(2)::before { background: var(--suave); }
.marco:last-child::before { background: var(--vermelho); }
.marco small { display: block; font-size: 14px; color: var(--suave-2); }
.marco p { font-size: clamp(18px, 1.6vw, 20px); margin-top: 6px; }
.itens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); }
.itens li { background: var(--fundo); padding: 20px; font-size: 16px; line-height: 1.35; }

/* ---------- Acompanha (manual e chave reserva) ---------- */
.acompanha {
  padding-top: 4vh; padding-bottom: 14vh;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center;
}
.acompanha-foto { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--fundo-2); }
.acompanha-foto img { width: 100%; height: 100%; object-fit: cover; }
.acompanha-texto { display: grid; gap: 28px; container-type: inline-size; }
/* "RESERVA" mede ~6,4em */
.acompanha h2 { font-size: clamp(28px, 11.4cqi, 76px); }
.acompanha-texto > p:not(.rotulo) { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; color: var(--texto-2); max-width: 40ch; }

/* ---------- Interior ---------- */
.interior { padding: 6vh 0 16vh; }
.interior h2 { margin-top: 16px; font-weight: 900; font-size: clamp(46px, 11vw, 180px); line-height: .85; color: var(--texto-2); }
.interior-grade {
  margin-top: 8vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: max(16px, 3vw); align-items: start;
}
.quadro { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 4px; background: var(--fundo-2); }
.quadro .paralaxe { position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; will-change: transform; }
.quadro img { width: 100%; height: 100%; object-fit: cover; }
.desce { margin-top: 12vh; }
.interior-texto { display: grid; gap: 28px; padding-top: 4vh; }
.interior-texto > p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; text-wrap: pretty; }
.ficha { margin: 0; border-top: 1px solid var(--linha); }
.ficha div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); font-size: 16px; }
.ficha dt { margin: 0; }
.ficha dd { margin: 0; color: var(--suave-2); text-align: right; }
@media (max-width: 640px) { .desce { margin-top: 0; } }

/* ---------- Painel (imagem cheia) ---------- */
.painel { position: relative; height: 90vh; min-height: 520px; overflow: hidden; }
.painel .paralaxe { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; will-change: transform; }
.painel img { width: 100%; height: 100%; object-fit: cover; }
.painel-sombra { position: absolute; inset: 0; background: linear-gradient(90deg, #0d0d0fee 0%, #0d0d0f88 55%, #0d0d0f33 100%); }
.painel-texto { position: absolute; left: var(--margem); right: var(--margem); bottom: 10vh; max-width: 560px; display: grid; gap: 18px; }
.painel h2 { font-size: clamp(34px, 5vw, 76px); }
.painel p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; color: var(--texto-2); }

/* ---------- Multimídia ---------- */
.multimidia {
  padding-top: 16vh; padding-bottom: 16vh;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: max(40px, 6vw); align-items: center;
}
.multimidia-texto { display: grid; gap: 28px; container-type: inline-size; }
/* "POLEGADAS" mede 8,1em */
.multimidia h2 { font-size: clamp(28px, 11.4cqi, 76px); }
.multimidia-texto > p:not(.rotulo) { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; color: var(--texto-2); max-width: 40ch; }
.caixa { padding: 20px 22px; border: 1px solid var(--linha); border-radius: 4px; font-size: 16px; line-height: 1.45; color: var(--suave); }
.multimidia-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.multimidia-fotos .desce { margin-top: 10vh; }

/* ---------- Galeria ---------- */
.galeria { position: relative; padding: 10vh 0; }
.galeria-palco { display: grid; align-content: center; gap: 4vh; }
.galeria-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; padding: 0 var(--margem); }
.galeria h2 { font-size: clamp(30px, 4vw, 60px); line-height: 1; }
.galeria-topo span { font-size: 14px; color: var(--suave-2); }
.galeria-trilho {
  display: flex; gap: max(12px, 2vw); padding: 0 var(--margem) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.galeria-item { flex: 0 0 auto; margin: 0; height: min(62vh, 110vw); aspect-ratio: var(--ar, 3/4); scroll-snap-align: center; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.galeria-abrir { all: unset; cursor: zoom-in; display: block; min-height: 0; border-radius: 4px; overflow: hidden; background: var(--fundo-2); }
.galeria-abrir:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 3px; }
.galeria-abrir img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--curva); }
.galeria-abrir:hover img { transform: scale(1.03); }
.galeria-item figcaption { font-size: 14px; color: var(--suave-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Modo "fixo": a seção prende na tela e as fotos andam na horizontal com o scroll (ativado pelo JS). */
.galeria.fixa { padding: 0; }
.galeria.fixa .galeria-palco { grid-template-columns: minmax(0, 1fr); position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.galeria.fixa .galeria-trilho { overflow: visible; scroll-snap-type: none; will-change: transform; width: max-content; }
.galeria.fixa .galeria-item { height: min(62svh, 110vw); }

/* ---------- Lightbox ---------- */
.ampliar { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #000e; color: var(--texto); }
.ampliar::backdrop { background: #000c; }
.ampliar[open] { display: grid; place-items: center; }
.ampliar img { max-width: 94vw; max-height: 86vh; max-height: 86dvh; object-fit: contain; border-radius: 4px; }
.ampliar button {
  position: absolute; border: 1px solid #ffffff33; background: #0d0d0fcc; color: #fff; border-radius: 999px;
  width: 48px; height: 48px; font: inherit; font-size: 22px; cursor: pointer; display: grid; place-items: center;
}
.ampliar button:hover { background: #222; }
.ampliar .fechar { top: 16px; right: 16px; }
.ampliar .ant { left: 16px; top: 50%; translate: 0 -50%; }
.ampliar .prox { right: 16px; top: 50%; translate: 0 -50%; }
.ampliar p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--suave); padding: 0 72px; }

/* ---------- Contato ---------- */
.contato { padding-top: 16vh; padding-bottom: 6vh; container-type: inline-size; }
/* "CONVERSAR?" mede 9,2em: 10,4cqi ocupa no máximo 96% da largura */
.contato h2 { margin-top: 16px; font-weight: 900; font-size: clamp(28px, 10.4cqi, 160px); line-height: .85; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 8vh; }
.cartao { display: grid; gap: 10px; padding: clamp(22px, 3vw, 32px); border-radius: 6px; border: 1px solid var(--linha); transition: transform .3s var(--curva), border-color .3s; min-width: 0; container-type: inline-size; }
.cartao:hover { transform: translateY(-4px); border-color: #444; }
.cartao small { font-size: 14px; color: var(--suave-2); }
/* o e-mail mede ~11em: 8,4cqi cabe inteiro no cartão até em telas de 320px */
.cartao strong { font-stretch: 112%; font-weight: 800; font-size: clamp(17px, 8.4cqi, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.cartao span { font-size: 15px; color: var(--suave); }
.cartao.whats { background: var(--whats); border-color: var(--whats); color: var(--whats-texto); }
.cartao.whats small, .cartao.whats span { color: var(--whats-texto); }
.cartao.whats small { font-weight: 600; }
.anuncios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 16px; }
.anuncios:not(:has(a:not([hidden]))) { display: none; }
.anuncio { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(22px, 3vw, 32px); border-radius: 6px; border: 1px solid var(--linha); font-size: 18px; }
.anuncio span:last-child { color: var(--suave-2); }
.rodape { margin-top: 14vh; padding-bottom: 72px; padding-top: 24px; border-top: 1px solid var(--linha-2); display: grid; gap: 12px; font-size: 13px; color: var(--rodape); }
.rodape div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }

/* ---------- Botão flutuante ---------- */
.flutuante {
  position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
  box-shadow: 0 10px 30px #0008; padding: 14px 20px; font-size: 15px;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .4s, transform .4s;
}
.flutuante.visivel { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 400px) { .flutuante .preco-flut { display: none; } }

/* ---------- Animações de entrada (só com JS) ---------- */
.js [data-revelar] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--curva), transform .9s var(--curva); }
.js [data-revelar].visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .abertura { height: auto; }
  .abertura-palco { position: relative; }
  .js [data-revelar] { opacity: 1; transform: none; transition: none; }
  .barra-trilho i, .galeria-abrir img, .cartao { transition: none; }
  .quadro .paralaxe, .painel .paralaxe { top: 0; bottom: 0; }
}

@media print {
  .menu, .flutuante, .abertura-barra, video { display: none !important; }
  .abertura { height: auto; }
  .abertura-palco { position: relative; height: 60vh; }
  body { background: #fff; color: #000; }
}

.titulo-404 { margin-top: 16px; font-size: clamp(40px, 8vw, 120px); }

/* ---------- Vendido / à venda (alternado por scripts/vendido.py) ---------- */
body[data-status="a-venda"] [data-se="vendido"],
body[data-status="vendido"] [data-se="a-venda"] { display: none !important; }
.carimbo {
  display: inline-block; margin-top: clamp(18px, 3vw, 44px); padding: .12em .5em;
  border: .09em solid var(--vermelho); border-radius: 6px; color: var(--vermelho);
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(28px, 5vw, 72px); line-height: 1; transform: rotate(-6deg); transform-origin: left center;
  background: #0d0d0f99; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
body[data-status="vendido"] .abertura-preco strong { text-decoration: line-through; text-decoration-thickness: .08em; text-decoration-color: var(--vermelho); opacity: .75; }
.vendido-texto { margin-top: 32px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--texto-2); }
.selo-vendido {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: var(--vermelho); color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; white-space: nowrap;
}
