/* ==========================================
   1. VARIÁVEIS E RESET (VISÃO MFS)
   ========================================== */

   /* --- CONFIGURAÇÃO DE ELITE: FAMÍLIA INTERMF --- */



/* Regular */
@font-face {
    font-family: 'InterMF';
    src: url('assets/fonts/InterMF-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Italic */
@font-face {
    font-family: 'InterMF';
    src: url('assets/fonts/InterMF-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* SemiBold (Ideal para a Navbar) */
@font-face {
    font-family: 'InterMF';
    src: url('assets/fonts/InterMF-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold (Para os H1 e Títulos de Impacto) */
@font-face {
    font-family: 'InterMF';
    src: url('assets/fonts/InterMF-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- APLICAÇÃO GLOBAL NO ECOSSISTEMA TMF --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'InterMF', sans-serif; 
}

:root {
    --primary-blue: #1e3a8a;
    --accent-gold: #c9a66b;
    --dark-bg: #0f0e17;
    --text-light: #f9f9f9;
    --gray-muted: #636363;
}

body { 
    background: var(--text-light); 
    color: #111; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================
   2. NAVBAR E NAVEGAÇÃO
   ========================================== */
.navbar { 
    background: transparent; 
    padding: 20px 0; 
    position: absolute; 
    top: 0; left: 0; width: 100%; 
    z-index: 1000; 
}

.navbar-solid {
    background: var(--dark-bg);
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)); }

nav ul { display: flex; list-style: none; }
nav a { 
    text-decoration: none; 
    color: #ffffff; 
    padding: 10px 20px; 
    font-weight: 600; 
    transition: 0.3s;
}
nav a:hover, nav a.active { color: var(--accent-gold); }


/* ==========================================
   3. HOMEPAGE (ESTRUTURA DE ELITE)
   ========================================== */
.hero { 
    height: 85vh; 
    /* Imagem padrão para Mobile (carrega primeiro em ecrãs pequenos) */
    position: relative; 
    display: flex; 
    align-items: center; 
    color: #fff; 
}

.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); 
}

.hero-content { position: relative; z-index: 1; text-align: center; width: 100%; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; }
.hero p { margin-bottom: 0; } 

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 80px 0; }
.feature-card { padding: 40px; border-left: 6px solid var(--accent-gold); background: #fff; box-shadow: 0px 10px 30px rgba(0,0,0,0.05); }

/* --- CLASSE TEXT-LINK (A ÚNICA FONTE DA VERDADE) --- */
.text-link {
    color: var(--primary-blue) !important;
    font-weight: bold !important;
    text-decoration: none !important; /* Mata o sublinhado azul do browser */
    border-bottom: none !important;   /* Mata qualquer linha de borda herdada */
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s ease;
}

.text-link:hover {
    color: var(--accent-gold) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transform: translateX(5px); /* Pequeno deslize elegante para a direita */
}

.more-info .section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 50px !important; /* Aumentei ligeiramente para maior distinção */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--accent-gold); /* Uma linha dourada por baixo dá autoridade */
    display: inline-block; /* Para a linha não ocupar a largura toda se não quiseres */
    padding-bottom: 10px;
}
/* --- TÍTULOS DE SECÇÃO COM LINHA DOURADA (UNIVERSAL) --- */
.section-title {
    font-size: 1.8rem; /* Ajuste para páginas internas */
    color: var(--primary-blue);
    margin-bottom: 30px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: table; /* Faz com que a linha acompanhe a largura do texto */
    border-bottom: 3px solid var(--accent-gold) !important; /* A LINHA DOURADA */
    padding-bottom: 10px;
}

.services { padding: 80px 0; background: #fff; }
.service-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.service-image img { max-width: 100%; border-radius: 8px; }
.service-details h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.3;
}

/* CORREÇÃO 2: Listas unificadas para Homepage e Páginas Legais */
.checkmark-list, .legal-content ul {
    list-style: none;
    margin: 30px 0 30px 40px;
    padding: 0;
}

.checkmark-list li, .legal-content li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.checkmark-list li::before, .legal-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px 0; }
.info-card { background: #fff; padding: 30px; border-bottom: 3px solid var(--accent-gold); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* ==========================================
   4. PÁGINAS INTERNAS
   ========================================== */
.page-content {
    padding: 140px 20px 100px 20px; 
    max-width: 1100px; 
    margin: 0 auto;
}

.page-content p { 
    line-height: 1.8; 
    margin-bottom: 25px; 
    color: #333; 
}

.about-hero {
    display: flex;
    gap: 50px; 
    align-items: flex-start;
    margin-bottom: 80px;
}
/* Ajuste específico para os blocos da página Quem Somos */
.detail-block {
    margin-bottom: 60px; /* Dá espaço entre cada subtema */
}

.detail-block .section-title {
    margin-bottom: 25px !important; /* Espaço entre a linha dourada e o parágrafo */
}

.about-text { flex: 1.8; min-width: 350px; }
.about-image { flex: 1.2; min-width: 300px; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.about-text h1 { color: var(--primary-blue); font-size: 2.5rem; margin-bottom: 20px; }
.about-text h2 { color: var(--accent-gold); font-size: 1.4rem; margin-bottom: 30px; }

.faq-callout {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid #004a99; /* Cor azul da TMF */
    font-size: 0.95rem;
}

/* ==========================================
   5. COMPONENTES (BOTÕES E LINKS)
   ========================================== */

/* --- BOTÕES (BLINDADOS) --- */
.btn-primary, .btn-outline {
    background: var(--primary-blue); 
    color: #fff !important; 
    padding: 15px 30px; 
    border: none !important;
    border-radius: 5px; 
    font-weight: bold; 
    display: inline-block; 
    margin-top: 25px; 
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    border-bottom: none !important; /* Proteção total contra linhas */
}

.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none !important;
    margin-top: 10px;
    border-bottom: none !important; /* Proteção total contra linhas */
}

/* --- REGRAS DE TEXTO (CIRURGIA DE SUBLINHADOS) --- */

/* 1. CLASSE LINK-VIVO: A autoridade para e-mails e RGPD (Versão Minimalista) */
.link-vivo {
    text-decoration: none !important;
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    border: none !important; /* Remove qualquer borda que tenha sobrado */
    transition: color 0.3s ease;
    display: inline; /* Volta a ser um link de texto natural, não um bloco */
}

.link-vivo:hover {
    color: var(--accent-gold) !important;
    background: none !important; /* Remove o fundo no hover para máxima limpeza */
    text-decoration: none !important;
}

/* 2. CLASSE LINK-FOOTER: Elegância p'ra o Rodapé */
.link-footer {
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: 0.3s;
    border-bottom: none !important;
}

.link-footer:hover {
    color: var(--accent-gold) !important;
    opacity: 1;
}

/* 3. COMPORTAMENTO GERAL EM PÁGINAS INTERNAS (LIMPEZA FINAL) */
/* Esta regra garante que links sem classe não herdam o sublinhado pávido */
.page-content a:not([class]), 
.legal-content a:not([class]),
.about-text a:not([class]) {
    text-decoration: none !important;
    border-bottom: none !important;
    color: var(--primary-blue);
}

/* ==========================================
   6. CONTACTOS E FORMULÁRIO
   ========================================== */
.contact-banner-centered { width: 100%; max-width: 1100px; margin: 40px auto; }
.contact-banner-centered img {
    width: 100%; height: 450px; object-fit: cover; object-position: center 15%;
    border-radius: 8px; display: block;
}

.main-form { background: #fff; padding: 45px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 40px; }
.form-group { margin-bottom: 30px; text-align: left; }
.form-group label { display: block; margin-bottom: 10px; font-weight: bold; color: var(--primary-blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid #ccc; padding: 14px; border-radius: 4px; }
.form-row { display: flex; gap: 20px; }

/* CORREÇÃO 3: Segregação visual mantida para os títulos das páginas legais */
.legal-content h1 { color: var(--primary-blue); font-size: 2.2rem; margin-bottom: 10px; text-align: center; }
.legal-content h2 { color: var(--primary-blue); font-size: 1.5rem; margin-top: 40px; margin-bottom: 20px; border-left: 4px solid var(--accent-gold); padding-left: 15px; }
.last-updated { font-style: italic; color: var(--gray-muted); text-align: center; margin-bottom: 50px; }

/* === AJUSTE DO BANNER DE COOKIES (ESTRUTURA ORIGINAL) === */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0; 
    width: 100%;
    background: var(--dark-bg);
    color: white;
    padding: 15px 0;
    z-index: 9999;
    transition: 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    font-size: 0.9rem;
}

.cookie-banner.active { bottom: 0; }
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie { background: var(--accent-gold); color: var(--dark-bg); border: none; padding: 8px 18px; font-weight: bold; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.btn-cookie-outline { background: transparent; color: white; border: 1px solid white; padding: 8px 18px; border-radius: 4px; cursor: pointer; white-space: nowrap; }

.cookie-settings-panel { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: left; }
.cookie-settings-panel.active { display: block; }
.cookie-option { margin-bottom: 15px; }
.cookie-option label { color: var(--accent-gold); font-weight: bold; display: block; margin-bottom: 5px; }
.cookie-option p { font-size: 0.8rem; opacity: 0.8; margin-bottom: 0; line-height: 1.4; }
.cookie-main-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.btn-cookie-link { background: transparent; color: white; border: none; text-decoration: underline; cursor: pointer; font-size: 0.85rem; margin-right: 15px; }

/* === SEGURANÇA: HONEYPOT (RESTAURADO) === */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    z-index: -1;
}

/* 4. ACORDEÃO FAQ (RESTAURADO) */
.faq-container { max-width: 800px; margin: 40px auto; }
.faq-item { border-bottom: 1px solid #ddd; margin-bottom: 10px; }
.faq-question { width: 100%; padding: 20px; background: none; border: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.1rem; font-weight: bold; color: var(--primary-blue); text-align: left; transition: 0.3s; border-radius: 4px; }
.faq-question:hover { background: #f9f9f9; color: var(--accent-gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; }
.faq-answer p { padding: 20px 0; color: #555; }

/* ==========================================================================
   7. FOOTER, RESPONSIVIDADE E MENU HAMBÚRGUER (UNIFICADO)
   ========================================================================== */
footer { background: var(--dark-bg); color: var(--text-light); padding: 60px 0 30px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 25px; align-items: center; }
.footer-social { display: flex; gap: 20px; }
.social-icon { width: 24px; height: 24px; fill: #ffffff; transition: 0.3s; }
.social-icon:hover { transform: translateY(-3px); fill: var(--accent-gold); }

/* --- 💻 CONFIGURAÇÕES DO BOTÃO SANDUÍCHE (DESKTOP) --- */
.menu-toggle {
    display: none; /* Ocultado por padrão em ecrãs grandes */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010; /* Fica acima da cortina */
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #111111; /* Linhas escuras para navbar sólida */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Linhas brancas se a Navbar estiver transparente sobre o Hero da Home */
.navbar:not(.navbar-solid) .menu-toggle span {
    background-color: #ffffff;
}

/* Animação mecânica: Hambúrguer transforma-se num "X" ao ativar */
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* --- 📱 MEDIA QUERY GLOBAL: ADAPTAÇÃO TABLET (ATÉ 900px) --- */
@media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; }
    .about-hero, .service-layout, .form-row { flex-direction: column; gap: 30px; }
    .about-text, .about-image { min-width: 100%; }
    .page-content { padding-top: 100px; }
    .cookie-main-content { flex-direction: column; text-align: center; gap: 15px; }
    .logo { height: 50px; } /* Reduz ligeiramente o tamanho do logo */
    .hero h1 { font-size: 2rem; }
}


/* --- 📱 MEDIA QUERY CIRÚRGICA: ATIVAÇÃO DA SANDUÍCHE (ATÉ 768px) --- */
@media (max-width: 768px) {
    
    /* Ativa o botão da sanduíche */
    .menu-toggle {
        display: flex !important;
    }

    /* Força o alinhamento em linha: Logo à esquerda, Sanduíche à direita */
    .navbar .container {
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }

    /* Transforma a tua navegação clássica na cortina Drop-Down */
    .navbar nav {
        display: none !important; /* Escondido por padrão */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        z-index: 1005 !important;
        padding: 20px 0 !important;
    }

    /* Força o fundo escuro se abrir na Home transparente antes do scroll */
    .navbar:not(.navbar-solid) nav {
        background-color: #0f0e17 !important; /* Usa a tua variável var(--dark-bg) expandida */
    }

    /* Injeção do JavaScript para abrir a cortina */
    .navbar nav.active {
        display: block !important;
    }

    /* Organização vertical dos links internos */
    .navbar nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar nav ul li {
        width: 100% !important;
        text-align: center !important;
    }

    .navbar nav ul li a {
        display: block !important;
        padding: 12px 0 !important;
        font-size: 1.1rem !important;
        color: #111111 !important; /* Texto escuro em páginas sólidas */
    }

    /* Links brancos na cortina se estiver sobre o Hero transparente da Home */
    .navbar:not(.navbar-solid) nav ul li a {
        color: #ffffff !important;
    }
}