/* Subnav interno — padrão cadu.php (pills, fundo glass, scroll horizontal) */
.page-subnav {
    display: none;
    position: sticky;
    top: calc(var(--nav-height, 72px) + 1px);
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 1024px) {
    .page-subnav {
        display: block;
    }
}

.page-subnav__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-subnav__inner::-webkit-scrollbar {
    display: none;
}

.page-subnav__link {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    border-radius: 9999px;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.page-subnav__link:hover,
.page-subnav__link:focus-visible {
    color: #111827;
    background: rgba(79, 255, 130, 0.1);
}

.page-subnav__link.is-active {
    color: #111827;
    background: rgba(79, 255, 130, 0.1);
}

/* Muitos links (Soluções) — pills um pouco menores, mesmo visual */
.page-subnav--compact .page-subnav__inner {
    gap: 0.2rem;
    padding: 0.65rem 0;
}

.page-subnav--compact .page-subnav__link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.page-anchor {
    scroll-margin-top: calc(var(--nav-height, 72px) + 3.25rem);
}

.solucoes-anchor-section,
.cadu-anchor-section,
.precos-anchor {
    scroll-margin-top: calc(var(--nav-height, 72px) + 3.25rem);
}

@media (max-width: 1023px) {
    .page-anchor,
    .solucoes-anchor-section,
    .cadu-anchor-section,
    .precos-anchor {
        scroll-margin-top: calc(var(--nav-height, 60px) + 1.5rem);
    }
}
