/* ============================================
   BGH GROUP - FRONTEND MENU STYLES
   Main navigation and footer menu styling
============================================ */

/* Main Navigation Menu */
.bgh-main-nav .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.bgh-main-nav .menu li {
    position: relative;
}

.bgh-main-nav .menu a {
    color: var(--text-dark, #333);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.bgh-main-nav .menu a:hover {
    color: var(--primary-blue, #0077b6);
}

/* Active menu item */
.bgh-main-nav .menu .current-menu-item > a,
.bgh-main-nav .menu .current_page_item > a {
    color: var(--primary-blue, #0077b6);
    font-weight: 600;
}

/* Underline animation */
.bgh-main-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary, linear-gradient(135deg, #0077b6, #00c9a7));
    transition: width 0.3s ease;
}

.bgh-main-nav .menu a:hover::after,
.bgh-main-nav .menu .current-menu-item a::after,
.bgh-main-nav .menu .current_page_item a::after {
    width: 100%;
}

/* Dropdown menus (if you have submenus) */
.bgh-main-nav .menu .menu-item-has-children {
    position: relative;
}

.bgh-main-nav .menu .menu-item-has-children > a {
    padding-right: 20px;
}

.bgh-main-nav .menu .menu-item-has-children > a::before {
    content: '?';
    font-size: 8px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.bgh-main-nav .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md, 0 5px 20px rgba(0,0,0,0.15));
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.bgh-main-nav .menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bgh-main-nav .menu .sub-menu li {
    width: 100%;
}

.bgh-main-nav .menu .sub-menu a {
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.9rem;
    color: #555;
}

.bgh-main-nav .menu .sub-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-blue, #0077b6);
}

.bgh-main-nav .menu .sub-menu a::after {
    display: none;
}

/* ============================================
   FOOTER MENU STYLES
============================================ */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: -12px;
}

/* Footer menu columns if needed */
.footer-menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* ============================================
   MOBILE MENU STYLES
============================================ */
@media (max-width: 768px) {
    .bgh-main-nav .menu {
        flex-direction: column;
        gap: 0;
    }
    
    .bgh-main-nav .menu li {
        width: 100%;
    }
    
    .bgh-main-nav .menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .bgh-main-nav .menu a::after {
        display: none;
    }
    
    .bgh-main-nav .menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
        display: none;
    }
    
    .bgh-main-nav .menu .menu-item-has-children.open > .sub-menu {
        display: block;
    }
    
    .bgh-main-nav .menu .menu-item-has-children > a::before {
        content: '+';
        font-size: 16px;
    }
    
    .bgh-main-nav .menu .menu-item-has-children.open > a::before {
        content: '-';
    }
}