/* ==========================================================================
   MAFF SOLUTIONS - STYLE.CSS (Tema Premium: Foto Capa + Efeito Chroma)
   ========================================================================== */

/* --- 1. VARIÁVEIS GLOBAIS --- */
:root {
    --azul-escuro: #002147;
    --azul-vibrante: #0055ff;
    --azul-hover: #003bb3;
    --verde-whats: #00e676;
    --branco: #ffffff;
    --fundo-cinza: #f8f9fa;
    --texto-principal: #333333;
    --texto-secundario: #64748b;
    --borda-clara: #cbd5e1;
    
    /* Fonte oficial do site */
    --fonte-padrao: 'Inter', sans-serif;
}

/* --- 2. RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fonte-padrao);
    color: var(--texto-principal);
    background-color: var(--branco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- 3. BOTÕES --- */
.btn-azul {
    background-color: var(--azul-vibrante);
    color: var(--branco);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-azul:hover {
    background-color: var(--azul-hover);
    transform: translateY(-2px);
    color: var(--branco);
    box-shadow: 0 6px 20px rgba(0, 85, 255, 0.35);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(0, 85, 255, 0.5);
}

.btn-branco-outline {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: 0.3s;
}

.btn-branco-outline:hover {
    background: var(--branco);
    color: var(--azul-escuro);
}

/* --- 4. HEADER & NAVEGAÇÃO --- */
.main-header {
    background-color: var(--branco);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Estica o cabeçalho quase até as pontas da tela */
.main-header .container {
    max-width: 96%;
    padding: 0 20px;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 900; 
    font-family: var(--fonte-padrao);
    letter-spacing: -0.5px;
}
.logo-maff { color: var(--azul-escuro); }
.logo-solutions { color: var(--azul-vibrante); }

.nav-central {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-central ul { 
    display: flex; 
    gap: 35px; 
}

.nav-central a { 
    color: #4a5568; 
    font-weight: 600; 
    font-size: 1rem; 
    position: relative;
    padding-bottom: 5px;
}

.nav-central a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--azul-vibrante);
    transition: width 0.3s ease;
}

.nav-central a:hover { color: var(--azul-escuro); }
.nav-central a:hover::after { width: 100%; }

/* --- 5. INDEX: HERO (FOTO DE CAPA GIGANTE) --- */
.hero-capa {
    position: relative;
    height: 100vh; /* Ocupa a tela inteira */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* LINK DA SUA FOTO AQUI */
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2000&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.95) 0%, rgba(0, 85, 255, 0.6) 100%);
    z-index: 1;
}

.hero-conteudo {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--branco);
}

.badge-hero {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.titulo-gigante {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.destaque-azul {
    color: #4da6ff;
}

.subtitulo-hero {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #e2e8f0;
    font-weight: 400;
}

.botoes-hero {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 6. INDEX: FAIXA DE AUTORIDADE --- */
.faixa-autoridade {
    background-color: var(--azul-escuro);
    padding: 40px 0;
    border-bottom: 4px solid var(--azul-vibrante);
}

.grid-autoridade {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.item-autoridade {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--branco);
    font-weight: 600;
    font-size: 1.1rem;
}

.item-autoridade i {
    font-size: 1.8rem;
    color: var(--azul-vibrante);
}

/* --- 7. INDEX: ESPECIALIDADES --- */
.secao-servicos {
    padding: 100px 0;
    background-color: var(--fundo-cinza);
}

.titulo-centro {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-centro h2 {
    font-size: 2.5rem;
    color: var(--azul-escuro);
    font-weight: 800;
    letter-spacing: -1px;
}

.linha-azul {
    width: 80px;
    height: 4px;
    background-color: var(--azul-vibrante);
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-servico {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: center;
    border: 1px solid var(--borda-clara);
}

.card-servico:hover {
    transform: translateY(-10px);
    border-color: var(--azul-vibrante);
    box-shadow: 0 15px 40px rgba(0, 85, 255, 0.1);
}

.icone-card {
    width: 70px;
    height: 70px;
    background: rgba(0, 85, 255, 0.1);
    color: var(--azul-vibrante);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
}

.card-servico h3 {
    font-size: 1.4rem;
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-weight: 800;
}

.card-servico p {
    color: var(--texto-secundario);
}

/* --- 8. FOOTER COM EFEITO CHROMA RGB --- */
.site-footer {
    background-color: #000a14;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 4px solid var(--azul-vibrante);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.chroma-text {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--fonte-padrao);
    letter-spacing: -1px;
    text-decoration: none;
    
    /* Efeito Razer (RGB Arco-íris) */
    background: linear-gradient(
        90deg, 
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #9400d3, #ff0000
    );
    background-size: 200% auto;
    
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    animation: chroma-spin 3s linear infinite;
    transition: transform 0.3s ease;
}

.chroma-text:hover {
    transform: scale(1.05);
}

@keyframes chroma-spin {
    to { background-position: 200% center; }
}

.footer-info p {
    color: #a0b2c9;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-info i {
    color: var(--azul-vibrante);
    margin-right: 8px;
}

/* --- 9. RESPONSIVIDADE (MOBILE E TABLETS) --- */
@media (max-width: 992px) {
    .nav-central { position: static; transform: none; display: none; }
    .titulo-gigante { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .header-flex .btn-azul { display: none; }
    .titulo-gigante { font-size: 2.5rem; }
    .hero-capa { height: auto; padding: 150px 0 100px; }
    .botoes-hero { flex-direction: column; padding: 0 20px; }
    .btn-azul, .btn-branco-outline { width: 100%; }
    .faixa-autoridade .grid-autoridade { flex-direction: column; text-align: center; }
    .item-autoridade { justify-content: center; }
    .chroma-text { font-size: 2rem; }
}
/* ==========================================================================
   MENU MOBILE (TELA CHEIA)
   ========================================================================== */

/* Esconde o botão sanduíche no computador */
.menu-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--azul-escuro);
    cursor: pointer;
}

/* Tela que abre por cima no celular */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Começa escondido fora da tela */
    width: 100%;
    height: 100vh;
    background-color: var(--branco);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease; /* Animação de deslizar */
}

/* Classe que o JavaScript adiciona para o menu aparecer */
.mobile-menu-overlay.ativo {
    right: 0;
}

/* Botão de Fechar (O "X") */
.fechar-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--azul-escuro);
    cursor: pointer;
}

/* Links dentro do Menu Mobile */
.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.nav-mobile a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azul-escuro);
    letter-spacing: -1px;
}

.nav-mobile a:hover {
    color: var(--azul-vibrante);
}

/* --- REGRAS PARA QUANDO A TELA FOR PEQUENA (MOBILE) --- */
@media (max-width: 992px) {
    .nav-central { display: none; } /* Esconde o menu de computador */
    .btn-desktop { display: none; } /* Esconde o botão azul de computador */
    .menu-mobile-btn { display: block; } /* Mostra os 3 tracinhos */
}