/* ========================================
   HEADER - Estilos do Cabeçalho
   ======================================== */

/* Header Principal */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    min-height: 70px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

@media (min-width: 769px) {
    .header-right {
        position: fixed;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1001;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

@media (min-width: 769px) {
    .header-logo {
        position: fixed;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1001;
    }
}

.header-logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .header-nav {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.mobile-nav-link {
    color: var(--light-70);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--light);
    padding-left: 1rem;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-header {
        min-height: auto;
    }
    
    .header-container {
        display: flex;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        min-height: auto;
    }
    
    .header-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-right {
        margin-left: auto;
    }
    
    .header-logo img {
        height: 40px;
    }
}
