/* =====================================================
   AVANTHY — HOVER DO MENU
   ===================================================== */

header .avt-menu-hover-link {
    position: relative;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease !important;
}

/* Links comuns do menu */
header .avt-menu-hover-link:not(.avt-menu-hover-models)::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -5px;
    left: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #ff5700,
        #ff8129
    );
    transition:
        right 0.22s ease,
        left 0.22s ease;
}

@media (hover: hover) {
    header .avt-menu-hover-link:not(.avt-menu-hover-models):hover {
        color: #ff6600 !important;
        transform: translateY(-1px);
    }

    header .avt-menu-hover-link:not(.avt-menu-hover-models):hover::after {
        right: 12%;
        left: 12%;
    }

    /*
     * Botão Ver modelos:
     * laranja no estado normal e azul no hover.
     */
    header .avt-menu-hover-models:hover {
        border-color: #0065a3 !important;
        background:
            linear-gradient(
                135deg,
                #00234d,
                #0065a3
            ) !important;
        color: #ffffff !important;
        box-shadow:
            0 8px 18px rgba(0, 35, 77, 0.20),
            0 3px 7px rgba(0, 101, 163, 0.15) !important;
        transform: translateY(-2px);
    }
}

/* Clique discreto */
header .avt-menu-hover-link:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Navegação pelo teclado */
header .avt-menu-hover-link:focus-visible {
    border-radius: 8px;
    outline: 2px solid #ff6600 !important;
    outline-offset: 4px !important;
}

/* Remove qualquer animação de entrada antiga do botão */
header .avt-menu-hover-models {
    animation: none !important;
}

/* Mantém o comportamento estável no celular */
@media (hover: none) {
    header .avt-menu-hover-link:hover {
        transform: none !important;
    }

    header .avt-menu-hover-link::after {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    header .avt-menu-hover-link {
        transition: none !important;
    }

    header .avt-menu-hover-link:hover,
    header .avt-menu-hover-link:active {
        transform: none !important;
    }
}

/* AVANTHY MENU GRADIENTE START */

/*
 * Links comuns do menu:
 * texto laranja em degradê no hover.
 */
@media (hover: hover) {
    header
    .avt-menu-hover-link:not(.avt-menu-hover-models):hover {
        color: #ff6600 !important;
        background:
            linear-gradient(
                135deg,
                #ff4d00 0%,
                #ff6600 48%,
                #ff9a4d 100%
            ) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        transform: translateY(-1px);
    }

    /*
     * Linha inferior também com degradê mais elegante.
     */
    header
    .avt-menu-hover-link:not(.avt-menu-hover-models)::after {
        background:
            linear-gradient(
                90deg,
                #ff4d00 0%,
                #ff6600 45%,
                #ff9a4d 100%
            ) !important;
        box-shadow:
            0 2px 7px rgba(255, 102, 0, 0.22);
    }
}

/*
 * Garante que o botão Ver modelos
 * continue com texto branco.
 */
header .avt-menu-hover-models,
header .avt-menu-hover-models:hover {
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

/*
 * Evita problemas em navegadores sem suporte
 * ao recorte de fundo no texto.
 */
@supports not (-webkit-background-clip: text) {
    header
    .avt-menu-hover-link:not(.avt-menu-hover-models):hover {
        background: transparent !important;
        color: #ff6600 !important;
    }
}

/* AVANTHY MENU GRADIENTE END */

/* AVANTHY BOTAO MODELOS DEGRADE START */

/*
 * Estado normal:
 * botão Ver modelos em laranja degradê.
 */
header .avt-menu-hover-models {
    border-color: rgba(255, 102, 0, 0.72) !important;
    background:
        linear-gradient(
            135deg,
            #ff4d00 0%,
            #ff6600 48%,
            #ff934d 100%
        ) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    box-shadow:
        0 7px 16px rgba(255, 102, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.17) !important;
}

/*
 * Hover permanece azul como já estava.
 */
@media (hover: hover) {
    header .avt-menu-hover-models:hover {
        border-color: #0065a3 !important;
        background:
            linear-gradient(
                135deg,
                #00234d 0%,
                #0065a3 100%
            ) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-shadow:
            0 8px 18px rgba(0, 35, 77, 0.20),
            0 3px 7px rgba(0, 101, 163, 0.15) !important;
        transform: translateY(-2px);
    }
}

/* Clique discreto */
header .avt-menu-hover-models:active {
    background:
        linear-gradient(
            135deg,
            #00234d,
            #0065a3
        ) !important;
    transform: translateY(0) scale(0.98) !important;
}

/* AVANTHY BOTAO MODELOS DEGRADE END */
