/* --- GERAL & RESET --- */
:root {
    --primary-color: #0d47a1; /* Azul Escuro */
    --secondary-color: #1976d2; /* Azul Médio */
    --accent-color: #ff6f00; /* Laranja Vibrante */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #555;
    --white-color: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HEADER --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

header nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-color);
}

/* --- SEÇÃO HERO --- */
#hero {
    background: url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 50, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ff8f00;
    transform: translateY(-3px);
}

/* --- PORTFÓLIO --- */
#portfolio {
    padding: 80px 0;
    background-color: var(--light-gray);
}

#filter-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white-color);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--dark-gray);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-content .year {
    color: var(--text-color);
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 15px;
}

.details-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.details-btn:hover {
    background-color: var(--secondary-color);
}

/* --- DEPOIMENTOS --- */
#depoimentos {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.testimonial-card img {
    border-radius: 50%;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}
.testimonial-card span {
    font-size: 0.9rem;
    color: var(--text-color);
}


/* --- FOOTER --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 30px 0;
    text-align: center;
}
.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
}


/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
}

.close-button:hover, .close-button:focus {
    color: var(--dark-gray);
}

#modal-body {
    padding: 20px 40px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.modal-details h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-details .modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.modal-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.modal-info-list li:last-child {
    border-bottom: none;
}
.modal-info-list strong {
    color: var(--dark-gray);
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    #modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .hero-content h2 { font-size: 2.5rem; }
    
    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 10px;
    }
    header nav a {
        margin: 0 10px;
    }

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

@media (max-width: 480px) {
    .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    
    #filter-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .filter-btn {
        width: 45%;
    }
}