/* ============================================
   GLOBAL NAVIGATION V3
   Sidenav + Overlay Menu with Photo/Gradient
   ============================================ */

:root {
    --forest: #5A8070;
    --forest-mid: #6E9884;
    --forest-light: #8AB49A;
    --gold-light: #D4BE90;
    --ink: #0C0C0C;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', sans-serif;
    --display: 'Outfit', sans-serif;
}

/* ===========================
   SIDE NAVIGATION
   =========================== */
.sidenav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 72px;
    background: var(--forest);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sidenav-logo {
    width: 48px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.sidenav-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.sidenav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding: 8px;
}

.sidenav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.25s;
}

.sidenav-toggle:hover span {
    background: var(--gold-light);
}

.sidenav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidenav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: color 0.25s, background 0.25s;
}

.sidenav-link:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.08);
}

.sidenav-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidenav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forest-light);
}

.sidenav-dot.active {
    background: var(--gold-light);
}

/* Mobile top header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: var(--forest);
    z-index: 600;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-header img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: white;
}

/* ===========================
   FULL OVERLAY NAV
   =========================== */
.nav-overlay-v3 {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.nav-overlay-v3.is-open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-v3__left {
    background: var(--forest);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 10% 40px;
    position: relative;
}

.nav-overlay-v3__left::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 400px;
    height: 400px;
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    background: rgba(90, 158, 114, 0.15);
    pointer-events: none;
}

.nav-overlay-v3__logo,
.standard-logo {
    height: auto !important;
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 24px;
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
}

.nav-overlay-v3__links {
    list-style: none;
    padding: 0;
}

.nav-overlay-v3__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.25s;
    text-decoration: none;
}

.nav-overlay-v3__link .link-num {
    font-family: var(--sans);
    font-size: 0.65rem;
    color: var(--gold-light);
    letter-spacing: 0.15em;
}

.nav-overlay-v3__link:hover {
    color: var(--gold-light);
}

.nav-overlay-v3__footer {
    margin-top: 40px;
    font-family: var(--sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
}

.nav-overlay-v3__right {
    position: relative;
    overflow: hidden;
    background: #000;
}

.nav-overlay-v3__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(0.65);
}

.nav-overlay-v3__right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--forest) 0%, transparent 40%);
}

.nav-overlay-v3__close {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
}

.nav-overlay-v3__close:hover {
    opacity: 1;
}

/* ===========================
   LAYOUT WRAP
   =========================== */
.page-wrap {
    margin-left: 72px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .sidenav {
        display: none;
    }
    .mobile-header {
        display: flex;
    }
    .page-wrap {
        margin-left: 0;
        padding-top: 56px;
    }
    .nav-overlay-v3 {
        grid-template-columns: 1fr;
    }
    .nav-overlay-v3__right {
        display: none;
    }
    .nav-overlay-v3__left {
        padding: 70px 8% 32px;
    }
}

@media (max-width: 768px) {
    .nav-overlay-v3__link {
        font-size: clamp(1.4rem, 7vw, 2rem);
        padding: 9px 0;
    }
    .nav-overlay-v3__left {
        padding: 60px 7% 28px;
    }
}
