/* accessibility.css - Estilos de Acessibilidade */

/* Botão VLibras */
.custom-vlibras-btn {
    background: var(--color-charcoal);
    border: 2px solid var(--color-crimson);
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: fixed;
    bottom: 580px;
    right: 20px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    width: 50px;
    height: 50px;
}

.custom-vlibras-btn:hover {
    background: var(--color-crimson);
    border-color: var(--color-crimson-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.vlibras-icon {
    font-size: 1.3rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Botão de Acessibilidade */
.accessibility-btn {
    background: var(--color-charcoal);
    border: 2px solid var(--color-crimson);
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: fixed;
    bottom: 520px;
    right: 20px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    width: 50px;
    height: 50px;
}

.accessibility-btn:hover {
    background: var(--color-crimson);
    border-color: var(--color-crimson-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.accessibility-icon {
    font-size: 1.3rem;
    color: #ffffff;
}

/* Menu de Acessibilidade */
.accessibility-menu {
    position: fixed;
    bottom: 180px;
    right: 80px;
    background: var(--color-obsidian);
    border: 2px solid var(--color-crimson);
    border-radius: 12px;
    padding: 15px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.accessibility-menu.active {
    display: flex;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(220, 38, 38, 0.35);
}

.menu-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
}

.accessibility-option {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    width: 100%;
}

.accessibility-option:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

.option-icon {
    font-size: 1rem;
    width: 20px;
}

/* Estilos de Tamanho de Texto
   O JS ja controla a escala via font-size do html.
   Mantemos classes leves para evitar escalonamento duplo e quebra de layout. */
.text-small,
.text-smaller,
.text-smallest,
.text-large,
.text-larger,
.text-largest {
    line-height: inherit !important;
}

.text-small,
.text-smaller,
.text-smallest,
.text-large,
.text-larger,
.text-largest {
    font-size: inherit !important;
}

body.text-large .accessibility-menu,
body.text-larger .accessibility-menu,
body.text-largest .accessibility-menu {
    max-width: min(92vw, 320px);
}

body.text-large .accessibility-option,
body.text-larger .accessibility-option,
body.text-largest .accessibility-option {
    white-space: normal;
    line-height: 1.4;
}

/* Alto Contraste */
.high-contrast {
    background: #000000 !important;
    color: #ffff00 !important;
    filter: none !important;
}

.high-contrast * {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

/* Correções específicas para elementos */
.high-contrast .clients-section,
.high-contrast .clients-container,
.high-contrast .clients-carousel,
.high-contrast .clients-slide,
.high-contrast .client-logo-container,
.high-contrast .client-logo-item,
.high-contrast .client-logo-wrapper {
    background: transparent !important;
}

.high-contrast .client-logo-img,
.high-contrast .client-logo,
.high-contrast .clients-carousel img {
    background: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.high-contrast .clients-section h2,
.high-contrast .clients-section p,
.high-contrast .clients-carousel .text-content {
    color: #ffff00 !important;
    background: transparent !important;
}

.high-contrast .logo-img,
.high-contrast img:not([src*="background"]):not([src*="banner"]) {
    background: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.high-contrast img,
.high-contrast video,
.high-contrast canvas {
    filter: none !important;
    -webkit-filter: none !important;
}

.high-contrast i,
.high-contrast svg,
.high-contrast path,
.high-contrast [class*="icon"] {
    filter: none !important;
    -webkit-filter: none !important;
    color: #ffff00 !important;
    stroke: #ffff00 !important;
    fill: #ffff00 !important;
    background: transparent !important;
}

.high-contrast .contact-item,
.high-contrast .contact-item span,
.high-contrast .footer-contact .contact-item,
.high-contrast .footer-links a,
.high-contrast .footer-bottom-links a {
    color: #ffff00 !important;
    opacity: 1 !important;
}

.high-contrast .contact-item i,
.high-contrast .contact-item svg,
.high-contrast .contact-item [data-lucide],
.high-contrast .social-link i,
.high-contrast .social-link svg,
.high-contrast .social-link [data-lucide] {
    color: #ffff00 !important;
    stroke: #ffff00 !important;
    fill: #ffff00 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.high-contrast .social-link {
    background: #000000 !important;
    border: 1px solid #ffff00 !important;
}

/* Contato (CTA) em alto contraste */
.high-contrast .cta-section .section-label {
    color: #ff3b30 !important;
    background: transparent !important;
}

.high-contrast .cta-section .text-gradient-gold {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ff3b30 !important;
    color: #ff3b30 !important;
    text-shadow: none !important;
}

.high-contrast .cta-section .cta-title,
.high-contrast .cta-section .cta-description,
.high-contrast .cta-section .cta-benefits li,
.high-contrast .cta-section .form-group label,
.high-contrast .cta-section .form-success h3,
.high-contrast .cta-section .form-success p {
    color: #ffff00 !important;
    background: transparent !important;
}

.high-contrast .cta-section .cta-form-container {
    background: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .cta-section .form-group input,
.high-contrast .cta-section .form-group select {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

.high-contrast .cta-section .form-group input::placeholder {
    color: rgba(255, 255, 0, 0.85) !important;
}

/* Hardening específico do bloco #contato */
.high-contrast #contato .cta-bg-elements,
.high-contrast #contato .cta-glow {
    display: none !important;
}

.high-contrast #contato .cta-text,
.high-contrast #contato .cta-description,
.high-contrast #contato .cta-benefits,
.high-contrast #contato .cta-benefits li,
.high-contrast #contato .cta-form,
.high-contrast #contato .form-group,
.high-contrast #contato .form-group label,
.high-contrast #contato .form-group input,
.high-contrast #contato .form-group select {
    opacity: 1 !important;
    visibility: visible !important;
}

.high-contrast #contato .cta-description,
.high-contrast #contato .cta-benefits li,
.high-contrast #contato .form-group label {
    color: #ffff00 !important;
}

.high-contrast #contato .section-label,
.high-contrast #contato .text-gradient-gold {
    color: #ff3b30 !important;
    -webkit-text-fill-color: #ff3b30 !important;
}

/* Preserva textos de destaque (vermelhos/gradiente) no alto contraste em todo o site */
.high-contrast .text-gradient-gold,
.high-contrast .section-title span,
.high-contrast .timeline-title span,
.high-contrast .page-title span,
.high-contrast [class*="hero-"][class*="__title"] span {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ff3b30 !important;
    color: #ff3b30 !important;
    text-shadow: none !important;
}

.high-contrast .section-label,
.high-contrast .modalidade-subtitle,
.high-contrast .stat-sub {
    color: #ff3b30 !important;
    background: transparent !important;
}

/* Botões em alto contraste */
.high-contrast .custom-vlibras-btn,
.high-contrast .accessibility-btn {
    background: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

.high-contrast .custom-vlibras-btn:hover,
.high-contrast .accessibility-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

.high-contrast .vlibras-icon,
.high-contrast .accessibility-icon {
    color: inherit !important;
}

.high-contrast .accessibility-menu {
    background: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .accessibility-option {
    background: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

.high-contrast .accessibility-option:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

.high-contrast .menu-title,
.high-contrast .close-menu {
    color: #ffff00 !important;
}

.high-contrast .close-menu:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .custom-vlibras-btn,
    .accessibility-btn {
        padding: 10px;
        font-size: 1.1rem;
        bottom: 150px;
        right: 15px;
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    .accessibility-btn {
        bottom: 100px;
    }

    .accessibility-menu {
        bottom: 150px;
        right: 70px;
        min-width: 180px;
    }

    .vlibras-icon,
    .accessibility-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .custom-vlibras-btn,
    .accessibility-btn {
        padding: 8px;
        font-size: 1rem;
        bottom: 130px;
        right: 10px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .accessibility-btn {
        bottom: 90px;
    }

    .accessibility-menu {
        bottom: 130px;
        right: 60px;
        min-width: 160px;
    }

    .vlibras-icon,
    .accessibility-icon {
        font-size: 1.1rem;
    }

    .accessibility-option {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .menu-title {
        font-size: 0.9rem;
    }
}

/* Esconde o botão original do VLibras */
.vw-access-button {
    display: none !important;
}

[vw-access-button],
.vw-plugin-top-wrapper {
    display: none !important;
}
