/**
 * Modify Nav Menu — Frontend Styles
 * v1.0.0
 */

/* ── Base Reset ───────────────────────────────── */
.mnm-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    /* justify-content controlled by Elementor widget */
}
.mnm-wrap * { box-sizing: border-box; }
.mnm-wrap a { text-decoration: none; }

/* ── Burger Wrap (for positioning) ────────────── */
.mnm-burger-wrap {
    display: flex;
    width: 100%;
    /* justify-content controlled by Elementor widget */
}

/* ── Flat Menu ────────────────────────────────── */
.mnm-flat-menu {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    /* flex and justify-content controlled by Elementor widget */
}

.mnm-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mnm-txt {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.mnm-img {
    flex-shrink: 0;
    object-fit: cover;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: opacity 0.25s ease;
}

/* ── Image Positions ──────────────────────────── */

/* First (default) — image left, text right: row */
.mnm-pos--first .mnm-item { flex-direction: row; }
.mnm-pos--first .mnm-ov-item { flex-direction: row; }

/* Last — text left, image right: row-reverse */
.mnm-pos--last .mnm-item { flex-direction: row-reverse; }
.mnm-pos--last .mnm-ov-item { flex-direction: row-reverse; }

/* Above — image on top: column */
.mnm-pos--above .mnm-item { flex-direction: column; align-items: center; }
.mnm-pos--above .mnm-ov-item { flex-direction: column; align-items: center; }

/* Below — image on bottom: column-reverse */
.mnm-pos--below .mnm-item { flex-direction: column-reverse; align-items: center; }
.mnm-pos--below .mnm-ov-item { flex-direction: column-reverse; align-items: center; }

/* Behind — image as absolute bg */
.mnm-pos--behind .mnm-item { position: relative; overflow: hidden; }
.mnm-pos--behind .mnm-ov-item { position: relative; overflow: hidden; }

.mnm-img--behind {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.mnm-item:hover .mnm-img--behind { opacity: 0.45; }
.mnm-ov-item:hover .mnm-img--behind { opacity: 0.4; }

.mnm-txt--above,
.mnm-pos--behind .mnm-txt,
.mnm-pos--behind .mnm-ov-txt {
    position: relative;
    z-index: 1;
}

/* ── Text only: hide images ───────────────────── */
.mnm-show--text .mnm-img,
.mnm-show--text .mnm-ov-img { display: none !important; }

/* ── Image only: hide text ────────────────────── */
.mnm-show--img .mnm-txt,
.mnm-show--img .mnm-ov-txt { display: none !important; }

/* ── Hover: Underline ─────────────────────────── */
.mnm-hover--underline .mnm-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #e94560;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.mnm-hover--underline .mnm-item:hover::after,
.mnm-hover--underline .mnm-item.mnm-active::after {
    transform: scaleX(1);
}

/* ── Hover: Overline ──────────────────────────── */
.mnm-hover--overline .mnm-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #e94560;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.mnm-hover--overline .mnm-item:hover::after,
.mnm-hover--overline .mnm-item.mnm-active::after {
    transform: scaleX(1);
}

/* ── Hover: Background ────────────────────────── */
.mnm-hover--background .mnm-item {
    transition: background-color 0.25s ease;
}
.mnm-hover--background .mnm-item:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ── Hover: Scale ─────────────────────────────── */
.mnm-hover--scale .mnm-item {
    transition: transform 0.25s ease;
}

/* ── Hover: Fade ──────────────────────────────── */
.mnm-hover--fade .mnm-item { opacity: 0.6; transition: opacity 0.25s ease; }
.mnm-hover--fade .mnm-item:hover,
.mnm-hover--fade .mnm-item.mnm-active { opacity: 1; }

/* ── Active State ─────────────────────────────── */
.mnm-item.mnm-active .mnm-txt { color: #ffffff; }

/* ── Hamburger Button ─────────────────────────── */
.mnm-burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000000;
}

.mnm-burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.mnm-burger-toggle.mnm-open .mnm-burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mnm-burger-toggle.mnm-open .mnm-burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mnm-burger-toggle.mnm-open .mnm-burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Display mode: hamburger only */
.mnm-display--hamburger .mnm-flat-menu { display: none !important; }
.mnm-display--hamburger .mnm-burger-wrap { display: flex; }
.mnm-display--flat .mnm-burger-wrap { display: none !important; }
.mnm-display--flat .mnm-flat-menu { display: flex; flex: 1 1 100%; }

/* ── Fullscreen Overlay (appended to body by JS) ──── */
.mnm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mnm-overlay.mnm-overlay-open {
    opacity: 1;
    visibility: visible;
}

.mnm-overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000001;
}

.mnm-overlay-close .mnm-burger-line {
    position: absolute;
    width: 22px;
}
.mnm-overlay-close .mnm-burger-line:first-child { transform: rotate(45deg); }
.mnm-overlay-close .mnm-burger-line:last-child { transform: rotate(-45deg); }

.mnm-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Overlay Items ────────────────────────────── */
.mnm-ov-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(12px);
}

.mnm-overlay.mnm-overlay-open .mnm-ov-item {
    opacity: 1;
    transform: translateY(0);
}

.mnm-ov-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.mnm-ov-txt {
    font-size: 18px;
    color: rgba(255,255,255,0.72);
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.mnm-ov-item:hover .mnm-ov-txt {
    color: #e94560;
}

/* Behind mode for overlay items */
.mnm-pos--behind .mnm-ov-item {
    border-radius: 8px;
    min-width: 200px;
    justify-content: center;
}

/* ── Body scroll lock when overlay open ───────── */
body.mnm-overlay-active {
    overflow: hidden !important;
}

/* ── Print ────────────────────────────────────── */
@media print {
    .mnm-burger-toggle,
    .mnm-overlay { display: none !important; }
    .mnm-flat-menu { display: flex !important; }
}
