/* =========================================
   1. CONFIGURAÇÕES GERAIS (RESET)
   ========================================= */
:root {
    --primary-color: #003366; /* Azul Marinho Profundo */
    --accent-color: #00509e;  /* Azul Mais Claro para destaque */
    --text-color: #333333;    /* Cinza Escuro para texto */
    --light-bg: #f8f9fa;      /* Fundo Cinza Claríssimo */
    --white: #ffffff;
    --whatsapp-green: #25d366;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

section {
    padding: 60px 0;
}

/* =========================================
   2. NAVEGAÇÃO (NAVBAR) - CORRIGIDO FINAL
   ========================================= */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

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

/* Container para Logo + Texto */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre a imagem e o texto */
    text-decoration: none;
}

.nav-logo {
    max-height: 50px; /* Altura um pouco maior para destaque */
    width: auto;
    /* O TRUQUE MÁGICO: Inverte a cor da logo preta para branca */
    filter: brightness(0) invert(1);
}

.brand-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase; /* Garante caixa alta */
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--white);
}

.btn-nav {
    border: 1px solid var(--white);
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

/* =========================================
   3. HERO SECTION (CAPA)
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f3f 100%);
    color: var(--white);
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* =========================================
   4. SEÇÕES INTERNAS
   ========================================= */
.section-light {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition-speed);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

/* =========================================
   5. PARCEIROS
   ========================================= */
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.partner-card {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================================
   6. SERVIÇOS
   ========================================= */
.section-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-title::after { background: var(--white); }

.lead-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.services-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.service-col {
    flex: 1;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-col:hover {
    border-color: var(--accent-color);
}

.service-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-col ul { margin-top: 25px; }

.service-col li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.service-col li i {
    color: var(--whatsapp-green);
    margin-top: 5px;
}

.highlight-box {
    background: linear-gradient(to right, #e8f0fe, #ffffff);
    border-left: 6px solid var(--accent-color);
    padding: 50px 20px;
    margin: 80px auto 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* =========================================
   7. RODAPÉ (FOOTER)
   ========================================= */
.main-footer {
    background-color: #111;
    color: #bbb;
    padding: 80px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.main-footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.main-footer ul li { margin-bottom: 12px; }

.main-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* =========================================
   8. WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(10deg);
}

/* =========================================
   9. RESPONSIVIDADE (MOBILE) - CRÍTICO
   ========================================= */
@media (max-width: 768px) {
    
    .navbar { padding: 15px 0; }
    
    .nav-flex {
        flex-direction: column;
        gap: 20px;
    }

    /* Ajuste da Marca no Mobile */
    .brand-container {
        flex-direction: column; /* Empilha logo e texto */
        gap: 10px;
    }
    
    .nav-logo {
        max-height: 45px;
        margin: 0 auto; /* Centraliza */
    }

    .brand-text {
        font-size: 1.1rem;
        text-align: center;
    }

    /* Menu de Links Mobile */
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .nav-links a { font-size: 0.9rem; }

    /* Restante do Mobile */
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    section { padding: 40px 0; }
    .services-wrapper { flex-direction: column; }
    .service-col { padding: 25px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo { margin: 0 auto 20px auto; }
}