/* --- 1. Root & Base Variables --- */
:root {
    --nav-height: 80px;
    --nav-height-shrink: 70px;
    --transition-premium: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.3s ease;
}

/* --- 2. Navigation Container Base --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: var(--transition-premium);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 3. Logo Styling --- */
.logo a {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.5px;
}

.logo span {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
    font-size: 1.9rem;
    margin-left: 2px;
    font-weight: 600;
}

/* --- 4. Desktop Navigation Links --- */
.nav-links-wrapper .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links-wrapper .mobile-menu-header,
.nav-links-wrapper .mobile-menu-footer {
    display: none; /* Hidden on Desktop */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

/* Desktop Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--text-black);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* --- 5. Hamburger Menu (Hidden on Desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-black);
    transition: var(--transition-premium);
    border-radius: 4px;
}

/* --- 6. Mobile Editorial Menu overhaul --- */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    /* Full Screen Editorial Overlay */
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 40px 10%;
        transition: var(--transition-premium);
        z-index: 3000;
        overflow-y: auto;
        opacity: 0;
    }

    .nav-links-wrapper.active {
        right: 0;
        opacity: 1;
    }

    /* Mobile Header */
    .nav-links-wrapper .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 60px;
    }

    .menu-eyebrow {
        text-transform: uppercase;
        letter-spacing: 4px;
        font-weight: 800;
        font-size: 0.7rem;
        color: #adb5bd;
    }

    .close-menu {
        background: #f8f9fa;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
    }

    .close-menu:hover {
        background: var(--text-black);
        color: #ffffff;
    }

    /* Mobile List Logic & Typography */
    .nav-links-wrapper .nav-links {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    .nav-links li {
        list-style: none;
        display: flex;
        align-items: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links li::before {
        content: attr(data-num);
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--accent-color);
        margin-right: 15px;
        margin-top: 10px;
        transition: var(--transition-fast);
    }

    .nav-links a {
        font-family: 'Playfair Display', serif; 
        font-style: italic;
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        font-weight: 700;
        color: #1a1a1a;
        padding: 0;
        text-transform: none;
        transition: var(--transition-premium);
        position: relative;
        display: inline-block;
    }

    /* NEW: Mobile Content Hover Effect */
    .nav-links li:hover a {
        color: var(--accent-color);
        transform: translateX(12px);
    }

    .nav-links li:hover::before {
        transform: translateX(-5px);
        opacity: 0.7;
    }

    .nav-links a::after {
        display: none; 
    }

    /* Staggered Reveal Active State */
    .nav-links-wrapper.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animation Delays */
    .nav-links-wrapper.active .nav-links li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links-wrapper.active .nav-links li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links-wrapper.active .nav-links li:nth-child(3) { transition-delay: 0.4s; }
    .nav-links-wrapper.active .nav-links li:nth-child(4) { transition-delay: 0.5s; }
    .nav-links-wrapper.active .nav-links li:nth-child(5) { transition-delay: 0.6s; }
    .nav-links-wrapper.active .nav-links li:nth-child(6) { transition-delay: 0.7s; }

    /* Mobile Footer */
    .nav-links-wrapper .mobile-menu-footer {
        display: block;
        margin-top: auto;
        padding: 40px 0;
        text-align: center;
        font-size: 0.8rem;
        color: #adb5bd;
        font-weight: 600;
        border-top: 1px solid #eee;
        opacity: 0;
        transition: opacity 0.8s ease 0.8s;
    }

    .nav-links-wrapper.active .mobile-menu-footer {
        opacity: 1;
    }
}

/* --- 7. Global Status Toast --- */
.status-toast {
    position: fixed;
    top: 100px;
    right: 5%;
    background: var(--text-black);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    z-index: 4000;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: revealUp 0.5s ease;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}