/* =====================================================================
   GUI VEICULOS - Site publico
   ===================================================================== */

/* ---------- Barra de topo -------------------------------------------- */
.topbar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    color: var(--text-muted);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: 38px;
    flex-wrap: wrap;
}
.topbar a:hover { color: var(--gold); }
.topbar__hours { display: flex; align-items: center; gap: .45rem; }
.topbar__hours svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__links { display: flex; align-items: center; gap: var(--sp-4); }

@media (max-width: 860px) {
    .topbar { display: none; }
}

/* ---------- Header ----------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 10, .88);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: none;
}
.brand img { height: 46px; width: auto; }
.brand__fallback {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -.02em;
    line-height: 1;
}
.brand__fallback span { color: var(--gold); display: block; }

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }

.nav a {
    position: relative;
    padding: .6rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .16s var(--ease);
}
.nav a::after {
    content: '';
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.header__phone {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .9rem;
}
.header__phone svg { width: 17px; height: 17px; color: var(--gold); }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

/* O conteudo do header precisa de ~1193px. Trocar por hamburguer so em
   1080px deixava a faixa 1100-1180 com scroll horizontal, e em 1200 o
   item "Venda seu veículo" ja quebrava em varias linhas. Dois degraus:
   primeiro sai o telefone, depois a nav. */
@media (max-width: 1300px) {
    .header__phone { display: none; }
}

@media (max-width: 1180px) {
    .nav { display: none; }
    .burger { display: inline-flex; }
}

/* Menu mobile */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    visibility: hidden;
    overflow-y: auto;
}
.mobile-nav[data-open="true"] { transform: none; visibility: visible; }

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.mobile-nav__close {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
.mobile-nav__close svg { width: 22px; height: 22px; }

.mobile-nav ul { margin-top: 1rem; }
.mobile-nav ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem .25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
}
.mobile-nav ul a svg { width: 18px; height: 18px; color: var(--gold); }
.mobile-nav__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .6rem; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: .38;
}

/* Gradiente + grade tecnica ao fundo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 480px at 78% 15%, var(--gold-soft), transparent 65%),
        linear-gradient(105deg, var(--ink) 32%, rgba(8,8,10,.55) 62%, rgba(8,8,10,.9) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.026) 0 1px, transparent 1px 78px);
}

/* Nao redefinir width aqui: .container ja aplica a margem lateral do site. */
.hero__inner { position: relative; padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero__content { max-width: 42rem; }

.hero h1 {
    font-size: var(--step-5);
    line-height: .94;
    margin-block: .75rem 1.25rem;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold);
    display: block;
}

.hero__sub {
    font-size: var(--step-1);
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: var(--sp-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__stats {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step-2);
    color: var(--gold);
    line-height: 1;
}
.hero__stat span {
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Entrada escalonada */
.hero__content > * { animation: rise .7s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .13s; }
.hero__content > *:nth-child(3) { animation-delay: .21s; }
.hero__content > *:nth-child(4) { animation-delay: .29s; }
.hero__content > *:nth-child(5) { animation-delay: .37s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Busca rapida -------------------------------------------------- */
.quick-search {
    position: relative;
    z-index: 5;
    margin-top: -3.25rem;
}

.quick-search__box {
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.quick-search__box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), transparent 72%);
}

.quick-search__grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}
.quick-search__grid .field { margin: 0; }
.quick-search__grid .btn { height: 46px; }

@media (max-width: 640px) {
    .quick-search { margin-top: -1.5rem; }
}

/* ---------- Faixa de marcas ------------------------------------------------ */
.brand-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: .75rem;
}

.brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.1rem .6rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease);
    text-align: center;
}
.brand-chip:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    background: var(--surface-3);
}
/* As logos ja sao normalizadas no import (as escuras viram prateadas), entao
   aqui basta uma dessaturacao leve que a cor volta no hover. Um
   brightness alto estouraria as que ja chegam claras. */
.brand-chip img {
    height: 34px;
    width: auto;
    object-fit: contain;
    opacity: .92;
    filter: grayscale(.55);
    transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.brand-chip:hover img { filter: none; opacity: 1; }
.brand-chip__name {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.brand-chip__count { font-size: .7rem; color: var(--text-dim); }
.brand-chip__initial {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    line-height: 1;
    height: 34px;
    display: grid;
    place-items: center;
}

/* ---------- Grid de veiculos ------------------------------------------------ */
.vehicle-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.vcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.vcard:hover {
    border-color: rgba(255,198,26,.45);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vcard__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-3);
    overflow: hidden;
}
.vcard__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.vcard:hover .vcard__media > img { transform: scale(1.025); }

.vcard__flags {
    position: absolute;
    top: .7rem;
    left: .7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    z-index: 2;
}

.vcard__brandmark {
    position: absolute;
    top: .7rem;
    right: .7rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8,8,10,.75);
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    z-index: 2;
}
.vcard__brandmark img { width: 24px; height: 24px; object-fit: contain; }
.vcard__brandmark span { font-family: var(--font-display); font-size: .8rem; color: var(--gold); }

.vcard__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .55rem;
}

.vcard__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    line-height: 1.12;
    letter-spacing: -.01em;
}
.vcard__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.vcard__version {
    font-size: .82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.25em;
}

.vcard__specs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    padding-block: .6rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    color: var(--text-muted);
}
.vcard__specs li { display: flex; align-items: center; gap: .3rem; }
.vcard__specs svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

.vcard__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .35rem;
}

.vcard__price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.32rem;
    color: var(--gold);
    line-height: 1.05;
}
.vcard__price s {
    font-size: .78rem;
    color: var(--text-dim);
}
.vcard__price .under-consult {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
}
.vcard__price small { display: block; margin-top: .3rem; color: var(--text-muted); font-size: .76rem; }

.vcard__whats {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(31,168,85,.14);
    border: 1px solid rgba(31,168,85,.4);
    color: #35D07F;
    transition: background-color .18s var(--ease), transform .18s var(--ease);
    flex: none;
}
.vcard__whats:hover { background: rgba(31,168,85,.28); transform: translateY(-2px); }
.vcard__whats svg { width: 20px; height: 20px; }

.vcard--sold .vcard__media img { filter: grayscale(.55); }

/* ---------- Estoque: layout com filtros --------------------------------------- */
.stock-layout {
    display: grid;
    grid-template-columns: 282px 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

@media (max-width: 1024px) {
    .stock-layout { grid-template-columns: minmax(0, 1fr); }
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--surface-2);
    z-index: 2;
}
.filters__head h2 { font-size: .95rem; }

.filters__body { padding: 1.15rem 1.15rem 2rem; }

/* O botao de fechar so existe quando os filtros viram drawer. */
.filters__head [data-filters-close] { display: none; }

@media (max-width: 1024px) {
    .filters__head [data-filters-close] { display: inline-flex; }
}

.filter-group + .filter-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.filter-group > h3 {
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .7rem;
}
.filter-group .check + .check { margin-top: .35rem; }
.filter-group__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.filters__actions {
    position: sticky;
    bottom: 0;
    padding: 1rem 1.15rem;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    display: grid;
    gap: .5rem;
}

/* Drawer no mobile */
@media (max-width: 1024px) {
    .filters {
        position: fixed;
        inset: 0;
        z-index: 160;
        max-height: none;
        border-radius: 0;
        border: 0;
        transform: translateX(-100%);
        transition: transform .3s var(--ease);
        visibility: hidden;
        display: flex;
        flex-direction: column;
    }
    .filters[data-open="true"] { transform: none; visibility: visible; }
    .filters__body { flex: 1; overflow-y: auto; }
}

.stock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
}
.stock-count strong { color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; }
.stock-toolbar__right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.stock-toolbar .select { width: auto; min-width: 190px; }

.filter-toggle { display: none; }
@media (max-width: 1024px) { .filter-toggle { display: inline-flex; } }

.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp-4); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    background: var(--surface-3);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: .76rem;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip svg { width: 13px; height: 13px; }

/* ---------- Pagina do veiculo -------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--text-dim);
    padding-block: 1rem;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: '/'; color: var(--text-dim); }

.vehicle-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
@media (max-width: 1024px) {
    /* minmax(0,1fr) e nao 1fr: com 1fr a trilha herda min-width:auto e a tira
       de miniaturas (4 x 96px) impede a coluna de encolher, estourando a tela. */
    .vehicle-layout { grid-template-columns: minmax(0, 1fr); }
    .buybox { position: static; }
}

/* Galeria */
.gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(8,8,10,.7);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.gallery__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav--prev { left: .75rem; }
.gallery__nav--next { right: .75rem; }

.gallery__counter {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    padding: .35rem .7rem;
    background: rgba(8,8,10,.78);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.gallery__expand {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(8,8,10,.78);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
}
.gallery__expand:hover { border-color: var(--gold); color: var(--gold); }
.gallery__expand svg { width: 18px; height: 18px; }

.gallery__thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    gap: .5rem;
    margin-top: .6rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: thin;
}
.gallery__thumb {
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: .55;
    transition: opacity .18s var(--ease), border-color .18s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(4,4,6,.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox__close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close svg { width: 24px; height: 24px; }
.lightbox .gallery__nav { background: rgba(20,20,24,.9); }
.lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .85rem;
    color: var(--text-muted);
}

/* Painel lateral de compra */
.buybox {
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.15rem, 2.5vw, 1.6rem);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.buybox__flags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.buybox__title {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: var(--step-2);
    line-height: 1.05;
}
.buybox__version { color: var(--text-muted); margin-top: .4rem; font-size: .92rem; }

.buybox__price {
    margin-block: 1.15rem;
    padding-block: 1.15rem;
    border-block: 1px solid var(--line);
}
.buybox__price s { color: var(--text-dim); font-size: .95rem; }
.buybox__price strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.02em;
}
.buybox__price small { display: block; color: var(--text-dim); font-size: .78rem; margin-top: .4rem; }

.buybox__actions { display: grid; gap: .6rem; }

.buybox__trust {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: .5rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.buybox__trust li { display: flex; align-items: flex-start; gap: .5rem; }
.buybox__trust svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }

/* Ficha tecnica */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.spec {
    background: var(--surface-2);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.spec__label {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.spec__label svg { width: 14px; height: 14px; color: var(--gold); }
.spec__value { font-weight: 600; font-size: .95rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: .5rem .75rem;
}
.features-grid li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .88rem;
    color: var(--text-muted);
}
.features-grid svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 4px; }

.prose { color: var(--text-muted); line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose h2, .prose h3 { color: var(--text); margin-block: 1.75rem .75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blocos de conversao ------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.promo {
    position: relative;
    padding: clamp(1.6rem, 3.5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, var(--surface-2), var(--surface));
    overflow: hidden;
    isolation: isolate;
}
.promo::after {
    content: '';
    position: absolute;
    right: -90px;
    top: -90px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--gold-soft), transparent 68%);
    z-index: -1;
}
.promo h3 { font-size: var(--step-2); margin-block: .6rem .75rem; }
.promo p { color: var(--text-muted); margin-bottom: var(--sp-5); max-width: 40ch; }

/* Depoimentos */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.testimonial {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.testimonial::before {
    content: '”';
    position: absolute;
    top: -.35rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--gold);
    opacity: .16;
    line-height: 1;
}
.testimonial__stars { display: flex; gap: .15rem; color: var(--gold); }
.testimonial__stars svg { width: 15px; height: 15px; }
.testimonial__text { color: var(--text-muted); font-size: .92rem; line-height: 1.7; flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
}
.testimonial__initials {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: .85rem;
    border: 1px solid rgba(255,198,26,.3);
}
.testimonial__name { font-weight: 700; font-size: .9rem; }
.testimonial__meta { font-size: .76rem; color: var(--text-dim); }

/* Mural de entregas */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}
.delivery {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
}
.delivery__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); }
.delivery__media img { width: 100%; height: 100%; object-fit: cover; }
.delivery__stamp {
    position: absolute;
    top: .7rem;
    left: .7rem;
    padding: .3rem .65rem;
    background: var(--gold);
    color: var(--on-gold);
    font-family: var(--font-display);
    font-size: .68rem;
    letter-spacing: .1em;
    border-radius: 3px;
    transform: rotate(-3deg);
}
.delivery__body { padding: 1rem 1.1rem 1.2rem; }

/* Card sem texto: fotos reais das entregas viram um mural limpo.
   O retrato do celular fica melhor em 4:5 do que cortado em 4:3. */
.delivery--photo .delivery__media { aspect-ratio: 4 / 5; }
.delivery--photo .delivery__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(8,8,10,.55), transparent);
    pointer-events: none;
}
.delivery__title { font-family: var(--font-display); font-size: .98rem; text-transform: uppercase; }
.delivery__customer { color: var(--gold); font-size: .85rem; font-weight: 600; margin-top: .25rem; }
.delivery__quote { color: var(--text-muted); font-size: .85rem; margin-top: .6rem; line-height: 1.6; }
.delivery__date { color: var(--text-dim); font-size: .74rem; margin-top: .6rem; }

/* ---------- Localizacao ---------------------------------------------------------- */
.location {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}
.map-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    background: var(--surface-2);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

.info-list { display: grid; gap: 1.15rem; }
.info-item { display: flex; gap: .85rem; }
.info-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.info-item h3 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .12em; color: var(--text-dim); margin-bottom: .2rem; }
.info-item p, .info-item a { color: var(--text); font-size: .95rem; }
.info-item a:hover { color: var(--gold); }

/* ---------- CTA final ------------------------------------------------------------- */
.cta-band {
    position: relative;
    padding-block: clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(700px 320px at 50% 0%, var(--gold-soft), transparent 70%),
        var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.cta-band h2 { font-size: var(--step-3); margin-bottom: .85rem; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto var(--sp-6); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ------------------------------------------------------------------ */
.footer {
    background: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    font-size: .88rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: var(--sp-7);
}
@media (max-width: 900px) {
    .footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
}
.footer h3 {
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer ul { display: grid; gap: .6rem; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--gold); }
.footer__about p { color: var(--text-muted); margin-block: 1rem; max-width: 34ch; }

.social { display: flex; gap: .5rem; }
.social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer__bottom {
    border-top: 1px solid var(--line);
    padding-block: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: .8rem;
}

/* ---------- WhatsApp flutuante -------------------------------------------------------- */
.wa-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1FA855;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px -8px rgba(31,168,85,.6);
    transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(31,168,85,.55);
    animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1); opacity: .8; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 640px) {
    .wa-float { width: 52px; height: 52px; bottom: .85rem; right: .85rem; }
    .wa-float svg { width: 27px; height: 27px; }
}

/* ---------- Formularios longos (financiamento / venda) --------------------------------- */
.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
@media (max-width: 980px) {
    .form-shell { grid-template-columns: minmax(0, 1fr); }
    .aside-card { position: static; }
}

.form-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.steps { display: grid; gap: 1.1rem; counter-reset: step; }
.step { display: flex; gap: 1rem; }
.step__num {
    counter-increment: step;
    width: 34px; height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid rgba(255,198,26,.35);
    color: var(--gold);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: .85rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; margin-bottom: .2rem; }
.step p { color: var(--text-muted); font-size: .86rem; }

.aside-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.aside-card h3 { font-size: var(--step-1); margin-bottom: .85rem; }

.upload-zone {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--gold); background: var(--gold-soft); }
.upload-zone svg { width: 30px; height: 30px; margin: 0 auto .6rem; color: var(--gold); }
.upload-zone p { font-size: .88rem; }
.upload-zone small { color: var(--text-dim); font-size: .76rem; }

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
    margin-top: .75rem;
}
.upload-preview div {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pagina de erro ---------------------------------------------------------------- */
.error-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: var(--sp-8);
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 16vw, 10rem);
    line-height: .85;
    color: var(--gold);
    opacity: .22;
}
.error-page h1 { font-size: var(--step-3); margin-block: -.5rem 1rem; }
.error-page p { color: var(--text-muted); max-width: 44ch; margin: 0 auto var(--sp-6); }

/* ---------- Estoque real em primeiro plano ------------------------------- */
.hero__inner--showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-bottom: clamp(4rem, 7vw, 6rem);
}
.hero--showcase h1 { font-size: clamp(2.5rem, 4.3vw, 4.6rem); }
.hero-car {
    display: block;
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-2);
    box-shadow: 0 28px 70px -35px #000;
    overflow: hidden;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-car:hover { border-color: var(--gold); transform: translateY(-3px); }
.hero-car__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    color: var(--gold);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-car__photo { aspect-ratio: 4 / 3; background: var(--surface); }
.hero-car__photo { overflow: hidden; }
.hero-car__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-car__info { padding: 1.15rem 1.25rem 1.3rem; }
.hero-car__info > span { color: var(--text-muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-car__info > strong { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.2; text-transform: uppercase; }
.hero-car__info > p { color: var(--text-muted); font-size: .88rem; margin-top: .25rem; }
.hero-car__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--gold); font-size: .82rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); }
.stock-layout { grid-template-columns: 282px minmax(0, 1fr); }
.vcard__body { padding: 1.2rem; gap: .65rem; }
.vcard__title { font-size: 1.15rem; }
.vcard__specs { font-size: .84rem; padding-block: .75rem; }
.vcard__price .under-consult { color: var(--gold); font-size: 1.15rem; }
.vcard:focus-within { border-color: var(--gold); }
.gallery__main { background: #08080a; }
.buybox__price small { color: var(--text-muted); }
.vehicle-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.vehicle-heading h1 { font-size: var(--step-3); }
.vehicle-heading p { color: var(--text-muted); margin-top: .5rem; font-size: .95rem; }
.vehicle-heading__price { flex: none; text-align: right; }
.vehicle-heading__price span { display: block; color: var(--text-muted); font-size: .75rem; }
.vehicle-heading__price strong { display: block; color: var(--gold); font-family: var(--font-display); font-size: 1.1rem; margin-top: .25rem; }

@media (max-width: 1024px) {
    .stock-layout { grid-template-columns: minmax(0, 1fr); }
    .buybox { position: static; }
    .hero__inner--showcase { gap: 2rem; }
    .hero--showcase h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
    .hero--showcase .hero__actions .btn { font-size: .8rem; padding-inline: .85rem; }
}
@media (max-width: 760px) {
    .vehicle-heading { display: block; }
    .vehicle-heading__price { text-align: left; margin-top: 1rem; }
    .hero__inner--showcase { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; }
    .hero--showcase h1 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
    .hero-car { max-width: 520px; width: 100%; margin-inline: auto; }
    .hero-car__photo { aspect-ratio: 16 / 11; }
    .hero--showcase .hero__stats { margin-top: 1.75rem; }
    .hero-car__info { padding: 1rem 1.15rem; }
    .stock-toolbar__right { flex-wrap: wrap; width: 100%; margin-left: 0; }
    .stock-toolbar .select { flex: 1; min-width: 0; }
    .form-card .btn { max-width: 100%; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-car, .vcard { transition: none; }
    .hero-car:hover, .vcard:hover, .vcard:hover .vcard__media > img { transform: none; }
}
@media (max-width: 360px) {
    .header__inner { gap: .75rem; }
    .header__cta > .btn { width: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; }
}
