/* =============================== */
/* RESET E TIPOGRAFIA BASE */
/* =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* FIX CRÍTICO: IMPEDE ROLAGEM HORIZONTAL */
    overflow-x: hidden; 
}

main {
    flex-grow: 1; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0; 
}

/* TÍTULOS */
h1 { font-size: 3.5rem; }
h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 700;
}

/* CORES GERAIS */
.bg-light { background-color: #f7f9fc; }
.bg-dark { background-color: #1f2833; }
.bg-dark-alt { background-color: #2c3a47; }
.text-white { color: white; }

/* =============================== */
/* BOTÕES (CTAs) */
/* =============================== */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: #ff4d4d; 
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.4); 
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(255, 77, 77, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: white;
}

/* CTA FLUTUANTE (STICKY BUTTON) - ALTA CONVERSÃO */
.btn-fixed-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff; 
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    display: none; 
}
@media (max-width: 768px) {
    .btn-fixed-cta {
        display: block; 
    }
}

/* =============================== */
/* BARRA DE PROVA SOCIAL FIXA */
/* =============================== */
#sticky-proof-bar {
    position: sticky; 
    top: 0;
    width: 100%;
    background-color: #007bff; 
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999; 
    opacity: 0;
    transform: translateY(-100%);
    animation: slideDown 0.5s forwards 1s; 
}

#sticky-proof-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

/* =============================== */
/* I. HEADER E NAVEGAÇÃO */
/* =============================== */
#hero {
    background: linear-gradient(135deg, #0c1218 0%, #1f2833 100%); 
    color: white;
    padding: 40px 0 150px;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CORREÇÃO CRÍTICA NAVBAR */
.navbar {
    display: flex;
    /* FIX: CENTRALIZA O LOGO NO TOPO APÓS REMOVER OS LINKS */
    justify-content: center; 
    align-items: center; 
    width: 100%;
    /* Aumenta a margem para criar mais espaço entre o topo e a headline */
    margin-bottom: 80px; 
}

/* IMPORTANTE: NAV-LINKS FOI REMOVIDO DO HTML. ESTA REGRA NÃO É MAIS NECESSÁRIA.
.nav-links {
    display: none; 
} 
*/

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4d4d; 
    text-decoration: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px; 
}

/* ESTÉTICA DA HEADLINE */
.hero-content h1 {
    font-size: 4.2rem; 
    margin-bottom: 25px;
    line-height: 1.05; 
    letter-spacing: -2px; 
    font-weight: 900;
}

/* EFEITO DE DIGITAÇÃO E CURSOR PERFEITO */
#typing-text {
    border-right: 4px solid white; 
    overflow: hidden; 
    display: inline-block; 
    line-height: 1.2;
    animation: blink-caret 0.75s step-end infinite; 
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

.proof-bar {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

/* =============================== */
/* II. SEÇÕES DE CONTEÚDO E CARTÕES */
/* =============================== */

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); 
}

.problem {
    background-color: #fff0f0;
    border-left: 5px solid #ff4d4d;
}

.solution {
    background-color: #e8f9ff;
    border-left: 5px solid #007bff;
}

/* III. SERVIÇOS */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 50px 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* IV. CASES */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* V. DEPOIMENTOS */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    padding: 30px;
    border-left: 3px solid #007bff;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

/* VI. CLIENTES */
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}
.client-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #999; 
    text-transform: uppercase;
}

/* VII. FORMULÁRIO */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 18px;
    border: 1px solid #444; 
    border-radius: 4px;
    font-size: 1rem;
    background-color: #2c3a47; 
    color: white;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.8rem;
    background-color: #111;
    color: #aaa;
    margin-top: auto; 
}


/* =============================== */
/* RESPONSIVIDADE FINAL (Mobile e Tablet) */
/* =============================== */
@media (max-width: 1024px) { 
    .hero-content h1 {
        font-size: 3rem; 
    }
    #typing-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) { 
    
    /* GERAL */
    .section-padding { padding: 50px 0; }
    h2 { font-size: 1.8rem; }
    
    /* ESPAÇAMENTO PREMIUM GERAL */
    .container {
        padding: 0 18px; 
    }
    
    /* CABEÇALHO E NAVEGAÇÃO */
    .navbar {
        flex-direction: column; 
        /* Diminui o gap para centralizar melhor o logo */
        gap: 15px; 
        margin-bottom: 40px; 
    }
    
    /* REMOÇÃO DOS LINKS NO MOBILE */
    .nav-links {
        display: none; 
    }
    
    /* HERO SECTION E EFEITO DE DIGITAÇÃO CRÍTICO */
    #hero {
        padding: 40px 0 100px; 
        min-height: 70vh; 
    }

    /* CORREÇÃO ESTÉTICA E RESPONSIVIDADE DO H1 */
    .hero-content h1 {
        font-size: 1.8rem; 
        line-height: 1.3;
        letter-spacing: 0;
    }
    
    /* CORREÇÃO DO CURSOR/TEXTO DE DIGITAÇÃO NO MOBILE */
    #typing-text {
        border-right: 2px solid white; 
        font-size: 1.8rem !important; 
    }

    /* ESPAÇAMENTO PREMIUM: TEXTO E BOTÃO */
    .hero-content p {
        margin-top: 20px; 
        margin-bottom: 30px; 
        font-size: 0.9rem;
    }
    
    /* BOTÃO CTA: DOMÍNIO DE TELA */
    .btn-primary {
        width: 100%;
        padding: 18px 20px;
    }
    
    .proof-bar {
        flex-direction: column; 
        gap: 12px;
        font-size: 0.8rem;
    }
    
    /* GRIDS GERAIS */
    .problem-solution-grid, 
    .testimonial-grid, 
    .service-grid, 
    .case-grid {
        grid-template-columns: 1fr; 
    }
    
    .testimonial-card {
        padding: 20px;
    }
}