/* Shared late-loading overrides for the static PB Innovations site. */

[data-partial="site-header"],
[data-partial="site-footer"] {
    display: contents;
}

.site-header-nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer {
    text-align: center;
    padding: 0 20px 60px;
    color: #999;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.site-footer p + p {
    margin-top: 8px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #2f7aff;
}

.site-footer-records {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.site-footer-records img {
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 3000;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    color: #fff;
    background: rgba(17, 17, 17, 0.92);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

.nav-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
    background: rgba(0, 0, 0, 0.28);
}

.nav-menu-overlay.active {
    display: block;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(300px, 86vw);
    padding: 78px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.16);
    transform: translateX(105%);
    transition: transform 0.22s ease;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu a {
    padding: 13px 14px;
    color: #111;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
    background: rgba(47, 122, 255, 0.08);
}

.nav-menu .nav-menu-cta {
    margin-top: 8px;
    color: #fff;
    text-align: center;
    background: #2f7aff;
}

.nav-menu .nav-menu-cta:hover,
.nav-menu .nav-menu-cta.active {
    color: #fff;
    background: #4d8eff;
}

@media (max-width: 768px) {
    nav,
    body > nav {
        overflow: visible !important;
    }

    nav .nav-container,
    nav .nc {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 10px !important;
    }

    nav .nav-logo,
    nav .nl {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    nav .nav-logo-img,
    nav .nl img {
        width: 32px !important;
        height: 32px !important;
        object-fit: contain !important;
        flex: 0 0 auto !important;
    }

    nav .nav-logo-desc,
    nav .nav-divider,
    nav .nld {
        display: none !important;
    }

    nav .nav-center,
    nav .nav-links,
    nav .nli {
        display: none !important;
    }

    nav .nav-cta,
    nav .ncta {
        flex: 0 0 auto !important;
        padding: 8px 13px !important;
        white-space: nowrap !important;
    }

    nav .nav-toggle {
        display: flex !important;
        flex: 0 0 auto !important;
        position: static !important;
    }

    .nav-menu {
        max-width: min(280px, 82vw);
    }
}

@media (max-width: 480px) {
    nav .nav-logo-title,
    nav .nav-title span:first-child,
    nav .nlt span:first-child {
        font-size: 13px !important;
    }

    nav .nav-logo-sub,
    nav .nav-title span:last-child,
    nav .nlt span:last-child {
        font-size: 9px !important;
    }

    nav .nav-cta,
    nav .ncta {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}
