/* ==========================================================================
   1. CONFIGURAÇÕES BASE E RESET CSS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove o destaque escuro ao tocar em links no mobile */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Global */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Títulos Globais */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b4c;
    text-align: center;
    margin-bottom: 40px;
}

.title-light {
    color: #ffffff;
}

/* ==========================================================================
   2. BOTÕES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px; /* Otimizado para o toque em telas sensíveis */
}

.btn-gold {
    background-color: #d4af37;
    color: #1a2b4c;
}

.btn-gold:hover {
    background-color: #c49f27;
}

/* ==========================================================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.header {
    background-color: #0b1320;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav .nav-menu {
    display: flex;
    flex-wrap: wrap; /* Permite a quebra de linha dos botões */
    justify-content: center; /* Centraliza os botões */
    list-style: none;
    gap: 12px 20px;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d4af37;
}

/* ==========================================================================
   4. SEÇÃO HERO (NOME E CAMINHO DA IMAGEM CORRIGIDOS PARA banner-familia.png)
   ========================================================================== */
.hero {
    position: relative;
    background-color: #0b1320;
    background-image: linear-gradient(rgba(11, 19, 32, 0.4), rgba(11, 19, 32, 0.6)), url('../imagens/banner-familia.png'), url('/imagens/banner-familia.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #d4af37;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ffffff;
}

/* ==========================================================================
   5. SEÇÃO SOLUÇÕES / CARDS
   ========================================================================== */
.solutions {
    padding: 60px 0;
}

.grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-centered {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.card h3 {
    color: #1a2b4c;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.card-link {
    color: #1a2b4c;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* ==========================================================================
   6. CARROSSEL DE SEGURADORAS
   ========================================================================== */
.partners {
    background-color: #0b1320;
    padding: 60px 0;
    text-align: center;
}

.partners-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: #d4af37;
    color: #1a2b4c;
}

/* ==========================================================================
   7. POR QUE ESCOLHER A WIR
   ========================================================================== */
.why-us {
    padding: 60px 0;
    background: #ffffff;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: #1a2b4c;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: #1a2b4c;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-box p {
    color: #666;
    font-size: 0.88rem;
}

/* ==========================================================================
   8. AJUSTES RESPONSIVOS PARA DISPOSITIVOS MÓVEIS (ANDROID / IOS)
   ========================================================================== */

/* Tablets e Telas Médias (max-width: 992px) */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        padding-bottom: 5px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Smartphones (max-width: 768px) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        width: 100%;
    }

    .nav-menu {
        flex-wrap: wrap !important; /* Força os botões a quebrarem linha no celular */
        justify-content: center !important; /* Centraliza todos os botões no celular */
        gap: 10px 15px !important;
        padding: 5px 0;
    }

    /* Regra responsiva com imagem e caminho corretos para celulares */
    .hero {
        padding: 80px 0 !important;
        min-height: 420px !important;
        background-color: #0b1320 !important;
        background-image: linear-gradient(rgba(11, 19, 32, 0.4), rgba(11, 19, 32, 0.6)), url('../imagens/banner-familia.png') !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .carousel-btn {
        display: none !important;
    }

    .modal-form input[type="text"],
    .modal-form input[type="tel"],
    .modal-form input[type="email"],
    .modal-form select {
        font-size: 16px !important;
    }

    .modal-form .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .modal-container {
        padding: 20px 15px !important;
        margin: 10px !important;
        max-height: 85vh !important;
    }
}

/* Smartphones Pequenos (max-width: 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 5px;
    }

    .footer-legal-links span.divider {
        display: none;
    }
}