/* ============================================================================
   MOGIANA FC – HEADER ESTILO BRAGANTINO (VERSÃO FINAL COMPLETA)
   Compatível com seu HTML REAL (dropdowns usando <div> e sem <a>).
============================================================================ */

/* ============================================================================
   CAMADA 1 – MENUBAR SUPERIOR
============================================================================ */
.mf-menubar {
    width: 100%;
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mf-menubar-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mf-menubar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.mf-menubar-links li a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.mf-menubar-links li a:hover {
    color: var(--mg-navy);
}

/* ============================================================================
   CAMADA 2 – HEADER PRINCIPAL
============================================================================ */
.mf-header-main {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--mg-navy);
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mf-header-main .mf-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ============================================================================
   MENU DIVIDIDO 50/50 — ESTILO BRAGANTINO
============================================================================ */
.mf-nav-main {
    display: flex;
    align-items: center;
    width: 100%;
}

.mf-nav-left,
.mf-nav-right {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 55px;               /* Espaçamento REAL do Bragantino */
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Força o alinhamento 50/50 */
.mf-nav-left {
    justify-content: flex-end;
    padding-right: 80px;
}

.mf-nav-right {
    justify-content: flex-start;
    padding-left: 80px;
}

/* ============================================================================
   ITENS DO MENU (FUNCIONA PARA <a> e <div>)
============================================================================ */

/* estilo base */
.mf-nav-left li,
.mf-nav-right li {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .5px;
}

/* links normais */
.mf-nav-left li a,
.mf-nav-right li a {
    color: #ffffff;
    text-decoration: none;
}

/* itens de dropdown (seção da esquerda) */
.mf-dropdown-link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #ffffff;
}

/* hover */
.mf-nav-left li a:hover,
.mf-nav-right li a:hover,
.mf-dropdown-link:hover {
    color: var(--mg-gold);
}

/* ============================================================================
   ÍCONE DO DROPDOWN (▼)
============================================================================ */

.mf-dropdown-link svg {
    width: 12px;
    height: 12px;
    transition: .3s;
    fill: #fff;
}

.mf-dropdown-link:hover svg {
    transform: rotate(180deg);
}

/* =============================================
   ESCONDE O ÍCONE QUANDO NÃO TIVER SUBMENU
   (NÃO PRECISA MEXER NO header.php)
============================================= */

.mf-dropdown:not(:has(ul)) .mf-chevron {
    display: none !important;
}

/* ============================================================================
   LOGO CENTRAL
============================================================================ */
.mf-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 130px;
    width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mf-header-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

/* ============================================================================
   BOTÃO MOBILE
============================================================================ */
.mf-menu-button {
    display: none;
}

/* ============================================================================
   RESPONSIVIDADE
============================================================================ */
@media (max-width: 991px) {

    .mf-header-main {
        height: 90px;
    }

    .mf-header-main .mf-container {
        padding: 0 20px;
    }

    .mf-nav-left,
    .mf-nav-right {
        display: none; /* Mobile usa hambúrguer */
    }

    .mf-menu-button {
        display: block;
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .mf-header-logo img {
        height: 70px;
    }
}
