/* =============================================
   ESTILOS ESPECÍFICOS DA PÁGINA: HOME (AutoPrime)
============================================= */

/* --- Seção Hero (Mobile First) --- */
.hero-section {
    /* Substitua a URL abaixo pela imagem real do carro desejado */
    background-image: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.5)), url('../images/banner_hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Em mobile, scroll costuma ser melhor que fixed */
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff; /* Texto branco sobre o banner escuro */
}

.hero-content .logo {
    display: none; /* Logo já está no header, redundante aqui */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff; /* Força branco independente da var global */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    font-weight: 300;
}

/* --- Seção Diferenciais (Antigo Highlights) --- */
.highlights-section {
    padding: 80px 0;
    background-color: var(--cor-fundo);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.highlight-item {
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 3rem;
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.highlight-item h3 {
    font-size: 1.5rem;
    color: var(--cor-texto);
    margin-bottom: 15px;
}

.highlight-item p {
    color: var(--cor-texto-suave);
}

/* --- Seção Ofertas (Antigo Eventos) --- */
.offers-section {
    padding: 80px 0;
    background-color: var(--cor-secundaria); /* Fundo cinza claro */
}

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

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

.offer-card:hover {
    transform: translateY(-5px);
}

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

.offer-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-tag {
    background-color: var(--cor-destaque);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.offer-title {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.offer-price {
    font-size: 1.8rem;
    color: var(--cor-texto);
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- Seção Galeria Preview --- */
.gallery-preview-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =============================================
   MEDIA QUERIES (TABLET/DESKTOP)
============================================= */
@media (min-width: 768px) {
    .hero-section {
        background-attachment: fixed; /* Parallax em telas maiores */
    }

    .hero-content h1 { font-size: 5rem; }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        height: auto;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}