/**
 * Foment — Menu Personalizado (Hero Desktop + Mobile Trigger & Off-Canvas Sidebar)
 * Família tipográfica: Suisse Int'l (300, 400, 500, 600, 700)
 */

@font-face {
    font-family: "Suisse Intl";
    src: url("../fonts/SuisseIntl-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Suisse Intl";
    src: url("../fonts/SuisseIntl-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Suisse Intl";
    src: url("../fonts/SuisseIntl-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Suisse Intl";
    src: url("../fonts/SuisseIntl-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Suisse Intl";
    src: url("../fonts/SuisseIntl-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.foment-nav-wrapper {
    --fm-text-color: #A3AEB9;
    --fm-text-hover: #FFFFFF;
    --fm-text-active: #FFFFFF;
    --fm-line-color: #FFFFFF;
    --fm-line-height: 1.5px;
    --fm-line-offset: 6px;
    --fm-item-gap: 44px;
    --fm-sidebar-bg: #07131D;
    --fm-sidebar-width: 380px;
    --fm-sidebar-link-color: #A3AEB9;
    --fm-sidebar-link-active: #FFFFFF;
    --fm-sidebar-border: rgba(255, 255, 255, 0.14);
    --fm-cta-bg: #EAECE6;
    --fm-cta-color: #07131D;

    position: relative;
    font-family: "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.foment-nav-wrapper *,
.foment-nav-wrapper *::before,
.foment-nav-wrapper *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   1. DESKTOP MENU (Hero Horizontal ou Vertical com Risco Inferior)
   ========================================================================== */
.foment-desktop-nav {
    display: flex;
    align-items: center;
}

.foment-desktop-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fm-item-gap);
    align-items: center;
}

/* Orientação Vertical (Empilhado) */
.foment-nav-wrapper.is-layout-vertical .foment-desktop-list {
    flex-direction: column;
    align-items: flex-start;
}

/* Orientação Horizontal (Lado a Lado) */
.foment-nav-wrapper.is-layout-horizontal .foment-desktop-list {
    flex-direction: row;
}

.foment-desktop-item {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    list-style: none !important;
}

.foment-nav-wrapper a.foment-desktop-link {
    position: relative;
    display: inline-block;
    color: var(--fm-text-color) !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: var(--fm-line-offset);
    transition: color 0.28s ease, font-weight 0.2s ease;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Risco embaixo (Underline no Ativo e no Hover) */
.foment-nav-wrapper a.foment-desktop-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--fm-line-height);
    background-color: var(--fm-line-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    opacity: 0;
}

/* Efeito de animação centralizada opcional */
.foment-nav-wrapper.line-anim-center a.foment-desktop-link::after {
    transform-origin: center center;
}

.foment-nav-wrapper a.foment-desktop-link:hover,
.foment-nav-wrapper a.foment-desktop-link:focus {
    color: var(--fm-text-hover) !important;
    background: transparent !important;
    outline: none !important;
}

.foment-nav-wrapper .foment-desktop-item.is-active > a.foment-desktop-link {
    color: var(--fm-text-active) !important;
    font-weight: 500;
}

.foment-nav-wrapper a.foment-desktop-link:hover::after,
.foment-nav-wrapper .foment-desktop-item.is-active > a.foment-desktop-link::after {
    transform: scaleX(1);
    opacity: 1;
}

/* ==========================================================================
   2. BOTÃO TRIGGER MOBILE ("Menu =") — Sem borda/fundo do tema e alinhado
   ========================================================================== */
.foment-mobile-trigger-wrap {
    display: none;
    align-items: center;
}

.foment-nav-wrapper button.foment-mobile-trigger,
.foment-nav-wrapper button.foment-mobile-trigger:hover,
.foment-nav-wrapper button.foment-mobile-trigger:focus,
.foment-nav-wrapper button.foment-mobile-trigger:active,
.foment-nav-wrapper button.foment-mobile-trigger:focus-visible {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    color: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    line-height: 1 !important;
    transition: opacity 0.2s ease;
}

.foment-nav-wrapper button.foment-mobile-trigger:hover {
    opacity: 0.82;
}

.foment-mobile-trigger-text {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

/* Ícone de 2 traços horizontais arredondados (=) centralizado com o texto */
.foment-mobile-bars {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px;
    width: 28px;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(1px);
}

.foment-mobile-bars span {
    display: block !important;
    width: 100%;
    height: 2.5px;
    background-color: currentColor !important;
    border-radius: 99px;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   3. SIDEBAR OFF-CANVAS MOBILE — Sem bordas vermelhas e links visíveis
   ========================================================================== */
.foment-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.foment-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.foment-sidebar-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--fm-sidebar-width);
    max-width: 100vw;
    height: 100dvh;
    background-color: var(--fm-sidebar-bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px 36px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease, box-shadow 0.4s ease;
    overflow-y: auto;
}

/* Posição da Sidebar: Direita (Padrão) ou Esquerda */
.foment-sidebar-drawer.position-right {
    right: 0;
    transform: translateX(105%);
}

.foment-sidebar-drawer.position-left {
    left: 0;
    transform: translateX(-105%);
}

.foment-sidebar-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Topo da Sidebar: Logo + Botão Fechar (X) sem borda/fundo do tema */
.foment-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.foment-nav-wrapper a.foment-sidebar-brand {
    text-decoration: none !important;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
}

.foment-sidebar-logo-img {
    max-width: 130px;
    height: auto;
    display: block;
}

.foment-sidebar-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    line-height: 1;
}

.foment-nav-wrapper button.foment-sidebar-close,
.foment-nav-wrapper button.foment-sidebar-close:hover,
.foment-nav-wrapper button.foment-sidebar-close:focus,
.foment-nav-wrapper button.foment-sidebar-close:active,
.foment-nav-wrapper button.foment-sidebar-close:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 4px !important;
    margin: 0 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.foment-nav-wrapper button.foment-sidebar-close:hover {
    color: #FFFFFF !important;
    transform: rotate(90deg);
}

.foment-sidebar-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Lista de Links da Sidebar com Seta (→) e Linha Divisória */
.foment-sidebar-nav {
    margin: auto 0;
    padding: 20px 0;
    width: 100%;
}

.foment-sidebar-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.foment-sidebar-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid var(--fm-sidebar-border);
}

.foment-nav-wrapper a.foment-sidebar-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 0;
    color: var(--fm-sidebar-link-color) !important;
    text-decoration: none !important;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.foment-nav-wrapper a.foment-sidebar-link .foment-sidebar-link-text {
    color: inherit !important;
}

.foment-nav-wrapper .foment-sidebar-item.is-active > a.foment-sidebar-link,
.foment-nav-wrapper .foment-sidebar-item.is-active > a.foment-sidebar-link .foment-sidebar-link-text {
    color: var(--fm-sidebar-link-active) !important;
    font-weight: 600;
}

.foment-nav-wrapper a.foment-sidebar-link:hover,
.foment-nav-wrapper a.foment-sidebar-link:focus,
.foment-nav-wrapper a.foment-sidebar-link:hover .foment-sidebar-link-text {
    color: var(--fm-sidebar-link-active) !important;
    background: transparent !important;
    outline: none !important;
}

.foment-sidebar-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-sidebar-link-color) !important;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.foment-nav-wrapper a.foment-sidebar-link:hover .foment-sidebar-arrow,
.foment-nav-wrapper .foment-sidebar-item.is-active > a.foment-sidebar-link .foment-sidebar-arrow {
    transform: translateX(4px);
    color: var(--fm-sidebar-link-active) !important;
}

.foment-sidebar-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* Rodapé da Sidebar: Botão Pílula "FALAR COM UM ESPECIALISTA ↗" */
.foment-sidebar-footer {
    margin-top: 32px;
    width: 100%;
}

.foment-nav-wrapper a.foment-sidebar-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background-color: var(--fm-cta-bg) !important;
    color: var(--fm-cta-color) !important;
    text-decoration: none !important;
    border-radius: 999px;
    border: none !important;
    box-shadow: none !important;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.foment-nav-wrapper a.foment-sidebar-cta span {
    color: inherit !important;
}

.foment-nav-wrapper a.foment-sidebar-cta:hover {
    transform: translateY(-2px);
    opacity: 0.94;
    background-color: var(--fm-cta-bg) !important;
    color: var(--fm-cta-color) !important;
}

.foment-sidebar-cta svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ==========================================================================
   4. BREAKPOINTS RESPONSIVOS (Alternância Desktop <-> Mobile)
   ========================================================================== */
/* Breakpoint Mobile (< 768px) */
@media (max-width: 767px) {
    .foment-nav-wrapper.breakpoint-mobile .foment-desktop-nav {
        display: none !important;
    }
    .foment-nav-wrapper.breakpoint-mobile .foment-mobile-trigger-wrap {
        display: flex !important;
    }
}

/* Breakpoint Tablet (< 1025px) */
@media (max-width: 1024px) {
    .foment-nav-wrapper.breakpoint-tablet .foment-desktop-nav {
        display: none !important;
    }
    .foment-nav-wrapper.breakpoint-tablet .foment-mobile-trigger-wrap {
        display: flex !important;
    }
}

/* Sempre Mostrar o Trigger Mobile (caso o usuário queira usar em todas as telas) */
.foment-nav-wrapper.breakpoint-always .foment-desktop-nav {
    display: none !important;
}
.foment-nav-wrapper.breakpoint-always .foment-mobile-trigger-wrap {
    display: flex !important;
}
