/* Leauto Nissan — folha de estilos única, sem dependências.
   Mantém a linguagem do site atual: preto e branco, fonte Nissan Brand, títulos leves com traço
   vermelho Nissan, botões pretos arredondados. As fontes ficam em /assets/fonts (woff2). */

@font-face { font-family: "Nissan Brand"; src: url("/assets/fonts/NissanBrand-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nissan Brand"; src: url("/assets/fonts/NissanBrand-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nissan Brand"; src: url("/assets/fonts/NissanBrand-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #c3002f;
  --red-dark: #a60028;
  --black: #000;
  --ink: #1a1a1a;
  --text: #343434;
  --muted: #5c5c5c;
  --line: #d9d9d9;
  --soft: #efefef; /* wds2-colour-nissangrey */
  --white: #fff;
  --ok: #0a8035; /* wds2-colour-validation-success */
  --erro: #e00034; /* wds2-colour-validation-error */
  --whatsapp: #17773f; /* verde escuro: texto branco com contraste AA */

  --font: "Nissan Brand", "Helvetica Neue", Arial, system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 4px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 300 1rem/1.625 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 4.2vw, 2.625rem); line-height: 1.24; } /* guia: 42px a 24px */
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 400; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
.icon { width: 24px; height: 24px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--black); color: var(--white); padding: 12px 16px; }
.skip-link:focus { top: 8px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: #d9d9d9; }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--white); }
.section--tight { padding-top: 16px; }

/* Título de seção com o traço vermelho do site atual */
.title { position: relative; padding-top: 18px; }
.title::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--red); }
.title--center { text-align: center; }
.title--center::before { left: 50%; transform: translateX(-50%); }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 70ch; }
.section--dark .lead { color: #bdbdbd; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.head > div { min-width: 0; max-width: 760px; }
.head h2, .head h1 { margin-bottom: 8px; }
.head .lead { margin: 0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 30px; border: 1.5px solid transparent; border-radius: var(--pill);
  font: 700 .875rem/1.15 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn .icon { width: 20px; height: 20px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #4d4d4d; color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { background: #d6d6d6; border-color: #d6d6d6; color: #8a8a8a; cursor: not-allowed; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--line { border-color: var(--white); color: var(--white); }
.section--dark .btn--line:hover { background: var(--white); color: var(--black); }
.btn--wa { background: var(--whatsapp); color: var(--white); }
.btn--wa:hover { background: #115c30; color: var(--white); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.more .icon { width: 18px; height: 18px; }

/* Barra superior */
.topbar { background: var(--black); color: #cfcfcf; font-size: .8125rem; }
.topbar .container { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 36px; overflow-x: auto; white-space: nowrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 16px; height: 16px; }
@media (max-width: 720px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
/* Logo conforme a Calibração de Branding Nissan: no computador, emblema Nissan (mín. 70x58px) + nome da
   concessionária em Nissan Brand Bold; no tablet e no celular, a palavra NISSAN com o nome embaixo */
.brand { flex: none; display: flex; align-items: center; gap: 16px; padding-block: 6px; color: var(--black); text-decoration: none; }
.brand__emblema { height: 60px; width: auto; }
.brand__palavra { display: none; }
.brand__nome { font: 700 1.125rem/1 var(--font); letter-spacing: .04em; padding-left: 16px; border-left: 1.5px solid var(--black); align-self: stretch; display: flex; align-items: center; margin-block: 8px; }
.brand:hover { color: var(--black); }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav a[aria-current="page"], .nav a.is-current { color: var(--red); }
.nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9375rem; padding: 9px 18px; }
.nav .sub a:hover { background: var(--soft); }
.header__cta { flex: none; }
.menu-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; margin-right: -12px; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--white); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 40px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 15px 0; font-size: .9375rem; }
  .nav .sub { position: static; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; }
  .nav .sub a { padding: 8px 0; color: var(--muted); }
}
@media (max-width: 1180px) {
  .brand { flex-direction: column; align-items: center; gap: 5px; }
  .brand__emblema { display: none; }
  .brand__palavra { display: block; width: 116px; height: auto; }
  .brand__nome { font-size: .72rem; letter-spacing: .32em; padding-left: .32em; border-left: 0; margin: 0; }
}

/* Trilha */
.breadcrumb { font-size: .8125rem; color: var(--muted); padding-block: 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9a9a9a; }
.breadcrumb a { text-decoration: none; }

/* Carrossel de banners (scroll-snap, sem biblioteca) */
.banners { position: relative; background: #1a1a1a; }
.banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; scroll-snap-align: start; }
.banners__slide img { width: 100%; height: auto; aspect-ratio: 1920 / 550; object-fit: cover; }
@media (max-width: 720px) { .banners__slide img { aspect-ratio: 1 / 1; } }
.banners__nav { position: absolute; inset: auto 0 12px 0; display: flex; justify-content: center; gap: 8px; }
.banners__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .5); cursor: pointer; }
.banners__dot[aria-current="true"] { background: var(--white); }
.banners__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--black); display: grid; place-items: center; cursor: pointer; }
.banners__arrow--prev { left: 16px; } .banners__arrow--next { right: 16px; }
.banners__arrow--prev .icon { transform: rotate(180deg); }
@media (max-width: 720px) { .banners__arrow { display: none; } }

/* Faixa de abertura (H1 de verdade, abaixo do banner) */
.intro { border-bottom: 1px solid var(--line); }
.intro .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; align-items: center; padding-block: 32px; }
.intro h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.intro p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .intro .container { grid-template-columns: 1fr; } }

/* Atalhos */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quick a { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--white); text-decoration: none; font-weight: 700; font-size: .875rem; color: var(--ink); }
.quick a:hover { background: var(--soft); color: var(--ink); }
.quick .icon { width: 28px; height: 28px; color: var(--red); }
.quick small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } .quick a { padding: 14px 12px; } }

/* Grades */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid > * { min-width: 0; }

/* Cartão de oferta */
.offer { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.offer:hover { box-shadow: var(--shadow); }
.offer__img { background: linear-gradient(180deg, #fff, #efefef); aspect-ratio: 890 / 540; }
.offer__img img { width: 100%; height: 100%; object-fit: contain; }
.offer__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; flex: 1; }
.offer__tag { align-self: flex-start; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.offer h2, .offer h3 { font-size: 1.25rem; margin: 0; font-weight: 400; }
.offer h2 a, .offer h3 a { text-decoration: none; }
.offer h2 a::after, .offer h3 a::after { content: ""; position: absolute; inset: 0; }
.offer__ver { color: var(--muted); font-size: .9375rem; }
.price { margin-top: 10px; }
.price s { display: block; font-size: .8125rem; color: var(--muted); }
.price strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.price small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.offer__cond { font-size: .8125rem; color: var(--muted); margin: 6px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; background: var(--soft); color: var(--ink); }
.chip--ok { background: var(--ok); color: var(--white); }
.chip--dark { background: var(--black); color: var(--white); }
.offer__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.legal { font-size: .75rem; color: var(--muted); max-width: 100ch; }

/* Cartão de modelo */
.model { position: relative; display: flex; flex-direction: column; text-align: center; padding: 8px 8px 24px; }
.model img { width: 100%; aspect-ratio: 890 / 540; object-fit: contain; transition: transform .3s; }
.model:hover img { transform: scale(1.03); }
.model h3 { font-size: 1.375rem; margin: 6px 0 2px; }
.model h3 a { text-decoration: none; }
.model h3 a::after { content: ""; position: absolute; inset: 0; }
.model p { margin: 0; color: var(--muted); font-size: .9375rem; }
.model .price { margin-top: 8px; }

/* Cartões simples */
.card { display: flex; flex-direction: column; gap: 8px; background: var(--white); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.section--soft .card { border-color: transparent; }
.card .icon { width: 32px; height: 32px; color: var(--red); }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; transition: box-shadow .2s; }
a.card:hover { box-shadow: var(--shadow); color: inherit; }
a.card .more { margin-top: auto; padding-top: 8px; color: var(--ink); }

/* Página de modelo */
.mhero .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px 48px; align-items: center; padding-block: 24px 48px; }
.mhero__img { background: radial-gradient(60% 55% at 50% 60%, #f1f1f1, #fff 70%); }
.mhero h1 { margin-bottom: 4px; }
.mhero .price strong { font-size: 2rem; }
@media (max-width: 860px) { .mhero .container { grid-template-columns: 1fr; } .mhero__img { order: -1; } }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 24px 0 0; background: var(--line); border: 1px solid var(--line); }
.specs div { background: var(--white); padding: 14px 16px; }
.specs dt { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-size: 1.0625rem; color: var(--ink); }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.feature h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Tabelas (ficha técnica e comparativo) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--black); color: var(--white); font-weight: 700; }
tbody th { font-weight: 400; color: var(--muted); width: 38%; }
tbody tr:last-child > * { border-bottom: 0; }
.compare th, .compare td { min-width: 180px; }
.compare tbody th { width: auto; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 1.0625rem; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); }
.accordion details[open] summary::after { content: "–"; }
.accordion details > :not(summary) { margin-bottom: 18px; }
.accordion { border-top: 1px solid var(--line); }

/* Layout dividido */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 1em 0; }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; }
.list-check .icon { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); font-weight: 700; font-size: .875rem; }

/* Formulários */
.form { display: grid; gap: 14px; background: var(--white); color: var(--text); padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); }
.form h2 { font-size: 1.5rem; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .8125rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--white); border: 1px solid #9a9a9a; border-radius: var(--radius); }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 2px var(--black); }
.field [aria-invalid="true"] { border-color: var(--erro); }
.field__error { color: var(--erro); font-size: .8125rem; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--black); }
.form__status { display: none; font-size: .9375rem; padding: 12px 16px; border-radius: var(--radius); }
.form__status.is-success { display: block; background: #fff; border-left: 4px solid var(--ok); color: var(--ok); }
.form__status.is-error { display: block; background: #fff; border-left: 4px solid var(--erro); color: var(--erro); }
.form__note { font-size: .75rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Lojas */
.store { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.store h3, .store h2 { font-size: 1.375rem; margin: 0; }
.store address { font-style: normal; }
.store dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9375rem; }
.store dt { color: var(--muted); }
.store dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; }
.status--open { color: var(--ok); } .status--open::before { background: #1f8a4c; }
.status--closed { color: var(--muted); }
.tag { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; font-size: .8125rem; background: var(--soft); border-radius: var(--pill); }

/* Blog */
.post-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-card h2, .post-card h3 { font-size: 1.15rem; margin: 0; font-weight: 400; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.meta { font-size: .8125rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Faixa de chamada */
.cta-band { background: var(--black); color: var(--white); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.cta-band .btn--line { border-color: var(--white); color: var(--white); }
.cta-band .btn--line:hover { background: var(--white); color: var(--black); }

/* Rodapé */
.footer { background: var(--black); color: #bdbdbd; font-size: .9375rem; padding-top: 56px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; }
.footer strong { color: var(--white); }
.footer__brand img { height: 36px; width: auto; margin-bottom: 16px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #444; border-radius: 50%; color: var(--white); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid #333; margin-top: 48px; padding-block: 22px; font-size: .8125rem; color: #9a9a9a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* WhatsApp flutuante e aviso de cookies */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--whatsapp); color: var(--white); padding: 13px 18px; border-radius: var(--pill); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); text-decoration: none; font-weight: 700; font-size: .875rem; }
.wa-float:hover { background: #115c30; color: var(--white); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 13px; } }
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 420px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; font-size: .8125rem; }
.consent p { margin: 0 0 10px; }
.consent .actions { gap: 8px; }
.consent .btn { min-height: 38px; padding: 8px 18px; }
@media (max-width: 560px) { .consent { right: 80px; left: 12px; bottom: 12px; } }

/* Seminovos */
.used__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.used__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sem-foto { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; background: var(--soft); aspect-ratio: 4 / 3; }
.sem-foto .icon { width: 36px; height: 36px; }
.used .meta { margin-top: 2px; }
.galeria { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); margin-bottom: 8px; }
.galeria > * { flex: 0 0 100%; scroll-snap-align: start; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.filtros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 16px; background: var(--soft); border-radius: var(--radius); }
@media (max-width: 1000px) { .filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filtros { grid-template-columns: 1fr 1fr; } }
.aviso { background: #fff7e0; border: 1px solid #f0d88a; color: #5c4400; padding: 12px 16px; border-radius: var(--radius); font-size: .875rem; }
.opcionais { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* Comparativo de versões */
.versoes { max-height: 75vh; overflow: auto; }
.versoes__tabela th, .versoes__tabela td { min-width: 120px; text-align: center; vertical-align: middle; }
.versoes__tabela thead th { position: sticky; top: 0; z-index: 2; font-size: .875rem; }
.versoes__tabela thead th small { display: block; font-weight: 400; font-size: .75rem; color: #cfcfcf; }
.versoes__tabela tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--white); text-align: left; min-width: 220px; max-width: 320px; color: var(--text); width: auto; }
.versoes__tabela thead th:first-child { left: 0; z-index: 3; text-align: left; }
.versoes__tabela td .icon { width: 20px; height: 20px; color: var(--red); margin-inline: auto; }
.versoes__tabela td { color: #9a9a9a; }
.versoes__grupo th { background: var(--soft) !important; text-align: left !important; font-weight: 700; color: var(--ink) !important; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
[data-comparativo].so-diferencas tr.igual { display: none; }
.check--toggle { align-self: end; font-size: .875rem; color: var(--ink); }
@media (max-width: 560px) { .versoes__tabela tbody th[scope="row"] { min-width: 160px; font-size: .8125rem; } .versoes__tabela th, .versoes__tabela td { min-width: 96px; } }
.versoes__tabela td { position: relative; }

/* Fotos das lojas */
.store { overflow: hidden; }
.store__foto { margin: -24px -24px 4px; background: var(--soft); flex: none; }
.store__foto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 80%; }
.loja-foto { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.loja-foto img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 80%; }

/* Quem somos */
.foto-historica { margin: 0; }
.foto-historica img { width: 100%; height: auto; border-radius: var(--radius); filter: none; }
.foto-historica figcaption { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.timeline li.is-nissan::before { background: var(--red); border-color: var(--red); }
.timeline__ano { font-weight: 700; color: var(--ink); font-size: 1.125rem; }
.timeline li.is-nissan .timeline__ano { color: var(--red); }
.timeline h3 { margin: 0 0 4px; font-weight: 700; font-size: 1.0625rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Capas do blog (a imagem traz o título, então o alt fica vazio para não repetir a leitura) */
.post-card__capa { margin: -24px -24px 8px; aspect-ratio: 1200 / 630; background: #000; }
.post-card__capa img { width: 100%; height: 100%; object-fit: cover; }
.post-card { overflow: hidden; }
.post-capa { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 24px; }

/* Conteúdo vindo do blog antigo: tabelas e links longos não podem alargar a página no celular */
.prose { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.versoes:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Banner de reserva: quadro de preço atual desenhado sobre a última arte do modelo.
   Posições em % da arte (1920x550 no computador, 890x890 no celular); fonte em cqw para escalar junto. */
.banners__slide--auto { position: relative; display: block; container-type: inline-size; color: #fff; text-decoration: none; }
.banners__slide--auto:hover { color: #fff; }
.ba { position: absolute; inset: 0; font-family: var(--font); pointer-events: none; }
.ba__box { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: .9cqw; padding: 0 3.4cqw;
  background: linear-gradient(180deg, #3a3a3e, #1c1c1f); border: .25cqw solid #f05a8a; box-shadow: 0 0 1.4cqw rgba(240, 90, 138, .6), inset 0 0 1cqw rgba(0, 0, 0, .5);
  clip-path: polygon(2.2% 0, 97.8% 0, 100% 8%, 100% 92%, 97.8% 100%, 2.2% 100%, 0 92%, 0 8%); }
.ba--desk { left: 51.2%; top: 25%; width: 44.2%; height: 50.5%; }
.ba--mob { display: none; }
.ba__tit { font-weight: 300; font-size: 1.95cqw; letter-spacing: .02em; white-space: nowrap; }
.ba__tit b { font-weight: 700; }
.ba__row { display: flex; align-items: center; gap: 1.6cqw; }
.ba__preco { display: flex; flex-direction: column; }
.ba__ap { font-weight: 700; font-size: 1.25cqw; }
.ba__v { font-weight: 700; font-size: 4.1cqw; line-height: 1; letter-spacing: -.02em; }
.ba__v small { font-size: .45em; vertical-align: .9em; margin-right: .1em; }
.ba__mais { font-weight: 700; font-size: 3cqw; border-left: .1cqw solid rgba(255, 255, 255, .7); border-right: 0; padding-left: 0; height: 5cqw; display: flex; align-items: center; border: 0; }
.ba__lado { display: flex; flex-direction: column; white-space: nowrap; border-left: .12cqw solid rgba(255, 255, 255, .8); padding-left: 1.6cqw; line-height: 1.02; }
.ba__l1 { font-weight: 700; font-size: 3.3cqw; }
.ba__l2 { font-weight: 300; font-size: 2.6cqw; }
.ba__l2 b { font-weight: 700; color: #ff3d7f; font-size: 1.25em; }
.ba__l2s { font-weight: 700; font-size: 2cqw; }
.ba__nota { position: absolute; left: 52%; right: 4%; top: 84.5%; height: 8.5%; display: flex; align-items: center; justify-content: flex-end; text-align: right;
  font-weight: 700; font-size: .78cqw; line-height: 1.25; background: linear-gradient(90deg, rgba(40, 40, 46, 0), #2c2c31 15%); padding: 0 .8cqw; }
@media (max-width: 720px) {
  .ba--desk { display: none; }
  .ba--mob { display: flex; left: 15.8%; top: 63.6%; width: 68.4%; height: 22.6%; padding: 0 4.2cqw; gap: 1.6cqw; }
  .ba__tit { font-size: 3cqw; }
  .ba__ap { font-size: 2.1cqw; }
  .ba__v { font-size: 6.4cqw; }
  .ba__mais { font-size: 4.6cqw; height: 9cqw; }
  .ba__l1 { font-size: 4.6cqw; }
  .ba__l2 { font-size: 3.6cqw; }
  .ba__l2s { font-size: 3cqw; }
  .ba__row { gap: 2.6cqw; }
  .ba__lado { padding-left: 2.6cqw; }
  .ba__nota { left: 0; right: 0; top: 90.5%; height: 9.5%; justify-content: flex-start; text-align: left; font-size: 1.7cqw; padding: 0 2cqw; background: #2b2b2f; }
}

/* Simulador de parcela */
.simulador { display: grid; gap: 14px; margin-top: 24px; background: var(--white); color: var(--text); padding: clamp(20px, 3.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); }
.simulador[hidden] { display: none; }
.simulador__titulo { font-size: 1.3rem; margin: 0; }
.simulador__res { display: grid; gap: 2px; padding: 16px; background: var(--soft, #f4f4f4); border-left: 4px solid var(--red, #c3002f); }
.simulador__res span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.simulador__res strong { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; line-height: 1.2; }
.simulador__res small { color: var(--muted, #555); }
.simulador .legal { margin: 0; }
.prose + .simulador, .split > .simulador { margin-top: 0; align-self: start; }
.card h3 a { color: inherit; }

/* Bloco de agendamento (substitui o formulário: o agendamento é on-line) */
.agenda-card { display: grid; gap: 14px; align-self: start; background: var(--white); color: var(--text); padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda-card h2 { font-size: 1.5rem; margin: 0; color: var(--ink); }
.agenda-card p { margin: 0; }
.agenda-card__fones a { color: var(--ink); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.prose table code { font-size: .85em; }
.tabela-larga { min-width: 600px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.tabela-larga th[scope="row"] { width: 20%; }
.tabela-larga thead th:last-child, .tabela-larga td:last-child { min-width: 150px; }
@media (min-width: 1181px) and (max-width: 1340px) {
  .header .container { gap: 14px; }
  .brand { gap: 12px; }
  .brand__nome { padding-left: 12px; }
  .nav a { padding-inline: 7px; }
  .header__cta .btn { padding-inline: 18px; }
}

/* Home: carro por assinatura */
.assinatura-home__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.assinatura-home__lista li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.assinatura-home__lista .icon { width: 28px; height: 28px; flex: none; color: var(--red); }
.assinatura-home__lista h3 { font-size: 1.1rem; margin: 0 0 4px; }
.assinatura-home__lista p { margin: 0; }
