﻿/* =============================================
   ds_top_menu.css - Top Navigation Styles
   Follows C_Styles.css conventions
   ============================================= */

/* Navigation Wrapper - Full width background */
.ds-nav-wrapper {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d8d8dc;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    position: relative;
    z-index: 1000;
}

/* Container - Centers content, max-width 1400px */
.ds-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content area - flex layout */
.ds-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding-bottom: 0px;
}

/* Logo area - left justified */
.ds-logo-area {
    flex-shrink: 0;
}

.ds-logo {
    width: 450px;
    max-width: 100%;
    height: auto;
    display: block;
    padding-bottom:10px;
}

/* Desktop Menu Area - right justified */
.ds-menu-area {
    flex-shrink: 0;
}

.ds-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.ds-menu-item {
    position: relative;
}

.ds-menu-link {
    display: inline-block;
    padding: 8px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13pt;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .ds-menu-link:hover {
        color: #5a5a8c;
        background: #f1f1f3;
        border-radius: 6px;
    }

/* Submenu trigger items */
.ds-has-submenu {
    position: relative;
}

.ds-arrow {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.18s ease;
}

.ds-has-submenu:hover .ds-arrow {
    transform: rotate(180deg);
}

/* Submenu styling */
.ds-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #d8d8dc;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
    z-index: 1001;
}

.ds-has-submenu:hover .ds-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ds-submenu li {
    margin: 0;
    padding: 0;
}

    .ds-submenu li a {
        display: block;
        padding: 8px 20px;
        font-family: 'DM Sans', sans-serif;
        font-size: 12pt;
        color: #5a5a72;
        text-decoration: none;
        transition: all 0.18s ease;
        white-space: nowrap;
    }

        .ds-submenu li a:hover {
            background: #f1f1f3;
            color: #3a3a5c;
        }

/* Patient submenu - extra hover area */
.ds-submenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

/* Mobile toggle button - hidden on desktop */
.ds-mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 8px;
}

.ds-hamburger {
    width: 32px;
    height: 32px;
    display: block;
}

/* Mobile slide-out menu - hidden by default */
.ds-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
    z-index: 1003;
    transition: right 0.3s ease;
    overflow-y: auto;
}

    .ds-mobile-menu.open {
        right: 0;
    }

.ds-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #d8d8dc;
    background: #f7f7f8;
}

.ds-mobile-logo {
    width: 180px;
    height: auto;
}

.ds-mobile-close {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    color: #5a5a72;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.18s ease;
}

    .ds-mobile-close:hover {
        background: #e4e4ea;
        color: #c0392b;
    }

.ds-mobile-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.ds-mobile-item {
    border-bottom: 1px solid #e8e8ec;
}

.ds-mobile-link {
    display: block;
    padding: 14px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13pt;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.18s ease;
}

    .ds-mobile-link:active {
        background: #f1f1f3;
    }

.ds-mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

    .ds-mobile-link-wrapper a {
        font-family: 'DM Sans', sans-serif;
        font-size: 13pt;
        color: #1a1a2e;
        text-decoration: none;
        flex: 1;
    }

.ds-mobile-arrow {
    font-size: 12px;
    cursor: pointer;
    padding: 8px 12px;
    transition: transform 0.2s ease;
    color: #7a7a90;
}

    .ds-mobile-arrow.open {
        transform: rotate(180deg);
    }

.ds-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f7f7f8;
}

    .ds-mobile-submenu.open {
        max-height: 500px;
    }

    .ds-mobile-submenu li a {
        display: block;
        padding: 12px 20px 12px 40px;
        font-family: 'DM Sans', sans-serif;
        font-size: 12pt;
        color: #5a5a72;
        text-decoration: none;
        border-top: 1px solid #e8e8ec;
    }

        .ds-mobile-submenu li a:active {
            background: #e8eaf0;
        }

/* Mobile overlay */
.ds-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20,20,40,.55);
    z-index: 1002;
    display: none;
    animation: dsFadeIn 0.2s ease;
}

    .ds-mobile-overlay.open {
        display: block;
    }

@keyframes dsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive breakpoint */
@media (max-width: 992px) {
    .ds-menu-area {
        display: none;
    }

    .ds-mobile-toggle {
        display: block;
    }

    .ds-nav-content {
        justify-content: space-between;
    }

    .ds-logo {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .ds-nav-container {
        padding: 0 12px;
    }

    .ds-nav-content {
        height: 100px;
        padding-bottom: 8px;
    }

    .ds-logo {
        width: 220px;
    }

    .ds-hamburger {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .ds-nav-content {
        height: 80px;
    }

    .ds-logo {
        width: 160px;
    }
}
