:root {
    --brand-primary: #a61d24;
    --brand-primary-dark: #7f1419;
    --brand-secondary: #111827;
    --brand-light: #f8f9fb;
    --brand-text: #212529;
    --brand-muted: #6b7280;
    --brand-border: #e9ecef;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, .25);
    --radius-lg: 1.25rem;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--brand-primary) #f3d9db;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f6e4e6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 999px;
    border: 2px solid #f6e4e6;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #c62830 0%, var(--brand-primary) 100%);
    }

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-text);
    background-color: #fff;
    margin: 0;
}

a {
    text-decoration: none;
}

.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    border-radius: .8rem;
    padding: .85rem 1.2rem;
}

    .btn-brand:hover {
        background-color: var(--brand-primary-dark);
        border-color: var(--brand-primary-dark);
        color: #fff;
    }

.btn-outline-brand {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: .8rem;
    padding: .85rem 1.2rem;
    background: #fff;
}

    .btn-outline-brand:hover {
        background: var(--brand-primary);
        color: #fff;
    }

/* MENU FLUTUANTE */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    padding: 1rem 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

    .main-navbar.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

.navbar-brand-custom img {
    max-height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .nav-menu a {
        color: #1f2937;
        font-weight: 600;
        transition: .2s ease;
    }

        .nav-menu a:hover {
            color: var(--brand-primary);
        }

.navbar-mobile-toggle {
    display: none;
}

/* HERO VIDEO */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .58)), radial-gradient(circle at center, rgba(166, 29, 36, .18), transparent 48%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1300;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: visible;
}

.hero-search-modal {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.6rem;
    padding: 1.1rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 1301;
    overflow: visible;
}

.search-box {
    background: rgba(255, 255, 255, .96);
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .25);
    position: relative;
    z-index: 1302;
    overflow: visible;
}

.search-title {
    color: var(--brand-primary);
    text-transform: uppercase;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    text-align: center;
}

.search-subtitle {
    color: var(--brand-muted);
    text-align: center;
    margin-top: .75rem;
    font-size: .98rem;
}

.hero-search-inline {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.site-search-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    color: rgba(166, 29, 36, .78);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.site-search-field-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

    .hero-search-inline .form-control {
        min-height: 58px;
        font-size: 1rem;
        padding-left: 3rem;
        padding-right: 1rem;
    }

.site-search-form {
    margin: 0;
    position: relative;
    z-index: 1303;
}

.site-search-autocomplete {
    position: relative;
    z-index: 1304;
    overflow: visible;
}

.site-search-results {
    position: absolute;
    top: calc(100% + .75rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 1.2rem;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .18);
    overflow: visible;
    z-index: 1310;
}

.site-search-results-scroll {
    max-height: 380px;
    overflow-y: auto;
    padding: .55rem;
}

.site-search-group-title {
    font-size: .72rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .8rem .95rem .4rem;
}

.site-search-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .9rem .95rem;
    border-radius: .9rem;
    color: var(--brand-text);
    transition: .2s ease;
    border: 1px solid transparent;
}

    .site-search-item:hover {
        background: #f8fafc;
        border-color: rgba(166, 29, 36, .10);
        color: var(--brand-text);
    }

    .site-search-item + .site-search-item {
        margin-top: .15rem;
    }

.site-search-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

    .site-search-item-icon svg {
        width: 16px;
        height: 16px;
        display: block;
    }

.site-search-item-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .12rem;
}

.site-search-item-label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    color: #111827;
}

.site-search-item-meta {
    font-size: .82rem;
    color: var(--brand-muted);
    line-height: 1.35;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: .45rem;
}

.form-control,
.form-select {
    min-height: 50px;
    border-radius: .85rem;
    border: 1px solid #dee2e6;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(166, 29, 36, .45);
    }

/* SEÇÕES */
.section {
    padding: 4.5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-title {
    font-size: clamp(1.7rem, 2vw, 2.3rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--brand-muted);
    max-width: 760px;
    margin-bottom: 2rem;
}

.vehicle-card {
    position: relative;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: .25s ease;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}

    .vehicle-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    }

.vehicle-thumb {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    background: #f2f4f7;
}

.vehicle-media {
    position: relative;
    overflow: hidden;
    background: #f2f4f7;
}

    .vehicle-media .vehicle-thumb {
        display: block;
    }

.vehicle-placeholder {
    position: relative;
    aspect-ratio: 16/10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .14), transparent 24%), radial-gradient(circle at bottom left, rgba(255, 255, 255, .10), transparent 20%), linear-gradient(135deg, #1f2937 0%, #141821 48%, #a61d24 100%);
}

    .vehicle-placeholder::before {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, .10);
        pointer-events: none;
    }

    .vehicle-placeholder::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        right: -40px;
        bottom: -70px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%);
    }

.vehicle-placeholder-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
    backdrop-filter: blur(6px);
}

    .vehicle-placeholder-icon svg {
        width: 32px;
        height: 32px;
        fill: #ffffff;
    }

.vehicle-media.is-fallback .vehicle-thumb {
    display: none;
}

.vehicle-media.is-fallback .vehicle-placeholder {
    display: flex;
}

.vehicle-media .vehicle-placeholder {
    display: none;
}

.vehicle-body {
    padding: 1rem;
}

.card-link-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.catalog-actions,
.catalog-actions .btn,
.vehicle-tag {
    position: relative;
    z-index: 2;
}

.vehicle-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .35rem .65rem;
    margin-bottom: .75rem;
    background: #fff3cd;
    color: #8a5a00;
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.vehicle-brand {
    color: var(--brand-muted);
    font-size: .9rem;
    margin-bottom: .2rem;
}

.vehicle-name {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    line-height: 1.35;
    min-height: 2.7rem;
}

.vehicle-meta {
    color: var(--brand-muted);
    font-size: .88rem;
    margin: .6rem 0;
}

.vehicle-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: .8rem;
}

.cta-sell {
    background: linear-gradient(90deg, rgba(166, 29, 36, .96), rgba(127, 20, 25, .96)), url('/images/cta-sell.jpg') center/cover no-repeat;
    color: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 3rem;
}

    .cta-sell h2 {
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        font-weight: 800;
    }

.feature-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: rgba(166, 29, 36, .08);
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.stats-box {
    background: var(--brand-light);
    border-radius: 1.5rem;
    padding: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: .2rem;
}

.stat-item p {
    margin: 0;
    color: var(--brand-muted);
    font-weight: 500;
}

.placeholder-box {
    background: linear-gradient(135deg, #f6f7f9, #eceff3);
    border: 1px dashed #cdd5df;
    border-radius: 1rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 1.5rem;
}

.footer {
    background: #111827;
    color: rgba(255, 255, 255, .78);
    overflow: hidden;
}

    .footer a {
        color: rgba(255, 255, 255, .9);
    }

.footer-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-tagline {
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
    margin: -.35rem 0 .75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

.footer-social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: .2s ease;
}

    .footer-social-icon svg {
        width: 1.1rem;
        height: 1.1rem;
    }

.footer-social-link:hover .footer-social-icon {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.footer hr {
    border-color: rgba(255, 255, 255, .08);
}

/* BOTÕES FLUTUANTES */
.floating-btn {
    position: fixed;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    z-index: 1300;
    cursor: pointer;
    transition: .3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .floating-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.floating-top {
    left: 20px;
    background: #111827;
    color: #fff;
}

    .floating-top:hover {
        background: #000;
    }

.floating-whatsapp {
    right: 20px;
    background: #25D366;
    color: #fff;
}

    .floating-whatsapp:hover {
        background: #1fb95a;
        color: #fff;
    }

.floating-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 24px;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    transform: translateX(1px);
}

@media (max-width: 991.98px) {
    .main-navbar .container {
        gap: 1rem;
    }

    .navbar-mobile-toggle {
        display: inline-flex;
        border: none;
        background: transparent;
        font-size: 1.6rem;
        line-height: 1;
    }

    .nav-menu-wrap {
        display: none;
        width: 100%;
    }

        .nav-menu-wrap.show {
            display: block;
        }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: .9rem;
        padding-top: 1rem;
    }

    .hero-content {
        padding: 1.5rem 0;
    }

    .hero-search-modal {
        padding: .8rem;
        border-radius: 1.2rem;
    }

    .search-box {
        padding: 1rem;
    }

    .hero-search-inline {
        grid-template-columns: 1fr;
    }

    .cta-sell {
        padding: 2rem;
    }

    .floating-top {
        left: 14px;
        bottom: 18px;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 18px;
    }
}
