/* Header Styles
-------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    transition: var(--transition-base);
    box-shadow: var(--box-shadow-sm);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    position: relative;
}

.header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header__logo img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Navigation - MENU HORIZONTAL */
.header__nav {
    flex: 1 1 auto;
    text-align: right;
}

.header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* HORIZONTAL */
    justify-content: flex-end;
    align-items: center;
}

.header__menu-item {
    margin: 0 0.75rem;
    position: relative;
    display: inline-block; /* HORIZONTAL */
}

.header__menu-item:last-child {
    margin-right: 0;
}

.header__menu-item a {
    display: block;
    color: var(--dark-color);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.header__menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.header__menu-item a:hover,
.header__menu-item.active a {
    color: var(--primary-color);
}

.header__menu-item a:hover::after,
.header__menu-item.active a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2rem;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.header__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    margin: 6px 0;
    transition: var(--transition-fast);
    border-radius: 3px;
}

/* Mobile Menu Toggle Animation */
.header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header__toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header__toggle {
        display: block;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        z-index: 1000;
        padding-top: 5rem;
        text-align: left;
    }
    
    .header__nav.open {
        right: 0;
    }
    
    .header__menu {
        flex-direction: column; /* VERTICAL FOR MOBILE */
        padding: 1rem;
        align-items: flex-start;
    }
    
    .header__menu-item {
        margin: 0.5rem 0;
        display: block;
        width: 100%;
    }
    
    .header__menu-item a {
        padding: 0.5rem;
    }
    
    .header__menu-item a::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .header__logo img {
        max-height: 45px;
    }
    
    .header__content {
        padding: 0.5rem 0;
    }
    
    .header__nav {
        width: 220px;
    }
}