/* ==========================================================================
   Mobile / tablet header menu button (3-line) - 04-11-2026
   The header 3-line Menu button opens the existing #nav-menu panel, so the
   duplicate Menu button in the bottom bar is hidden on these widths.
   ========================================================================== */
.mob_menu_btn,
.mob_menu_close { display: none; }

@media (max-width: 991px) {
    /* wide sections / decorative shapes overflow the phone width; the browser
       then zooms the page out and the hidden bottom menu panel peeks in */
    html, body { overflow-x: hidden; overflow-x: clip; }
    html.mob_menu_lock { overflow: hidden; }

    /* logo left + Menu button right, same as the main site header */
    .main_header .navbar > .container { position: relative; align-items: flex-start; }
    .main_header .navbar-toggler { display: none !important; }

    .mob_menu_btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: .5rem .9rem;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 3rem;
        background: transparent;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.4;
        cursor: pointer;
        z-index: 2;
    }
    .mob_menu_btn:hover,
    .mob_menu_btn:focus-visible {
        background: var(--color-red, #BD2125);
        border-color: var(--color-red, #BD2125);
    }
    .mob_menu_btn .menu_bars {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 20px;
    }
    .mob_menu_btn .menu_bars > span {
        display: block;
        height: 2px;
        width: 100%;
        background: currentColor;
        border-radius: 2px;
    }
    .mob_menu_btn .menu_bars > span:nth-child(2) { width: 70%; }

    /* header button replaces the bottom-bar Menu button */
    .mobile-menu-wrapper .menu-button[data-target="#nav-menu"] { display: none; }

    .mob_menu_close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 50%;
        background: transparent;
        color: #fff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
    }
    .mob_menu_close:hover { background: var(--color-red, #BD2125); }
    .mobmenu_wrap { position: relative; }
}

/* very small phones: keep only the bars */
@media (max-width: 360px) {
    .mob_menu_btn .menu_label { display: none; }
    .mob_menu_btn { padding: .6rem .7rem; }
}
