/* VARIÁVEIS */
:root {
    --color-primary: #1FA750;      
    --color-accent: #64CC84;       
    --color-button: #33CC66;
    --color-text-main: #666666;    
    --color-white: #FFFFFF;        
    --font-primary: 'Barlow', sans-serif;
    --font-alt: 'Open Sans', sans-serif;
    
    --header-height: 90px;
}

/* RESET E ESTRUTURA (STICKY FOOTER) */
html { height: 100%; }
body { 
    min-height: 100vh;
    margin: 0; 
    padding: 0; 
    padding-top: var(--header-height); 
    box-sizing: border-box;
    font-family: var(--font-primary); 
    color: var(--color-text-main); 
    overflow-x: hidden;
    
    /* Flex para empurrar rodapé */
    display: flex;
    flex-direction: column;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* LAYOUT */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin: 0 auto;
}

@media (min-width: 1920px) {
    .container { padding: 0 15%; }
}

.section-padding { padding: 80px 0; }

/* COMPONENTES GERAIS */
.logo-img { max-height: 50px; width: auto; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--color-button); color: var(--color-white) !important;
    padding: 12px 30px; font-weight: 700; border-radius: 50px;
    text-transform: uppercase; font-size: 0.9rem; border: 2px solid var(--color-button);
}
.btn-primary:hover { 
    background-color: #1a8e42; 
    border-color: #1a8e42; 
    transform: translateY(-2px); 
    color: var(--color-white) !important; 
}

/* =========================================
   HEADER & MENU (DESKTOP)
   ========================================= */
.header-main {
    background-color: rgba(255, 255, 255, 0.98);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; align-items: center;
    backdrop-filter: blur(10px);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { position: relative; z-index: 1001; }
.logo:hover img { transform: scale(1.05); transition: 0.3s; }

/* Menu Desktop */
.nav-menu { display: flex; align-items: center; }
.nav-content { display: flex; align-items: center; width: 100%; }
.nav-list { display: flex; gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; }

.nav-list li { position: relative; }

/* Links Desktop */
.nav-list a:not(.btn-header) {
    font-weight: 600; color: #333; font-size: 17px;
    padding: 10px 25px;
    display: block; position: relative;
    transition: 0.3s;
}

/* Sublinhado Animado */
.nav-list a:not(.btn-header)::after {
    content: ''; position: absolute; bottom: 5px;
    left: 25px; right: 25px; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px; transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-list a:not(.btn-header):hover::after,
.nav-list a.active:not(.btn-header)::after { transform: scaleX(1); }
.nav-list a:not(.btn-header):hover { color: var(--color-primary); }

/* Divisórias */
.nav-list li:not(:last-child)::before {
    content: ''; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 20px;
    background: rgba(0, 0, 0, 0.15);
}
/* Remove divisória perto do botão */
.nav-list li:has(.btn-header)::before { display: none; }

/* Botão Contato Desktop */
.btn-header {
    background-color: var(--color-primary);
    color: white !important;
    padding: 12px 30px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    margin-left: 20px;
    box-shadow: 0 5px 15px rgba(31, 167, 80, 0.25);
    transition: 0.3s; display: inline-flex;
}
.btn-header:hover {
    background-color: #168f44;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 167, 80, 0.4);
}

/* Esconde elementos mobile no desktop */
.mobile-icon, .mobile-extras, .menu-mobile-btn { display: none !important; }
.desktop-only-btn { display: block; }


/* =========================================
   MENU MOBILE (AJUSTADO)
   ========================================= */
@media (max-width: 991px) {
    /* Header Sólido */
    .header-main {
        background-color: #ffffff !important;
        backdrop-filter: none !important;
    }

    /* Botão Hambúrguer */
    .menu-mobile-btn { 
        display: flex !important; 
        flex-direction: column; gap: 5px; 
        background: none; border: none; padding: 10px; z-index: 1001; 
    }
    .menu-mobile-btn .bar { 
        display: block; width: 28px; height: 3px; 
        background-color: var(--color-primary); border-radius: 3px; transition: 0.3s; 
    }
    
    /* Animação do X */
    .menu-mobile-btn.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-mobile-btn.active .bar:nth-child(2) { opacity: 0; }
    .menu-mobile-btn.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Gaveta do Menu */
    .nav-menu {
        position: fixed; top: var(--header-height); right: -100%;
        width: 100%; height: calc(100vh - var(--header-height));
        background: #ffffff !important;
        z-index: 999;
        transition: 0.4s ease-in-out;
        display: block;
        border-top: 1px solid #eee;
    }
    .nav-menu.active { right: 0; }

    .nav-content {
        display: flex; flex-direction: column;
        height: 100%; padding: 30px;
        overflow-y: auto;
    }

    /* Lista de Links Mobile */
    .nav-list { flex-direction: column; width: 100%; gap: 0; margin-bottom: 30px; }
    .nav-list li { width: 100%; }
    
    /* Limpa estilos desktop */
    .nav-list li::before { display: none; }
    .nav-list a:not(.btn-header)::after { display: none; }

    .nav-list a:not(.btn-header) {
        font-size: 1.4rem; color: #333 !important;
        padding: 20px 0; border-bottom: 1px solid #f5f5f5;
        width: 100%; display: flex; align-items: center;
    }

    /* Esconde botão desktop */
    .desktop-only-btn { display: none !important; }

    /* MOSTRAR ÍCONES E EXTRAS */
    .mobile-icon { 
        display: inline-block !important; 
        margin-right: 15px; width: 25px; text-align: center; color: var(--color-primary); font-size: 1.2rem;
    }
    .mobile-extras { display: block !important; width: 100%; margin-top: 20px; }

    /* Botão Mobile */
    .btn-header-mobile {
        display: block; width: 100%; text-align: center;
        background-color: var(--color-primary); color: white;
        padding: 15px; border-radius: 50px; font-weight: 700;
        font-size: 1.1rem; text-transform: uppercase;
        margin-bottom: 30px; box-shadow: 0 5px 15px rgba(31, 167, 80, 0.2);
    }

    /* Rodapé do Menu Mobile */
    .menu-social-mobile { 
        text-align: center; padding-top: 20px; border-top: 1px solid #f5f5f5; 
    }
    .menu-social-mobile p { 
        color: #999; font-size: 0.9rem; text-transform: uppercase; 
        letter-spacing: 2px; margin-bottom: 15px; 
    }
    .menu-social-mobile .social-icons { 
        display: flex; justify-content: center; gap: 20px; 
    }
    .menu-social-mobile a {
        width: 50px; height: 50px; border-radius: 50%; background: #f7f7f7;
        display: flex; align-items: center; justify-content: center;
        color: #333; font-size: 1.5rem; transition: 0.3s;
    }
}

/* =========================================
   RODAPÉ E CONTEÚDO
   ========================================= */
main {
    flex: 1 0 auto;
    width: 100%;
}

.footer-main {
    flex-shrink: 0;
    background-color: #052825; color: #ccc;
    padding: 80px 0 0; width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px; margin-bottom: 60px; align-items: start;
}

.footer-col h3 { 
    color: var(--color-white); margin-bottom: 25px; 
    font-family: var(--font-primary); font-size: 1.2rem; 
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

.footer-col ul li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a { color: #bbb; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--color-accent); padding-left: 5px; }
.footer-col i { color: var(--color-primary); margin-right: 5px; }

/* =========================================
   ÍCONES SOCIAIS (CORREÇÃO DE ALINHAMENTO)
   ========================================= */
.social-list { 
    display: flex; 
    gap: 15px; 
    margin-top: 15px; 
}

.social-list a {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center !important;     /* Centraliza Vertical */
    justify-content: center !important; /* Centraliza Horizontal */
    color: white !important;
    transition: 0.3s;
    padding: 0 !important;
    text-decoration: none;
    border: 1px solid transparent;
}

/* CORREÇÃO: Remove a margem que empurrava o ícone para o lado */
.social-list a i,
.social-list a svg {
    margin: 0 !important; 
    padding: 0 !important;
    font-size: 1.2rem;
    line-height: 0;
    display: block;
    color: inherit; /* Herda a cor do link */
}

/* HOVER: Fundo Verde, Ícone Branco */
.social-list a:hover { 
    background-color: var(--color-primary) !important; 
    border-color: var(--color-primary) !important;
    transform: translateY(-3px);
    color: #ffffff !important; /* Garante ícone branco */
}

/* Barra Inferior */
.footer-bottom {
    background-color: #031f1d; padding: 25px 0; margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem; color: #888;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom strong { color: white; }

/* RESPONSIVO GERAL */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .social-list { justify-content: center; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px;
    background-color: #25d366; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999; text-decoration: none;
    animation: pulsar 2s infinite; transition: all 0.3s ease;
}
.whatsapp-float i { font-size: 35px; color: white; }
.whatsapp-float:hover { animation: none; transform: scale(1.1); background-color: #1ebc57; }

@keyframes pulsar {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* CLASSE QUE TRAVA SCROLL */
body.menu-open {
    position: fixed; width: 100%; overflow-y: scroll; left: 0;
}