/* BhojMandu Landing Header v2 */
.bm-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    border-bottom: 1px solid #f0f0f2;
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
    font-family: 'Inter', sans-serif;
}

.bm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.bm-header__logo img {
    max-height: 44px;
    width: auto;
    display: block;
}

.bm-header__toggle {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.bm-header__toggle span {
    display: block;
    height: 2px;
    background: #282C3F;
    border-radius: 2px;
}

.bm-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

.bm-header__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #3D4152;
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.bm-header__link:hover,
.bm-header__link.active {
    color: var(--brand-red, #EF3024);
}

.bm-header__link.active {
    position: relative;
}

.bm-header__menu > li > .bm-header__link.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--brand-red, #EF3024);
    border-radius: 2px;
}

.bm-header__dropdown {
    position: relative;
}

.bm-header__dropdown:hover .bm-header__dropdown-menu,
.bm-header__dropdown:focus-within .bm-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bm-header__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(26, 26, 46, 0.12);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
    z-index: 20;
}

.bm-header__dropdown-menu--right {
    left: auto;
    right: 0;
}

.bm-header__dropdown-menu li a {
    display: block;
    padding: 10px 12px;
    color: #3D4152;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
}

.bm-header__dropdown-menu li a:hover,
.bm-header__dropdown-menu li a.active {
    background: #fff5f5;
    color: var(--brand-red, #EF3024);
}

.bm-header__dropdown-menu li a small {
    display: block;
    color: #93959F;
    font-size: 0.75rem;
    margin-top: 2px;
}

.bm-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-header__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e9e9eb;
    border-radius: 999px;
    background: #fff;
    color: #3D4152;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.bm-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--brand-red, #EF3024);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 8px 24px rgba(239, 48, 36, 0.25);
}

.bm-header__cta:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 991px) {
    .bm-header__nav {
        position: fixed;
        inset: 72px 0 auto 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        display: none;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .bm-header__nav.is-open {
        display: flex;
    }

    .bm-header__menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .bm-header__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 12px;
        display: none;
    }

    .bm-header__dropdown.is-open .bm-header__dropdown-menu {
        display: block;
    }

    .bm-header__actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .bm-header__cta {
        width: 100%;
    }
}
