/* ==========================================================
   MENU PROSPETTO PREMIUM ISOLADO - DESKTOP CORRIGIDO
   Mantém logo 80x80 e hover rotate, sem interferir no layout da página.
   ========================================================== */

.psp-menu,
.psp-menu * {
    box-sizing: border-box;
}

.psp-menu {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(11, 22, 53, 0.98);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    backdrop-filter: blur(14px);
}

/* Desktop: mantém o menu horizontal em telas comuns de notebook/desktop */
.psp-menu-inner {
    width: min(1360px, calc(100% - 48px));
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.psp-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-right: 26px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.psp-brand-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 300ms ease;
    flex-shrink: 0;
}

.psp-brand:hover .psp-brand-logo {
    transform: rotate(12deg) scale(1.03);
}

.psp-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.psp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.psp-brand-name {
    color: #ffffff;
    font-size: 1.48rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.psp-brand-dot {
    color: #b8860b;
}

.psp-brand-subtitle {
    margin-top: 5px;
    color: #b8860b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.psp-nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.05rem;
    white-space: nowrap;
    min-width: 0;
}

.psp-nav-links > a,
.psp-dropdown-btn {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 0.90rem;
    font-weight: 800;
    line-height: 1;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    font-family: inherit;
}

.psp-nav-links > a:hover,
.psp-nav-links > a.is-active,
.psp-dropdown:hover .psp-dropdown-btn,
.psp-dropdown.is-open .psp-dropdown-btn,
.psp-dropdown.is-active .psp-dropdown-btn {
    color: #b8860b !important;
}

.psp-nav-links > a.is-active,
.psp-dropdown.is-active .psp-dropdown-btn {
    border-bottom-color: #b8860b;
}

.psp-dropdown {
    position: relative;
}

.psp-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.psp-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 360px;
    padding: 12px;
    border: 1px solid rgba(184, 134, 11, 0.22);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.psp-dropdown:hover .psp-dropdown-menu,
.psp-dropdown.is-open .psp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.psp-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid rgba(184, 134, 11, 0.20);
    border-top: 1px solid rgba(184, 134, 11, 0.20);
    transform: translateX(-50%) rotate(45deg);
}

.psp-dropdown-menu a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 14px 14px;
    border-radius: 16px;
    color: #0b1635 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.psp-dropdown-menu a:hover,
.psp-dropdown-menu a.is-active {
    background: #f8fafc;
    transform: translateX(2px);
}

.psp-dropdown-menu strong {
    display: block;
    font-size: 0.95rem;
    color: #0b1635;
    margin-bottom: 4px;
}

.psp-dropdown-menu small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: normal;
}

/* CTA corrigido: não fica preto/apagado por conflito com CSS global */
.psp-nav-links > a.psp-client-btn,
.psp-client-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(184, 134, 11, 0.35) !important;
    border-bottom: 1px solid rgba(184, 134, 11, 0.35) !important;
    background: #b8860b !important;
    color: #071126 !important;
    box-shadow: 0 12px 26px rgba(184, 134, 11, 0.30) !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.psp-nav-links > a.psp-client-btn:hover,
.psp-nav-links > a.psp-client-btn.is-active,
.psp-client-btn:hover,
.psp-client-btn.is-active {
    background: #d6a11d !important;
    color: #071126 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(184, 134, 11, 0.36) !important;
}

.psp-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.psp-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.psp-mobile-menu {
    display: none;
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.psp-mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.psp-mobile-menu a,
.psp-mobile-section {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 800;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.psp-mobile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psp-mobile-menu a:hover,
.psp-mobile-menu a.is-active,
.psp-mobile-section:hover {
    color: #b8860b !important;
}

.psp-mobile-submenu {
    display: none;
    padding-left: 18px;
    border-left: 2px solid rgba(184, 134, 11, 0.35);
}

.psp-mobile-submenu.is-open {
    display: flex;
    flex-direction: column;
}

.psp-mobile-submenu a {
    font-size: 0.92rem;
    color: #cbd5e1 !important;
}

.psp-mobile-client {
    margin-top: 12px;
    display: flex !important;
    justify-content: center;
    border-radius: 999px;
    background: #b8860b !important;
    color: #071126 !important;
    border-bottom: 0 !important;
}

/* Notebook menor: reduz sem virar mobile */
@media (max-width: 1280px) {
    .psp-menu-inner {
        width: min(1220px, calc(100% - 32px));
        gap: 18px;
    }

    .psp-brand {
        margin-right: 12px;
        gap: 12px;
    }

    .psp-brand-name {
        font-size: 1.34rem;
    }

    .psp-nav-links {
        gap: 0.78rem;
    }

    .psp-nav-links > a,
    .psp-dropdown-btn {
        font-size: 0.82rem;
    }

    .psp-nav-links > a.psp-client-btn,
    .psp-client-btn {
        padding: 0 13px !important;
    }
}

/* Só vira menu mobile em tablet/celular, não em desktop */
@media (max-width: 1040px) {
    .psp-nav-links {
        display: none;
    }

    .psp-mobile-btn {
        display: inline-flex;
    }

    .psp-brand {
        margin-right: 0;
    }
}

@media (max-width: 760px) {
    .psp-menu-inner {
        width: min(100%, calc(100% - 28px));
        min-height: 82px;
        gap: 18px;
    }

    .psp-mobile-menu {
        width: min(100%, calc(100% - 28px));
    }

    .psp-brand {
        gap: 12px;
    }

    .psp-brand-logo {
        width: 64px;
        height: 64px;
    }

    .psp-brand-name {
        font-size: 1.2rem;
    }

    .psp-brand-subtitle {
        font-size: 9px;
    }
}
