/* =========================================
   HEADER GERAL (CONTAINER E FUNDO)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

/* =========================================
   AS TRÊS COLUNAS DO HEADER
   ========================================= */
/* Esquerda, Centro e Direita dividem o espaço igualmente */
.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Alinha o menu no início */
.header-left {
    justify-content: flex-start;
}

/* Alinha a logo no meio perfeito */
.header-center {
    justify-content: center;
}

/* Alinha as redes sociais no final */
.header-right {
    justify-content: flex-end;
}

/* =========================================
   LOGO CENTRALIZADA
   ========================================= */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.header-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

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

/* =========================================
   BOTÃO "MENU" (HAMBÚRGUER)
   ========================================= */
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
    height: max-content;
}

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

.menu-text {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: #fff;
    transition: 0.3s ease;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* =========================================
   SISTEMA DE ÍCONES SOCIAIS (CORRIGIDO)
   ========================================= */
.social {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

.social i {
    font-size: 26px;
    color: var(--text-white, #fff);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social a:hover i {
    color: var(--primary-color, #ff6b00);
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.5));
}

/* =========================================
   DROPDOWN PRINCIPAL E SUBMENU
   ========================================= */
.dropdown {
    position: absolute;
    top: 90px;
    left: 5%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 1001;
}

.dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray, #ccc);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.item i {
    font-size: 20px;
}

.item.active,
.item:hover {
    background: var(--primary-color, #ff6b00);
    color: var(--text-white, #fff);
    border-color: var(--primary-color, #ff6b00);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.submenu-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.has-submenu-btn {
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 24px;
}

.submenu {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.sub-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 0 15px 8px 30px;
    color: var(--text-gray, #ccc);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-item:hover {
    color: var(--text-white, #fff);
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--primary-color, #ff6b00);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.2);
}

.submenu-group.open .submenu {
    max-height: 400px;
    padding-bottom: 5px;
}

.submenu-group.open .arrow-icon {
    transform: rotate(180deg);
}

.submenu-group.open .has-submenu-btn {
    background: var(--primary-color, #ff6b00);
    color: var(--text-white, #fff);
    border-color: var(--primary-color, #ff6b00);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* =========================================
   OVERLAY (FUNDO BORRADO QUANDO O MENU ABRE)
   ========================================= */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 900;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .menu-text {
        display: none;
    }

    .menu-toggle {
        padding: 12px;
    }

    .header-logo img {
        display: none;
    }

    .dropdown {
        left: 5%;
        right: 5%;
        width: auto;
    }

    .social {
        gap: 15px;
    }

    .social i {
        font-size: 22px;
    }

}