/* ============================================================
   hamburger-menu.css
   FIXED VERSION
   Static UI + animated content only
   ============================================================ */


/* ── Backdrop ───────────────────────────────────────────────── */
.hm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.hm-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ── Panel ──────────────────────────────────────────────────── */
.hm-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200001;
    width: 100%;
    height: 100%;
    background: #FFFFFF;

    pointer-events: none;
    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.45s;
}

.hm-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;

    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}


@media (min-width: 768px) and (max-width: 1365px) {
    .hm-panel {
        width: 50%;
    }

    .hm-layer-1 .hm-nav ul > li > a {
        font-size: 2.8vw !important;
        line-height: 54px !important;
    }

    .hm-subnav > li > a {
        font-size: 2.8vw !important;
        line-height: 54px !important;
        padding: 0 !important;
    }
}


/* ── Inner card ─────────────────────────────────────────────── */
.hm-card {
    position: absolute;
    left: 20px;
    top: 20px;
    right: 20px;
    bottom: 20px;

    background: color(srgb 0.1 0.69 0.3 / 0.16);
    border-radius: 5px;
    overflow: hidden;
}


/* ── Close button ───────────────────────────────────────────── */
.hm-close {
    position: absolute;
    top: 30px;
    right: 30px;

    width: 24px;
    height: 24px;

    background: none;
    border: none;
    padding: 0;

    cursor: pointer;

    z-index: 9999;

    transform: translateZ(0);
    backface-visibility: hidden;
}

.hm-close::before,
.hm-close::after {
    content: '';

    position: absolute;
    top: 50%;
    left: 50%;

    width: 32px;
    height: 2px;

    background: #4c4c4c;
    border-radius: 2px;

    transform-origin: center;
}

.hm-close::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hm-close::after {
    transform: translate(-50%, -50%) rotate(45deg);
}


/* ============================================================
   LAYER SYSTEM
   ============================================================ */
.hm-layer {
    position: absolute;
    inset: 0;

    overflow-y: auto;
    overflow-x: hidden;

    opacity: 0;
    pointer-events: none;

    z-index: 1;

    transition: opacity 0.35s ease;

    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hm-layer.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}


/* ============================================================
   LAYER 1
   ============================================================ */
.hm-layer-1 {
    padding: 102px 30px 40px 30px;
}


/* nav reset */
.hm-layer-1 .hm-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* ============================================================
   APPLE-STYLE CASCADE — LAYER 1 (UPDATED)
   ============================================================ */

/* ============================================================
   APPLE-STYLE CASCADE — LAYER 1 (MATCH LAYER 2)
   ============================================================ */

.hm-layer-1 .hm-nav ul > li {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(6px);

    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    transition-delay: calc(var(--i, 0) * 0.04s);
    will-change: transform, opacity, filter;
}

.hm-layer-1.is-active .hm-nav ul > li {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* exit state (important for reopening animation reset) */
.hm-layer-1:not(.is-active) .hm-nav ul > li {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
    filter: blur(6px);
}


/* links */
.hm-layer-1 .hm-nav ul > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-family: "Barlow-Bold";
    font-weight: 700;
    font-size: 6.2vw;
    line-height: 48px;
    letter-spacing: -0.02em;
    color: #4c4c4c;
    transition: color 0.22s ease;
}

/* menu-item label */
.hm-layer-1 .hm-nav ul > li > a[data-zok-menu-label] {
    position: relative;
    width: fit-content;
    overflow: visible;
}

.hm-layer-1 .hm-nav ul > li > a[data-zok-menu-label]::before {
    content: attr(data-zok-menu-label);
    position: absolute;
    top: -8px;
    right: -12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding: 3px 6px 4px;
    border-radius: 3px;
    background: #b33092;
    color: #ffffff;
    font-family: "Barlow-Bold", sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}


/* hide WP submenus */
.hm-layer-1 .hm-nav ul > li > .sub-menu {
    display: none !important;
}


/* arrows */
.hm-layer-1 .hm-nav ul > li.menu-item-has-children > a .hm-arrow {
    width: 20px;
    height: 20px;
    margin-left: 16px;
    margin-top: 2px;

    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================================
   LAYER 2
   ============================================================ */
.hm-layer-2 {
    padding: 102px 30px 25px 30px;
}


/* back button */
.hm-back {
    position: absolute;
    top: 35px;
    left: 30px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: none;
    border: none;
    padding: 0;

    cursor: pointer;

    z-index: 9999;

    font-family: 'Barlow-Bold', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    color: #1A1A1A;

    transition: color 0.22s ease;
}


/* back arrow */
.hm-back-arrow {
    width: 20px;
    height: 20px;
    transform: scaleX(-1);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================================
   APPLE-STYLE CASCADE — LAYER 2 (UNCHANGED BUT KEPT)
   ============================================================ */

.hm-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-layer-2 .hm-subnav > li {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    filter: blur(6px);

    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    transition-delay: calc(var(--i, 0) * 0.04s);

    will-change: transform, opacity, filter;
}

.hm-layer-2.is-active .hm-subnav > li {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.hm-layer-2:not(.is-active) .hm-subnav > li {
    opacity: 0;
    transform: translateX(-18px) scale(0.98);
    filter: blur(6px);
}


/* submenu links */
.hm-subnav > li > a {
    display: block;
    text-decoration: none;
    font-family: "Barlow-Bold";
    font-weight: 700;
    font-size: 6.2vw;
    color: #4c4c4c;
    line-height: 8vw;
    letter-spacing: -0.02em;
    transition: color 0.22s ease;
    padding: 8px 0;
}


/* ============================================================
   HOVER STATES (DESKTOP ONLY)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {

    .hm-close:hover::before,
    .hm-close:hover::after {
        background: #b33092;
        transition: background 0.2s ease;
    }

    .hm-layer-1 .hm-nav ul > li > a:hover {
        color: #b33092;
    }

    .hm-layer-1 .hm-nav ul > li.menu-item-has-children > a:hover .hm-arrow {
        transform: translateX(15px);
    }

    .hm-back:hover {
        color: #b33092;
    }

    .hm-back:hover .hm-back-arrow {
        transform: scaleX(-1) translateX(15px);
    }

    .hm-subnav > li > a:hover {
        color: #b33092;
    }
}

/* ── Desktop off ────────────────────────────────────────────── */
@media (min-width: 1366px) {

    .hm-backdrop,
    .hm-panel {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hm-layer-1 .hm-nav ul > li > a[data-zok-menu-label]::before {
		top: -5px;
		right: -20px;
	}
}

@media (max-width: 374px) {
    .hm-layer-1 .hm-nav ul > li > a {
        font-size: 5.5vw;
        letter-spacing: -0.02em;
    }

    .hm-subnav > li > a {
        font-size: 5.5vw;
    }
}
