/* --- VARIAVEIS E ESTILOS GLOBAIS --- */
:root {
    --black: #0A0A0A;
    --ivory: #ECECEC;
    --navy: #1D2B53;
    --accent-blue: #2563EB;
    --accent-teal: #03A696;
}

/* ... (as suas declarações @font-face continuam aqui, sem alterações) ... */
@font-face {
    font-family: 'Averta normal';
    src: url(averta[1]/AvertaDemoPECuttedDemo-Regular.otf);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Averta bold';
    src: url(averta[1]/AvertaDemoPE-ExtraBold.otf);
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'freesans(normal)';
    src: url(Fonte/helvetica-neue-similar-fonts/freesans/FreeSans.otf);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'freesans(bold)';
    src: url(Fonte/helvetica-neue-similar-fonts/freesans/FreeSansBold.otf);
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; 
    background-color: var(--black);
}
body {
    font-family: 'freesans(normal)', sans-serif;
    color: var(--ivory);
    line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
section { padding: 100px 0; }
h1, h2, h3 { line-height: 1.2; font-weight: bold; }
h1 { font-size: 4rem; margin-bottom: 20px; }
h2 { font-size: 3rem; text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.5rem; color: var(--ivory); margin-bottom: 10px; }
p { color: #A1A1A1; margin-bottom: 15px; }
a:hover {color:var(--accent-blue);

/* --- ANIMAÇÃO DE SCROLL --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- HEADER --- */
.main-header { position: fixed; width: 100%; top: 0; z-index: 100; padding: 20px 0; background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(10px); }
.main-header nav.container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 900; font-size: 1.8rem; color: var(--ivory); text-decoration: none; }
.main-header nav ul { display: flex; list-style: none; gap: 30px; }
.main-header nav a { color: #A1A1A1; text-decoration: none; font-size: 1rem; transition: color 0.3s; }

/* --- ESTILOS DO MENU HAMBÚRGUER (NOVO) --- */
.menu-toggle { display: none; /* Começa escondido em telas grandes */ }

/* --- HERO SECTION --- (código original sem alterações) */
.hero-section { min-height: 100vh; padding: 150px 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-text { max-width: 800px; margin: 0 auto; }
.glass { position: relative; z-index: 5; width: clamp(320px, 86vw, 1140px); min-height: clamp(420px, 50vh, 580px); background: color-mix(in srgb, var(--ivory) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.45); border-radius: 28px; padding: clamp(18px, 3.8vw, 44px); display: grid; place-items: center; }

.text-section p {
    text-align: center;
}

/* --- CARDS SECTION --- */
.problems-section .section-subtitle { text-align: center; max-width: 600px; margin: -30px auto 50px auto; }
.glass-cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.glass-card { padding: 30px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px 0 rgba(0, 0, 0, 0.37); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 15px 40px 0 rgba(0, 0, 0, 0.45); }
.glass-card h3 { color: var(--ivory); }
.glass-card p { color: #CFCFCF; }
.solution-text { text-align: center; max-width: 800px; margin: 100px auto 0 auto; }
.solution-text h2 { font-size: 2.5rem; }

/* --- CONSULTORIA SECTION --- */
.consult-container { display: flex; align-items: center; gap: 50px; background-color: #1A1A1A; padding: 60px; border-radius: 16px; }
.consult-text { flex: 1; }
.consult-form { flex: 1; background: rgba(29, 43, 83, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(236, 236, 236, 0.15); padding: 40px; border-radius: 16px; }
.form-group { margin-bottom: 25px; }
.consult-form label { display: block; margin-bottom: 8px; color: #A1A1A1; font-size: 0.9rem; }
.consult-form input { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--navy); color: var(--ivory); font-size: 1.1rem; padding: 8px 0; transition: border-color 0.3s; }
.consult-form input:focus { outline: none; border-bottom-color: var(--accent-teal); }
.consult-form .cta-button { width: 100%; margin-top: 20px; padding: 15px 30px; background-color: var(--accent-blue); color: var(--ivory); text-decoration: none; font-weight: 700; border-radius: 8px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; border: none; }
.consult-form .cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); }

/* --- FAQ & FOOTER --- (código original sem alterações) */
.faq-section .container { max-width: 800px; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq-question { width: 100%; background: none; border: none; padding: 25px 0; color: var(--ivory); font-size: 1.2rem; font-weight: 700; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question .arrow { font-size: 1.5rem; transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-question.active + .faq-answer { max-height: 500px; padding-bottom: 25px; }
.faq-question.active .arrow { transform: rotate(180deg); color: var(--accent-teal); }
.main-footer .container { display: flex; justify-content: space-between; align-items: center; padding: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.social-links { display: flex; gap: 20px; }
.social-links a { color: #A1A1A1; text-decoration: none; transition: color 0.3s; }
.social-links a:hover { color: var(--accent-blue); }

/* --- FUNDO COM GRADIENTE (VERSÃO DEFINITIVA E CORRIGIDA) --- */

/* 1. A cor de fundo principal vai para a tag <html> */
html {
    scroll-behavior: smooth;
    background-color: var(--black);
}

/* 2. O <body> fica transparente e controla o contexto */
body {
    background-color: transparent; /* Deixa o body transparente para o gradiente aparecer */
    /* As outras propriedades do seu body continuam aqui... */
    font-family: 'freesans(normal)', sans-serif;
    color: var(--ivory);
    line-height: 1.7;
}

/* 3. O novo "envelope" do site que fica na frente do gradiente */
.site-wrapper {
    position: relative;
    z-index: 2; /* Garante que todo o conteúdo fique na frente do gradiente */
}

/* 4. O container do gradiente, que agora fica em uma camada intermediária */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Fica na frente do fundo do <html>, mas atrás do .site-wrapper */
    pointer-events: none;
}

/* Efeito pesado com blur para DESKTOP */
.gradient-background::before,
.gradient-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.4;
}

/* Fonte de luz AZUL */
.gradient-background::before {
    background: var(--accent-blue);
    width: 700px;
    height: 700px;
    top: -150px;
    left: -200px;
}

/* Fonte de luz TEAL */
.gradient-background::after {
    background: var(--accent-teal);
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -200px;
}


/* 5. A regra especial para MOBILE continua a mesma */
@media (max-width: 800px) {
    /* Esconde os pseudo-elementos pesados no celular */
    .gradient-background::before,
    .gradient-background::after {
        display: none;
    }

    /* Cria um gradiente radial mais simples e leve no lugar */
    .gradient-background {
        background-image:
            radial-gradient(circle at 10% 20%, hsla(227, 78%, 52%, 0.35) 0px, transparent 50%),
            radial-gradient(circle at 90% 80%, hsla(175, 97%, 31%, 0.35) 0px, transparent 50%);
    }
}

/* --- Regra especial para MOBILE --- */
@media (max-width: 800px) {
    /* Esconde os pseudo-elementos pesados no celular */
    .gradient-background::before,
    .gradient-background::after {
        display: none;
    }

    /* Cria um gradiente radial mais simples e leve no lugar */
    .gradient-background {
        background-image:
            radial-gradient(circle at 10% 20%, hsla(227, 78%, 52%, 0.35) 0px, transparent 50%),
            radial-gradient(circle at 90% 80%, hsla(175, 97%, 31%, 0.35) 0px, transparent 50%);
    }
}

/*
==============================================
--- REGRAS DE RESPONSIVIDADE PARA MOBILE ---
==============================================
*/

@media (max-width: 800px) {

    /* --- AJUSTES GERAIS --- */
    .container {
        padding: 0 20px;
    }
    section {
        padding: 80px 0;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; margin-bottom: 30px; }
    h3 { font-size: 1.3rem; }


    /* --- MENU HAMBÚRGUER --- */
    .main-header nav ul {
        position: fixed;
        top: 0;
        left: 100%; /* Começa fora da tela */
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        
        transition: left 0.4s ease-in-out;
    }

    .main-header nav ul.active {
        left: 0; /* Puxa o menu para dentro da tela */
    }

    .main-header nav ul a {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 110; /* Para ficar acima do menu overlay */
    }
    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--ivory);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    /* Animação para o "X" de fechar */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* --- AJUSTE DOS CARDS --- */
    .glass-cards-container {
        grid-template-columns: 1fr; /* Empilha os cards */
        gap: 20px;
    }


    /* --- AJUSTE DA SEÇÃO DE CONSULTORIA/FORMULÁRIO --- */
    .consult-container {
        flex-direction: column; /* Empilha o texto e o formulário */
        padding: 40px 20px;
    }


    /* --- AJUSTES FINAIS --- */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    .solution-text {
        margin-top: 60px;
    }
    .main-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}