/* 
* Seaside Media Header Styles
*/

/* Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 80px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    color: var(--brand-default);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Mobile CTA button - hidden by default in all views */
.main-nav .mobile-cta {
    display: none;
}

/* Mobile Nav Styles */
.mobile-nav-active .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    align-items: center;
}

.mobile-nav-active .main-nav ul {
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* Show mobile CTA button */
.mobile-nav-active .main-nav:after {
    content: '';
    display: block;
    margin: 20px 0;
    width: 50px;
    height: 2px;
    background: var(--brand-gradient);
}

.mobile-nav-active .main-nav .mobile-cta {
    display: block;
    margin-top: 10px;
}

.mobile-nav-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive styles for header */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .hamburger-menu {
        display: block;
        order: 3;
    }
    
    .desktop-cta {
        display: none;
    }
    
    /* Add the mobile CTA to the nav menu */
    .main-nav .mobile-cta {
        display: none;
    }
    
    .mobile-nav-active .main-nav .mobile-cta {
        display: block;
    }
}
