/* Global Navigation Integration - Inherits from existing styles.css */

/* Active navigation state improvements */
.nav-menu li a.active {
    color: #c53030 !important;
    font-weight: 600;
    position: relative;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    border-radius: 2px;
}


/* Mobile responsive improvements */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(229, 62, 62, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(245, 245, 245, 0.95);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        border-radius: 0;
        border-top: none;
        min-width: auto;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        color: #4a5568 !important;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(229, 62, 62, 0.1) !important;
        color: #c53030 !important;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
        background: none;
        border: none;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #4a5568;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
}

/* Desktop - Hide mobile toggle */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* Ensure proper inheritance from main styles */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 0;
    padding-left: 0;
}

.nav-menu li::before {
    display: none;
}

/* Logo hover effect enhancement */
.logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}
