/* ── Dark Opacity Overlay ───────────────────────────────────────── */
.fullscreen-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 850;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--fn-ease);
}
.fullscreen-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}
/*
 * Fullscreen Navigation Styles
 * File: assets/css/fullscreen-nav.css
 * ─────────────────────────────────────────────────────────────────────
 */

:root {
    --fn-bg:          #3d1020;
    --fn-text:        #e8d5d5;
    --fn-close:       #c0504a;
    --fn-duration:    0.65s;
    --fn-ease:        cubic-bezier(0.76, 0, 0.24, 1);

    /* Per-item hover colours — override in your theme if needed */
    --fn-hover-1:  #EAA93D;
    --fn-hover-2:  #C03441;
    --fn-hover-3:  #F283B4;
    --fn-hover-4:  #85A6D7;
    --fn-hover-5:  #85A6D7;
    --fn-hover-6:  #D89CC6;
    --fn-hover-7:  #F15D28;
    --fn-hover-8:  #C03441;
    --fn-hover-9:  #C03441;
    --fn-hover-10:  #EAA93D;
}

/* ── Hamburger ─────────────────────────────────────────────────────── */

.fullscreen-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 42px;
}

.fullscreen-hamburger span {
    display: block;
    height: 2px !important;
    background: var(--fn-text);
    border-radius: 2px;
    transition: opacity 0.4s var(--fn-ease),
                transform 0.4s var(--fn-ease);
}

.fullscreen-hamburger span:nth-child(1) { width: 48px; }
.fullscreen-hamburger span:nth-child(2) { width: 48px; }
.fullscreen-hamburger span:nth-child(3) { width: 48px; }

/* Hide hamburger lines while menu is open */
.fullscreen-hamburger.is-active span:nth-child(1),
.fullscreen-hamburger.is-active span:nth-child(2),
.fullscreen-hamburger.is-active span:nth-child(3) {
    opacity: 0;
    transform: scaleX(0);
}

/* ── Overlay ───────────────────────────────────────────────────────── */

.fullscreen-nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform var(--fn-duration) var(--fn-ease);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.fullscreen-nav-overlay.is-open {
    transform: translateX(0);
    background: transparent;
}

/* Depth/atmosphere radial gradients */
.fullscreen-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #31131B;
    transform: translateX(28vw);
}

/* Vertical line on left edge */
.fullscreen-nav-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(200,150,170,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

.fullscreen-nav-overlay.is-open::after {
    opacity: 1;
}

/* ── Close button ──────────────────────────────────────────────────── */

body.admin-bar .fullscreen-close-btn {
    top: calc(18px + 32px);;
}

.fullscreen-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fn-close);
    line-height: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.fullscreen-close-btn:hover { color: var(--fn-text); }

.fullscreen-nav-overlay.is-open .fullscreen-close-btn {
    opacity: 1;
    transform: rotate(0deg);
    transition:
        opacity   0.3s ease 0.4s,
        transform 0.4s var(--fn-ease) 0.3s,
        color     0.2s ease;
}

/* ── Inner layout ──────────────────────────────────────────────────── */

.fullscreen-nav-inner {
    width: 100%;
    height: 100%;
    padding: 0 0 0 33vw;
    display: flex;
    align-items: center;
    gap: 6vw;
    position: relative;
    z-index: 1;
}

/* ── Main menu <ul> ────────────────────────────────────────────────── */

.fullscreen-nav-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 50%;
}

/* Each top-level <li> */
.fullscreen-nav-main > li {
    overflow: hidden;
    line-height: 1;
    position: relative; /* Needed for submenu absolute positioning */
}

.fullscreen-nav-main > li.submenu-open {
    overflow: visible;
}

/* Top-level links */
.fullscreen-nav-main > li > a {
    display: block;
    font-family: 'Denton Condensed Light', sans-serif;
    font-weight: 300;
    font-size: 6vh;
    color: #C03441;
    text-decoration: none;
    line-height: 1.25;
    padding: 4px 0;
    white-space: nowrap;

    /* Hidden until overlay opens */
    transform: translateY(110%);
    transition:
        transform   0.6s var(--fn-ease),
        font-style  0.3s ease;
    will-change: transform;
}



/* Staggered entrance for each <li> */
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(1) > a { transform: translateY(0); transition-delay: 0.18s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(2) > a { transform: translateY(0); transition-delay: 0.23s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(3) > a { transform: translateY(0); transition-delay: 0.28s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(4) > a { transform: translateY(0); transition-delay: 0.33s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(5) > a { transform: translateY(0); transition-delay: 0.38s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(6) > a { transform: translateY(0); transition-delay: 0.43s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(7) > a { transform: translateY(0); transition-delay: 0.48s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(8) > a { transform: translateY(0); transition-delay: 0.53s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(9) > a { transform: translateY(0); transition-delay: 0.58s; }
.fullscreen-nav-overlay.is-open .fullscreen-nav-main > li:nth-child(10) > a { transform: translateY(0); transition-delay: 0.63s; }

.fullscreen-nav-main > li > a:hover,
.fullscreen-nav-main > li > a:focus,
.fullscreen-nav-main > li > a.sub-is-open {
    color: #F4ECE6 !important; 
}

/* Hover colours + italic per item
.fullscreen-nav-main > li:nth-child(1) > a:hover,
.fullscreen-nav-main > li:nth-child(1) > a:focus,
.fullscreen-nav-main > li:nth-child(1) > a.sub-is-open { color: var(--fn-hover-1); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(2) > a:hover,
.fullscreen-nav-main > li:nth-child(2) > a:focus,
.fullscreen-nav-main > li:nth-child(2) > a.sub-is-open { color: var(--fn-hover-2); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(3) > a:hover,
.fullscreen-nav-main > li:nth-child(3) > a:focus,
.fullscreen-nav-main > li:nth-child(3) > a.sub-is-open { color: var(--fn-hover-3); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(4) > a:hover,
.fullscreen-nav-main > li:nth-child(4) > a:focus,
.fullscreen-nav-main > li:nth-child(4) > a.sub-is-open { color: var(--fn-hover-4); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(5) > a:hover,
.fullscreen-nav-main > li:nth-child(5) > a:focus,
.fullscreen-nav-main > li:nth-child(5) > a.sub-is-open { color: var(--fn-hover-5); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(6) > a:hover,
.fullscreen-nav-main > li:nth-child(6) > a:focus,
.fullscreen-nav-main > li:nth-child(6) > a.sub-is-open { color: var(--fn-hover-6); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(7) > a:hover,
.fullscreen-nav-main > li:nth-child(7) > a:focus,
.fullscreen-nav-main > li:nth-child(7) > a.sub-is-open { color: var(--fn-hover-7); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(8) > a:hover,
.fullscreen-nav-main > li:nth-child(8) > a:focus,
.fullscreen-nav-main > li:nth-child(8) > a.sub-is-open { color: var(--fn-hover-8); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(9) > a:hover,
.fullscreen-nav-main > li:nth-child(9) > a:focus,
.fullscreen-nav-main > li:nth-child(9) > a.sub-is-open { color: var(--fn-hover-9); font-family: 'Denton Condensed Light Italic', serif; }

.fullscreen-nav-main > li:nth-child(10) > a:hover,
.fullscreen-nav-main > li:nth-child(10) > a:focus,
.fullscreen-nav-main > li:nth-child(10) > a.sub-is-open { color: var(--fn-hover-10); font-family: 'Denton Condensed Light Italic', serif; }
 */

/* Active / current page highlight */
.fullscreen-nav-main > li.current-menu-item > a,
.fullscreen-nav-main > li.current-menu-ancestor > a {
    font-family: 'Denton Condensed Light Italic', serif;
    opacity: 0.9;
}

.fullscreen-nav-main > li > a.sub-is-open {
    transition:
        transform 0.5s cubic-bezier(0.6, 0.05, 0.2, 1),
        color 0.4s cubic-bezier(0.6, 0.05, 0.2, 1),
        font-style 0.4s cubic-bezier(0.6, 0.05, 0.2, 1);
    will-change: transform, color, font-style;
}

.fullscreen-nav-main > li > a:hover,
.fullscreen-nav-main > li > a:focus,
.fullscreen-nav-main > li > a.sub-is-open {
    transform: translateX(32px);
}

/* ── Sub-menu panel (.nav-sub) ─────────────────────────────────────── */
/*
 * The walker outputs sub-menus as <div class="nav-sub"> inside each
 * top-level <li>, then positions them absolutely beside the main list.
 */


.nav-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    /*left: calc(100% + 3.5vw);*/
    left: 70%;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 400px;
    z-index: 10;
    transition:
        opacity    0.35s ease,
        visibility 0s linear 0.35s;
}

.nav-sub.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
    transition:
        opacity    0.35s ease,
        visibility 0s linear 0s;
}

.nav-sub a {
    font-family: 'Denton Condensed Light', sans-serif;
    font-weight: 300;
    font-size: 4vh;
    color: #fff;
    text-decoration: none;
    line-height:120%;
    padding-left: 5vw;
    opacity: 0.7;
    transition:
        color         0.05s ease,
        opacity       0.2s ease;
    margin-bottom: 15px;
}

.nav-sub a:hover,
.nav-sub a:focus {
    color: #fff;
    opacity: 1;
}

.menu-item.page-item-93 .nav-sub {
    margin-top: 10vh;
}

/* ── Fallback message (admins only, no menu assigned) ─────────────── */

.fullscreen-nav-fallback {
    color: var(--fn-text);
    font-family: 'Denton Condensed Light', sans-serif;
    font-size: 18px;
    opacity: 0.6;
    padding-left: 12vw;
}

.fullscreen-nav-fallback a {
    color: var(--fn-hover-3);
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media ( max-width: 1500px ) {
    .fullscreen-nav-overlay::before {
        transform: translateX(22vw);
    }
    .fullscreen-nav-inner {
        padding: 0 0 0 28vw;
    }
    .nav-sub {
        /*left: calc(100% + 3vw); */
    }
}

@media ( max-width: 1200px ) {
    .nav-sub {
        /*left: calc(100% + 4.25vw) !important; */
        left: 95% !important;
    }
}

@media ( max-width: 990px ) {
    .nav-sub {
        /*left: calc(100% + 4vw) !important; */
    }
    #sub-3972 {
        transform: translateY(0%) !important;
    }
}

@media ( max-width: 990px ) {

    .fullscreen-nav-backdrop.is-visible {
        background: #31131B;
        opacity: 1;
    }

    .nav-sub.is-visible {
        max-height: 100%; 
    }

    .fullscreen-nav-main {
        width: 100% !important;
    }

    .fullscreen-nav-overlay {
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .fullscreen-nav-overlay::before {
        transform: translateX(0vw);
    }

    .fullscreen-nav-inner {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 0 40px 60px;
        align-items: flex-start;
        box-sizing: border-box;
    }

    .fullscreen-nav-main > li {
        overflow: visible;
    }

    .fullscreen-nav-main > li > a {
        font-size: 7vh;
    }

    .nav-sub {
        position: static;
        left: auto !important;
        top: auto;
        transform: none;
        min-width: 0;
        max-height: 0;
        margin: 0px;
        padding-left: 20px;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            visibility 0s linear 0.3s;
    }

    .nav-sub.is-visible {
        max-height: 70vh;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition:
            max-height 0.35s ease,
            opacity 0.2s ease,
            visibility 0s linear 0s;
    }

    .nav-sub a {
        padding-left: 0;
        font-size: clamp(28px, 6vw, 30px) !important;
        line-height: 1.35;
        margin-bottom: 0px !important;
    }

    .menu-item.page-item-93 .nav-sub {
        margin-top: 0px;
    }
}

@media ( max-width: 767px ) {
    .fullscreen-nav-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .fullscreen-nav-main > li > a {
        font-size: 10vw;
    }
}

@media ( max-width: 575px ) {
    .fullscreen-nav-overlay::before {
        transform: translateX(0vw);
    }

    .fullscreen-nav-inner {
        padding: 88px 0 26px 10vw;
    }

    .fullscreen-nav-main > li > a {
        font-size: 10vw;
    }
}

@media ( max-width: 460px ) {
    .fullscreen-nav-main > li > a {
        font-size: 10vw;
    }
}

/*
@media ( max-width: 600px ) {
    .fullscreen-nav-inner {
        padding-left: 8vw;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .nav-sub {
        position: static;
        transform: none;
        margin-top: 8px;
        margin-left: 2vw;
        padding-left: 12px;
        border-left: 1px solid rgba(200,150,170,0.25);
    }

    .nav-sub.is-visible {
        transform: none;
    }
}
    */
