/* VL Header Nav Widget */
.vl-header-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 0 5vw !important;
    padding-top: 2vw !important;
    background: transparent !important;
}

/* Push header below WP admin bar when logged in */
.admin-bar .vl-header-container {
    top: 32px !important;
}

.vl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 5.625vw;
    padding: 0;
}

.vl-header-left {
    display: flex;
    align-items: center;
}

.vl-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.vl-header-right {
    display: flex;
    align-items: center;
    gap: 1vw;
}

/* Star logo box */
.vl-header-star-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3vw;
    height: 3vw;
    background-color: #222;
    flex-shrink: 0;
}

.vl-header-star {
    width: 4vw;
    height: 2.25vw;
    will-change: transform;
}

/* Hamburger button */
.vl-burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65vw;
    background: none !important;
    border: none;
    padding: 0.8vw 0 !important;
    width: 2.16vw !important;
    min-width: 2.16vw !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    z-index: 10000;
    pointer-events: all;
}

.vl-burger span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    min-height: 2px !important;
    background-color: #201e1d !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    transform-origin: center center;
}

.vl-burger:hover,
.vl-burger:focus,
.vl-burger:active {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* X close state */
.vl-burger.is-active span:nth-child(1) {
    transform: translateY(calc(0.65vw + 2px)) rotate(45deg);
}

.vl-burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.vl-burger.is-active span:nth-child(3) {
    transform: translateY(calc(-0.65vw - 2px)) rotate(-45deg);
}

/* RESERVE button */
.navigation-top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #222222;
    color: #ece5d5;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1vw;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 3vw;
    width: 10vw;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1);
    pointer-events: all;
    border: none;
    outline: none;
    isolation: isolate;
}

.navigation-top-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background: #b28571;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),
                border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);
    z-index: -1;
}

.navigation-top-button:hover::after {
    transform: translateY(0);
    border-radius: 0;
}

/* SVG Overlay (curtain transition) */
.vl-svg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.vl-svg-overlay svg {
    width: 100%;
    height: 100%;
}

/* Navigation overlay */
.vl-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #ece5d5;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 5vw;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.vl-nav-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Nav links wrapper — fills available space, distributes links evenly */
.vl-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 8vh 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Nav links — text-roll hover effect */
.vl-nav-overlay .vl-nav-link {
    display: block;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Fixed height = font-size × line-height so second span is fully clipped */
    font-size: clamp(24px, 5vw, 96px);
    line-height: 1.3;
    height: 1.3em;
}

.vl-nav-overlay .vl-nav-link .vl-nav-text {
    display: block;
    font-family: 'TanPearl', sans-serif;
    font-size: inherit;
    font-weight: 400;
    color: #222222;
    text-transform: uppercase;
    margin: 0;
    line-height: inherit;
    transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Second span: positioned absolutely below the first */
.vl-nav-overlay .vl-nav-link .vl-nav-text:nth-child(2) {
    position: absolute;
    top: 100%;
    left: 0;
}

/* Hover: both spans roll up */
.vl-nav-overlay .vl-nav-link:hover .vl-nav-text:nth-child(1) {
    transform: translateY(-100%);
}

.vl-nav-overlay .vl-nav-link:hover .vl-nav-text:nth-child(2) {
    transform: translateY(-100%);
}

/* Open state: staggered entrance — delays set dynamically via JS */
.vl-nav-overlay.is-open .vl-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .vl-burger {
        width: 4vw !important;
        min-width: 4vw !important;
        gap: 1.2vw;
    }

    .vl-burger.is-active span:nth-child(1) {
        transform: translateY(calc(1.2vw + 2px)) rotate(45deg);
    }

    .vl-burger.is-active span:nth-child(3) {
        transform: translateY(calc(-1.2vw - 2px)) rotate(-45deg);
    }

    .vl-header-star-box {
        width: 5.5vw;
        height: 5.5vw;
    }

    .vl-header-star {
        width: 6vw;
        height: 3.4vw;
    }

    .navigation-top-button {
        height: 5.5vw;
        width: 18vw;
        font-size: 1.8vw;
    }

    .vl-header-right {
        gap: 1.5vw;
    }

    .vl-nav-overlay .vl-nav-link {
        font-size: clamp(20px, 7.5vw, 72px);
    }

    .vl-nav-links {
        padding: 12vh 0;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .vl-header-inner {
        height: 18vw;
    }

    .vl-burger {
        width: 6vw !important;
        min-width: 6vw !important;
        gap: 1.5vw;
    }

    .vl-burger.is-active span:nth-child(1) {
        transform: translateY(calc(1.5vw + 2px)) rotate(45deg);
    }

    .vl-burger.is-active span:nth-child(3) {
        transform: translateY(calc(-1.5vw - 2px)) rotate(-45deg);
    }

    .vl-header-star-box {
        width: 9vw;
        height: 9vw;
    }

    .vl-header-star {
        width: 10vw;
        height: 5.6vw;
    }

    .navigation-top-button {
        height: 9vw;
        width: 29vw;
        font-size: 2.5vw;
    }

    .vl-nav-overlay .vl-nav-link {
        font-size: clamp(18px, 10vw, 48px);
    }

    .vl-nav-links {
        padding: 15vh 0;
    }
}
