:root {
    --primary-color: #D30000; /* Premium Darker Red */
    --primary-hover: #A30000;
    --background-dark: #050505;
    --background-card: #0F0F0F;
    --text-light: #FFFFFF;
    --text-gray: #8A8A8A;
    --border-color: #1F1F1F;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}
html { max-width: 100%; overflow-x: hidden; }

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* UTILITIES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary { color: var(--primary-color); }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(211, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 0, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(211, 0, 0, 0.05);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* HEADER & NAVBAR */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    background: none;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(230,0,0,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px; /* controla largura do texto */
    position: relative;
    z-index: 2;
    margin: 0 auto; /* centraliza horizontalmente */
    text-align: center; /* centraliza tudo */
    padding-bottom: 20px; /* remove espaço excessivo */
}

.hero-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    display: inline-block;
    margin-top: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px; /* sobe os botões */
}

.hero-buttons .btn {
    padding: 10px 20px; /* diminui o tamanho */
    font-size: 14px; /* texto menor */
    border-radius: 6px;
}

/* OPTIONS SECTION */
.options-section {
    padding: 20px 0 60px 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.option-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.option-icon {
    width: 80px;
    height: 80px;
    background: rgba(230,0,0,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.option-card:hover .option-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.option-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.option-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
}

.option-card .btn {
    width: 100%;
    max-width: 250px;
}

/* CARDS GRID (ESTOQUE) */
.cars-grid,
.lista-carros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.car-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.car-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.car-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.car-features span {
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* CARDS ALTERNATIVOS (.card-carro) */
.card-carro {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-carro img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.card-carro h3 {
    font-size: 18px;
}

.card-carro ul {
    font-size: 13px;
}

.car-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 25px;
    margin-top: auto;
    letter-spacing: -1px;
}

.car-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-card-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    justify-content: center;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #111;
    color: var(--text-light);
    border-color: #333;
}

.btn-disabled {
    background-color: #080808;
    color: #555555;
    border: 1px solid #111;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

/* CAROUSEL / HIGHLIGHTS */
.highlights-section {
    background-color: var(--background-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* VEHICLE DETAILS PAGE */
.vehicle-details {
    padding-top: 120px;
}
.vehicle-gallery {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}
.thumbnail-row img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail-row img:hover, .thumbnail-row img.active {
    border-color: var(--primary-color);
}
.vehicle-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.spec-item {
    background: var(--background-card);
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}
.spec-item span {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.spec-item strong {
    font-size: 1.1rem;
}

.vehicle-sidebar {
    background: var(--background-card);
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}
.vehicle-sidebar h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.vehicle-sidebar .price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 30px;
}
.vehicle-sidebar .btn {
    width: 100%;
    margin-bottom: 15px;
}

/* FIXED WHATSAPP BUTTON */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* FILTERS SECTION */
.filters-bar {
    background: var(--background-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.filters-bar select, .filters-bar input {
    background: #000;
    color: white;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
    flex: 1;
    min-width: 150px;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.about-text h2 { margin-bottom: 20px; font-size: 2rem; }
.about-text p { color: var(--text-gray); margin-bottom: 20px; }

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.diff-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    border-top: 3px solid var(--border-color);
    transition: var(--transition);
}
.diff-card:hover { border-top-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.diff-card i { font-size: 2.5rem; color: var(--text-light); margin-bottom: 20px; transition: var(--transition); }
.diff-card:hover i { color: var(--primary-color); transform: scale(1.1); }

/* FOOTER */
.footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { margin-bottom: 20px; font-weight: 600; color: white; }
.footer-col p { color: var(--text-gray); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-gray); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .vehicle-info-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .differentials-grid { grid-template-columns: 1fr; }
    .options-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }

    /* HERO MOBILE OTIMIZADO */
    .hero-content {
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 10px;
    }

    /* BOTÕES */
    .hero-buttons {
        display: flex;
        flex-direction: column; /* empilha no celular */
        gap: 10px;
        margin-top: 20px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        border-radius: 8px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0A0A0A;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}

/* UTILS */
.d-none { display: none !important; }
