/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Description: Divi Child Theme
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Template: Divi
Version: 1.0.0
*/

/* Set header background and make it sticky */
#main-header {
    background-color: #f9f9ea !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

/* Add padding to main content so it doesn't hide under fixed header */
#main-content {
    padding-top: 80px !important;
}

/* Hide Divi logo */
.logo_container {
    display: none;
}

/* Base navigation structure - DESKTOP */
#custom-split-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    gap: 15px;
    position: relative;
    width: 100%;
}

#custom-split-nav .menu_left,
#custom-split-nav .menu_right {
    display: flex;
}

#custom-split-nav .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    list-style-type: none;
    font-family: 'Luckiest Guy', display;
    color: #b399f1;
    padding: 0;
    margin: 0;
    letter-spacing: 2px;
}

#custom-split-nav .nav-menu li {
    font-size: 22px;
    text-shadow: 0.06em 0.04em 0em #363636;
}

#custom-split-nav .nav-menu a {
    color: #b399f1;
    text-decoration: none;
}

#custom-split-nav .nav-menu a:hover {
    opacity: 0.7;
}

#custom-split-nav .menu_logo {
    position: relative;
    top: 16px;
}

#custom-split-nav .menu_logo img {
    width: 200px;
    background-color: #faf6d3 !important;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.3);
}

/* Mobile menu toggle button - HIDDEN ON DESKTOP */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #b399f1;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu wrapper - HIDDEN ON DESKTOP */
.mobile-menu-wrapper {
    display: none;
    background-color: #f9f9ea;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 9;
}

.mobile-menu-wrapper.active {
    max-height: 500px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    font-family: 'Luckiest Guy', display;
    letter-spacing: 2px;
}

.mobile-nav-menu li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(179, 153, 241, 0.2);
    font-size: 20px;
    text-shadow: 0.06em 0.04em 0em #363636;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    color: #b399f1;
    text-decoration: none;
    display: block;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* MOBILE STYLES - 980px and below */
@media (max-width: 980px) {
    #main-content {
        padding-top: 160px;
    }
    
    #custom-split-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 15px 20px;
        gap: 0;
    }
    
    #custom-split-nav .menu_left,
    #custom-split-nav .menu_right {
        display: none;
    }
    
    #custom-split-nav .menu_logo {
        margin: 0;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
    }
    
    #custom-split-nav .menu_logo img {
        width: 120px;
        padding: 10px;
        background-color: #faf6d3;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        right: 0;
        top: 0;
    }
    
    .mobile-menu-wrapper {
        display: block;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
    }

    .mobile-menu-wrapper.active {
        border-top: 2px solid #b399f1;
    }
}

/* Extra small screens - 480px and below */
@media (max-width: 480px) {
    #custom-split-nav {
        padding: 10px 15px;
    }
    
    #custom-split-nav .menu_logo img {
        width: 100px;
        padding: 8px;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 30px;
    }

}