/* ==========================================================================
   1. GLOBAL (Variáveis, Reset e Tipografia)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de Cores */
    --primary: #003366;       /* Azul Institucional Profundo */
    --primary-dark: #001f3f;  /* Azul Noite */
    --secondary: #00509e;     /* Azul Vibrante */
    
    --text-main: #2c3e50;     /* Cinza Azulado */
    --text-muted: #6c757d;    
    --text-light: #ffffff;    
    
    --bg-body: #f8f9fa;       
    --bg-card: #ffffff;       
    
    --success: #27ae60;
    --danger: #e74c3c;

    /* Tipografia */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* UI Elements */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,51,102,0.08);
    --shadow-lg: 0 10px 25px rgba(0,51,102,0.12);
}

/* Reset Básico */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }

.container {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. ESTRUTURA GERAL (Header, Nav, Footer, Botões)
   ========================================================================== */

/* Header */
.main-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre logo e texto */
}

/* --- CORREÇÃO DA LOGO GIGANTE --- */
/* Esta regra força a imagem a respeitar o tamanho, independente da classe */
.logo img {
    max-width: 40px;
    height: auto;
    object-fit: contain;
}

/* Classe específica da logo (mantida para consistência) */
.hero-logo2 {
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: 50%;
    padding: 3px;
    box-shadow: var(--shadow-sm);
}

.hero-logo {
    width: 100px;
    background-color: var(--bg-card);
    border-radius: 50%;
    padding: 3px;
    box-shadow: var(--shadow-sm);
}

/* Navegação Desktop */
.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:hover { color: var(--secondary); }

/* Efeito sublinhado no menu desktop */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.btn::after { display: none; } /* Remove do botão */

/* Botão Mobile (Escondido no Desktop) */
.mobile-menu-btn {
    display: none; /* Padrão invisível */
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* Botões Padrão */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }

/* Primário */
.btn-primary, a.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
}
.btn-primary:hover, a.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Secundário */
.btn-secondary {
    background-color: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
}
/* Outline Branco (Para fundos escuros) */
.btn-outline-white {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--primary);
    border-color: var(--text-light);
}

/* Footer - Atualizado para corrigir tamanhos */
.main-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: 60px;
}

.main-footer strong {
    color: #fff;
}

/* REGRA DE CORREÇÃO: Força o tamanho das imagens no rodapé */
.main-footer img {
    width: 30px;        /* Tamanho fixo para ícones/logos no rodapé */
    height: auto;       /* Mantém a proporção */
    vertical-align: middle;
    display: inline-block;
    margin-right: 5px;  /* Espaço se tiver texto ao lado */
}

.main-footer p {
    margin: 8px 0;      /* Espaçamento uniforme entre linhas de texto */
    line-height: 1.5;
}

.main-footer a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.main-footer a:hover {
    opacity: 1;
    color: #fff;
}
.insta-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}

#insta-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

#insta-link:hover {
    color: var(--secundary); /* Azul vibrante no hover */
    color: rgb(243, 187, 115) !important;
}
.insta-logo{
    filter: invert(100%);
    mix-blend-mode: difference;
}


/* ==========================================================================
   3. ESTILOS DA HOME PAGE (Elementos reutilizáveis)
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary);
    width: 100%;
}

/* ==========================================================================
   4. RESPONSIVIDADE (MENU MOBILE HAMBÚRGUER)
   ========================================================================== */
@media (max-width: 900px) {
    
    /* 1. Ajuste do Header para Mobile */
    .header-content {
        justify-content: space-between !important; /* Força extremos */
        align-items: center !important;
        position: relative;
        flex-direction: row !important; /* Garante linha, não coluna */
    }
    
    /* Garante que a logo fique na esquerda e não cresça */
    .logo {
        flex-shrink: 0;
    }

    /* 2. Mostra o Botão Hambúrguer */
    .mobile-menu-btn {
        display: block !important;
    }

    /* 3. Estilo do Menu Mobile (Gaveta) */
    .main-nav {
        display: none; /* Escondido por padrão */
        position: absolute;
        top: 100%; /* Logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Fundo Branco */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 10px 0 20px 0;
        border-top: 1px solid #f0f0f0;
        z-index: 999;
    }

    /* Menu Ativo */
    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    /* Organiza os itens em coluna vertical */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f5f7fa;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
        margin-top: 15px;
        padding: 0 20px;
    }

    /* 4. Links do Menu Mobile */
    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: var(--primary);
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        text-align: left;
    }
    
    .main-nav a::after { display: none; }
    
    .main-nav a:hover {
        background-color: #f8f9fa;
        color: var(--secondary);
        padding-left: 25px;
    }

    /* 5. Botão Login Mobile */
    .main-nav a.btn-login-mobile {
        display: block;
        width: 100%;
        text-align: center;
        background-color: var(--primary);
        color: #ffffff !important;
        padding: 12px;
        border-radius: var(--radius-md);
        margin: auto;
    }

    .main-nav a.btn-login-mobile:hover {
        background-color: var(--secondary);
        padding-left: 12px;
        transform: translateY(-2px);
    }
    
    /* Ajustes Gerais Mobile */
    .hero-section { padding: 50px 0; }
    .hero-title { font-size: 2.2rem; }
    .cta-buttons, .contato-buttons { flex-direction: column; width: 100%; gap: 15px; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
}

/* Animação */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. BANNER DE COOKIES (LGPD)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark); /* Azul bem escuro para contraste */
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 10000; /* Fica acima de tudo, inclusive menu mobile */
    display: none; /* Oculto por padrão, o JS ativa se necessário */
    animation: slideUp 0.5s ease forwards;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: #4dabf7; /* Azul claro para link no fundo escuro */
    text-decoration: underline;
    font-weight: 600;
}

.btn-cookie {
    background-color: #ffffff;
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.btn-cookie:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* Animação de entrada */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Mobile: Empilha o texto e o botão */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        width: 100%;
    }
}