﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #0A003C;
    background-color: #f5f7fb;
}

    body.modal-open {
        overflow: hidden;
    }

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 100;
    background: transparent;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

    /* HEADER COM FUNDO QUANDO ROLAR */
    .header.scrolled {
        background: rgba(28, 32, 40, 0.95);
        backdrop-filter: blur(10px);
    }

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo-text-main {
    font-weight: 600;
    font-size: 18px;
}

.logo-text-sub {
    font-size: 11px;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #ffffff;
}

    .nav-menu a {
        position: relative;
        padding-bottom: 3px;
        cursor: pointer;
    }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #00D4A6;
            transition: width .25s ease;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

.btn-nav-login {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    transition: .25s ease;
}

    .btn-nav-login:hover {
        background: #ffffff;
        color: #0A003C;
    }

/* ================= HERO ================= */
.hero {
    position: relative;
    /*height: 100vh;
        min-height: 600px;*/
    height: 120vh;
    max-height: 900px;
    min-height: 850px;
    /*min-height: 120vh;*/ /* permite crescer se o conteúdo exigir */
    /*height: auto;
        max-height: none;*/
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center; /* mantém centralizado no eixo horizontal */
    text-align: center; /* agora o texto fica centralizado */
    padding: 0 60px;
    overflow: hidden;
}

    /* BG técnico com blur – agora é a imagem principal */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('../../../imagens/2151908064.jpg') top center / cover no-repeat;
        filter: blur(2px) brightness(0.55);
        transform: scale(1.05);
        z-index: -2;
    }

    /* overlay + glows */
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 10% 20%, rgba(38, 53, 68, 0.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(255, 138, 0, 0.40), transparent 55%), linear-gradient(to bottom, rgba(3, 7, 18, 0.65), rgba(3, 7, 18, 0.85));
        z-index: -1;
    }

/* Remover qualquer configuração da imagem interna */
.hero-image {
    display: none !important;
}

.hero-content {
    max-width: 850px;
    animation: fadeInUp 0.7s ease-out;
    margin: 0 auto; /* <-- adiciona isso para centralizar o bloco */
}

.hero-kicker {
    font-size: 16px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: .85;
}

.hero-title {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    max-width: 620px;
    opacity: .92;
    margin: 0 auto 16px; /* <<< centra o bloco */
    text-align: center; /* <<< garante o texto centralizado */
}

/* imagem interna logo abaixo do texto */
.hero-image {
    display: flex;
    justify-content: flex-start; /* use center se quiser centralizar */
}

    .hero-image img {
        width: 70%;
        max-width: 680px;
        margin: 18px 0 24px 0;
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    }

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center; /* <-- centraliza os chips */
}

.hero-badge {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: center; /* <-- centraliza os botões */
}

.btn-hero-main {
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .25s ease;
}

    .btn-hero-main:hover {
        background: #ffffff;
        color: #0A003C;
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    }

.btn-hero-sec {
    font-size: 13px;
    cursor: pointer;
    opacity: .9;
}

    .btn-hero-sec span {
        text-decoration: underline;
    }

.hero-tagline {
    margin-top: 18px;
    font-size: 16px;
    opacity: .75;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= SECTIONS GENÉRICAS ================= */
section {
    padding: 80px 60px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0A003C;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* ================= SOBRE O PORTAL (fundo cinza) ================= */
#sobre {
    /*background: #f5f7fb;*/
    background: #ffffff;
}

    #sobre .sobre-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 40px;
        align-items: center;
    }

.sobre-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.sobre-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.sobre-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 32px rgba(10,0,60,0.30);
    border: 1px solid rgba(10,0,60,0.04);
    font-size: 13px;
}

    .sobre-card strong {
        display: block;
        margin-bottom: 3px;
        color: #0A003C;
    }

.sobre-logo-box {
    text-align: center;
}

.sobre-card-texto {
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.30);
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(1px);
}

    .sobre-card-texto .sobre-text p {
        margin-bottom: 14px;
    }

    .sobre-card-texto .sobre-highlights {
        margin-top: 24px;
    }

.portal-logo-big {
    width: 400px;
    max-width: 100%;
    margin-bottom: 14px;
}

.portal-label {
    font-size: 13px;
    opacity: .7;
}

/* ================= MÓDULOS (fundo branco) ================= */
#modulos {
    /*background: #ffffff;*/
    background: #f5f7fb;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.modulo-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 20px 18px;
    box-shadow: 0 15px 35px rgba(10,0,60,0.06);
    border: 1px solid rgba(10,0,60,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: .22s ease;
}

    .modulo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(10,0,60,0.12);
    }

.modulo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modulo-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.modulo-name {
    font-weight: 600;
    font-size: 15px;
}

.modulo-desc {
    font-size: 13px;
    opacity: .8;
}

.modulo-tag {
    margin-top: 4px;
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f3ff;
    color: #3b4cc0;
}

.modulo-icon.proarco {
    background: linear-gradient(135deg, #FF8A00, #FFC05C);
}

.modulo-icon.eapr {
    background: linear-gradient(135deg, #0052CC, #3B82F6);
}

.modulo-icon.epex {
    background: linear-gradient(135deg, #16A34A, #22C55E);
}

.modulo-icon.nr10 {
    background: linear-gradient(135deg, #0A003C, #334155);
}

.modulo-icon.chamado {
    background: linear-gradient(135deg, #EC4899, #F97316);
}

.modulo-icon.acesso {
    background: linear-gradient(135deg, #0EA5E9, #22D3EE);
}

.btn-modulo-info {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0A003C;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .25s ease;
}

    .btn-modulo-info:hover {
        background: #1e2657;
        transform: translateY(-2px);
    }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 560px;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    animation: modalFade .35s ease;
}

    .modal-box h2 {
        font-size: 22px;
        margin-bottom: 12px;
        color: #0A003C;
    }

    .modal-box p {
        font-size: 15px;
        line-height: 1.6;
    }

.modal-close {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0A003C, #334155);
    color: #fff;
    border: none;
    cursor: pointer;
}

    .modal-close:hover {
        opacity: .9;
    }

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= CLIENTES ================= */
#clientes {
    background: #ffffff;
    /*background: #f5f7fb;*/
}

.clientes-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.clientes-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.cliente-logo {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

    .cliente-logo img {
        max-width: 90%;
        max-height: 90%;
    }

/* ================= CONTATO ================= */
#contato {
    background: #f5f7fb;
    /*background: #ffffff;*/
}

.contato-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.contato-mapa iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.18);
}

.contato-info {
    margin-top: 18px;
    font-size: 14px;
}

    .contato-info div {
        margin-bottom: 6px;
    }

.contato-card {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.30);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .contato-card h3 {
        font-size: 20px;
        margin-bottom: 6px;
        font-weight: 600;
        color: #0A003C;
    }

.contato-item {
    font-size: 15px;
    color: #0A003C;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== BOTÃO WHATSAPP ===== */
.btn-whatsapp {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white !important;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: .25s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

    .btn-whatsapp:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 12px 26px rgba(37, 211, 102, 0.55);
    }

/* ===== QR CODE ===== */
.qr-box {
    text-align: center;
    margin-top: 10px;
}

    .qr-box img {
        width: 140px;
        height: 140px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .qr-box span {
        display: block;
        font-size: 13px;
        margin-top: 8px;
        opacity: 0.7;
    }

/* ===== REDES SOCIAIS ===== */
.contato-social {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: left;
}

/* ícones animados */
.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.25s ease;
    cursor: pointer;
}

    /* Instagram */
    .social-btn.instagram {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

        .social-btn.instagram:hover {
            transform: translateY(-6px) rotate(8deg) scale(1.12);
        }

    /* LinkedIn */
    .social-btn.linkedin {
        background: #0A66C2;
    }

        .social-btn.linkedin:hover {
            transform: translateY(-6px) rotate(-8deg) scale(1.12);
        }

    .social-btn.facebook {
        background: #1877F2;
    }

        .social-btn.facebook:hover {
            transform: translateY(-6px) rotate(-8deg) scale(1.12);
        }
    /* WhatsApp */
    .social-btn.whatsapp {
        background: #25D366;
    }

        .social-btn.whatsapp:hover {
            transform: translateY(-6px) rotate(5deg) scale(1.12);
        }

.contato-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 22px 24px 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.14);
    border: 1px solid rgba(148,163,184,0.35);
}

    .contato-form h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #0A003C;
    }

    .contato-form p {
        font-size: 13px;
        opacity: .8;
        margin-bottom: 15px;
    }

.form-row {
    margin-bottom: 10px;
}

    .form-row label {
        display: block;
        font-size: 12px;
        margin-bottom: 3px;
        color: #4b5563;
    }

.textbox-ps, .textarea-ps {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    outline: none;
    transition: .18s ease;
}

    .textbox-ps:focus,
    .textarea-ps:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37,99,235,0.18);
    }

/*.textarea-ps {
    min-height: 115px !important;
    height: 115px !important;
    height: auto !important;
    resize: vertical;
}*/

.textarea-ps {
    min-height: 115px !important;
    height: auto !important;
    resize: vertical;
}

    /* ESTADO DE ERRO */
    .textbox-ps.invalid,
    .textarea-ps.invalid {
        border-color: #e11d48 !important;
        box-shadow: 0 0 0 1px rgba(225,29,72,0.25) !important;
    }

.btn-enviar {
    margin-top: 8px;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    /*background: linear-gradient(90deg, #22C55E, #16A34A);*/
    background: linear-gradient(90deg, #263544, #3A495A);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: .22s ease;
}

    .btn-enviar:hover {
        transform: translateY(-1px);
        /*box-shadow: 0 10px 24px rgba(22,163,74,0.35);*/
        box-shadow: 0 10px 24px rgba(28, 32, 40,0.35);
    }

/* ================= FOOTER ================= */
.footer {
    padding: 18px 40px;
    background: #020617;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    margin-top: 40px;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 992px) {
    .header {
        padding: 0 24px;
    }

    .hero {
        padding: 0 24px;
    }

    section {
        padding: 70px 24px;
    }

    #sobre .sobre-grid {
        grid-template-columns: 1fr;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* sem menu mobile neste primeiro momento */
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .modulos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .modulos-grid {
        grid-template-columns: 1fr;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #ffffff;
    width: 92%;
    max-width: 900px;
    max-height: 85vh;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column; /* ← ESSENCIAL PARA O BOTÃO NÃO FICAR GIGANTE */
    align-items: center;
}

.modal-scroll {
    padding: 32px;
    overflow-y: auto;
    flex: 1; /* ← Faz a parte de conteúdo ocupar o espaço correto */
    max-height: none; /* deixar o flex controlar a altura */
}

    /* SCROLLBAR CUSTOMIZADA (opcional, mas ajuda MUITO!) */
    .modal-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .modal-scroll::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.25);
        border-radius: 8px;
    }

    .modal-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

.modal-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0A003C;
}

.modal-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-img {
    width: 180px;
    border-radius: 12px;
    margin: 14px 0;
}

.modal-close {
    width: auto !important;
    min-width: 120px;
    max-width: 200px;
    padding: 10px 22px;
    margin: 18px auto; /* centraliza */

    background: #0A003C;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    display: inline-block !important; /* <<< ESSENCIAL */
    flex-shrink: 0;
    cursor: pointer;
    text-align: center;
}

    .modal-close:hover {
        opacity: .85;
    }

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(28, 32, 40, 0.95); /* mesmo tom do seu header */
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease, transform .25s ease;
    z-index: 999;
}

    .btn-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.45);
        background: rgba(28, 32, 40, 1);
    }

    .btn-top.show {
        opacity: 1;
        visibility: visible;
    }
