/* =========================================================
   Meniu mobil propriu – panou lateral
   GeneratePress Child – Servicii-IT PRO
   ========================================================= */
.pd-mm,
.pd-mm__overlay { display: none; }

@media (max-width: 768px) {

    /* meniul GeneratePress nu se mai folosește pe mobil */
    #site-navigation .main-nav { display: none !important; }

    .pd-mm__overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99998;
        background: rgba(4, 20, 35, .55);
        opacity: 0;
        transition: opacity .25s ease;
    }
    .pd-mm__overlay.is-open { opacity: 1; }
    .pd-mm__overlay[hidden] { display: none; }

    body.pd-mm-open { overflow: hidden; }

    .pd-mm {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        width: min(90vw, 360px);
        background: var(--pd-primary, #0b3d6b);
        color: #fff;
        box-shadow: -14px 0 34px rgba(0, 0, 0, .34);
        transform: translateX(102%);
        transition: transform .26s ease;
    }
    .pd-mm.is-open { transform: none; }
    .pd-mm[hidden] { display: none; }

    /* ---------- antet ---------- */
    .pd-mm__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 12px 12px 18px;
        background: var(--pd-primary-dark, #082c4d);
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }
    .pd-mm__brand {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
    }
    .pd-mm__close {
        flex: none;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, .12);
        color: #fff;
        cursor: pointer;
    }
    .pd-mm__close:hover { background: rgba(255, 255, 255, .2); }
    .pd-mm__close:focus-visible,
    .pd-mm__toggle:focus-visible,
    .pd-mm__link:focus-visible,
    .pd-mm__cta:focus-visible,
    .pd-mm__search input:focus-visible,
    .pd-mm__search-btn:focus-visible {
        outline: 3px solid var(--pd-accent, #c9a227);
        outline-offset: -3px;
        box-shadow: inset 0 0 0 5px var(--pd-focus-halo, #082c4d);
    }

    /* ---------- căutare ---------- */
    .pd-mm__search {
        position: relative;
        display: flex;
        gap: 8px;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        background: rgba(0, 0, 0, .12);
    }
    .pd-mm__search svg {
        position: absolute;
        top: 50%;
        left: 28px;
        transform: translateY(-50%);
        color: #6b7280;
        pointer-events: none;
    }
    .pd-mm__search input[type="search"] {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        margin: 0;
        padding: 0 12px 0 38px;
        border: 0;
        border-radius: 8px;
        background: #fff;
        color: #111827;
        font: inherit;
    }
    .pd-mm__search-btn {
        flex: none;
        height: 44px;
        padding: 0 14px;
        border: 0;
        border-radius: 8px;
        background: var(--pd-accent, #c9a227);
        color: var(--pd-primary-dark, #082c4d);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    /* ---------- listă ---------- */
    .pd-mm__nav {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .pd-mm__list,
    .pd-mm__sub {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .pd-mm__item { margin: 0; }
    .pd-mm__row {
        display: flex;
        align-items: stretch;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .pd-mm__link {
        flex: 1 1 auto;
        min-width: 0;
        padding: 14px 18px;
        color: #fff;
        font-size: 16px;
        line-height: 1.35;
        text-decoration: none;
    }
    .pd-mm__link:hover,
    .pd-mm__link:active { background: rgba(255, 255, 255, .08); color: #fff; }
    .pd-mm__ext svg { width: 13px; height: 13px; vertical-align: -1px; opacity: .8; }

    .pd-mm__toggle {
        flex: none;
        display: grid;
        place-items: center;
        width: 58px;
        padding: 0;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .14);
        background: rgba(255, 255, 255, .06);
        color: #fff;
        cursor: pointer;
    }
    .pd-mm__toggle:hover { background: rgba(255, 255, 255, .14); }
    .pd-mm__toggle svg { transition: transform .2s ease; }
    .pd-mm__item.is-open > .pd-mm__row > .pd-mm__toggle svg { transform: rotate(180deg); }

    /* nivelul 2 și 3 */
    .pd-mm__sub { background: rgba(0, 0, 0, .18); }
    .pd-mm__sub .pd-mm__link { padding-left: 34px; font-size: 15px; }
    .pd-mm__sub .pd-mm__sub .pd-mm__link { padding-left: 50px; font-size: 14.5px; }
    .pd-mm__sub[hidden] { display: none; }

    /* pagina curentă */
    .pd-mm__item.is-current > .pd-mm__row {
        background: rgba(255, 255, 255, .1);
        box-shadow: inset 4px 0 0 var(--pd-accent, #c9a227);
    }

    /* ---------- butoane contact ---------- */
    .pd-mm__foot {
        flex: none;
        display: flex;
        gap: 8px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, .14);
        background: var(--pd-primary-dark, #082c4d);
    }
    .pd-mm__cta {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 8px 10px;
        border-radius: 8px;
        background: var(--pd-accent, #c9a227);
        color: var(--pd-primary-dark, #082c4d);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }
    .pd-mm__cta span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pd-mm__cta svg { width: 18px; height: 18px; }
    .pd-mm__cta--light {
        background: rgba(255, 255, 255, .14);
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-mm, .pd-mm__overlay { transition: none !important; }
}
