/* Professional Header & Navbar - Universal Design */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(250, 249, 246, 0.98) 0%, rgba(240, 235, 224, 0.98) 100%);
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 241, 232, 0.99) 100%);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(91, 14, 45, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo & Brand */
.logo-link {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    color: var(--secondary-color);
    letter-spacing: 4px;
}

.logo-highlight {
    color: var(--secondary-color);
    margin-left: 3px;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-highlight {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 35px;
    margin: 0;
}

.nav-links li {
    position: relative;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 8px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(to right, var(--secondary-color) 0%, rgba(212, 175, 55, 0.5) 100%);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 14px;
    border-radius: 999px;
    min-width: 48px;
    min-height: 48px;
}

.mobile-toggle:hover,
.mobile-toggle.active {
    background: rgba(212, 175, 55, 0.14);
    color: var(--secondary-color);
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Creative Mobile Menu (Atelier Pass) */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(91, 14, 45, 0.98), rgba(26, 26, 26, 0.98));
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
        padding: 60px 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        width: 80%;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s ease;
    }

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

    /* Staggered Link Animations (The Weaving Flow) */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }

    .nav-links a {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        color: #fff !important;
        font-family: var(--font-heading);
        letter-spacing: 4px;
        text-transform: uppercase;
        border: none !important;
        padding: 10px 0;
    }

    .nav-links a::before { display: none; } /* Hide desktop underline */

    /* Animated Hamburger Toggle */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 24px;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        min-width: unset !important;
        min-height: unset !important;
        border-radius: 0 !important;
        position: relative;
        z-index: 2001; /* Above overlay */
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-radius: 4px;
    }

    /* Transformation to 'X' */
    .mobile-toggle.active span.line-1 { transform: translateY(10.5px) rotate(135deg); background: #fff !important; }
    .mobile-toggle.active span.line-2 { transform: scale(0); opacity: 0; }
    .mobile-toggle.active span.line-3 { transform: translateY(-10.5px) rotate(-135deg); background: #fff !important; }

    header.scrolled .mobile-toggle span { background: var(--primary-color); }
    .mobile-toggle.active span { background: #fff !important; }
}

body.menu-open {
    overflow: hidden;
}

/* Accessibility - High Contrast Readability */
@media (prefers-contrast: more) {
    header {
        background: #faf9f6;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .nav-links a {
        font-weight: 700;
        color: #000;
    }

    .logo-link {
        color: #5b0e2d;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }
}
