:root {
  --bg: #0a1630;
  --surface: #0f1f3f;
  --surface-2: #162950;
  --line: #24375e;
  --text: #f4f1ea;
  --muted: #a9b3c7;
  --accent: #c49a49;
  --accent-ink: #0c1f40;
  --danger: #ff8a7a;
  --radius: 14px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 12px;
  background: rgba(10, 22, 48, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 420px) { .brand-logo { height: 38px; } }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 22px/1 var(--display); letter-spacing: 0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 12px var(--mono); padding: 6px 10px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

main { padding-inline: clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }

.hero {
  display: grid; grid-template-columns: 0.95fr 1.2fr; align-items: center; gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding-bottom: 0; }
.eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin: 0 0 14px; }
h1 {
  font: 800 clamp(38px, 5.4vw, 66px)/1.02 var(--display);
  text-transform: uppercase; letter-spacing: -0.5px; margin: 0 0 20px;
  text-wrap: balance;
}
h1 em { font: italic 400 0.86em/1 var(--serif); text-transform: none; color: var(--accent); display: block; margin-top: 8px; letter-spacing: 0; }
.lead { font-size: clamp(17px, 2vw, 19px); color: #cfd6e4; max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* Banner dos carros na tela principal: os carros passam um a um; o enquadramento mostra o carro (parte de baixo da foto de estúdio). */
.hero-banner {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #e9edf3, #cfd6e2); aspect-ratio: 2.05 / 1; min-width: 0;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(196, 154, 73, 0.18);
}
.banner-track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.2, 1); will-change: transform; }
.banner-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; display: block; color: inherit; text-decoration: none; }
.banner-slide img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }
.banner-slide:first-child:last-child img { height: 100%; object-fit: cover; }
.banner-caption {
  position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(to top, rgba(10, 22, 48, 0.94), rgba(10, 22, 48, 0));
}
.banner-name { font: 700 clamp(14px, 1.6vw, 18px)/1.2 var(--body); color: #fff; }
.banner-sub { display: block; font: 500 12px var(--mono); color: #cfd6e4; margin-top: 2px; }
.banner-price { font: 800 clamp(20px, 2.4vw, 28px)/1 var(--display); color: var(--accent); white-space: nowrap; }
.banner-all {
  position: absolute; top: 12px; right: 12px; z-index: 2; text-decoration: none; font: 700 12px var(--body);
  background: rgba(10, 22, 48, 0.86); color: #fff; border: 1px solid var(--accent); border-radius: 999px; padding: 7px 12px;
}
.banner-dots { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 6px; }
.banner-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgba(10, 22, 48, 0.35); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.banner-dots button[aria-current="true"] { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); width: 22px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; cursor: pointer;
  font: 700 16px var(--body); text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d4ad60; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

section h2 { font: 800 clamp(26px, 3.4vw, 38px)/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.3px; margin: 0 0 24px; }

.how { padding-block: clamp(40px, 7vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.num { font: 500 12px var(--mono); color: var(--accent); }
.steps h3 { font-size: 19px; margin: 6px 0; }
.steps p { color: var(--muted); margin: 0; }

.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; padding-bottom: clamp(40px, 7vw, 80px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 16 / 10; }
.g-side { display: flex; flex-direction: column; gap: 12px; }
.g-side img { aspect-ratio: 4 / 3; }
figcaption { font: italic 22px/1.3 var(--serif); color: #cfd6e4; }

.consulta { padding-bottom: clamp(48px, 8vw, 96px); scroll-margin-top: 84px; }
.form-card {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px);
}
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-head h2 { margin: 0; }
.progress-label { font: 500 13px var(--mono); color: var(--muted); margin: 0; white-space: nowrap; }
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; margin: 16px 0 28px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.3%; background: var(--accent); transition: width 0.3s ease; }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
legend { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 20px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-weight: 600; font-size: 15px; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.field-short input { max-width: 200px; }
input, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font: 16px var(--body);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 154, 73, 0.22); }
input[aria-invalid="true"] { border-color: var(--danger); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options button {
  min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  font: 500 15px var(--body);
}
.options button:hover { border-color: var(--muted); }
.options button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.options.invalid button { border-color: var(--danger); }
.hint { color: var(--muted); font-size: 13px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfd6e4; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent.invalid { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error { margin: 20px 0 0; color: var(--danger); font-size: 14px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-nav .btn-primary { margin-left: auto; min-width: 180px; }

.done { text-align: center; padding: 20px 0; }
.done-mark {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 30px; font-weight: 700;
}
.done h2 { margin-bottom: 10px; }
.done p { color: #cfd6e4; }
.done-code { font: 500 14px var(--mono); }

.footer {
  border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer p { margin: 4px 0; }
.footer .credit { font-size: 12px; max-width: 60ch; margin: 10px auto 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-nav .btn-primary { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 520px) { .nav { margin-right: 0; } .nav a { padding: 8px 8px; font-size: 13px; } .brand-logo { height: 30px; } }

.car-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-weight: 600; font-size: 14px; }
.car-chip button { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }

.btn-stock { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-stock:hover { background: rgba(196, 154, 73, 0.14); }
.nav a.nav-cta { color: var(--accent); border: 1px solid var(--accent); }
.nav a.nav-cta:hover { background: rgba(196, 154, 73, 0.14); color: var(--accent); }

.featured { padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.featured-head h2 { margin: 0 0 8px; }
.featured-lead { color: var(--muted); margin: 0; max-width: 56ch; }
.featured-grid { margin: 0; }
@media (max-width: 760px) { .featured-head .btn { width: 100%; } .featured-grid { grid-template-columns: 1fr; } }

.about-teaser { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 48px); padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.teaser-img img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.teaser-copy h2 { margin: 0 0 12px; font: 800 clamp(24px, 3.4vw, 34px)/1.15 var(--display); text-wrap: balance; }
.teaser-copy p:not(.eyebrow) { color: #cfd6e4; max-width: 44ch; margin: 0 0 22px; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } }
