/* 
 * AMEDAP Menu Styles
 * Custom navigation menu styling
 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(236, 38, 143, 0.15);
    height: 80px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    max-width: 1320px;
    margin: 0 auto;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo, .custom-logo {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.2s ease-in-out;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

/* Main navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu-item a {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #373435;
    text-decoration: none;
    padding: 0.5rem;
    position: relative;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.02em;
}

.menu-item a:hover {
    color: #EC268F;
}

/* Dropdown menu indicators */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    padding-right: 1.5rem;
}

.submenu-toggle {
    background: transparent;
    border: none;
    color: #373435;
    font-size: 0.75rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
}

.submenu-toggle:hover {
    color: #EC268F;
}

/* Submenu styling */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 1000;
    padding: 0.5rem 0;
    list-style: none;
}

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

.sub-menu .menu-item a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Call to action button */
.nav-cta a.btn-primary {
    background-color: #EC268F;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(236, 38, 143, 0.25);
}

.nav-cta a.btn-primary:hover {
    background-color: #D91B7A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(236, 38, 143, 0.3);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: #1F2937;
    transition: all 0.2s ease-in-out;
}

/* Responsive styles */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        flex-direction: column;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        border-top: 1px solid rgba(236, 38, 143, 0.1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
        align-items: stretch;
        gap: 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-item {
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-item:last-child {
        border-bottom: none;
    }
    
    .menu-item a {
        padding: 0.9rem 0;
        font-size: 1.05rem;
    }
    
    .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin: 0.5rem 0;
        border-radius: 0;
    }
    
    .sub-menu .menu-item {
        border-bottom: none;
    }
    
    .sub-menu .menu-item a {
        padding: 0.7rem 0;
        font-size: 0.95rem;
    }
    
    .submenu-toggle[aria-expanded="true"] + .sub-menu {
        display: block;
    }
    
    .nav-cta {
        margin-top: 1.5rem;
        border-bottom: none !important;
    }
    
    .nav-cta a.btn-primary {
        display: block;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-logo, .custom-logo {
        height: 45px;
    }
}
