/**
 * Header and Navigation Styles
 */

.site-header {
    background: #fff;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
}

.site-header .container {
    height: 100%;
}

/* Navigation Links */
.main-navigation .menu-item a {
    color: rgb(56 86 167);
    text-decoration: unset;
    font-size: 15px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.main-navigation .menu-item a:hover {
    color: #FF9500;
}

/* Action Buttons */
.header-actions .btn {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 24px;
    transition: all 0.2s ease;
}

.header-actions .btn-login {
    border: 1.5px solid #284181;
    color: #284181;
    background: transparent;
}

.header-actions .btn-login:hover {
    background: rgba(40, 65, 129, 0.05);
    border-color: #284181;
    color: #284181;
}

.header-actions .btn-signup {
    background: #FF9500;
    color: #fff;
    border: 1.5px solid #FF9500;
}

.header-actions .btn-signup:hover {
    background: #e68600;
    border-color: #e68600;
    color: #fff;
}

/* Burger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: block;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #284181;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 8px;
}

.burger-icon span:nth-child(3) {
    top: 16px;
}

/* Animation to 'X' */
.menu-toggle.is-active .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.is-active .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.is-active .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Full-Screen Mobile Menu - Premium Redesign */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .header-nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
        /* Subtle scale-in effect */
    }

    .header-nav-container.is-active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .mobile-menu-header {
        height: 80px;
        /* Fixed height to match main header */
        padding: 0 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #fff;
        flex-shrink: 0;
    }

    .mobile-menu-close {
        transition: all 0.3s ease;
        color: rgb(56 87 167) !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-close:hover {
        transform: rotate(90deg);
        color: #FF9500;
    }

    .mobile-navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Center everything vertically */
        overflow-y: auto;
    }

    /* Target the generated UL from wp_nav_menu */
    .mobile-navigation ul.nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .mobile-navigation .menu-item {
        margin: 10px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .header-nav-container.is-active .menu-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance animations */
    .header-nav-container.is-active .menu-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .header-nav-container.is-active .menu-item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .header-nav-container.is-active .menu-item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .header-nav-container.is-active .menu-item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .header-nav-container.is-active .menu-item:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-navigation .menu-item a {
        font-size: 24px;
        font-weight: 600;
        color: rgb(71 99 171) !important;
        text-decoration: none !important;
        display: inline-block;
        transition: all 0.3s ease;
        position: relative;
    }

    /* Professional Hover Effect */
    .mobile-navigation .menu-item a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #FF9500;
        transition: all 0.3s ease;
    }

    .mobile-navigation .menu-item a:hover {
        color: #FF9500 !important;
        transform: translateY(-2px);
    }

    .mobile-navigation .menu-item a:hover::after {
        width: 100%;
    }

    .header-nav-container .header-actions {
        margin-top: 40px;
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease 0.4s;
    }

    .header-nav-container.is-active .header-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .header-nav-container .header-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 50px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .header-nav-container .header-actions .btn-login {
        border: 2px solid rgb(71 99 171);
        color: rgb(71 99 171);
        background: transparent;
    }

    .header-nav-container .header-actions .btn-signup {
        background: #FF9500;
        color: #fff;
        border: 2px solid #FF9500;
        box-shadow: 0 4px 15px rgba(255, 149, 0, 0.2);
    }
}