/* =============================================
   WMENU — WTEK Mobile Navigation
   ============================================= */

/* -------------------------------------------
   Topbar mobile (logo + hamburguer)
   ------------------------------------------- */
.wmenu-topbar {
    display: none;
}

@media (max-width: 991.98px) {
    /* Oculta o header desktop */
    .site-header {
        display: none;
    }

    /* Topbar */
    .wmenu-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        padding: 0 20px;
        background: #fff;
        z-index: 900;
        border-bottom: 1px solid rgba(0, 0, 0, 0);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    [data-scroll="true"] .wmenu-topbar {
        border-bottom: 1px solid rgba(129, 129, 129, 0.20);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    .wmenu-topbar__logo img {
        display: block;
        width: 140px;
        height: auto;
        object-fit: contain;
    }
    .wmenu-topbar__actions {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .wmenu-topbar__search {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 10px;
        padding: 0;
        transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .wmenu-topbar__search:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .wmenu-topbar__search svg {
        display: block;
        width: 18px;
        height: 18px;
    }
    .wmenu-topbar__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 10px;
        transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .wmenu-topbar__toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .wmenu-topbar__toggle svg {
        display: block;
        width: 24px;
        height: 24px;
        stroke: #020407;
        transition: opacity 0.2s;
    }

    /* Compensa o espaço do topbar fixo */
    main {
        margin-top: 64px !important;
    }
}

/* -------------------------------------------
   Overlay (fundo escuro)
   ------------------------------------------- */
.wmenu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.wmenu-overlay.is-visible {
    opacity: 1;
}

/* -------------------------------------------
   Container do menu (drawer)
   ------------------------------------------- */
.wmenu-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 1100;
    overflow: hidden;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}
.wmenu-nav.is-open {
    transform: translateX(0);
}

/* -------------------------------------------
   Panels — container de slides
   ------------------------------------------- */
.wmenu-panels {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Cada panel ocupa 100% do drawer */
.wmenu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Panel principal começa visível */
.wmenu-panel--main {
    transform: translateX(0);
}

/* Quando sub-panel está ativo, main recua para a esquerda */
.wmenu-panels.has-sub .wmenu-panel--main {
    transform: translateX(-100%);
}

/* Sub-panel ativo entra da direita */
.wmenu-panel--sub.is-active {
    transform: translateX(0);
}

/* -------------------------------------------
   Cabeçalho de cada panel
   ------------------------------------------- */
.wmenu-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
    min-height: 64px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    gap: 12px;
}

/* Logo no panel principal */
.wmenu-panel__head .wmenu-logo img {
    display: block;
    width: 130px;
    height: auto;
    object-fit: contain;
}

/* Botão fechar (X) */
.wmenu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.wmenu-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
.wmenu-close svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: #020407;
}

/* Botão voltar + título no sub-panel */
.wmenu-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.wmenu-back:hover {
    background: rgba(0, 0, 0, 0.12);
}
.wmenu-back svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: #020407;
    flex-shrink: 0;
}

.wmenu-panel__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-PlusJakartaSans, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #020407;
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
}

/* -------------------------------------------
   Listas de links
   ------------------------------------------- */
.wmenu-panel__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 24px;
}

.wmenu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

/* Item simples */
.wmenu-list__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.wmenu-list__item:last-child {
    border-bottom: none;
}

.wmenu-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;

    font-family: var(--font-PlusJakartaSans, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #020407;
    text-decoration: none;

    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.wmenu-list__link:hover,
.wmenu-list__link:active {
    color: var(--color-primary, #ddd);
    background: var(--color-primary-10, #fefefe);
}

/* Botão "ver sub-panel" (seta) */
.wmenu-list__link--has-sub {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    font-family: var(--font-PlusJakartaSans, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #020407;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.wmenu-list__link--has-sub .wmenu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    transition: background 0.15s, transform 0.15s;
}
.wmenu-list__link--has-sub:hover .wmenu-arrow {
    background: var(--color-primary-10, #fefefe);
}
.wmenu-list__link--has-sub .wmenu-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: #555;
    transition: stroke 0.15s;
}
.wmenu-list__link--has-sub:hover .wmenu-arrow svg {
    stroke: var(--color-primary, #ddd);
}

/* Sub-itens (dentro dos sub-panels) */
.wmenu-list--sub .wmenu-list__link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 14px 24px;
}
.wmenu-list--sub .wmenu-list__link:hover {
    color: var(--color-primary, #ddd);
    background: var(--color-primary-10, #fefefe);
    padding-left: 28px;
}

/* -------------------------------------------
   Rodapé do menu (botão orçamento)
   ------------------------------------------- */
.wmenu-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.wmenu-footer .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
}
.wmenu-footer .button span {
    font-size: 13px;
    letter-spacing: 1.5px;
}
