/* ============================================================
   Premium Navigation Overlay  — nav-overlay.css
   "Page pan" effect: content tilts/scales away, overlay slides in
   ============================================================ */

/* Hard-reset any inherited colours inside the dark overlay */
.fs-nav-overlay,
.fs-nav-overlay * {
    color: inherit;
    box-sizing: border-box;
}

/* ---------- Hamburger trigger button bars ---------- */
.hamburger-link {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 36px;
    height: 44px; /* Slightly taller to accommodate padding and bars comfortably */
    padding: 0 0 10px 0 !important; /* Match the 10px bottom padding on other menu links */
    cursor: pointer;
    position: relative;
    overflow: visible !important;
    margin-top: 0 !important; 
}

/* Remove margin-right from the last menu item (the hamburger) */
.header-area .main-header-area .main-menu ul li:last-child {
    margin-right: 0 !important;
}

.hamburger-link::before {
    display: none !important; /* suppress the nav underline pseudo-element */
}

.hbg-bar {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
                opacity   0.3s ease,
                width     0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.hbg-bar:nth-child(1) { width: 26px; }
.hbg-bar:nth-child(2) { width: 18px; }
.hbg-bar:nth-child(3) { width: 22px; }

/* Active (X) state */
.hamburger-link.is-open .hbg-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
}
.hamburger-link.is-open .hbg-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-link.is-open .hbg-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
}

.hamburger-link:hover .hbg-bar {
    background: #b8c538;
}

/* ---------- Page-pan wrapper ----------
   Wraps all body content except <header> and the overlay.
   perspective here is safe — it doesn't affect position:fixed in sibling <header>. */
#page-wrap {
    perspective: 1800px;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
                filter    0.7s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: left center;
    will-change: transform;
    position: relative;
    z-index: 1;
}

/* When nav is open, slide & tilt the page content to the left */
body.nav-open #page-wrap {
    transform: translateX(-38%) scale(0.82);
    filter: brightness(0.55) blur(2px);
    pointer-events: none; /* prevent clicks behind overlay */
}

/* Header stays in place (no transform — it contains position:fixed children
   which would break if we transformed the header element itself) */

/* ---------- Full-screen overlay shell ---------- */
.fs-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;          /* slides in from right */
    height: 100vh;
    max-height: 100vh;
    z-index: 9999;
    display: flex;
    overflow: hidden;
    visibility: hidden;
    transition: width  0.7s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s linear 0.7s;
    background: transparent;
}

.fs-nav-overlay.is-open {
    width: 100%;
    visibility: visible;
    transition: width 0.7s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0s linear 0s;
}

/* ---------- Left image strip (40 %) ---------- */
.fs-nav-visual {
    position: relative;
    flex: 0 0 40%;
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.75s cubic-bezier(0.77, 0, 0.175, 1) 0.1s;
}

.fs-nav-overlay.is-open .fs-nav-visual {
    clip-path: inset(0 0 0 0%);
}

.fs-nav-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 1.2s ease;
}

.fs-nav-overlay.is-open .fs-nav-img {
    transform: scale(1);
}

.fs-nav-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}

.fs-nav-tagline {
    position: absolute;
    bottom: 50px;
    left: 40px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s;
}

.fs-nav-overlay.is-open .fs-nav-tagline {
    opacity: 1;
    transform: translateY(0);
}

.fs-nav-tagline span {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #b8c538;
    margin-bottom: 8px;
    font-weight: 600;
}

.fs-nav-tagline p {
    font-size: 22px;
    font-family: "Playfair Display", serif;
    line-height: 1.4;
    margin: 0;
}

/* ---------- Right content panel (60 %) ---------- */
.fs-nav-content {
    flex: 0 0 60%;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.2s,
                opacity   0.6s ease                             0.2s;
}

.fs-nav-overlay.is-open .fs-nav-content {
    transform: translateX(0);
    opacity: 1;
}

/* ---------- Close button (X) in content panel ---------- */
.fs-nav-close {
    position: absolute;
    top: 40px;
    right: 50px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}

.fs-nav-close:hover {
    background: #b8c538;
    border-color: #b8c538;
}

.fs-nav-close span {
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
}
.fs-nav-close span:first-child  { transform: rotate(45deg); }
.fs-nav-close span:last-child   { transform: rotate(-45deg); }

/* ---------- Navigation links ---------- */
.fs-nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-nav-links ul li {
    overflow: hidden;         /* clip each link's slide-up */
    margin-bottom: 4px;
}

.fs-nav-links ul li a {
    display: flex;
    align-items: baseline;
    gap: 20px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1),
                opacity   0.55s ease;
}

/* Stagger delay for each link */
.fs-nav-links ul li:nth-child(1) a { transition-delay: 0.30s; }
.fs-nav-links ul li:nth-child(2) a { transition-delay: 0.35s; }
.fs-nav-links ul li:nth-child(3) a { transition-delay: 0.40s; }
.fs-nav-links ul li:nth-child(4) a { transition-delay: 0.45s; }
.fs-nav-links ul li:nth-child(5) a { transition-delay: 0.50s; }
.fs-nav-links ul li:nth-child(6) a { transition-delay: 0.55s; }
.fs-nav-links ul li:nth-child(7) a { transition-delay: 0.60s; }
.fs-nav-links ul li:nth-child(8) a { transition-delay: 0.65s; }
.fs-nav-links ul li:nth-child(9) a { transition-delay: 0.70s; }

.fs-nav-overlay.is-open .fs-nav-links ul li a {
    transform: translateY(0);
    opacity: 1;
}

.fs-nav-links ul li a em {
    font-style: normal;
    font-size: 11px;
    color: #b8c538;
    letter-spacing: 2px;
    min-width: 26px;
    font-weight: 600;
}

.fs-nav-links ul li a span {
    font-size: clamp(22px, 3.5vw, 38px);
    font-family: "Playfair Display", serif;
    color: #e8e8e8 !important;
    font-weight: 400;
    transition: color 0.3s, letter-spacing 0.3s;
}

.fs-nav-links ul li a:hover span {
    color: #b8c538 !important;
    letter-spacing: 2px;
}

/* Force all direct link text to be visible against dark bg */
.fs-nav-content a,
.fs-nav-content button,
.fs-nav-links a,
.fs-nav-links a:visited {
    color: #e8e8e8;
}

/* ---------- Footer row (contact + social) ---------- */
.fs-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s;
}

.fs-nav-overlay.is-open .fs-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.fs-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fs-nav-contact a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}
.fs-nav-contact a:hover { color: #fff; }
.fs-nav-contact a i { margin-right: 8px; color: #b8c538; }

.fs-nav-social {
    display: flex;
    gap: 16px;
}

.fs-nav-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.fs-nav-social a:hover {
    background: #b8c538;
    border-color: #b8c538;
    color: #fff;
}

/* ---------- Navbar Alignment Fix ---------- */
.header-area .main-header-area .main-menu ul {
    display: flex !important;
    align-items: center !important;
}
#navigation-left {
    justify-content: flex-end;
}
#navigation-right {
    justify-content: flex-start;
}
.header-area .main-header-area .main-menu ul li {
    display: flex !important;
    align-items: center !important;
}
.header-area .main-header-area .main-menu ul li a {
    display: inline-flex !important;
    align-items: center !important;
}

/* ---------- Hide the old slicknav mobile dropdown ---------- */
.slicknav_menu { display: none !important; }

/* ---------- Mobile nav bar (hamburger row at bottom of header) ---------- */
.mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    background: transparent;
}

/* Make the mobile hamburger bars slightly larger for easier tapping */
.hamburger-link-mobile {
    width: 44px !important;
    height: 44px !important;
    gap: 6px !important;
}

.hamburger-link-mobile .hbg-bar:nth-child(1) { width: 28px; }
.hamburger-link-mobile .hbg-bar:nth-child(2) { width: 20px; }
.hamburger-link-mobile .hbg-bar:nth-child(3) { width: 24px; }

/* When open — transform to X */
.hamburger-link-mobile.is-open .hbg-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 26px;
}
.hamburger-link-mobile.is-open .hbg-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-link-mobile.is-open .hbg-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 26px;
}

/* ---------- Responsive — Tablet & below (< 992 px) ---------- */
@media (max-width: 991px) {
    .fs-nav-visual { display: none; }

    .fs-nav-content {
        flex: 0 0 100%;
        padding: 50px 35px 30px;
    }

    .fs-nav-links ul li a span {
        font-size: 28px;
    }

    /* Subtler pan on mobile so logo is still visible */
    body.nav-open #page-wrap {
        transform: translateX(-60%) scale(0.86);
        filter: brightness(0.5) blur(1px);
    }
}

/* ---------- Small phones (< 576 px) ---------- */
@media (max-width: 575px) {
    .fs-nav-close { top: 25px; right: 25px; }
    .fs-nav-footer { flex-direction: column; gap: 20px; align-items: flex-start; }

    .fs-nav-links ul li a span {
        font-size: 24px;
    }

    body.nav-open #page-wrap {
        transform: translateX(-70%) scale(0.84);
    }
}
