/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #E3F2FD;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #6c757d;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f1f3f5;
    --white: #ffffff;
    --green-wpp: #25D366;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.topbar-item:hover {
    color: var(--white);
}

.topbar-divider {
    color: rgba(255,255,255,0.2);
}

.topbar-right {
    display: flex;
    gap: 12px;
}

.topbar-social {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.topbar-social:hover {
    color: var(--white);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.logo-highlight {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    color: var(--primary);
}

.btn-estoque {
    text-decoration: none;
    background: none;
    color: var(--gray-900);
    border: 2px solid var(--gray-900);
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-estoque:hover {
    background: var(--gray-900);
    color: var(--white);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 80px 0 90px;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-title {
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: var(--primary);
    color: var(--white);
    padding: 14px 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.promo-divider {
    opacity: 0.5;
}

.promo-text {
    font-weight: 500;
}

.promo-asterisk {
    opacity: 0.7;
    font-size: 12px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 40px 0 0;
}

.categories-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ===== FILTERS ===== */
.filters-section {
    padding: 24px 0;
}

.filters-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 0 12px;
    flex: 1;
    min-width: 180px;
}

.filter-search svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

.filter-search input {
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    background: transparent;
}

.filter-select select {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-price-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-price-range input {
    width: 110px;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.filter-price-range input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-price-sep {
    color: var(--gray-500);
    font-weight: 500;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.results-count {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.results-count strong {
    color: var(--gray-900);
}

.sort-select {
    padding: 8px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
}

/* ===== RESULTS GRID ===== */
.results {
    padding: 24px 0 60px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

/* ===== CAR CARD ===== */
.car-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--gray-200);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.car-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-badge-photos {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.card-favorite:hover {
    background: var(--white);
    transform: scale(1.1);
}

.card-favorite.active svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.card-info {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-700);
}

.card-info-item svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.card-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

.btn-parcelas {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-parcelas:hover {
    background: var(--primary-dark);
}

/* ===== FINANCING ===== */
.financing {
    background: var(--dark);
    padding: 80px 0;
}

.financing-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.section-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.financing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

.feature-item svg {
    color: var(--green-wpp);
    flex-shrink: 0;
}

.btn-simulate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-simulate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.financing-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.financing-card-header {
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.financing-card-body {
    padding: 24px;
}

.sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
}

.sim-row strong {
    color: var(--gray-900);
}

.sim-highlight {
    font-size: 18px;
}

.sim-highlight strong {
    font-size: 24px;
    color: var(--primary);
    font-weight: 800;
}

.financing-card-body hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 8px 0;
}

.sim-disclaimer {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 12px;
    text-align: center;
}

/* ===== VISIT STORE ===== */
.visit-store {
    padding: 80px 0;
    background: var(--white);
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-store .section-label {
    color: var(--primary);
}

.visit-store .section-title {
    color: var(--gray-900);
    font-size: 32px;
}

.visit-store .section-desc {
    color: var(--gray-500);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-maps:hover {
    background: var(--primary);
    color: var(--white);
}

.visit-map {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== ABOUT ===== */
.about {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 80px 0;
    text-align: center;
}

.about-title {
    color: var(--white);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-desc {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 20px;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 14px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--green-wpp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .financing-content {
        grid-template-columns: 1fr;
    }

    .visit-content {
        grid-template-columns: 1fr;
    }

    .visit-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .topbar-left {
        font-size: 12px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero-title {
        font-size: 30px;
    }

    .promo-content {
        flex-wrap: wrap;
        text-align: center;
        font-size: 13px;
    }

    .categories-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .cat-btn {
        white-space: nowrap;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-search {
        width: 100%;
    }

    .filter-price-range {
        width: 100%;
    }

    .filter-price-range input {
        flex: 1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .topbar-content {
        justify-content: center;
    }

    .topbar-right {
        display: none;
    }

    .header-content {
        height: 56px;
    }

    .logo-text {
        font-size: 18px;
    }

    .btn-estoque {
        padding: 6px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 40px 0 50px;
    }

    .hero-title {
        font-size: 26px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
