/* ============================================================
   HEADER & NAVIGATION — MENDOZART
   ============================================================ */

.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;

    /* Liquid Glass Effect */
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar {
    width: 100%;
    height: 100%;
}

.nav-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(249, 106, 44, 0.3));
    transition: filter var(--transition-base), transform var(--transition-base);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 12px rgba(249, 106, 44, 0.6));
    transform: scale(1.04);
}

/* ===== NAV MENU (DESKTOP) ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-item {
    list-style: none;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== RIGHT SIDE: CTA & HAMBURGER ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

/* Header CTA Glass Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    color: white;
    background: linear-gradient(135deg, rgba(249, 106, 44, 0.85), rgba(255, 140, 66, 0.85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 140, 66, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(249, 106, 44, 0.2);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: 0.8s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--ember), var(--ember-2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 22px rgba(249, 106, 44, 0.35);
}

.nav-cta:hover::after {
    animation: shimmer 1.2s var(--ease-out) infinite;
}

.nav-cta:active {
    transform: scale(0.97);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    gap: 4.5px;
    z-index: 1001;
    /* Stay on top of mobile menu */
    transition: background 0.3s, border-color 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.hamburger.active {
    background: rgba(249, 106, 44, 0.1);
    border-color: rgba(249, 106, 44, 0.3);
}

.bar {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger.active .bar {
    background: #fff;
}

.mobile-only {
    display: none !important;
}

/* ===== MOBILE NAVIGATION DRAWER ===== */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .logo-img {
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        left: auto;
        top: 0;
        height: 100dvh;
        width: 320px;
        max-width: 85%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 7rem 2.5rem 3rem;
        gap: 1.5rem;

        /* Glassmorphic Sidebar Drawer */
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.75);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(40px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered delay for list items */
    .nav-menu.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        transition-delay: 0.16s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        transition-delay: 0.22s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        transition-delay: 0.28s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        transition-delay: 0.34s;
    }

    /* For mobile only CTA */

    .nav-link {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.15rem;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.7);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--ember);
        background: transparent;
        padding-left: 0.5rem;
    }

    /* Hide desktop CTA in header, show hamburger */
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile CTA inside menu */
    .nav-menu-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.85rem 1.5rem;
        margin-top: 1.5rem;
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        color: white;
        background: linear-gradient(135deg, var(--ember), var(--ember-2));
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 140, 66, 0.3);
        box-shadow: 0 4px 15px rgba(249, 106, 44, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-menu-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(249, 106, 44, 0.45);
    }

    .nav-menu-cta:active {
        transform: scale(0.97);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo-img {
        height: 38px;
    }
}

/* Hamburger animations */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}