/* Importando uma fonte moderna e limpa parecida com a do template de referência */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Jost:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444444;
    background-color: #fff;
    line-height: 1.6;
}

/* Ativa o deslizamento suave na página toda */
html {
    scroll-behavior: smooth;
}

/* Cria um "espaço de freio" para as âncoras não entrarem debaixo do cabeçalho */
section {
    scroll-margin-top: 100px;
}

h1, h2, h3, h4 {
    font-family: 'Jost', sans-serif;
    color: #37517e;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ================= Cabeçalho (COMPUTADOR) ================= */
header, .header {
    background: #fff;
    padding: 5px 0;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; }

/* A LOGO DO PC INTACTA AQUI */
.logo { 
    max-height: 100px; 
    transform: scale(2.0);
    transform-origin: left center;
    margin-right: 40px;
}

.brand h1 { font-size: 28px; margin: 0; font-weight: 500; letter-spacing: 1px; }

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: #37517e;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover { color: #47b2e4; }

.btn-nav {
    background: #47b2e4;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
}
.btn-nav:hover { background: #31a9e1; }

/* ================= Hero Section (Topo) ================= */
.hero {
    background-color: #37517e;
    padding: 80px 0;
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #47b2e4;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
}
.btn-primary:hover { background: #31a9e1; }

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ================= Faixa de Atuação ================= */
.clients-bar {
    background: #f3f5fa;
    padding: 20px 0;
    text-align: center;
}

.clients-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    color: #8a8a8a;
    font-weight: 600;
    font-size: 14px;
}

/* ================= Seções Gerais ================= */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f3f5fa; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #47b2e4;
    bottom: 0;
    left: calc(50% - 25px);
}

.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.check-list {
    list-style: none;
    margin-top: 15px;
}
.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.check-list li::before {
    content: '✓';
    color: #47b2e4;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ================= FAQ ================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    cursor: pointer;
}

.faq-item summary {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #37517e;
    list-style: none;
    outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ================= Informações de Contato ================= */
.info-item {
    margin-bottom: 25px;
}
.info-item strong {
    color: #37517e;
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

/* ================= Rodapé ================= */
.footer {
    background: #37517e;
    color: #fff;
    padding-top: 50px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand h3 { color: #fff; margin-bottom: 15px; }
.footer-links h4 { color: #fff; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; line-height: 2; }
.footer-links a:hover { color: #47b2e4; }

.footer-bottom {
    background: #283a5ae6;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* Esconde o menu hambúrguer no PC */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #37517e;
    transition: all 0.3s ease;
}

/* ================= Responsividade (Celulares) ================= */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

   /* 1. Barra fixa com fundo branco garantido desde o início */
    header, .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: #fff; 
        padding: 10px 0 !important; /* Erro de digitação corrigido aqui */
        transition: all 0.4s ease;
    }

    /* Evita que o texto suma atrás da barra fixa */
    body {
        padding-top: 70px; 
    }

    /* 2. Barra encolhe e fica translúcida ao descer a página */
    header.scrolled, .header.scrolled {
        background-color: rgba(255, 255, 255, 0.95) !important;
        padding: 5px 0 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* 3. Alinhamento da Logo e Menu */
    .header-content { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    .brand {
        width: auto;
    }

    /* 4. Logo do Celular no TOPO (Aumenta SEM engordar a barra) */
    .logo {
        max-height: 50px !important; /* Segura a altura da barra para não ficar gorda */
        transform: scale(1.6) !important; /* <--- MUDE AQUI PARA AUMENTAR A LOGO (ex: 1.8, 2.0) */
        transform-origin: left center !important; 
        margin: 0 !important; 
        transition: all 0.4s ease !important; 
    }

    /* 5. Logo encolhe automaticamente quando a página desce */
    header.scrolled .logo, .header.scrolled .logo {
        transform: scale(1.0) !important; /* Volta ao tamanho normal */
        max-height: 50px !important;
    }

    /* Mostra o Hambúrguer */
    .menu-toggle {
        display: flex; 
    }

    header nav, .header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f4f4f5e1;
        display: none; 
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    header nav.active, .header nav.active {
        display: block !important;
    }

    header nav.active ul, .header nav.active ul { 
        display: flex !important;
        flex-direction: column; 
        align-items: center;
        gap: 20px; 
    }
    
    /* Ajuste do grid para o resto do site não quebrar */
    .hero-grid, .about-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .check-list li { text-align: left; }
    .hero { padding: 40px 0; text-align: center; }
}

/* ================= Animações Otimizadas (Scroll) ================= */
.animar-surgir {
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
    will-change: opacity, transform; 
}

.animar-surgir.visivel {
    opacity: 1; 
    transform: translateY(0); 
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* ================= Ajustes Finais APENAS para Celular ================= */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 70px !important; 
    }

    #contato {
        padding-top: 10px !important; 
    }

    #empresa {
        padding-top: 10px !important; 
    }

    #faq {
        padding-top: 10px !important; 
    }

    .footer {
        padding-bottom: 200px !important;
    }
}

 #empresa {
        padding-top: 40px !important; 
    }

     #faq {
        padding-top: 40px !important; 
    }
