
@import url('variables.css');

/* --- CONTAINER DO HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    padding: 15px 6%; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    z-index: 1000; 
    background: transparent;

    transition: background-color 0.4s ease, padding 0.4s ease;
}

/* --- LOGO DO HEADER --- */
.header-logo {
    opacity: 0; 
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    display: flex; 
    align-items: center;
}

.header-logo img {
    height: 35px; 
    width: auto;
    cursor: pointer;
    margin: 10px 0 0 0;
}
/* --- BOTÕES CENTRAIS --- */
.header-actions {
    display: flex;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.header-btn {
    padding: 8px 25px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-green);
    border-radius: 30px;
    
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: var(--hover-green);
    border-color: var(--hover-green);
    box-shadow: 0 4px 10px rgba(25, 139, 70, 0.3);
}

/* --- MENU DE NAVEGAÇÃO --- */
.nav-links {
    list-style: none;
    display: flex; 
    gap: 30px;
}

/* Estilo dos Links */
.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

/* --- EFEITO HOVER NOS LINKS --- */
.nav-links li a:hover {
    color: var(--primary-green);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* --- .scrolled --- */
header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 15px 5%; 
}

/* Quando tiver a classe .scrolled, mostre a logo e os botões */
header.scrolled .header-logo,
header.scrolled .header-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* O Wrapper segura os Botões e o Menu */
.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 30px; 
    margin-left: auto; 
}

.hamburger {
    display: none;
}

@media (max-width: 768px) {
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: 0.3s;
    }

    /* Transformação do X */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    /* MENU LATERAL */
    .menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        margin-left: 0; 
        flex-direction: column-reverse; 
        justify-content: center;
        gap: 40px;
        
        transition: 0.4s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .menu-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    /* Força visibilidade no Mobile */
    .menu-wrapper .header-actions {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}