/*
 * Afonso Veículos: preto + dourado #FFCD01 da logo oficial. Direção em docs/direcao.md.
 * Símbolo "A" com o carro nas miniaturas (topo, ícones, rodapé); logo inteira quando a fachada sai da tela.
 * O traço do teto da logo abre cada seção.
 */
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/chakra-700i.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/chakra-600.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/albert-400.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/albert-700.woff2') format('woff2'); }

:root {
  --fundo: #0B0B0C;
  --fundo-2: #161616;
  --fundo-alt: #1C1C1D;
  --texto: #F5F1E6;
  --suave: #B9B3A5;
  --marca: #FFCD01;
  --acento: #FFE066;
  --sobre-marca: #141414;
  --papel: #F4EFE3;
  --tinta: #141414;
  --tinta-suave: #4D4A43;
  --ouro-escuro: #7A5B00;
  --linha: rgb(255 205 1 / 0.26);

  --titulo: 'Chakra Petch', 'Arial Narrow', sans-serif;
  --texto-f: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --raio: 6px;
  --caixa: 1180px;
  --lado: clamp(16px, 5vw, 40px);
  --secao: clamp(64px, 11vw, 120px);
  --topo: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1.0625rem/1.6 var(--texto-f); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-style: italic; font-weight: 700; line-height: 1.02; margin: 0 0 0.45em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 11vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 7vw, 3.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: inherit; color: var(--marca); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--marca); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--marca); color: var(--tinta); padding: 10px 16px; border-radius: var(--raio); }
.pular:focus { top: 8px; }

.caixa { width: min(100% - 2 * var(--lado), var(--caixa)); margin-inline: auto; }
.estreita { max-width: 780px; }
.duas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; } }

.rotulo { font: 600 0.8125rem/1.2 var(--titulo); letter-spacing: 0.18em; text-transform: uppercase; color: var(--marca); margin-bottom: 0.6em; }
.teto { width: 96px; height: 19px; fill: var(--marca); display: block; margin-bottom: 12px; overflow: visible; }

/* Botões: dourado cheio, cantos inclinados como as letras da logo */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--raio);
  background: var(--marca); color: var(--tinta);
  font: 700 1rem/1 var(--texto-f); text-decoration: none; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s, transform 0.2s;
}
.botao { position: relative; overflow: hidden; isolation: isolate; }
.botao::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.botao:hover::after { transform: translateX(120%); }
.botao--brilho::after { animation: brilha 1.2s 1s ease-in-out both; }
.com-abertura .botao--brilho::after { animation-delay: 3s; }
@keyframes brilha { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.botao__n { padding: 4px 9px; border-radius: 999px; background: var(--tinta); color: var(--marca); font-size: 0.75rem; letter-spacing: 0.02em; }
.botao:hover { background: var(--acento); }
.botao:active { transform: translateY(1px); }
.botao svg { width: 20px; height: 20px; flex: none; }
.botao--pequeno { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.botao--linha { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; clip-path: none; }
.botao--linha:hover { background: rgb(255 205 1 / 0.12); }
.botao--cheio { width: 100%; }
.botao--grande { min-height: 58px; padding: 0 28px; font-size: 1.0625rem; width: 100%; }

/* Topo: no hero, só o símbolo "A" (a fachada já mostra a logo); depois, a logo oficial */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topo); transition: background 0.3s, box-shadow 0.3s; }
.topo--rolou, .menu-aberto .topo { background: rgb(11 11 12 / 0.96); box-shadow: 0 1px 0 var(--linha); }
.topo__linha { height: 100%; display: flex; align-items: center; gap: 10px; }
.marca { display: grid; align-items: center; margin-right: auto; min-height: 44px; text-decoration: none; }
.marca > svg { grid-area: 1 / 1; transition: opacity 0.35s, transform 0.35s var(--ease); }
.marca__simbolo { width: 66px; height: 33px; overflow: visible; }
.marca__logo { width: 82px; height: 40px; opacity: 0; transform: translateY(6px); }
.topo--logo .marca__simbolo { opacity: 0; transform: translateY(-6px); }
.topo--logo .marca__logo { opacity: 1; transform: none; }
.topo__menu { display: none; }
.topo__menu a { text-decoration: none; font-weight: 700; font-size: 0.9375rem; padding: 10px 4px; }
.topo__menu a:hover { color: var(--marca); }
.topo__menu-insta svg { display: none; }
.topo__insta, .topo__wa { display: none; }
.topo__insta { width: 44px; height: 44px; place-items: center; color: var(--texto); border-radius: 50%; transition: color 0.2s, background 0.2s; }
.topo__insta svg { width: 22px; height: 22px; }
.topo__insta:hover { color: var(--marca); background: rgb(255 255 255 / 0.06); }
.topo__abrir { width: 44px; height: 44px; border: 0; background: none; color: var(--texto); cursor: pointer; display: grid; place-items: center; }
.topo__abrir span[aria-hidden] { width: 22px; height: 2px; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
.menu-aberto .topo__menu { display: flex; flex-direction: column; position: fixed; inset: var(--topo) 0 auto; background: var(--fundo); padding: 8px var(--lado) 24px; border-bottom: 1px solid var(--linha); }
.menu-aberto .topo__menu a { padding: 14px 0; font: 700 italic 1.4rem/1.2 var(--titulo); text-transform: uppercase; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.menu-aberto .topo__menu-insta { display: flex; align-items: center; gap: 10px; color: var(--marca); }
.menu-aberto .topo__menu-insta svg { display: block; width: 24px; height: 24px; }
@media (min-width: 900px) {
  :root { --topo: 76px; }
  .marca__simbolo { width: 80px; height: 40px; }
  .marca__logo { width: 104px; height: 51px; }
  .topo__menu { display: flex; gap: 22px; margin-right: 6px; }
  .topo__menu-insta { display: none; }
  .topo__insta { display: grid; }
  .topo__wa { display: inline-flex; }
  .topo__abrir { display: none; }
}

/* Hero: fachada de borda a borda em cima (celular) / texto | fachada (desktop) */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--fundo); }
.hero__foto { position: absolute; inset: 0 0 auto; height: 125vw; max-height: 100svh; overflow: hidden; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 35%; animation: aproxima 9s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero__foto::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, transparent 38%, rgb(255 236 150 / 0.2) 50%, transparent 62%); transform: translateX(-110%); animation: varre 1.6s 0.6s ease-in-out both; pointer-events: none; }
.com-abertura .hero__foto img { animation-delay: 1.6s; }
.com-abertura .hero__foto::before { animation-delay: 2.5s; }
@keyframes aproxima { from { transform: scale(1.08); } }
@keyframes varre { to { transform: translateX(110%); } }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgb(11 11 12 / 0.72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); font-size: 0.8125rem; color: var(--texto); }
.status[hidden] { display: none; }
.status--espera { visibility: hidden; }
.status b { font-weight: 700; }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: #E0645A; }
.status--aberto > span { background: #3DDC84; box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); animation: piscar 2.4s ease-out infinite; }
@keyframes piscar { 0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(61 220 132 / 0); } }
.status--linha { margin: 6px 0 0; padding: 0; background: none; box-shadow: none; }
.hero__foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 11 12 / 0.62) 0, transparent 17%, transparent 80%, var(--fundo) 99%); }
.hero__texto { position: relative; padding: 0 0 calc(26px + env(safe-area-inset-bottom)); }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { display: block; }
.hero h1 .p { display: inline-block; }
.hero__sub { color: var(--suave); max-width: 34ch; font-size: 1rem; margin-bottom: 20px; }
.hero__descer { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 14px; font-weight: 700; font-size: 0.9375rem; text-underline-offset: 5px; text-decoration-color: var(--marca); padding: 6px 0; }
.hero__descer svg { width: 18px; height: 18px; color: #3DDC84; }
.hero .botao { width: 100%; }
@media (max-height: 700px) and (max-width: 767px) { .hero__sub { display: none; } }
@media (max-height: 620px) and (max-width: 767px) { .hero .status, .hero__descer { display: none; } }
@media (min-width: 560px) { .hero .botao { width: auto; } }
@media (min-width: 768px) {
  .hero { min-height: min(100svh, 880px); justify-content: center; }
  .hero__foto { inset: 0 0 0 auto; height: 100%; max-height: none; aspect-ratio: 4 / 5; max-width: 58vw; }
  .hero__foto img { object-position: 50% 20%; }
  .hero__foto::after { background: linear-gradient(90deg, var(--fundo) 0, transparent 16%), linear-gradient(180deg, rgb(11 11 12 / 0.55) 0, transparent 16%, transparent 86%, var(--fundo) 100%); }
  .hero__texto { padding: calc(var(--topo) + 40px) 0 60px; }
  .hero h1 { max-width: 8.5ch; font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
  .hero__sub { font-size: 1.125rem; max-width: 30ch; }
}
@media (min-width: 768px) and (max-width: 1099px) { .hero__foto { max-width: 54vw; } .hero__texto { max-width: 40vw; margin-left: var(--lado); } }
/* a frase da abertura continua no título: as palavras sobem quando a cortina termina */
.com-abertura .hero h1 .p { animation: palavra 0.6s calc(2.05s + var(--i) * 90ms) var(--ease) both; }
@keyframes palavra { from { opacity: 0; transform: translateY(0.45em); } }

/* Faixa de números: régua dourada */
.numeros { background: var(--marca); color: var(--tinta); }
.numeros__lista { list-style: none; margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.numeros li, .numeros a { display: grid; line-height: 1.15; }
.numeros a { text-decoration: none; }
.numeros a:hover span { text-decoration: underline; }
.numeros b { font: 700 italic 1.6rem/1 var(--titulo); text-transform: uppercase; }
.numeros li > span, .numeros a > span { font-size: 0.8125rem; font-weight: 700; }
.conta { display: inline-block; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .numeros__lista { grid-template-columns: repeat(4, 1fr); padding: 26px 0; } .numeros li + li { border-left: 2px solid rgb(20 20 20 / 0.2); padding-left: 20px; } }

.secao { padding-block: var(--secao); }
.cabeca { max-width: 640px; }

/* Estoque em papel claro */
.estoque { background: var(--papel); color: var(--tinta); padding-bottom: calc(var(--secao) * 0.7); }
.estoque .rotulo, .financiamento .rotulo { color: var(--ouro-escuro); }
.estoque .teto { fill: var(--ouro-escuro); }
.estoque h2 { margin-bottom: 0.4em; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--tinta); background: transparent; color: var(--tinta); font: 700 0.9375rem/1 var(--texto-f); cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--tinta); color: var(--marca); }

.carros { list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--lado) 12px; scroll-padding-inline: var(--lado); scrollbar-width: thin; }
.carro { flex: 0 0 80%; scroll-snap-align: start; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 10px 30px -18px rgb(0 0 0 / 0.35); }
.carro[hidden] { display: none; }
.carro__abrir { position: relative; display: block; background: #1a1a1a url('/img/simbolo.svg') 50% 50% / 34% auto no-repeat; }
.carro__img { display: block; overflow: hidden; }
.carro__abrir img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
@media (hover: hover) {
  .carro { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
  .carro:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 22px 40px -20px rgb(0 0 0 / 0.45); }
  .carro:hover .carro__abrir img { transform: scale(1.05); }
}
/* Selo do ano: o círculo dourado como carimbo do bom negócio */
.carro__ano { z-index: 1; position: absolute; right: 12px; bottom: -26px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: var(--marca); font: 700 italic 1rem/1 var(--titulo); box-shadow: 0 0 0 3px #fff, inset 0 0 0 2px var(--marca); }
.carro__fotos { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.72); color: #fff; font-size: 0.75rem; font-weight: 700; }
.carro__fotos svg { width: 14px; height: 14px; color: var(--marca); }
.carro__info { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.carro__marca { font: 600 0.75rem/1 var(--titulo); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ouro-escuro); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.carro__tag { padding: 4px 8px; border-radius: 4px; background: var(--tinta); color: var(--marca); letter-spacing: 0.08em; font-size: 0.6875rem; }
.carro h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 6px; padding-right: 56px; }
.carro h3 a { color: inherit; text-decoration: none; }
.carro h3 span { color: var(--tinta-suave); }
.carro__dados { color: var(--tinta-suave); font-size: 0.9375rem; margin-bottom: 12px; }
.carro__preco { font: 700 italic 1.6rem/1 var(--titulo); margin: auto 0 14px; }
.carro__preco--consulta { font-size: 1.15rem; color: var(--tinta-suave); }
.carro__acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.carro__ver { font-weight: 700; font-size: 0.9375rem; color: var(--tinta); text-underline-offset: 4px; text-decoration-color: var(--ouro-escuro); padding: 10px 0; }
@media (min-width: 640px) { .carro { flex-basis: 46%; } }
@media (min-width: 1000px) {
  .carros { width: min(100% - 2 * var(--lado), var(--caixa)); margin-inline: auto; padding-inline: 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
.estoque__vazio { margin: 6px 0 0; font-weight: 700; }
.estoque__vazio a, .estoque__nota a { color: var(--tinta); font-weight: 700; text-decoration-color: var(--ouro-escuro); text-underline-offset: 4px; }
.busca { display: grid; gap: 6px; max-width: 440px; margin-top: 20px; }
.busca label { font-weight: 700; font-size: 0.9375rem; }
.busca__campo { display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 2px solid var(--tinta); border-radius: 999px; background: #fff; }
.busca__campo svg { width: 20px; height: 20px; flex: none; color: var(--tinta-suave); }
.busca__campo input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: none; color: var(--tinta); font: 400 1rem/1 var(--texto-f); }
.busca__campo input:focus { outline: none; }
.busca__campo:focus-within { box-shadow: 0 0 0 3px var(--marca); }
.estoque__nota { margin: 18px 0 0; color: var(--tinta-suave); }
.vendidos { margin-top: 36px; }
.vendidos h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 12px; }
.vendidos__lista { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 12px; overflow-x: auto; }
.vendidos__lista li { position: relative; flex: 0 0 168px; }
.vendidos__lista img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; filter: grayscale(0.5); }
.vendidos__lista span { display: block; margin-top: 6px; font-size: 0.875rem; }
.vendidos__lista i { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 4px; background: var(--tinta); color: var(--marca); font: 700 italic 0.75rem/1.2 var(--titulo); text-transform: uppercase; }

/* Faixa corrida entre o estoque e o financiamento */
.faixa { overflow: hidden; padding: 16px 0; background: var(--fundo); border-block: 1px solid var(--linha); }
.faixa__trilho { display: flex; width: max-content; animation: corre 36s linear infinite; }
.faixa:hover .faixa__trilho { animation-play-state: paused; }
.faixa__trilho span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 700 italic 1.05rem/1 var(--titulo); text-transform: uppercase; letter-spacing: 0.02em; color: var(--texto); white-space: nowrap; }
.faixa__trilho svg { width: 46px; height: 9px; fill: var(--marca); }
@keyframes corre { to { transform: translateX(-50%); } }

/* Financiamento */
.financiamento { background: var(--fundo); background-image: radial-gradient(circle at 85% 30%, rgb(255 205 1 / 0.10), transparent 45%); }
.financiamento .rotulo { color: var(--marca); }
.financiamento p { color: var(--suave); }
.passos { list-style: none; counter-reset: p; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.passos li { counter-increment: p; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.passos li::before { content: counter(p); flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--marca); color: var(--marca); font: 700 italic 1.05rem/1 var(--titulo); }
.simulador { position: relative; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 12px; padding: 30px 20px 22px; display: grid; gap: 16px; }
.simulador__selo { position: absolute; top: -24px; right: 16px; width: 92px; height: 46px; padding: 8px 12px; border-radius: 999px; background: var(--fundo); box-shadow: 0 0 0 1px var(--linha); overflow: visible; transform: rotate(-6deg); }
.simulador label, .simulador legend { font-weight: 700; font-size: 0.9375rem; display: grid; gap: 6px; }
.campo { display: flex; align-items: center; background: var(--fundo); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--raio); }
.campo span { padding-left: 14px; color: var(--marca); font-weight: 700; }
.campo input { flex: 1; min-width: 0; width: 100%; min-height: 50px; border: 0; background: none; color: var(--texto); font: 600 1.25rem/1 var(--titulo); padding: 0 14px 0 8px; }
.campo:focus-within { border-color: var(--marca); }
.campo input:focus { outline: none; }
.simulador fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.simulador legend { margin-bottom: 6px; }
.prazos { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; }
.prazos label { position: relative; display: block; }
.prazos input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.prazos span { display: grid; place-items: center; min-height: 46px; border-radius: var(--raio); border: 1px solid rgb(255 255 255 / 0.16); font: 600 1rem/1 var(--titulo); }
.prazos input:checked + span { background: var(--marca); border-color: var(--marca); color: var(--tinta); }
.prazos input:focus-visible + span { outline: 3px solid var(--marca); outline-offset: 2px; }
.simulador__parcela { display: grid; gap: 4px; padding: 14px 0 4px; border-top: 1px dashed var(--linha); }
.simulador__parcela small { color: var(--suave); font-size: 0.875rem; }
.simulador__parcela b { font: 700 italic clamp(1.9rem, 8vw, 2.4rem)/1 var(--titulo); color: var(--marca); }
.simulador__nota { font-size: 0.8125rem; margin: 0; }

/* Troca */
.troca { background: var(--papel); color: var(--tinta); }
.troca .rotulo { color: var(--ouro-escuro); }
.troca .teto { fill: var(--ouro-escuro); }
.troca p { color: var(--tinta-suave); }
.troca__form { display: grid; gap: 14px; padding: 24px 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 18px 40px -26px rgb(0 0 0 / 0.5); }
.troca__form label { display: grid; gap: 6px; min-width: 0; font-weight: 700; font-size: 0.9375rem; }
.troca__form input { width: 100%; min-width: 0; min-height: 50px; padding: 0 14px; border: 2px solid rgb(20 20 20 / 0.16); border-radius: var(--raio); background: var(--papel); color: var(--tinta); font: 600 1.05rem/1 var(--texto-f); }
.troca__form input:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px var(--marca); }
.troca__linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.troca__form .botao { background: var(--tinta); color: var(--marca); }
.troca__form .botao:hover { background: #000; }
.troca__nota { margin: 0; font-size: 0.8125rem; }

/* A loja */
.loja { background: var(--fundo-2); }
.loja p { color: var(--suave); }
.loja__fotos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: end; overflow: hidden; }
.loja__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.loja__fotos img + img { aspect-ratio: 3 / 4.4; margin-bottom: 28px; }
.contato { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; }
.contato a, .contato p { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; margin: 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); text-decoration: none; color: var(--texto); }
.contato svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--marca); }
.contato a > span, .contato p > span { display: grid; gap: 2px; }
.contato b { font: 600 0.75rem/1 var(--titulo); letter-spacing: 0.18em; text-transform: uppercase; color: var(--marca); }
.contato a:hover span span, .contato a:hover > span > span { text-decoration: underline; text-decoration-color: var(--marca); }
.contato span { color: var(--texto); }
.contato .status { margin-top: 6px; }
.contato .status b { font: 700 0.875rem/1.3 var(--texto-f); letter-spacing: 0; text-transform: none; color: var(--texto); }
.nowrap { white-space: nowrap; }

/* Instagram da loja */
.insta { padding-block: 56px; background: linear-gradient(120deg, #18140a, var(--fundo) 55%); border-block: 1px solid var(--linha); }
.insta__linha { display: grid; gap: 18px; justify-items: start; }
.insta__icone { width: 56px; height: 56px; color: var(--marca); }
.insta h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); text-transform: none; overflow-wrap: anywhere; margin-bottom: 0.3em; }
.insta p { color: var(--suave); margin: 0; max-width: 46ch; }
@media (min-width: 900px) { .insta__linha { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; } }

/* Dúvidas */
.duvidas details { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.duvidas summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 1.0625rem; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 700 1.6rem/1 var(--titulo); color: var(--marca); transition: transform 0.2s; }
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas details p { color: var(--suave); padding-bottom: 8px; }

/* Faixa final */
.final { background: var(--marca); color: var(--tinta); padding-block: 56px; }
.final__linha { display: grid; gap: 20px; }
.final h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.final .botao { background: var(--tinta); color: var(--marca); justify-self: start; }
@media (min-width: 900px) { .final__linha { grid-template-columns: 1fr auto; align-items: center; } }

/* Rodapé: o símbolo da marca, contatos e o crédito da PulsoBrands */
.rodape { padding: 44px 0 96px; background: #070707; border-top: 1px solid var(--linha); color: var(--suave); font-size: 0.9375rem; }
.rodape__topo { display: grid; gap: 16px; justify-items: start; padding-bottom: 26px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.rodape__marca { display: block; }
.rodape__marca svg { width: 132px; height: 66px; overflow: visible; }
.rodape__frase { margin: 0; font: 700 italic 1.35rem/1.1 var(--titulo); text-transform: uppercase; color: var(--texto); }
.rodape__links { list-style: none; margin: 0; padding: 0; display: grid; }
.rodape__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--texto); text-decoration: none; }
.rodape__links a:hover span { text-decoration: underline; text-decoration-color: var(--marca); }
.rodape__links svg { width: 20px; height: 20px; flex: none; color: var(--marca); }
.rodape__links p { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 0; color: var(--texto); }
.rodape__links p svg { margin-top: 2px; }
.rodape__base { display: grid; gap: 4px; padding-top: 20px; text-align: center; font-size: 0.875rem; }
.rodape__base p { margin: 0; }
.credito { justify-self: center; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 10px; font-size: 0.8rem; color: var(--suave); text-decoration: none; transition: color 0.2s; }
.credito:hover, .credito:focus-visible { color: var(--texto); }
.credito__marca { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--texto); }
.credito__marca svg { width: 20px; height: 18px; }
@media (min-width: 900px) {
  .rodape__topo { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .rodape__links { justify-items: end; }
  .rodape__links p { max-width: 340px; text-align: right; }
}

/* WhatsApp flutuante */
.flutuante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1FAF54; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.45), 0 0 0 3px var(--marca); transition: opacity 0.2s; }
.flutuante svg { width: 30px; height: 30px; }
.flutuante { isolation: isolate; }
.flutuante::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgb(31 175 84 / 0.45); animation: pulso 3.2s 4s ease-out infinite; }
@keyframes pulso { 0% { transform: scale(1); opacity: 0.8; } 60%, 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   Ficha do veículo e fotos em tela cheia (padrão FCAR, base da G2, cores da Afonso)
   ========================================================================== */
.ficha, .tela { position: fixed; inset: 0; z-index: 150; }
.ficha[hidden], .tela[hidden] { display: none; }
.ficha__fundo { position: absolute; inset: 0; background: rgb(0 0 0 / 0.78); animation: fichaFundo 0.3s ease both; }
.ficha__painel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--fundo); animation: fichaEntra 0.38s var(--ease) both; }
.ficha.fechando .ficha__painel { animation: fichaSai 0.24s ease forwards; }
.ficha.fechando .ficha__fundo { animation: fichaFundo 0.24s ease reverse forwards; }
@keyframes fichaEntra { from { transform: translateY(40px); opacity: 0; } }
@keyframes fichaSai { to { transform: translateY(40px); opacity: 0; } }
@keyframes fichaFundo { from { opacity: 0; } }
@media (min-width: 860px) {
  .ficha__painel { inset: 24px; margin: 0 auto; max-width: 1120px; box-shadow: 0 30px 80px #000, inset 0 0 0 1px var(--linha); }
}
.ficha__topo { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 8px; border-bottom: 1px solid var(--linha); background: var(--fundo); }
.ficha__topo h2 { flex: 1; min-width: 0; margin: 0; font-size: 1rem; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha__icone { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: none; border: 0; color: var(--texto); cursor: pointer; }
.ficha__icone svg { width: 22px; height: 22px; }
.ficha__icone:hover { color: var(--marca); }
.ficha__rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ficha__grade { display: grid; }
@media (min-width: 860px) { .ficha__grade { grid-template-columns: 1.25fr 1fr; gap: 32px; padding: 28px 28px 0; } }

.gal { position: relative; background: #000; }
.gal__trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; }
.gal__trilho::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .gal__trilho { aspect-ratio: 4 / 3.4; } }
.gal__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; border: 0; padding: 0; background: #000; cursor: zoom-in; }
.gal__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gal__slide .gal__desfoque { object-fit: cover; filter: blur(22px) brightness(0.55); transform: scale(1.15); }
.gal__slide .gal__img { object-fit: contain; }
.gal__conta { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgb(0 0 0 / 0.72); color: var(--texto); font-size: 0.8125rem; font-weight: 700; pointer-events: none; }
.gal__conta svg { width: 14px; height: 14px; color: var(--marca); }
.gal__barras { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; pointer-events: none; }
.gal__barras i { flex: 1; height: 3px; background: rgb(255 255 255 / 0.35); }
.gal__barras i.on { background: var(--marca); }
.gal__seta { position: absolute; top: 50%; translate: 0 -50%; display: none; place-items: center; width: 44px; height: 44px; background: rgb(0 0 0 / 0.6); color: var(--texto); border: 0; cursor: pointer; }
.gal__seta:hover { background: var(--marca); color: var(--sobre-marca); }
.gal__seta svg { width: 22px; height: 22px; }
.gal__seta--esq { left: 10px; } .gal__seta--dir { right: 10px; }
@media (hover: hover) { .gal--varias .gal__seta { display: grid; } }
.gal__mini { display: flex; gap: 6px; padding: 8px var(--lado) 0; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 860px) { .gal__mini { padding: 8px 0 0; } }
.gal__mini button { flex: 0 0 64px; height: 48px; padding: 0; border: 2px solid transparent; background: #000; cursor: pointer; opacity: 0.6; }
.gal__mini button.on { border-color: var(--marca); opacity: 1; }
.gal__mini img { width: 100%; height: 100%; object-fit: cover; }

.ficha__info { padding: 22px var(--lado) 8px; }
@media (min-width: 860px) { .ficha__info { padding: 0; } }
.ficha__marca { margin: 0 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--marca); }
.ficha__info h3 { margin: 0; font-size: clamp(2rem, 7vw, 2.75rem); text-transform: uppercase; }
.ficha__versao { margin: 6px 0 0; color: var(--suave); font-weight: 600; }
.ficha__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ficha__tags span { padding: 5px 9px; background: var(--marca); color: var(--sobre-marca); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ficha__preco { margin: 18px 0 0; padding: 16px 0; border-block: 1px solid var(--linha); }
.ficha__preco strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--marca); }
.ficha__preco small { display: block; margin-top: 4px; color: var(--suave); font-size: 0.8125rem; }
.ficha__chaves { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ficha__chaves li { padding: 12px 10px; background: var(--fundo-alt); }
.ficha__chaves small { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--suave); }
.ficha__chaves b { display: block; margin-top: 2px; font-size: 1rem; font-weight: 900; }
.ficha__desc { margin: 16px 0 0; color: #E3E3DE; }
.ficha__cta { display: grid; gap: 10px; margin-top: 20px; }
.ficha__cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ficha__cta .botao { width: 100%; }
.ficha__cta .botao--linha { font-size: 0.9375rem; padding: 0 12px; }
.ficha__secao { padding: 28px var(--lado) 0; }
@media (min-width: 860px) { .ficha__secao { padding: 36px 28px 0; } .ficha__duas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; } .ficha__duas .ficha__secao { padding-right: 0; } .ficha__duas .ficha__secao + .ficha__secao { padding-left: 0; } }
.ficha__secao h4 { margin: 0 0 14px; font: 700 italic 1.2rem/1.1 var(--titulo); text-transform: uppercase; }
.ficha__secao h4::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 8px; background: var(--marca); }
.tecnica { margin: 0; display: grid; }
.tecnica div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.tecnica dt { color: var(--suave); }
.tecnica dd { margin: 0; font-weight: 700; text-align: right; }
.opcionais { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opcionais li { display: flex; gap: 10px; align-items: flex-start; }
.opcionais svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--marca); }
.semelhantes { list-style: none; margin: 0 calc(-1 * var(--lado)); padding: 0 var(--lado) 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
@media (min-width: 860px) { .semelhantes { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); } }
.semelhantes li { flex: 0 0 62%; scroll-snap-align: start; }
.semelhantes button { display: block; width: 100%; padding: 0; border: 1px solid var(--linha); background: var(--fundo-alt); color: var(--texto); text-align: left; cursor: pointer; font: inherit; }
.semelhantes button:hover { border-color: var(--marca); }
.semelhantes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.semelhantes span { display: block; padding: 10px 12px 12px; font-weight: 900; line-height: 1.2; }
.semelhantes small { display: block; margin-top: 2px; font-weight: 700; color: var(--marca); }
.ficha__fim { height: 28px; }
.ficha__barra { display: flex; align-items: center; gap: 12px; padding: 10px var(--lado) calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linha); background: #000; }
.ficha__barra div { flex: 1; min-width: 0; }
.ficha__barra small { display: block; font-size: 0.75rem; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha__barra b { display: block; font-size: 1rem; font-weight: 900; color: var(--marca); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha__barra .botao { padding: 0 16px; }
.ficha__barra .botao { flex: none; }
@media (min-width: 860px) { .ficha__barra { padding-inline: 28px; } }
.aberta-ficha { overflow: hidden; }
.aberta-ficha .flutuante { opacity: 0; pointer-events: none; }
.ficha__topo h2 { font: 700 italic 1rem/1.2 var(--titulo); text-transform: uppercase; }
.ficha__preco strong { font-family: var(--titulo); font-style: italic; color: var(--marca); }
.hero.pulou h1 .p { animation: none; }

/* ==========================================================================
   Movimento ao rolar: blocos sobem e aparecem uma vez; o traço do teto se desenha;
   os cards entram em sequência e o ano carimba.
   ========================================================================== */
.com-revela .revela:not(.carro) { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.com-revela .revela--ok:not(.carro) { opacity: 1; transform: none; }
.com-revela .loja__fotos.revela img { transform: translateX(-24px); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.com-revela .loja__fotos.revela img + img { transform: translateX(24px); transition-delay: 0.15s; }
.com-revela .loja__fotos.revela--ok img { transform: none; opacity: 1; }
.com-revela .revela .teto { transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s 0.2s var(--ease); }
.com-revela .revela--ok .teto { transform: none; }
.com-revela .carro.revela { opacity: 0; }
.com-revela .carro.revela--ok { opacity: 1; animation: card-entra 0.75s var(--d, 0ms) var(--ease) backwards; }
.com-revela .carro.revela--ok .carro__ano { animation: carimbo 0.6s calc(var(--d, 0ms) + 0.3s) cubic-bezier(0.2, 1.5, 0.35, 1) backwards; }
@keyframes card-entra { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
@keyframes carimbo { from { opacity: 0; transform: rotate(-80deg) scale(0.3); } }

/* ==========================================================================
   Abertura (2,3 s): o "A" se monta em peças, o traço do carro passa, a frase
   aparece palavra por palavra e a cortina se abre na diagonal das letras.
   Só transform e opacity. Sem JS, termina sozinha (animações com fim).
   ========================================================================== */
.abertura { display: none; }
.com-abertura .abertura { display: block; position: fixed; inset: 0; z-index: 150; animation: abertura-sai 0.01s 2.32s forwards; }
.abertura__cortina { position: absolute; inset: 0; background: var(--fundo); will-change: transform; }
.abertura__cortina--esq { clip-path: polygon(0 0, 58.4% 0, 42.4% 100%, 0 100%); animation: cortina-esq 0.72s 1.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.abertura__cortina--dir { clip-path: polygon(57.8% 0, 100% 0, 100% 100%, 41.8% 100%); animation: cortina-dir 0.72s 1.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.abertura__fresta { position: absolute; inset: 0; background: var(--marca); clip-path: polygon(57.7% 0, 58.5% 0, 42.5% 100%, 41.7% 100%); opacity: 0; animation: fresta 0.6s 1.35s ease forwards; }
.abertura__cena { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 0 var(--lado); animation: cena-sai 0.62s 1.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.abertura__simbolo { width: min(64vw, 320px); height: auto; aspect-ratio: 1236 / 618; overflow: visible; }
.abertura__simbolo use { transform-box: fill-box; transform-origin: 50% 50%; }
.s-topo, .s-perna1, .s-perna2 { fill: #fff; }
.s-teto, .s-linha { fill: var(--marca); }
.s-topo { animation: peca-cai 0.55s 0.05s var(--ease) both; }
.s-perna1 { animation: peca-sobe 0.55s 0.14s var(--ease) both; }
.s-perna2 { animation: peca-sobe 0.55s 0.22s var(--ease) both; }
.s-teto { animation: risco-esq 0.6s 0.42s var(--ease) both; }
.s-linha { animation: risco-dir 0.6s 0.54s var(--ease) both; }
.abertura__frase { margin: 0; text-align: center; font: 700 italic clamp(1.7rem, 7.4vw, 2.8rem)/1.04 var(--titulo); text-transform: uppercase; color: var(--texto); }
.abertura__frase em { display: block; }
.abertura__frase span { display: inline-block; opacity: 0; animation: palavra-ab 0.42s var(--ease) forwards; }
.abertura__frase > span:nth-of-type(1) { animation-delay: 0.82s; }
.abertura__frase > span:nth-of-type(2) { animation-delay: 0.9s; }
.abertura__frase > span:nth-of-type(3) { animation-delay: 0.98s; }
.abertura__frase em span:nth-of-type(1) { animation-delay: 1.1s; }
.abertura__frase em span:nth-of-type(2) { animation-delay: 1.18s; }
.abertura__pular { position: absolute; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 2; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.35); background: rgb(11 11 12 / 0.6); color: var(--texto); font: 700 0.875rem/1 var(--texto-f); cursor: pointer; animation: cena-sai 0.3s 1.6s forwards; }
@keyframes peca-cai { from { opacity: 0; transform: translateY(-300px); } }
@keyframes peca-sobe { from { opacity: 0; transform: translateY(300px); } }
@keyframes risco-esq { from { opacity: 0; transform: translateX(-520px) skewX(-24deg); } }
@keyframes risco-dir { from { opacity: 0; transform: translateX(520px) skewX(-24deg); } }
@keyframes palavra-ab { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fresta { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cena-sai { to { opacity: 0; transform: scale(1.45); } }
@keyframes cortina-esq { to { transform: translateX(-66%); } }
@keyframes cortina-dir { to { transform: translateX(66%); } }
@keyframes abertura-sai { to { visibility: hidden; pointer-events: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .abertura { display: none !important; }
}
