
/* =====================================================
   PSS 2026 — NAVBAR INSTITUCIONAL
   Prefeitura Municipal de Nossa Senhora do Socorro
   Secretaria Municipal de Educação — SEMED
   ===================================================== */

@font-face {
    font-family: "TangoSans";
    src: url("../fonts/tangosans/TangoSans.ttf")
         format("truetype");
    font-display: swap;
}

/* =====================================================
   1. ESTRUTURA PRINCIPAL
   ===================================================== */

.pss-navbar {
    --navbar-primary: #4367b3;
    --navbar-dark: #294b8b;
    --navbar-light: #ffffff;
    --navbar-border: rgba(255, 255, 255, 0.22);

    position: relative;

    display: block;

    width: 100%;
    min-width: 0;
    min-height: 118px;

    margin: 0;
    padding: 0;

    background-color: var(--navbar-primary);

    background-image:
        url("../image/icon/cabecalho.png");

    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;

    border-bottom: 3px solid rgba(255,255,255,0.12);

    box-shadow:
        0 3px 12px rgba(27, 56, 106, 0.10);

    z-index: 10;
}

.pss-navbar,
.pss-navbar * {
    box-sizing: border-box;
}

/* =====================================================
   2. NAVEGAÇÃO
   ===================================================== */

.pss-navbar__nav {
    width: 100%;
    max-width: 1600px;
    min-height: 115px;

    margin: 0 auto;
    padding: 16px 35px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 15px;
}

.pss-navbar__spacer {
    grid-column: 1;
}

/* =====================================================
   3. IDENTIDADE INSTITUCIONAL
   ===================================================== */

.pss-navbar__brand {
    grid-column: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    width: max-content;
    max-width: 100%;

    margin: 0 auto;
    padding: 0;

    text-decoration: none;

    background: transparent;
}

.pss-navbar__brand:hover,
.pss-navbar__brand:focus,
.pss-navbar__brand:visited {
    text-decoration: none;
}

.pss-navbar__brand:focus-visible {
    outline: 2px solid white;
    outline-offset: 7px;
    border-radius: 4px;
}

/* LOGOTIPOS */

.pss-navbar__logo {
    display: block;

    width: auto;
    height: 73px;

    max-width: min(225px, 26vw);

    object-fit: contain;
    object-position: center;

    flex-shrink: 1;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.pss-navbar__brand:hover .pss-navbar__logo {
    opacity: 0.95;
}

/* DIVISÓRIA DISCRETA ENTRE AS MARCAS */

.pss-navbar__brand-divider {
    display: block;

    width: 1px;
    height: 48px;

    flex: 0 0 1px;

    background: var(--navbar-border);
}

/* =====================================================
   4. BOTÃO DE SAIR
   ===================================================== */

.pss-navbar__logout-form {
    grid-column: 3;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    justify-self: end;

    margin: 0;
    padding: 0;
}

.pss-navbar__logout {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-width: 91px;
    min-height: 42px;

    padding: 10px 16px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;

    color: #ffffff;

    font-family:
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.3;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.pss-navbar__logout svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pss-navbar__logout:hover {
    color: #ffffff;

    background: rgba(255,255,255,0.22);

    border-color: rgba(255,255,255,0.60);

    transform: translateY(-1px);
}

.pss-navbar__logout:focus-visible {
    outline: 3px solid #dbeafe;
    outline-offset: 3px;
}

.pss-navbar__logout:active {
    transform: translateY(0);
}

/* =====================================================
   5. TELAS MÉDIAS
   ===================================================== */

@media (max-width: 1000px) {

    .pss-navbar__nav {
        padding: 15px 22px;
    }

    .pss-navbar__brand {
        gap: 22px;
    }

    .pss-navbar__logo {
        height: 65px;
        max-width: min(200px, 26vw);
    }

    .pss-navbar__brand-divider {
        height: 42px;
    }
}

/* =====================================================
   6. TABLETS E CELULARES
   ===================================================== */

@media (max-width: 680px) {

    .pss-navbar {
        min-height: 0;

        background-image: none;
    }

    .pss-navbar__nav {
        min-height: 92px;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 12px;

        padding: 17px 15px;
    }

    .pss-navbar__spacer {
        display: none;
    }

    .pss-navbar__brand {
        width: 100%;
        max-width: 100%;

        margin: 0;

        justify-content: center;
        gap: 17px;
    }

    .pss-navbar__logo {
        width: auto;
        height: 52px;

        max-width: min(40vw, 175px);
    }

    .pss-navbar__brand-divider {
        height: 35px;
    }

    .pss-navbar__logout-form {
        width: 100%;

        justify-content: flex-end;
        align-self: stretch;
    }

    .pss-navbar__logout {
        min-height: 38px;
        min-width: 82px;

        padding: 8px 13px;

        font-size: 12px;
    }
}

/* =====================================================
   7. CELULARES PEQUENOS
   ===================================================== */

@media (max-width: 390px) {

    .pss-navbar__nav {
        padding: 15px 12px;
    }

    .pss-navbar__brand {
        gap: 11px;
    }

    .pss-navbar__logo {
        height: 43px;
        max-width: 40vw;
    }

    .pss-navbar__brand-divider {
        height: 28px;
    }

}

/* =====================================================
   8. ACESSIBILIDADE
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .pss-navbar__logo,
    .pss-navbar__logout {
        transition: none;
    }

    .pss-navbar__logout:hover {
        transform: none;
    }
}

/* =====================================================
   9. IMPRESSÃO DE COMPROVANTES
   ===================================================== */

@media print {

    .pss-navbar {
        display: none !important;
    }

}
