/* ==============================================================
   Header Styles - Módulo Independente
   ============================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .navbar {
    height: 70px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text .accent {
    color: var(--secondary-color);
    font-weight: 400;
    font-style: italic;
}

/* Custom Logo */
.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list li {
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.current-menu-item::after {
    width: 100%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Responsive Header */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .d-mobile-none {
        display: none !important;
    }
}