/* =====================================================
   OAKOKHO — NAVIGATION + DROPDOWN STYLES
   LOCATION: /var/www/oakokho/includes/menu.css
   ===================================================== */

/* BASE NAV */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #e8e3dc;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 62px;
    gap: 8px;
}

/* LOGO */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-assamese {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-english {
    font-family: 'Baloo 2', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: #555;
    text-transform: uppercase;
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}

.nav-menu>li {
    position: relative;
}

/* TOP-LEVEL LINKS */
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #3a3228;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 0, 0, .07);
    color: #8B0000;
}

.nav-link.active {
    font-weight: 600;
}

/* DROPDOWN TOGGLE CHEVRON */
.nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform .2s;
    flex-shrink: 0;
    opacity: .6;
}

.nav-menu>li.open>.nav-link .nav-chevron {
    transform: rotate(180deg);
}

/* DROPDOWN PANEL */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    padding: 8px;
    min-width: 200px;
    z-index: 300;
    animation: dropIn .15s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-menu>li.open>.nav-dropdown {
    display: block;
}

/* DROPDOWN ITEMS */
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: #3a3228;
    text-decoration: none;
    transition: background .12s, color .12s;
}

.nav-dropdown a:hover {
    background: rgba(139, 0, 0, .07);
    color: #8B0000;
}

.nav-dropdown a.active {
    background: rgba(139, 0, 0, .08);
    color: #8B0000;
    font-weight: 600;
}

.nav-dropdown-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(139, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: #f0ebe4;
    margin: 6px 4px;
}

/* CTA + SIGN IN */
.nav-cta {
    background: #8B0000;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 4px;
}

.nav-cta:hover {
    background: #700000 !important;
    color: #fff !important;
}

.nav-login {
    border: 1px solid #d0c8be;
    border-radius: 6px;
    margin-left: 2px;
}

.nav-login:hover {
    border-color: #8B0000;
}

/* MOBILE HAMBURGER */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #3a3228;
    border-radius: 2px;
    transition: all .25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e8e3dc;
        border-bottom: 1px solid #e8e3dc;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
        margin: 0;
    }

    .nav-menu.open,
    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        border-radius: 6px;
        padding: 10px 12px;
    }

    /* MOBILE DROPDOWN — INLINE */
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(139, 0, 0, .2);
        border-radius: 0;
        margin: 2px 0 4px 12px;
        padding: 4px 0;
        min-width: unset;
        animation: none;
    }

    .nav-menu>li.open>.nav-dropdown {
        display: block;
    }

    .nav-cta {
        text-align: center;
        margin-left: 0;
        margin-top: 6px;
    }

    .nav-login {
        margin-left: 0;
    }
}