/* =========================================
   1. VARIÁVEIS E RESET (Cores da Marca: EM Code)
   ========================================= */
:root {
    /* Cores Institucionais (Extraídas da Logo) */
    --em-purple: #9b2c96;  /* Roxo do 'em' */
    --code-blue: #1e4079;  /* Azul do 'code' */

    /* Cores Funcionais */
    --primary: var(--em-purple);
    --primary-hover: #7a2276;
    --secondary: #0EA5E9;  /* Azul Ciano (Para contrastes e brilhos) */

    /* Cores Neutras */
    --dark: #0F172A;       /* Slate 900 */
    --light: #F8FAFC;      /* Slate 50 */
    --text-main: #1E293B;  /* Slate 800 */
    --text-gray: #64748B;  /* Slate 500 */
    --success: #10B981;    /* Verde Sucesso */

    /* Gradientes */
    --brand-gradient: linear-gradient(135deg, #0F172A 0%, var(--code-blue) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--code-blue); /* Títulos no Azul da Marca */
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITÁRIOS E BOTÕES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-gray); }
.mt-4 { margin-top: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.bg-light { background-color: white; }
.full-width { width: 100%; }

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--em-purple), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(155, 44, 150, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 44, 150, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--em-purple);
    color: var(--em-purple);
}

.btn-outline:hover {
    background: var(--em-purple);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

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

/* =========================================
   3. HEADER E LOGO
   ========================================= */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    font-family: 'Poppins', sans-serif;
}
/* A classe logo no HTML já tem as cores inline ou via span, mas garantimos aqui */
.logo span:first-child { color: var(--em-purple); } /* em */
.logo span:last-child { color: var(--code-blue); }  /* code */

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--em-purple); }

.mobile-menu { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    background: var(--brand-gradient);
    color: white;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white; /* Força branco no fundo escuro */
}

.hero-text .highlight {
    color: var(--secondary); /* Azul claro para destacar no fundo escuro */
}

.hero-text p {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-wrapper { display: flex; gap: 15px; flex-wrap: wrap; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   5. SEÇÕES: DIFERENCIAIS E PAINEL
   ========================================= */
.section-subtitle {
    color: var(--em-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Grid de Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    border-top: 4px solid transparent; /* Prepara para o hover */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--em-purple);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 40px;
    color: var(--em-purple);
    margin-bottom: 25px;
    background: rgba(155, 44, 150, 0.05);
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin-left: auto; margin-right: auto;
}

/* Painel */
.panel-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.panel-img img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.check-list { margin-top: 30px; }
.check-list li { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; }
.check-list i { color: var(--success); font-size: 1.4rem; margin-top: 3px; }
.check-list strong { color: var(--code-blue); display: block; margin-bottom: 2px; }
.check-list p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.5; }

/* =========================================
   6. PLANOS (PRICING)
   ========================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }

.plan-card {
    background: white;
    padding: 50px 30px;
    border-radius: 24px;
    position: relative;
    transition: 0.3s;
    border: 1px solid #E2E8F0;
}

.plan-card.popular {
    border: 2px solid var(--code-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(30, 64, 121, 0.15);
    z-index: 2;
}

.popular-tag {
    position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--code-blue);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--code-blue);
    margin: 20px 0;
    letter-spacing: -1px;
}

.price span { font-size: 1rem; color: var(--text-gray); font-weight: 400; }

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-gray);
    display: flex; align-items: center; gap: 10px;
}
.plan-features li i { color: var(--em-purple); }

/* =========================================
   7. SEGURANÇA E FOOTER
   ========================================= */
.security-section {
    background: var(--code-blue); /* Fundo Azul da Marca */
    color: white;
}

.security-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.security-section h2 { color: white; }
.security-section p { color: #E2E8F0; }

.feature-row { display: flex; gap: 20px; align-items: flex-start; }

.security-section img {
    border-radius: 20px;
    opacity: 0.9;
    mix-blend-mode: normal;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #020617;
    color: white;
    padding: 80px 0 20px;
    border-top: 1px solid #1E293B;
}

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; border-bottom: 1px solid #1E293B; padding-bottom: 50px; }
.footer-col h4 { margin-bottom: 25px; font-size: 1.1rem; color: white; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94A3B8; transition: 0.3s; }
.footer-col ul li a:hover { color: white; padding-left: 5px; }
.copyright { text-align: center; color: #475569; font-size: 0.9rem; }

/* =========================================
   8. MODAL DE CONTATO
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center; justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white; padding: 40px;
    border-radius: 24px;
    width: 90%; max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: slideUp 0.3s;
}

.close-modal {
    position: absolute; top: 20px; right: 25px;
    font-size: 28px; cursor: pointer; color: var(--text-gray);
}
.close-modal:hover { color: var(--dark); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input {
    width: 100%; padding: 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px; font-size: 1rem;
    outline: none; transition: 0.3s;
}
.form-group input:focus {
    border-color: var(--em-purple);
    box-shadow: 0 0 0 4px rgba(155, 44, 150, 0.1);
}

/* Animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =========================================
   9. RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.5rem; }
    .hero-content, .panel-wrapper, .security-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image, .panel-img, .img-side { order: -1; margin-bottom: 40px; justify-self: center; }

    .nav-links { display: none; }
    .mobile-menu { display: block; }

    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 70px; left: 0;
        width: 100%; background: white;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        animation: slideDown 0.3s;
    }

    .check-list { display: inline-block; text-align: left; }
    .feature-icon { margin: 0 auto 20px; }

    .pricing-grid { gap: 20px; }
    .plan-card.popular { transform: scale(1); }
}

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =========================================
   10. FAQ SECTION (Accordion)
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--em-purple); /* Roxo da marca ao passar o mouse */
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--code-blue); /* Azul da marca */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.faq-question i {
    color: var(--em-purple);
    transition: transform 0.3s ease;
}

.faq-question.active {
    background: rgba(155, 44, 150, 0.05); /* Fundo levemente roxo quando ativo */
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}



/* Estilo da lista de sugestões de cidade */
        .autocomplete-wrapper {
            position: relative;
        }

        .suggestions-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-top: none;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: 200px;
            overflow-y: auto;
            list-style: none;
            padding: 0;
            margin: 0;
            display: none; /* Escondido por padrão */
        }

        .suggestions-list li {
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            color: #334155;
            border-bottom: 1px solid #f1f5f9;
        }

        .suggestions-list li:last-child {
            border-bottom: none;
        }

        .suggestions-list li:hover {
            background-color: #eff6ff;
            color: #0EA5E9;
        }

        .loading-item {
            text-align: center;
            color: #94a3b8 !important; /* Cinza claro */
            font-size: 13px;
            padding: 15px !important;
            cursor: default !important;
            background: white !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .loading-item:hover { background: white !important; color: #94a3b8 !important; }


/* =========================================
   AJUSTE MOBILE PARA MODAIS (Exit Intent & Contato)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ajuste Geral do Container do Modal */
    .modal-content {
        width: 95% !important;        /* Ocupa quase toda a largura */
        padding: 25px 20px !important; /* Reduz drasticamente o espaçamento interno */
        max-height: 90vh;             /* Máximo 90% da altura da tela */
        overflow-y: auto;             /* Permite rolar se o conteúdo for maior que a tela */
        margin: auto;                 /* Centraliza */
        border-radius: 16px !important;
    }

    /* 2. Ajuste do Botão de Fechar (X) */
    .close-modal {
        top: 10px !important;
        right: 15px !important;
        font-size: 28px !important;
        background: white; /* Fundo branco para garantir leitura */
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* 3. Ajustes Específicos do Modal de Saída (Exit Intent) */
    .exit-content h3 {
        font-size: 20px !important;   /* Título menor */
        line-height: 1.3;
        margin-bottom: 10px !important;
    }

    .exit-content i.fa-shield-alt {
        font-size: 40px !important;   /* Ícone menor (era 60px) */
        margin-bottom: 10px !important;
    }

    .exit-content p {
        font-size: 14px !important;   /* Texto menor */
        margin-bottom: 20px !important;
    }

    .exit-content ul li {
        font-size: 13px;              /* Lista mais compacta */
        margin-bottom: 8px !important;
    }

    /* Ajuste do Botão Principal no Mobile */
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        white-space: normal; /* Permite que o texto do botão quebre linha se necessário */
        height: auto;
    }
}