/* =========================
   FONTES (HEADER AUTÔNOMO)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700;900&display=swap');

/* =========================
   HEADER BASE
========================= */
.ng-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

/* Container interno */
.ng-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   LOGO
========================= */
.ng-logo {
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
}

.ng-logo .no {
    color: #0d84d9;
}

.ng-logo .grupo {
    color: #ff7a00;
}

/* =========================
   MENU DESKTOP
========================= */
.ng-menu {
    display: flex;
    gap: 20px;
}

.ng-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* =========================
   BOTÃO HAMBÚRGUER
========================= */
.ng-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.ng-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* =========================
   BARRA INFERIOR
========================= */
.ng-bar {
    height: 4px;
    background: linear-gradient(
        to right,
        #ff7a00 50%,
        #0d84d9 50%
    );
}

/* =========================
   MENU MOBILE LATERAL
========================= */
.ng-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* ESCONDIDO DE VERDADE */
    transform: translateX(-100%);
    transition: transform 0.3s ease;

    z-index: 2000;
}

.ng-mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

/* Header do menu mobile */
.ng-mobile-header {
    display: flex;
    justify-content: flex-end;
}

.ng-mobile-close {
    font-size: 28px;
    cursor: pointer;
}

/* =========================
   OVERLAY
========================= */
.ng-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    z-index: 1500;
}

/* =========================
   ESTADOS CONTROLADOS PELO JS
========================= */
.ng-mobile-menu.open {
    transform: translateX(0);
}

.ng-overlay.show {
    display: block;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

    .ng-container {
        padding: 12px 14px;
    }

    .ng-logo {
        font-size: 42px;
    }

    .ng-menu {
        display: none;
    }

    .ng-burger {
        display: flex;
    }
}

/* =========================
   USUÁRIO LOGADO
========================= */
.ng-user,
.ng-user-mobile {
    font-weight: 600;
    color: #007fbf;
    font-size: 16px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .ng-user-mobile {
        font-size: 18px;
        margin-bottom: 12px;
        display: block;
    }
}
