/* ========================================
   HEADER & NAVIGATION - PREMIUM GLASS
======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 48px;
    width: auto;
    transition: all 0.5s var(--ease-out);
}

.main-header.scrolled .logo img {
    height: 38px;
}

/* Navigation Desktop */
.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-list li a:hover {
    color: var(--primary);
}

.nav-list li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* Mobile Menu Logic */
@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .nav-list li a {
        font-size: 2.5rem;
        font-weight: 800;
        text-transform: none;
        letter-spacing: -1.5px;
        color: var(--dark);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s var(--ease-out);
        display: block;
    }

    .main-navigation.active .nav-list li a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance */
    .main-navigation.active .nav-list li:nth-child(1) a {
        transition-delay: 0.1s;
    }

    .main-navigation.active .nav-list li:nth-child(2) a {
        transition-delay: 0.2s;
    }

    .main-navigation.active .nav-list li:nth-child(3) a {
        transition-delay: 0.3s;
    }

    .main-navigation.active .nav-list li:nth-child(4) a {
        transition-delay: 0.4s;
    }

    .main-navigation.active .nav-list li:nth-child(5) a {
        transition-delay: 0.5s;
    }
}

@media (min-width: 1024px) {
    .main-navigation {
        position: static;
        width: auto;
        height: auto;
        display: block;
        background: transparent;
        padding: 0;
        z-index: auto;
    }

    .nav-list {
        flex-direction: row;
        gap: 32px;
    }

    .nav-list li a {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--gray-700);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-list li a:hover {
        color: var(--primary);
    }

    /* Highlight Last Item (Fazer Orçamento) */
    .nav-list li:last-child a {
        background: var(--primary);
        color: var(--white) !important;
        padding: 12px 24px;
        border-radius: 100px;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
        transition: all 0.3s ease;
    }

    .nav-list li:last-child a::after {
        display: none;
    }

    .nav-list li:last-child a:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
    }
}