/* ==========================================================================
   Custom Mobile Menu — Structural Styles
   ========================================================================== */

/* ── Hamburger Trigger ─────────────────────────────────────────────── */
.elementor-widget-vmm_mobile_menu .elementor-widget-container {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    line-height: 0;
}

.vmm-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background-color 0.25s ease;
    border-radius: 5px;
}

.vmm-trigger span {
    display: block;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s ease;
    transform-origin: center;
}

.vmm-trigger.is-active span:nth-child(1) {
    transform: translateY(var(--vmm-offset, 6px)) rotate(45deg);
}
.vmm-trigger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.vmm-trigger.is-active span:nth-child(3) {
    transform: translateY(calc(-1 * var(--vmm-offset, 6px))) rotate(-45deg);
}

/* ── Overlay — fullscreen, top: 0 ──────────────────────────────────── */
.vmm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    background: transparent !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity  0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.35s;
}

.vmm-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
    background: transparent !important;
    transition: opacity  0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}

/* ── Menu panel (white sheet) ───────────────────────────────────────── */
.vmm-panel-wrap {
    display: flex;
    flex-direction: column;
    width: 85%;
    max-width: 420px;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 0 16px 16px 0;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* ── Backdrop ───────────────────────────────────────────────────────── */
.vmm-backdrop {
    flex: 1;
    background: #1A1A1ACC;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
}

/* ── Close button ───────────────────────────────────────────────────── */
.vmm-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.vmm-close-btn:hover { opacity: 1; }
.vmm-close-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

/* ── Logo inside menu ───────────────────────────────────────────────── */
.vmm-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 28px 24px 12px;
}
.vmm-logo-wrap img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* ── Working hours block ────────────────────────────────────────────── */
.vmm-hours-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 20px;
}
.vmm-hours-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid #DBDBD6;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    background: #FBFBF9;
}

/* ── Viewport & Panels ──────────────────────────────────────────────── */
.vmm-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.vmm-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.vmm-panel.is-active {
    transform: translateX(0);
    pointer-events: all;
}

.vmm-panel.slide-out-left {
    transform: translateX(-28%);
    pointer-events: none;
}

/* ── Submenu screen ─────────────────────────────────────────────────── */
.vmm-submenu-panel-screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    background: #ffffff;
}

.vmm-submenu-panel-screen.is-active {
    transform: translateX(0);
    pointer-events: all;
}

/* ── Back button ────────────────────────────────────────────────────── */
.vmm-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent !important;
    border: none;
    border-bottom: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.vmm-back-btn:hover,
.vmm-back-btn:focus {
    background: transparent !important;
}

.vmm-back-icon {
    font-size: 1.2em;
    line-height: 1;
}

/* ── Menu lists ─────────────────────────────────────────────────────── */
.vmm-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vmm-menu-item,
.vmm-submenu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    position: relative;
}

/* Item with submenu: link + arrow sit inline, centered together */
.vmm-menu-item > a,
.vmm-submenu-item > a {
    flex: unset;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Arrow — shown inline next to link text, rotated to point down */
.vmm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transform: rotate(90deg); /* › rotated = ˅ */
    font-size: 1.1em;
}

/* Hidden data container for submenu items */
.vmm-submenu-panel {
    display: none;
}

/* ── Language Switcher ──────────────────────────────────────────────── */
.vmm-lang-switcher {
    margin-top: auto;
}

.vmm-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.vmm-lang-item a {
    text-decoration: none;
    display: block;
}

.vmm-lang-item.vmm-lang-active a,
.vmm-lang-item.current-menu-item a {
    font-weight: 600;
}

/* ── CTA ────────────────────────────────────────────────────────────── */
.vmm-cta-wrap {
    flex-shrink: 0;
    border-top: 1px solid;
}

.vmm-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Body scroll lock ───────────────────────────────────────────────── */
body.vmm-open {
    overflow: hidden;
}

/* ── Stagger animation ──────────────────────────────────────────────── */
.vmm-overlay.is-open .vmm-menu-item {
    animation: vmmFadeUp 0.35s both;
}
.vmm-overlay.is-open .vmm-menu-item:nth-child(1) { animation-delay: 0.05s; }
.vmm-overlay.is-open .vmm-menu-item:nth-child(2) { animation-delay: 0.09s; }
.vmm-overlay.is-open .vmm-menu-item:nth-child(3) { animation-delay: 0.13s; }
.vmm-overlay.is-open .vmm-menu-item:nth-child(4) { animation-delay: 0.17s; }
.vmm-overlay.is-open .vmm-menu-item:nth-child(5) { animation-delay: 0.21s; }
.vmm-overlay.is-open .vmm-menu-item:nth-child(6) { animation-delay: 0.25s; }
.vmm-overlay.is-open .vmm-lang-switcher          { animation: vmmFadeUp 0.35s 0.28s both; }

@keyframes vmmFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Misc ───────────────────────────────────────────────────────────── */
.vmm-no-menu { padding: 24px; font-size: 12px; opacity: 0.6; }

.vmm-trigger:focus-visible,
.vmm-back-btn:focus-visible,
.vmm-cta-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
