/* ===== HEADER STYLES ===== */
.main-header {
    position: relative;
    background: transparent;
    padding: 1rem 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Menu Toggle Button */
.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.menu-toggle-btn:hover {
    transform: scale(1.1);
}

.menu-icon {
    width: 60px;
    height: 60px;
}

/* Overlay Menu - Half Width and Half Height */
.overlay-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 60% !important;
    background: url('../images/header_background.png') no-repeat center center;
    background-size: cover !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(100%);
    max-width: none !important;
    max-height: none !important;
    left: auto !important;
    bottom: auto !important;
}

.overlay-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Ensure overlay menu maintains correct size on front page */
body.home .overlay-menu,
body.page-template-front-page .overlay-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 60% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
}

/* Prevent front page layout from creating stacking context issues */
body.home .page-home-wrapper,
body.page-template-front-page .page-home-wrapper {
    position: relative;
    z-index: auto;
}

body.home .page-home-intro-section,
body.page-template-front-page .page-home-intro-section {
    position: relative;
    z-index: auto;
}

body.home .page-home-first-row,
body.page-template-front-page .page-home-first-row {
    position: relative;
    z-index: auto;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 4rem;
    margin-top: 5%;
    margin-bottom: 15%;
}

/* Close Button */
.close-menu-btn {
    position: absolute;
    top: 4%;
    left: 75%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    padding-bottom: 1rem;
    transition: transform 0.3s ease;
    z-index: 10001;
}

.close-menu-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.close-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

/* Overlay Navigation */
.overlay-nav {
    width: 100%;
    max-width: 600px;
}

.overlay-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.overlay-menu-list li {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.5s ease forwards;
}

.overlay-menu-list li:nth-child(1) { animation-delay: 0.1s; }
.overlay-menu-list li:nth-child(2) { animation-delay: 0.2s; }
.overlay-menu-list li:nth-child(3) { animation-delay: 0.3s; }
.overlay-menu-list li:nth-child(4) { animation-delay: 0.4s; }
.overlay-menu-list li:nth-child(5) { animation-delay: 0.5s; }

.overlay-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.overlay-menu-list a:hover {
    color: #ffe066;
    transform: translateX(20px);
    border-bottom-color: #ffe066;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .menu-icon {
        width: 50px;
        height: 50px;
    }
    
    .overlay-menu {
        width: 70% !important;
        height: 60% !important;
    }
    
    /* Ensure mobile overlay menu maintains correct size on front page */
    body.home .overlay-menu,
    body.page-template-front-page .overlay-menu {
        width: 70% !important;
        height: 60% !important;
        z-index: 99999 !important;
    }
    
    .overlay-content {
        padding: 1.5rem 2rem;
    }
    
    .close-menu-btn {
        top: 3rem;
        left: 70%;
    }
    
    .close-icon {
        width: 50px;
        height: 50px;
    }
    
    .overlay-menu-list a {
        font-size: 20px;
    }
    
    .overlay-menu-list li {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .menu-icon {
        width: 40px;
        height: 40px;
    }
    
    .overlay-menu {
        width: 85% !important;
        height: 70% !important;
    }
    
    /* Ensure small mobile overlay menu maintains correct size on front page */
    body.home .overlay-menu,
    body.page-template-front-page .overlay-menu {
        width: 85% !important;
        height: 70% !important;
        z-index: 99999 !important;
    }
    
    .overlay-content {
        padding: 1rem 1.5rem;
    }
    
    .close-menu-btn {
        top: 2rem;
        left: 70%;
    }
    
    .close-icon {
        width: 40px;
        height: 40px;
    }
    
    .overlay-menu-list a {
        font-size: 18px;
    }
    
    .overlay-menu-list li {
        margin-bottom: 0.6rem;
    }
} 