/* ============================================
   Mobile Navigation Tray
   ============================================ */

/* Mobile Nav Tray - Hidden by default */
.mobile-nav-tray {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.mobile-nav-tray.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 6rem 2rem 4rem;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-nav-tray.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-tray.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-tray.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-tray.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-tray.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-tray.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.4s var(--ease-out);
}

.mobile-nav-links a:hover::after {
    width: 100%;
}

.mobile-nav-cta {
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-decoration: none;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav-tray.active .mobile-nav-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-nav-cta:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

/* Hamburger Animation */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.nav-open {
    overflow: hidden;
}

/* Ensure toggle is above tray */
.mobile-nav-toggle {
    position: relative;
    z-index: 1001;
}