:root {
  --grafite: #0B0B0C;
  --carvao: #131315;
  --ouro: #B8913A;
  --ouro-claro: #E0C17A;
  --ouro-escuro: #8F6E22;
  --texto: #E9E9E5;
  --suave: #A9A9A3;
  --linha: rgba(224, 193, 122, 0.28);
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--grafite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
address { font-style: normal; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ouro-claro); outline-offset: 3px; }

/* Palavras separadas pelo JS (o texto inteiro continua no aria-label) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.12em 0.14em 0; margin-bottom: -0.14em; }
.w > span { display: inline-block; will-change: transform; }

.h2 { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 1; }

/* Botões */
.btn {
  display: inline-block;
  padding: 16px 30px;
  background: var(--ouro);
  color: #121212;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--ouro);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--ouro-claro); border-color: var(--ouro-claro); }
.btn-line { background: transparent; color: var(--texto); border-color: rgba(255, 255, 255, 0.4); }
.btn-line:hover { background: var(--texto); color: #121212; border-color: var(--texto); }
.btn-grande { padding: 22px 44px; font-size: 1.25rem; }

/* Barra do topo */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.topbar.is-solid { background: rgba(11, 11, 12, 0.82); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
.brand-name { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-weight: 500; font-size: 1rem; }
.nav a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.nav a:hover { opacity: 1; color: var(--ouro-claro); }
.topbar-cta { padding: 11px 22px; background: var(--ouro); color: #121212; font-weight: 600; font-size: 0.98rem; text-decoration: none; border-radius: 999px; transition: background 0.3s ease; }
.topbar-cta:hover { background: var(--ouro-claro); }

/* Topo */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 100svh; padding: 140px var(--pad) 96px; background: var(--grafite); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 62% 50%; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.7) 38%, rgba(11, 11, 12, 0.05) 72%), linear-gradient(0deg, rgba(11, 11, 12, 0.85) 0%, transparent 38%); }
.hero-text { position: relative; max-width: 1020px; }
.hero-title { font-size: clamp(3.6rem, 9.4vw, 9.4rem); line-height: 0.92; letter-spacing: -0.01em; }
.hero-sub { max-width: 31em; margin: 30px 0 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: #DCDCD7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-foot { position: absolute; right: var(--pad); bottom: 40px; margin: 0; font-size: 0.95rem; color: var(--suave); }
.hero-scroll { position: absolute; left: var(--pad); bottom: 28px; width: 1px; height: 54px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.hero-scroll span { display: block; width: 100%; height: 50%; background: var(--ouro-claro); animation: rola 2.2s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
@keyframes rola { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

/* Faixa de condições */
.faixa { overflow: hidden; background: var(--ouro); color: #121212; border-block: 1px solid var(--ouro-escuro); }
.faixa-track { display: flex; width: max-content; animation: faixa 46s linear infinite; }
.faixa-grupo { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.faixa-grupo li { display: flex; align-items: center; gap: 36px; padding: 22px 0 22px 36px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; white-space: nowrap; }
.faixa-grupo li::after { content: ''; width: 11px; height: 11px; background: #121212; transform: rotate(45deg); }
@keyframes faixa { to { transform: translateX(-50%); } }

/* Carros: vitrine horizontal */
.estoque { background: var(--carvao); }
.estoque-miolo { display: flex; flex-direction: column; gap: clamp(24px, 3.4vw, 44px); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.estoque-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 var(--pad); }
.estoque-nota { max-width: 40em; margin: 14px 0 0; font-size: 1rem; color: var(--suave); }
.estoque-controles { flex: none; display: flex; align-items: center; gap: 22px; }
.contador { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--ouro-claro); }
.setas { display: flex; gap: 10px; }
.seta { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; color: var(--texto); background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.seta:hover { background: var(--ouro); color: #121212; border-color: var(--ouro); }
.seta:active { transform: scale(0.94); }
.progresso { height: 2px; margin: 0 var(--pad); background: rgba(255, 255, 255, 0.16); }
.progresso span { display: block; width: 100%; height: 100%; background: var(--ouro-claro); transform: scaleX(0.2); transform-origin: left; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

.lista { display: flex; gap: clamp(24px, 3.4vw, 56px); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.lista::-webkit-scrollbar { display: none; }
.carro { flex: none; width: clamp(300px, 42vw, 680px); scroll-snap-align: start; }
.carro-foto { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1b1b1d; }
.carro-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carro:hover .carro-foto img { transform: scale(1.04); }
.carro-selo { position: absolute; left: 14px; top: 14px; padding: 5px 12px; background: rgba(11, 11, 12, 0.78); color: var(--ouro-claro); font-size: 0.85rem; font-weight: 600; border-radius: 999px; }
.carro-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; padding-top: 20px; }
.carro-cab { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.carro-nome { font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1; }
.carro-ano { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--ouro-claro); }
.carro-detalhes { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.carro-detalhes li { padding: 3px 12px; font-size: 0.92rem; font-weight: 500; color: var(--suave); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }
.carro-lado { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.carro-preco { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.carro-preco.consulte { font-family: var(--body); font-style: normal; font-weight: 500; font-size: 1rem; color: var(--suave); }

/* Financiar e vender */
.dupla { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 150px) var(--pad); background: var(--grafite); }
.selo { position: absolute; right: -9vw; top: 50%; width: min(52vw, 680px); height: auto; margin-top: calc(min(52vw, 680px) / -2); border-radius: 50%; opacity: 0.1; will-change: transform; }
.dupla-linha { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 64px; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--linha); }
.dupla-linha:last-of-type { border-bottom: 1px solid var(--linha); }
.dupla-corpo p { max-width: 24em; margin: 0 0 26px; font-size: 1.2rem; color: #D7D7D2; }

/* Como chegar */
.onde { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; padding: clamp(72px, 10vw, 130px) var(--pad); background: var(--carvao); }
.onde-map { min-height: 460px; background: #1b1b1d; border: 1px solid var(--linha); overflow: hidden; }
.onde-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }
.onde-info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.onde-info address { font-size: 1.3rem; line-height: 1.5; }
.contatos { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.contatos a { text-decoration-color: var(--ouro); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.horario { margin: 0; color: var(--suave); font-size: 1rem; }

/* Chamada final */
.final { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; padding: clamp(96px, 14vw, 200px) var(--pad); background: var(--grafite); border-top: 1px solid var(--linha); }
.final-title { max-width: 12em; font-size: clamp(3.6rem, 10vw, 10rem); line-height: 0.92; }

/* Rodapé */
.footer { display: flex; align-items: center; gap: 20px; padding: 36px var(--pad) 44px; background: #060607; color: var(--suave); }
.footer img { display: block; border-radius: 50%; }
.footer p { margin: 0; }
.footer-name { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.7rem; color: var(--texto); }

/* Botão fixo no celular */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  padding: 16px 20px;
  background: var(--ouro);
  color: #121212;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.35s ease;
}
.sticky-cta.is-on { transform: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .brand-name { display: none; }
  .hero { padding-bottom: 110px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.62) 46%, rgba(11, 11, 12, 0.1) 100%); }
  .hero-img { top: -26%; height: 134%; object-position: 76% 50%; }
  .hero-foot { display: none; }
  .estoque-head { flex-direction: column; align-items: flex-start; }
  .contador { display: none; }
  .seta { width: 48px; height: 48px; }
  .carro { width: 82vw; }
  .carro-info { grid-template-columns: minmax(0, 1fr); }
  .carro-lado { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; }
  .dupla-linha { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .selo { right: -30vw; width: 90vw; margin-top: -45vw; }
  .onde { grid-template-columns: minmax(0, 1fr); }
  .onde-map, .onde-map iframe { min-height: 320px; }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-scroll span { animation: none; }
  .btn, .topbar, .sticky-cta, .nav a { transition: none; }
  .seta, .progresso span, .carro-foto img { transition: none; }
  .carro:hover .carro-foto img { transform: none; }
}
