/* --- CONFIGURAÇÕES GLOBAIS --- */
:root {
    /* Paleta de Cores - Estilo Meta Business */
    --primary-blue: #1877F2;      /* Azul principal oficial da Meta/Facebook */
    --background-light: #F0F2F5;   /* Fundo principal da UI (cinza muito claro) */
    --background-surface: #FFFFFF; /* Fundo de cards, seções e cabeçalho (branco) */
    --text-primary: #1C1E21;       /* Texto principal (preto suave) */
    --text-secondary: #050505f1;    /* Texto secundário (cinza escuro) */
    --border-color: #DADDE1;       /* Cor da borda sutil */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-light); 
    color: var(--text-primary);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; }

/* --- TÍTULOS E TEXTOS PADRÃO --- */
.section-title {
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* --- VÍDEO DE FUNDO GLOBAL --- */
.global-background-video {
    position: fixed; top: 0; left: 0;
    min-width: 100%; min-height: 100%;
    z-index: -2; object-fit: cover;
}
.global-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: -1;
}

/* --- CABEÇALHO --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 45px; }
header nav ul { list-style: none; display: flex; gap: 30px; }
header nav a { text-decoration: none; color: var(--text-primary); font-weight: 600; transition: color 0.3s ease; }
header nav a:hover { color: var(--primary-blue); }

/* --- SEÇÃO HERO --- */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    padding: 0 30px;
}
.hero-content { position: relative; z-index: 3; }
.hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }
.cta-button {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover { background-color: #166FE5; transform: translateY(-3px); }

/* --- SEÇÕES DE CONTEÚDO --- */
.service-section, .diferenciais-section {
    padding: 100px 0;
}
.service-section {
    background-color: var(--background-surface);
    border-bottom: 1px solid var(--border-color);
}
.diferenciais-section {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}
.service-container {
    display: flex;
    align-items: center;
    gap: 80px;
}
.service-section.alt-layout .service-container {
    flex-direction: row-reverse;
}
.service-text { flex: 1; }
.service-image { flex: 1; }
.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.service-image img:hover { transform: scale(1.03); }
.service-tag {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.service-text h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; }
.service-text p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.stat-highlight {
    background-color: #E7F3FF;
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
}
.stat-highlight p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.stat-highlight span { color: var(--primary-blue); font-size: 1.5rem; }
.service-benefits { list-style: none; padding-left: 0; margin-top: 20px; }
.service-benefits li { margin-bottom: 10px; display: flex; align-items: center; }
.service-benefits i { color: var(--primary-blue); margin-right: 10px; }
.cta-secondary {
    display: inline-block;
    margin-top: 30px;
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.cta-secondary:hover { background-color: var(--primary-blue); color: #FFFFFF; }

/* --- SEÇÃO DE DIFERENCIAIS --- */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.diferencial-card {
    background-color: var(--background-surface);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.diferencial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}
.diferencial-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}
.diferencial-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.diferencial-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- CTA FINAL E RODAPÉ --- */
.cta-final {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-blue);
    color: #FFFFFF;
}
.cta-final h2 { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 15px; line-height: 1.3; max-width: 800px; margin-left: auto; margin-right: auto;}
.cta-final p { margin-bottom: 30px; font-size: 1.1rem; opacity: 0.9; }
.cta-final .cta-button { background-color: var(--background-surface); color: var(--primary-blue); }
.cta-final .cta-button:hover { background-color: #E9E9E9; }

footer {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-surface);
}

.footer-logo { height: 50px; margin-bottom: 20px; }
.footer-text { max-width: 500px; margin: 0 auto 30px auto; color: var(--text-secondary); }
.social-links { margin-bottom: 30px; }
.social-links a { color: var(--text-secondary); text-decoration: none; font-size: 1.5rem; margin: 0 15px; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-blue); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }


/* =================================================================== */
/* =================== CÓDIGO DE RESPONSIVIDADE ====================== */
/* =================================================================== */

.menu-hamburguer {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1500;
}

/* -- Para Tablets e Telas Menores (até 1024px) -- */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    .service-container {
        gap: 40px;
    }
    .diferenciais-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* -- Para Celulares (até 768px) -- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    /* --- Cabeçalho e Navegação Mobile --- */
    .menu-hamburguer {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; 
        width: 100%;
        height: 100vh;
        background-color: var(--background-surface);
        clip-path: circle(10px at 90% -10%);
        transition: all 0.7s ease-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }
    .nav-links.active {
        clip-path: circle(150% at 90% -10%);
        pointer-events: all; 
    }
    header nav {
        flex: 1; 
    }
    header nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        width: 100%;
    }
    header nav a {
        font-size: 1.5rem;
    }
    
    /* --- Ajustes Gerais de Títulos e Seções --- */
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .service-section, .diferenciais-section, .cta-final { padding: 80px 0; }

    /* --- Seção Hero --- */
    .hero { height: 70vh; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }

    /* --- Seções de Serviço --- */
    .service-container,
    .service-section.alt-layout .service-container {
        flex-direction: column;
        gap: 40px;
    }
    .service-section.alt-layout .service-container .service-image {
        order: -1; 
    }
    .service-text h2 { font-size: 1.8rem; }
    
    /* --- Grid de Diferenciais --- */
    .diferenciais-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .diferencial-card { padding: 30px; }

    /* --- CTA Final e Rodapé --- */
    .cta-final h2 { font-size: 1.8rem; }
    footer { padding: 50px 0; }
}

@media (max-width: 768px) {
    /* ... (todos os teus outros estilos para telemóvel) ... */

    /* --- CTA Final e Rodapé --- */
    .cta-final h2 { font-size: 1.8rem; }
    footer { padding: 50px 0; }

    /* --- AQUI ESTÁ A CORREÇÃO --- */
    .cta-final .cta-button {
        width: 100%; /* Faz o botão ocupar a largura total do seu contentor */
        padding: 15px 20px; /* Ajusta o padding lateral para o texto não ficar colado às bordas */
        font-size: 1rem; /* Opcional: Reduz ligeiramente o tamanho da letra para um melhor encaixe */
    }
}