/* Custom Navigation Menu Styles */

/* Desktop Navigation */
.lmc-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lmc-nav-desktop {
    display: flex;
    align-items: center;
}

.lmc-custom-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.lmc-nav-item {
    display: flex;
    align-items: center;
    position: relative;
}

.lmc-nav-link {
    font-size: 16px;
    font-family: 'Axiforma', sans-serif;
    font-weight: 400;
    padding: 7px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.lmc-nav-link:hover {
    color: #009970;
    background-color: rgba(0, 153, 112, 0.1);
}

/* Active state */
.lmc-nav-active .lmc-nav-link {
    background-color: #009970;
    color: white;
}

.lmc-nav-active .lmc-nav-link:hover {
    background-color: #007a5a;
    color: white;
}

/* Separator */
.lmc-nav-separator-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmc-nav-separator {
    width: 1px;
    height: 24px;
    background-color: #D9D9D9;
    transition: opacity 0.3s ease;
}

/* Hide separators when adjacent item is active */
.lmc-nav-active + .lmc-nav-separator-item .lmc-nav-separator,
.lmc-nav-separator-item + .lmc-nav-active + .lmc-nav-separator-item .lmc-nav-separator {
    opacity: 0;
}

/* Mobile Navigation Toggle */
.lmc-nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}

.lmc-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.lmc-hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.lmc-hamburger.active .lmc-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.lmc-hamburger.active .lmc-hamburger-line:nth-child(2) {
    opacity: 0;
}

.lmc-hamburger.active .lmc-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.lmc-nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.lmc-nav-mobile-overlay.active {
    left: 0;
}

.lmc-nav-mobile-content {
    width: 320px;
    height: 100%;
    background-color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.lmc-nav-mobile-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.lmc-nav-mobile-logo {
    display: flex;
    justify-content: flex-start;
}

.lmc-nav-mobile-logo img {
    width: 100px;
}

.lmc-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 50px;
}

.lmc-nav-close:hover {
    background-color: #f0f0f0;
    color: #009970;
}

/* Mobile Search */
.lmc-nav-mobile-search {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.lmc-nav-mobile-search .lmc-search-form {
    width: 100%;
}

.lmc-nav-mobile-search .lmc-search-input-wrapper {
    width: 100%;
}

.lmc-nav-mobile-search .lmc-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Axiforma', sans-serif;
}

.lmc-nav-mobile-search .lmc-search-button {
    display: none;
}

/* Mobile Menu */
.lmc-nav-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lmc-nav-mobile-item {
    border-bottom: 1px solid #eee;
}

.lmc-nav-mobile-link {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Axiforma', sans-serif;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lmc-nav-mobile-link:hover {
    background-color: #f9f9f9;
    color: #009970;
}

.lmc-nav-mobile-active .lmc-nav-mobile-link {
    background-color: #009970;
    color: white;
}

.lmc-nav-mobile-active .lmc-nav-mobile-link:hover {
    background-color: #007a5a;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lmc-nav-desktop {
        display: none;
    }
    
    .lmc-nav-mobile-toggle {
        display: flex;
    }
    
    .lmc-nav-mobile-content {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .lmc-nav-mobile-content {
        width: 100%;
    }
    
    .lmc-nav-mobile-overlay {
        left: -100vw;
    }
    
    .lmc-nav-mobile-overlay.active {
        left: 0;
    }
}

/* Animation for mobile menu items */
.lmc-nav-mobile-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for menu items */
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(1) { transition-delay: 0.1s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(2) { transition-delay: 0.15s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(3) { transition-delay: 0.2s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(4) { transition-delay: 0.25s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(5) { transition-delay: 0.3s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(6) { transition-delay: 0.35s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(7) { transition-delay: 0.4s; }
.lmc-nav-mobile-overlay.active .lmc-nav-mobile-item:nth-child(8) { transition-delay: 0.45s; }

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Focus styles for accessibility */
.lmc-nav-link:focus,
.lmc-nav-mobile-link:focus,
.lmc-hamburger:focus,
.lmc-nav-close:focus {
    outline: 2px solid #009970;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lmc-nav-link,
    .lmc-nav-mobile-link {
        border: 1px solid transparent;
    }
    
    .lmc-nav-link:hover,
    .lmc-nav-mobile-link:hover {
        border-color: #009970;
    }
    
    .lmc-nav-active .lmc-nav-link,
    .lmc-nav-mobile-active .lmc-nav-mobile-link {
        border-color: #009970;
    }
} 