/* =========================================
   ESTILOS GERAIS & UTILITÁRIOS
   ========================================= */
body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad {
    padding: 60px 0;
}

/* NOTA: As variáveis de cor (:root) são definidas dinamicamente 
   no arquivo 'partials/header.php' para respeitar a personalização do painel.
   
   Variáveis esperadas:
   --verde-escuro (Cor Principal)
   --verde-claro (Cor Botões/Destaque)
   --verde-hover (Cor Secundária)
*/

/* =========================================
   1. HERO SECTION (Padrão para Produtos)
   ========================================= */
.hero-auto {
    padding: 60px 0;
    background: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-auto .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    min-width: 300px;
}

.hero-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--verde-hover); /* Dinâmico */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--verde-escuro); /* Dinâmico */
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-cta-hero {
    display: inline-block;
    background-color: var(--verde-claro); /* Dinâmico */
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta-hero:hover {
    background-color: var(--verde-hover); /* Dinâmico */
    transform: translateY(-2px);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Opcional: arredondar cantos da imagem */
}

/* =========================================
   2. SEÇÃO DE BENEFÍCIOS (Faixa Colorida)
   ========================================= */
.beneficios-section {
    background-color: var(--verde-escuro); /* Dinâmico */
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.beneficios-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.beneficio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.beneficio-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.beneficio-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   3. SEÇÃO DE COBERTURAS (Grid de Ícones)
   ========================================= */
.coberturas-grid-section {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.section-header h2 {
    color: var(--verde-escuro); /* Dinâmico */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.coberturas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
}

.cobertura-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.cobertura-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 90px;
    height: 90px;
    border: 2px solid var(--verde-escuro); /* Dinâmico */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--verde-escuro); /* Dinâmico */
    font-size: 2rem;
    transition: 0.3s;
}

.cobertura-card:hover .icon-circle {
    background-color: var(--verde-escuro); /* Dinâmico */
    color: #fff;
}

.cobertura-card h3 {
    color: #444;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cobertura-card p {
    font-size: 0.95rem;
    color: #666;
}

/* =========================================
   4. TABELA RESPONSIVA (Seu estilo personalizado)
   ========================================= */
.table-container {
    margin-top: 40px;
    margin-bottom: 40px;
    overflow-x: auto;
}

.responsive-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    color: #333;
}

.responsive-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #eaeaea;
    padding: 12px;
    text-align: left;
}

.responsive-table td {
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.responsive-table td a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }
    .responsive-table tr {
        display: block;
        background: #fff;
        margin-bottom: 0.9rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
        padding: 10px 14px;
        border: 1px solid #eee;
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
    }
    .responsive-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 10px;
    }
}

/* =========================================
   5. CTA + FORMULÁRIO
   ========================================= */
.cta-form-section {
    background-color: var(--verde-escuro); /* Dinâmico */
    padding: 60px 0 80px 0;
}

.cta-section-title {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.cta-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-col-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-col-right {
    flex: 1;
    background-color: #e9ecef;
    padding: 40px;
}

.cta-col-right h3 {
    color: var(--verde-escuro); /* Dinâmico */
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.cta-benefits-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #444;
}

.cta-benefits-list li i {
    color: var(--verde-claro); /* Dinâmico */
    margin-right: 10px;
}

.cta-divider {
    border-top: 1px solid #eee;
    margin: 20px 0;
    border-bottom: none;
}

/* Estilo dos Inputs */
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: var(--verde-escuro); /* Dinâmico */
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.btn-submit-full {
    width: 100%;
    background-color: var(--verde-escuro); /* Dinâmico */
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-submit-full:hover {
    background-color: var(--verde-hover); /* Dinâmico */
}

/* =========================================
   6. FAQ + CTA FINAL
   ========================================= */
.faq-section {
    background: #fff;
    padding: 60px 0 80px 0;
}

.faq-title {
    color: var(--verde-escuro); /* Dinâmico */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--verde-escuro); /* Dinâmico */
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
}

/* Remove marcador padrão no Chrome */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: #d4af37; /* Dourado fixo ou pode ser dinâmico */
    margin-right: 15px;
    font-size: 0.8rem;
}

.faq-content {
    padding: 10px 0 0 25px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-cta-wrapper {
    text-align: center;
}

.btn-cta-green-large {
    background-color: var(--verde-claro); /* Dinâmico */
    color: #fff;
    padding: 18px 50px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.btn-cta-green-large:hover {
    background-color: var(--verde-hover); /* Dinâmico */
    transform: translateY(-2px);
}

/* =========================================
   7. CARROSSEL DE SEGURADORAS (Estilos básicos)
   ========================================= */
.seguradoras-section {
    background-color: #f9f9f9;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

/* Nota: As animações mais complexas de carrossel 
   estão sendo tratadas pelo Tailwind ou script no arquivo
   partials/seguradoras.php
*/

/* =========================================
   RESPONSIVIDADE GERAL
   ========================================= */
@media (max-width: 992px) {
    .beneficios-grid,
    .coberturas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-auto .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-image-wrapper {
        justify-content: center;
    }

    .cta-card {
        flex-direction: column;
    }
    
    .cta-col-left, .cta-col-right {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .beneficios-grid,
    .coberturas-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2,
    .beneficios-title,
    .faq-title {
        font-size: 1.8rem;
    }
}