/* ═══════════════════════════════════════
   NAVBAR — Premium Floating Capsule
═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 24px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 246, 241, 0.1);
    border-radius: 100px;
    z-index: 1000;
    transition: width 0.6s var(--ease-luxury), border 0.6s var(--ease-luxury), background 0.6s var(--ease-luxury), top 0.6s var(--ease-luxury);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(248, 246, 241, 0.2);
    width: calc(100% - 80px);
}

@media (max-width: 768px) {
    .navbar {
        top: 16px;
        width: calc(100% - 32px);
        height: 64px;
        padding: 0 24px;
        border-radius: 100px;
    }
    .navbar.scrolled {
        width: calc(100% - 32px);
    }
}

/* ── Brand ────────────────────────────── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.nav-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-gold);
    flex-shrink: 0;
}

/* ── Links ────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
}

.nav-link {
    position: relative;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-ivory);
    transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    width: 0; height: 1.5px;
    background-color: var(--clr-gold);
    transition: width 0.6s var(--ease-luxury), left 0.6s var(--ease-luxury);
}

.nav-link:hover::after { width: 100%; left: 0; }
.nav-link:hover { color: var(--clr-gold); }

/* ── Hamburger ───────────────────────── */
.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(248, 246, 241, 0.2);
    background: transparent;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury), border 0.6s var(--ease-luxury);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
}

.nav-toggle:hover {
    background: rgba(248, 246, 241, 0.1);
    border-color: var(--clr-gold);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--clr-ivory);
    transition: transform 0.6s var(--ease-luxury), opacity 0.6s var(--ease-luxury), background 0.6s var(--ease-luxury);
}

.nav-toggle.open span { background: rgba(248, 246, 241, 0.8); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   UNIFIED LUXURY RIGHT-DRAWER MOBILE MENU
   Architecture:
     .mobile-menu       = full-viewport dimming backdrop
     .mobile-nav-links  = 70vw glass panel sliding from RIGHT
   This base style applies everywhere.
   inner-navbar.css overrides only what differs on inner pages.
════════════════════════════════════════════════════════════ */

/* ── BACKDROP ───────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;

    /* Cinematic dim layer — tap outside panel to close */
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end; /* Panel anchors RIGHT */

    /* Hidden: fade out */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* ── GLASS PANEL — the 70vw right drawer ───────────────── */
.mobile-nav-links {
    /* Sizing */
    width: 70vw;
    max-width: 360px;
    min-width: 260px;
    height: 100%;
    align-self: stretch;

    /* Internal layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;

    /* Spacious luxury padding */
    padding: clamp(7rem, 18vh, 10rem) clamp(2.8rem, 8vw, 3.8rem) clamp(4rem, 10vh, 6rem);

    /* Ultra-dark glass panel */
    background-color: rgba(6, 6, 6, 0.97);
    background-image: linear-gradient(
        160deg,
        rgba(107, 20, 33, 0.06) 0%,
        transparent 45%
    );
    border-left: 1px solid rgba(255, 255, 255, 0.07);

    /* Cinematic depth shadow */
    box-shadow:
        -30px 0 80px rgba(0, 0, 0, 0.6),
        -1px 0 0 rgba(255, 255, 255, 0.04);

    /* SLIDE: 2s Rolls-Royce luxury draw — heavy, deliberate, architectural */
    transform: translateX(100%);
    transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-menu.active .mobile-nav-links {
    transform: translateX(0);
}

/* Brand stamp */
.mobile-nav-links::before {
    content: 'BOLD EDIT';
    position: absolute;
    top: clamp(2rem, 5vh, 2.8rem);
    left: clamp(2.4rem, 7vw, 3.2rem);
    font-family: 'Inter', sans-serif;
    font-size: 0.44rem;
    font-weight: 700;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

/* Year stamp */
.mobile-nav-links::after {
    content: 'Est. 2020';
    position: absolute;
    bottom: clamp(1.8rem, 4vh, 2.5rem);
    left: clamp(2.4rem, 7vw, 3.2rem);
    font-family: 'Inter', sans-serif;
    font-size: 0.42rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

/* ── NAV ITEMS — <li> wrappers ─────────────────────────── */
.mobile-nav-links li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── NAV LINKS — the <a> elements ──────────────────────── */
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    font-weight: 400;
    font-style: normal;
    color: rgba(248, 246, 241, 0.80);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    padding: 0.75em 0; /* Restored elegant desktop padding */
    display: block;
    text-decoration: none;
    width: 100%;
    position: relative;

    /* Pre-animation: hidden, shifted right */
    opacity: 0;
    transform: translateX(20px);
    transition:
        opacity    0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform  0.55s cubic-bezier(0.16, 1, 0.3, 1),
        color      0.30s ease,
        font-style 0.30s ease;
}

/* Revealed when menu is active */
.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger — timed to arrive AFTER the 2s panel slide starts */
.mobile-menu.active .mobile-nav-links li:nth-child(1) .mobile-nav-link { transition-delay: 0.85s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) .mobile-nav-link { transition-delay: 1.00s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) .mobile-nav-link { transition-delay: 1.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) .mobile-nav-link { transition-delay: 1.30s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) .mobile-nav-link { transition-delay: 1.45s; }

/* Rolls-Royce hover: italic is the signature gesture */
.mobile-nav-link:hover {
    color: rgba(248, 246, 241, 1);
    font-style: italic;
}

/* ── CLOSE BUTTON ───────────────────────────────────────── */
.mobile-close-btn {
    position: fixed;
    top: clamp(16px, 3vw, 22px);
    right: clamp(16px, 3vw, 22px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 6, 6, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 246, 241, 0.55);
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 1002;
    transition:
        background   0.35s ease,
        border-color 0.35s ease,
        color        0.35s ease,
        transform    0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-close-btn:hover {
    background: rgba(107, 20, 33, 0.35);
    border-color: rgba(107, 20, 33, 0.5);
    color: rgba(248, 246, 241, 0.95);
    transform: rotate(90deg) scale(1.06);
}

/* Stagger delay reset on close (no delay when hiding) */
.mobile-nav-link {
    /* Close stagger is instant — all links fade together */
}

/* Mobile-only massive luxury padding */
@media (max-width: 768px) {
    .mobile-nav-link {
        padding: 1.5em 0;
    }
}
