
/*
 * PRIZRAK — NAVEGAÇÃO V54.3
 * Desktop e mobile.
 *
 * Corrige:
 * - Ícone hamburger
 * - Menu oculto por padrão
 * - Menu aberto somente por .is-open
 * - Layout de janelas menores
 * - Espaçamentos e fontes
 */

.theme-v8 .prz8-header__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    height: auto;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.theme-v8 .prz8-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    gap: 14px;
}

.theme-v8 .prz8-brand img {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    object-fit: contain;
}

.theme-v8 .prz8-brand .brand-copy strong {
    font-size: 25px;
    line-height: 1.1;
}

.theme-v8 .prz8-brand .brand-copy small {
    font-size: 10px;
    letter-spacing: .12em;
}

/* ========================================
   BOTÃO MOBILE
   ======================================== */

.theme-v8 .prz8-menu-toggle {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 44px;
    padding: 9px;
    border: 1px solid #594048;
    border-radius: 3px;
    background: #160e12;
    cursor: pointer;
}

.theme-v8 .prz8-menu-toggle span {
    display: block;
    width: 23px;
    min-width: 23px;
    height: 2px;
    min-height: 2px;
    flex: 0 0 2px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1px;
    background: #ffffff;
    transform: none;
    opacity: 1;
}

/* ========================================
   DESKTOP
   ======================================== */

@media (min-width: 1101px) {

    .theme-v8 .prz8-header__row {
        flex-wrap: nowrap;
    }

    .theme-v8 .prz8-menu-toggle {
        display: none;
    }

    .theme-v8 .prz8-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: clamp(12px, 1.7vw, 27px);
        min-width: 0;
        margin-left: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .theme-v8 .prz8-nav > a:not(.nav-cta) {
        display: inline-flex;
        position: relative;
        align-items: center;
        justify-content: center;
        padding: 13px 0;
        color: #c8c3c6;
        font-family: system-ui, Arial, sans-serif;
        font-size: clamp(13px, 1.05vw, 16px);
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: .01em;
        white-space: nowrap;
        transition: color .2s ease;
    }

    .theme-v8 .prz8-admin.nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        gap: 12px;
        min-height: 46px;
        padding: 15px 18px;
        color: #ffffff;
        font-size: clamp(12px, .95vw, 14px);
        font-weight: 750;
        line-height: 1.2;
        letter-spacing: .02em;
        white-space: nowrap;
    }
}

/* ========================================
   TABLET E MOBILE
   ======================================== */

@media (max-width: 1100px) {

    .theme-v8 .prz8-header__row {
        min-height: 78px;
        height: auto;
        gap: 14px;
    }

    .theme-v8 .prz8-brand img {
        width: 46px;
        height: 46px;
    }

    .theme-v8 .prz8-brand .brand-copy strong {
        font-size: 22px;
    }

    .theme-v8 .prz8-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        position: relative;
        z-index: 103;
        margin-left: auto;
        flex: 0 0 46px;
    }

    /*
     * IMPORTANTE:
     * A navegação só aparece com .is-open.
     */

    .theme-v8 .prz8-nav,
    .theme-v8 .prz8-nav:not(.is-open) {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 102;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px 22px 22px;
        max-height: calc(100dvh - 90px);
        overflow-x: hidden;
        overflow-y: auto;
        background: #0c0b0f;
        border-bottom: 1px solid #563039;
        box-shadow: 0 18px 35px rgba(0,0,0,.4);
    }

    .theme-v8 .prz8-nav.is-open {
        display: flex;
    }

    .theme-v8 .prz8-nav > a:not(.nav-cta) {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 15px 4px;
        border-bottom: 1px solid #282328;
        color: #c8c3c6;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
    }

    .theme-v8 .prz8-nav > a.active:not(.nav-cta)::after {
        display: none;
    }

    .theme-v8 .prz8-admin.nav-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        margin-top: 16px;
        padding: 15px 18px;
        font-size: 14px;
        line-height: 1.2;
    }
}

/* ========================================
   CELULARES PEQUENOS
   ======================================== */

@media (max-width: 600px) {

    .theme-v8 .prz8-header__row {
        min-height: 72px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .theme-v8 .prz8-brand {
        gap: 10px;
    }

    .theme-v8 .prz8-brand img {
        width: 42px;
        height: 42px;
    }

    .theme-v8 .prz8-brand .brand-copy strong {
        font-size: 20px;
    }

    .theme-v8 .prz8-brand .brand-copy small {
        font-size: 8px;
        letter-spacing: .08em;
    }

    .theme-v8 .prz8-utility {
        font-size: 8px;
    }

    .theme-v8 .prz8-utility__right {
        display: none;
    }
}

/* ========================================
   INTERAÇÃO E ACESSIBILIDADE
   ======================================== */

.theme-v8 .prz8-nav > a:not(.nav-cta):hover,
.theme-v8 .prz8-nav > a:not(.nav-cta).active {
    color: #ffffff;
}

.theme-v8 .prz8-nav > a:focus-visible,
.theme-v8 .prz8-menu-toggle:focus-visible {
    outline: 2px solid #e04457;
    outline-offset: 4px;
}

.theme-v8 .prz8-admin.nav-cta:hover {
    background: #40121b;
    border-color: #e04457;
}

@media (prefers-reduced-motion: reduce) {
    .theme-v8 .prz8-nav > a,
    .theme-v8 .prz8-admin {
        transition: none;
    }
}
