/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #000000; /* Matches logo background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* Slightly taller for logo */
}

/* Logo Image Styling */
.logo-img {
    height: 60px; /* Adjust based on your actual png size */
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #4facfe; /* New Brand Blue */
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.btn-outline {
    border: 2px solid #4facfe;
    color: #4facfe;
}

.btn-outline:hover {
    background-color: #4facfe;
    color: #0a192f;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    /* Updated background with a tech/cyber feel */
     /* background: url('https://placehold.co/1920x1080/0a192f/ffffff?text=Serviços de Cibersegurança'); */
    background-color: #11172e;
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 50vh; /* Full viewport height */
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 90px; /* Offset for header */
    padding: 0 20px;
}

Dark Overlay to make text pop like the original site */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(10,25,47,0.8) 100%); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Puts text above the overlay */
    max-width: 900px;
}

/* Brand Tag (Small top label) */
.brand-tag {
    display: inline-block;
    color: #4facfe;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

/* Main Title: "CiberSecurity as a Service" */
.hero-title {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Subtitle: "From Vision to Action" */
.hero-subtitle {
    font-size: 32px;
    color: #4facfe; /* Brand Blue */
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lead Paragraph: "Segurança e Monitorização..." */
.hero-lead {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 4px solid #4facfe;
    padding-left: 15px;
    color: #e0e0e0;
}

/* Description Text */
.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #cccccc;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Refinements */
.btn-primary {
    background-color: #4facfe;
    color: #000;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 35px; /* Adjust for border width */
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #0a192f;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    .hero-subtitle {
        font-size: 24px;
    }
    .hero-lead {
        font-size: 18px;
    }
}

/* Pillars Section */
.pillars {
    padding: 20px 0;
    background-color: #5096b2;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid #4facfe;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0a192f;
    margin-bottom: 15px;
    font-size: 22px;
}

/* About Section */
.about {
    padding: 50px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about h2 {
    color: #0a192f;
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: "►";
    color: #4facfe;
    position: absolute;
    left: 0;
    font-size: 14px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Section */
.services {
    background-color: #0a192f; /* Deep Navy */
    color: #fff;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #4facfe;
}

.service-box {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(79, 172, 254, 0.2);
    transition: 0.3s;
}

.service-box:hover {
    background: rgba(255,255,255,0.1);
    border-color: #4facfe;
}

.service-box img {
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-box h3 {
    color: #4facfe;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq {
    padding: 30px 0;
    background-color: #f4f7f6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #0a192f; /* Navy accent */
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #eef7ff; /* Light blue hover */
}

.faq-question h4 {
    margin: 0;
    color: #0a192f;
    font-size: 18px;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: #4facfe; /* Scopelize Blue */
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    background-color: #fff;
}

.faq-answer p {
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Active State (Triggered by JS) */
.faq-item.active .faq-answer {
    max-height: 300px; /* Allows content to expand */
    transition: max-height 0.4s ease-in;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg); /* Turns + into x */
    color: #ff4f4f; /* Red to indicate close action */
}

/* Footer */
.footer {
    background-color: #000000;
    color: #8892b0;
    padding: 30px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #4facfe;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: #4facfe;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* Style specifically for the email link */
.email-link {
    color: inherit;           /* Keeps the original text color (grey) */
    text-decoration: underline; /* Adds the underline */
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #4facfe;          /* Changes to ScopeLize Blue on hover */
    text-decoration: none;    /* Optional: Removes underline on hover for a cleaner look */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 36px;
    }
}

/* --- RESPONSIVIDADE (Mobile & Tablet) --- */
@media (max-width: 768px) {
    
    .about-image{
        display:none;
    }

    
    /* 1. Ajustes Gerais de Layout */
    .container {
        padding: 0 20px; /* Margem lateral segura */
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr; /* Força 1 coluna em vez de 2 ou 3 */
        gap: 30px;
    }

    /* 2. Menu Mobile (Navegação) */
    .nav-menu {
        display: none; /* Escondido por defeito */
        position: absolute;
        top: 90px; /* Altura do header */
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        flex-direction: column;
        text-align: center;
    }

    /* Classe que o JavaScript vai adicionar para mostrar o menu */
    .nav-menu.active {
        display: flex; 
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
        padding: 0;
    }
    
    .cta-header {
        display: none; /* Opcional: esconde o botão "Contacto" do topo para poupar espaço */
    }

    .mobile-menu-icon {
        display: block; /* Mostra o ícone hambúrguer */
        font-size: 30px;
    }

    /* 3. Ajustes da Secção Hero */
    .hero {
        height: auto; /* Remove altura fixa para o conteúdo não vazar */
        min-height: auto;
        padding: 30px 20px 30px 20px; /* Espaço extra no topo por causa do header fixo */
        text-align: center; /* Centraliza texto no mobile */
    }

    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-lead {
        border-left: none; /* Remove a barra lateral azul no mobile */
        border-bottom: 4px solid #4facfe; /* Mete a barra em baixo */
        padding-left: 0;
        padding-bottom: 10px;
        display: inline-block;
    }

    .hero-buttons {
        justify-content: center; /* Centraliza os botões */
    }

    /* Ajuste de tipografia para ecrãs pequenos */
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }

    /* 4. Imagens Responsivas */
    .about-image img, 
    .hero-visual img, 
    .service-box img {
        width: 100%;
        height: auto;
        max-width: 500px; /* Limite para não ficar gigante em tablets */
        margin: 0 auto;
        display: block;
    }

    /* 5. Footer */
    .footer-grid {
        text-align: center; /* Centraliza o footer */
    }

}