/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E RESETS
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    background: #050816 !important; 
}

html, body, #page-container, .et_builder_inner_content, #main-content, .entry-content { 
    background: #050816 !important; 
    background-color: #050816 !important;
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* Forçar contraste nos blocos de conteúdo */
body h1, body h2, body h3, body p, body span, body li, body strong {
    color: #ffffff !important;
}

a { 
    text-decoration: none; 
}

.container { 
    width: 90%; 
    max-width: 1300px; 
    margin: auto; 
}

/* ==========================================================================
   2. CABEÇALHO E MENU (Ambiente Desktop)
   ========================================================================== */
header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 999; 
    background: #ffffff; 
    border-bottom: 1px solid rgba(28, 140, 255, 0.15); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
}

.logo { 
    background: transparent; 
    padding: 0; 
    border: none; 
    display: flex;
    align-items: center;
}

.logo img { 
    height: 68px; 
    width: auto; 
    display: block; 
    filter: brightness(1.02); 
    transition: transform 0.2s ease; 
}

.logo img:hover { 
    transform: scale(1.03); 
}

.nav-menu { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    list-style: none; 
}

/* Links do Menu (Escuros sobre o cabeçalho branco em computadores) */
body .nav-link { 
    color: #1e293b !important; 
    font-weight: 500; 
    font-size: 15px; 
    transition: color 0.2s; 
    position: relative; 
    padding: 6px 0; 
}

body .nav-link:hover { 
    color: #1c8cff !important; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0; 
    background-color: #1c8cff; 
    transition: width 0.2s ease; 
}

.nav-link:hover::after { 
    width: 100%; 
}

/* Botão de Suporte Técnico */
body .nav-btn { 
    background: #1c8cff !important; 
    color: #ffffff !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
    box-shadow: 0 4px 12px rgba(28, 140, 255, 0.25); 
}

body .nav-btn:hover { 
    background: #006ee6 !important; 
    transform: translateY(-1px); 
}

.nav-btn::after { 
    display: none; 
}

/* Botão Hamburguer (Escondido no Desktop) */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    cursor: pointer; 
    background: none; 
    border: none; 
    padding: 10px; 
    z-index: 1000; 
}

.menu-toggle .bar { 
    width: 26px; 
    height: 3px; 
    background-color: #1c8cff; 
    border-radius: 3px; 
    transition: 0.3s ease; 
}

/* Animação do Botão Hamburguer ao Ativar */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   3. HERO SECTION, SOLUÇÕES E OUTRAS SECÇÕES
   ========================================================================== */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    background: linear-gradient(to bottom, rgba(5, 8, 22, 0.86), rgba(5, 8, 22, 0.93)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat !important; 
}

.hero-content { 
    max-width: 760px; 
    padding-top: 100px; 
}

.hero h1 { 
    font-size: 52px; 
    line-height: 1.15; 
    margin-bottom: 20px; 
    font-weight: 700; 
}

body .hero h1 span { 
    color: #1c8cff !important; 
}

body .hero p { 
    font-size: 19px; 
    color: #c9d3e2 !important; 
    margin-bottom: 30px; 
}

.hero-buttons { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.btn { 
    padding: 14px 26px; 
    border-radius: 10px; 
    font-weight: 600; 
    transition: 0.2s; 
    display: inline-block; 
}

body .btn-primary { 
    background: #1c8cff !important; 
    color: white !important; 
}

body .btn-primary:hover { 
    background: #006ee6 !important; 
}

body .btn-secondary { 
    border: 1px solid rgba(255,255,255,0.2) !important; 
    color: white !important; 
}

body .btn-secondary:hover { 
    background: white !important; 
    color: #050816 !important; 
}

section { 
    padding: 60px 0 !important; 
    background: #050816 !important; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-title h2 { 
    font-size: 38px; 
    margin-bottom: 12px; 
}

body .section-title p { 
    color: #b8c0d0 !important; 
    max-width: 760px; 
    margin: auto; 
}

.grid { 
    display: grid; 
    gap: 25px; 
}

.services-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.card { 
    background: #0c1228; 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 14px; 
    padding: 30px; 
    transition: 0.2s; 
}

.card:hover { 
    transform: translateY(-4px); 
    border-color: #1c8cff; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}

.card h3 { 
    margin-bottom: 12px; 
    font-size: 22px; 
}

body .card p { 
    color: #c6cfdd !important; 
    font-size: 15px; 
}

.service-icon { 
    width: 48px; 
    height: 48px; 
    margin-bottom: 15px; 
    display: block; 
}

.about { 
    background: #09101f !important; 
}

.about-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px; 
}

.about-box { 
    background: #0c1228; 
    border-radius: 14px; 
    padding: 35px; 
    border: 1px solid rgba(255,255,255,0.05); 
}

body .about-box h3 { 
    color: #1c8cff !important; 
    margin-bottom: 12px; 
    font-size: 26px; 
}

body .about-box p { 
    color: #c6cfdd !important; 
}

/* ==========================================================================
   4. EQUIPA E CONTACTOS
   ========================================================================== */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 20px; 
    justify-items: center; 
}

.team-card { 
    background: #0c1228; 
    border-radius: 14px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.2s; 
    display: flex; 
    flex-direction: column; 
    max-width: 190px; 
    width: 100%; 
}

.team-card:hover { 
    transform: translateY(-4px); 
    border-color: #1c8cff; 
}

.team-card img { 
    width: 100%; 
    height: 170px; 
    object-fit: cover; 
    object-position: center top; 
}

.team-content { 
    padding: 14px; 
}

.team-content h3 { 
    font-size: 16px; 
    margin-bottom: 4px; 
}

body .team-role { 
    display: block; 
    color: #1c8cff !important; 
    font-size: 11px; 
    font-weight: 600; 
    margin-bottom: 8px; 
}

body .team-content p { 
    color: #c9d2df !important; 
    line-height: 1.4; 
    font-size: 12px; 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 35px; 
}

.contact-box { 
    background: #0c1228; 
    padding: 35px; 
    border-radius: 14px; 
}

body .contact-box h3 { 
    margin-bottom: 15px; 
    color: #1c8cff !important; 
}

body .contact-box p { 
    color: #ffffff !important; 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 14px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.08); 
    background: #050816; 
    color: #ffffff !important; 
    font-size: 15px; 
}

.contact-form textarea { 
    min-height: 120px; 
    resize: vertical; 
}

.contact-form button { 
    border: none; 
    cursor: pointer; 
}

.success-message { 
    margin-top: 12px; 
    color: #4ade80 !important; 
    display: none; 
}

.error-message { 
    margin-top: 12px; 
    color: #ff6b6b !important; 
    display: none; 
}

footer { 
    padding: 30px 0; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.08); 
    background: #050816 !important; 
}

body footer .container { 
    color: #b8c0d0 !important; 
    font-size: 14px; 
}

/* ==========================================================================
   5. RESPONSIVIDADE E MOBILE TOTAL 
   ========================================================================== */
@media (max-width: 768px) {
    /* Correcção do espaço fantasma no fundo do site */
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden;
    }
    
    #page-container, .et_builder_inner_content, #main-content {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Ajuste fino do Header e Menu Mobile */
    header {
        height: 75px;
    }

    .navbar {
        padding: 5px 0;
    }

    .logo img {
        height: 50px;
    }

    /* Mostrar o botão hamburguer */
    .menu-toggle {
        display: flex;
    }

    /* Título hero reduzido para mobile */
    .hero h1 {
        font-size: 28px;
    }

    .hero-content {
        padding-top: 90px;
    }

    /* Nova física para a gaveta do menu */
    .nav-menu { 
        position: fixed; 
        top: 75px;
        right: -100%; 
        flex-direction: column; 
        background: #ffffff !important;
        width: 100%; 
        height: calc(100vh - 75px); 
        gap: 15px; 
        padding: 30px 0; 
        text-align: center; 
        transition: right 0.3s ease-in-out; 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 
        z-index: 1001;
        display: flex;
    }

    .nav-menu.active { 
        right: 0 !important; 
    }

    body .nav-menu .nav-link {
        color: #050816 !important;
        font-size: 18px;
    }

    body .nav-menu .nav-btn {
        background: #1c8cff !important;
        color: #ffffff !important;
        display: inline-block !important;
        width: 80%;
        margin: 10px auto 0 auto;
    }
}