/* ==========================================================================
   CONFIGURAÇÕES GERAIS - NILSOL
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f4f7f6; color: #333; line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   HEADER E NAVEGAÇÃO
   ========================================================================== */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 10px 0; width: 100%; position: relative; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 80px; width: auto; }

nav ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
nav ul li a { text-decoration: none; color: #003366; font-weight: 600; transition: 0.3s; }
nav ul li a:hover { color: #f9c80e; }

/* ==========================================================================
   TARJAS AZUIS (HERO SECTIONS) - FORÇANDO O AZUL NILSOL
   ========================================================================== */
.hero-sub, .hero-termo, .hero-solar, .hero-contato, .banner-principal { 
    background: #003366 !important;
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%) !important;
    padding: 100px 0 150px !important;
    text-align: center !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 5px solid #f9c80e !important;
    position: relative !important;
    clear: both !important;
}

.hero-sub h1, .hero-termo h1, .hero-solar h1, .hero-contato h1, .banner-principal h1 {
    font-size: 2.8rem !important;
    color: #f9c80e !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    font-weight: 800 !important;
}

.hero-sub p, .hero-termo p, .hero-solar p, .hero-contato p, .banner-principal p {
    font-size: 1.2rem !important;
    color: #ffffff !important;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: #001f3f !important;
    color: #ffffff !important;
    padding: 60px 0 30px !important;
    margin-top: 50px !important;
    display: block !important;
    clear: both !important;
    border-top: 5px solid #f9c80e !important;
}

.footer-col h4 { color: #f9c80e !important; margin-bottom: 20px; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li a { color: #ffffff !important; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: #f9c80e !important; }

/* ==========================================================================
   BOTÃO WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }

/* ==========================================================================
   RESPONSIVIDADE - AJUSTE PARA CELULAR (FORTALEZA/NILSOL)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Ajuste do Cabeçalho e Menu */
    header .container {
        flex-direction: column; /* Logo em cima, menu embaixo */
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap; /* Permite que o menu quebre em duas linhas se necessário */
        justify-content: center;
        gap: 15px;
    }

    /* 2. Ajuste dos Banners (Tarjas Azuis) */
    .hero-sub, .banner-principal {
        padding: 60px 20px 100px !important; /* Diminui o espaço interno */
    }

    .hero-sub h1, .banner-principal h1 {
        font-size: 1.8rem !important; /* Letra menor para não cortar no celular */
    }

    /* 3. Ajuste dos Cards (O segredo da responsividade) */
    .servicos-cards, .grid-resumo {
        flex-direction: column !important; /* Empilha os cards um embaixo do outro */
        align-items: center;
        margin-top: -50px !important; /* Ajusta a sobreposição no azul */
        padding: 0 20px;
    }

    .card, .card-resumo {
        width: 100% !important; /* Card ocupa a largura toda da tela */
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* 4. Rodapé */
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        min-width: 100%;
    }

    /* 5. Botão WhatsApp */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* Botão Sanduíche - Escondido por padrão */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: #003366; /* Azul Nilsol */
    transition: 0.3s;
}

/* Regras para Celular */
@media (max-width: 768px) {
    .menu-toggle { display: flex; } /* Mostra o botão */

    .nav-list {
        display: none; /* Esconde a lista original */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Classe que o JavaScript vai ativar */
    .nav-list.active { display: flex; }

    .nav-list li { padding: 15px 0; border-bottom: 1px solid #eee; }
    
    /* Submenu no Mobile */
    .dropdown-content { position: static; box-shadow: none; display: block; }
}

