/*
Theme Name: Kadence Child
Template: kadence
*/


/* ========== DESKTOP NAVIGATION ========== */
.custom-nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.custom-main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle {
    display: none;           /* hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Main menu list */
.custom-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.custom-menu-list li {
    position: relative;
}

.custom-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.custom-menu-list a:hover,
.custom-menu-list .current-menu-item > a {
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
}

/* Sub‑menu (dropdown) */
.sub-menu-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.custom-menu-list li:hover > .sub-menu-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu-wrap .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu-wrap .sub-menu a {
    padding: 10px 20px;
    font-weight: 400;
    white-space: nowrap;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .custom-menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #222;
        z-index: 1000;
    }

    .custom-menu-list.toggled {
        display: flex;
    }

    .custom-menu-list a {
        color: #fff;
        border-bottom: 1px solid #444;
    }

    .sub-menu-wrap {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #333;
    }

    .sub-menu-wrap a {
        padding-left: 40px;
    }
}