/* ── NAVBAR ─────────────────────────────────────────────── */
#mainNav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

#mainNav.elevated {
    box-shadow: var(--sh-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand b {
    color: var(--blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
}

/* The Bridge: Creates an invisible area so the hover doesn't break */
.nav-menu>li>a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    /* This covers the 8px gap */
    height: 10px;
    display: block;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    font-family: "Manrope", sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--mid);
    text-decoration: none;
    border-radius: 7px;
    transition:
        color 0.18s,
        background 0.18s;
    white-space: nowrap;
}

.nav-menu>li>a:hover,
.nav-menu>li:hover>a {
    color: var(--blue);
    background: var(--blue-pale);
}

.nav-menu>li>a .caret {
    font-size: 0.7rem;
    transition: transform 0.2s;
    opacity: 0.5;
}

.nav-menu>li:hover>a .caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition:
        opacity 0.18s,
        transform 0.18s;
    z-index: 200;
}

.nav-drop.wide {
    min-width: 290px;
}

.nav-menu>li:hover .nav-drop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.drop-label {
    font-family: "Manrope", sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 10px 4px;
}

.nav-drop a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-drop a:hover {
    background: var(--blue-pale);
}

.nav-drop a .di {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.nav-drop a .dt {
    flex: 1;
}

.nav-drop a .dt strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-drop a .dt span {
    font-size: 0.76rem;
    color: var(--muted);
}

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 18px !important;
    margin-left: 6px;
}

.nav-cta:hover {
    background: var(--blue-mid) !important;
    color: #fff !important;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        box-shadow: var(--sh-md);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-drop {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg);
        border-radius: var(--r);
        display: none;
        margin-top: 4px;
    }

    .nav-menu>li.open .nav-drop {
        display: block;
    }

    .nav-cta {
        text-align: center;
        margin-left: 0;
    }
}