/* ============================================
   PillNav — adaptado de React Bits para vanilla
   Base: CSS do @react-bits/PillNav-JS-CSS
   Paleta Zanotto:
     --base        → #544F48 (espresso)
     --pill-bg     → #F4F1EA (offwhite)
     --pill-text   → #544F48
     --hover-text  → #F4F1EA
   ============================================ */

.pill-nav-container {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
}

@media (max-width: 768px) {
    .pill-nav-container {
        width: 100%;
        left: 0;
        transform: none;
    }
}

.pill-nav {
    --nav-h: 44px;
    --logo: 36px;
    --pill-pad-x: 20px;
    --pill-gap: 3px;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pill-nav {
        width: 100%;
        justify-content: space-between;
        padding: 0 1rem;
        background: transparent;
    }
}

.pill-nav-items {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--nav-h);
    background: var(--base, #544F48);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(84, 79, 72, 0.2);
}

.pill-logo {
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    background: var(--base, #544F48);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(84, 79, 72, 0.2);
    text-decoration: none;
}

.pill-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* PNG tem muito padding transparente ao redor do monograma — amplia o
       conteúdo visível; overflow:hidden do .pill-logo + border-radius 50%
       cortam as sobras nas bordas do círculo. Rendering default (smooth)
       para preservar as curvas finas do serifado. */
    transform: scale(3.5);
}

.pill-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: var(--pill-gap);
    margin: 0;
    padding: 3px;
    height: 100%;
}

.pill-list > li {
    display: flex;
    height: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--pill-pad-x);
    background: var(--pill-bg, #F4F1EA);
    color: var(--pill-text, var(--base, #544F48));
    text-decoration: none;
    border-radius: 9999px;
    box-sizing: border-box;
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

.pill .hover-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50%;
    background: var(--base, #544F48);
    z-index: 1;
    display: block;
    pointer-events: none;
    will-change: transform;
}

.pill .label-stack {
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 2;
}

.pill .pill-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1;
    will-change: transform;
}

.pill .pill-label-hover {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hover-text, #F4F1EA);
    z-index: 3;
    display: inline-block;
    will-change: transform, opacity;
}

.pill.is-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--base, #544F48);
    border-radius: 50px;
    z-index: 4;
}

/* Pill com destaque (CTA): inverte as cores para chamar atenção */
.pill.is-cta {
    background: var(--base, #544F48);
    color: var(--hover-text, #F4F1EA);
}
.pill.is-cta .hover-circle {
    background: var(--pill-bg, #F4F1EA);
}
.pill.is-cta .pill-label-hover {
    color: var(--pill-text, #544F48);
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

.mobile-menu-button {
    width: var(--nav-h);
    height: var(--nav-h);
    border-radius: 50%;
    background: var(--base, #544F48);
    border: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(84, 79, 72, 0.2);
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }
}

.hamburger-line {
    width: 16px;
    height: 2px;
    background: var(--pill-bg, #F4F1EA);
    border-radius: 1px;
    transition: all 0.01s ease;
    transform-origin: center;
}

.mobile-menu-popover {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    background: var(--base, #544F48);
    border-radius: 27px;
    box-shadow: 0 8px 32px rgba(84, 79, 72, 0.25);
    z-index: 998;
    opacity: 0;
    transform-origin: top center;
    visibility: hidden;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 3px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-menu-popover .mobile-menu-link {
    display: block;
    padding: 12px 16px;
    color: var(--pill-text, #544F48);
    background-color: var(--pill-bg, #F4F1EA);
    text-decoration: none;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-menu-popover .mobile-menu-link:hover,
.mobile-menu-popover .mobile-menu-link.is-active {
    cursor: pointer;
    background-color: var(--base, #544F48);
    color: var(--hover-text, #F4F1EA);
}
