/*
 * Painel de acessibilidade — carregado no site (junto do style.css) e na
 * tela de login (junto do login.css). Os tokens var(--ecib-*) têm
 * fallback com os valores padrão do tema porque no login o style.css
 * não está presente.
 */
/* ==========================================================================
   PAINEL DE ACESSIBILIDADE (footer.php + initA11yWidget em main.js).
   Botão fixo na lateral direita, na parte de cima (abaixo do header); o
   painel abre à esquerda dele. Cada opção
   vira uma classe a11y-* no <html>:
   - a11y-size-1/2/3: zoom de 110/125/140% no conteúdo (texto e layout
     crescem juntos, como o zoom do navegador);
   - a11y-contrast: paleta de alto contraste via tokens (preto/branco/
     azul-marinho), sem filtros — não quebra elementos fixos;
   - a11y-gray: escala de cinza (filtro só nas áreas de conteúdo, pra
     não afetar o posicionamento dos elementos fixos);
   - a11y-links: links sublinhados e em negrito;
   - a11y-font: fonte do sistema mais aberta (Verdana/Arial);
   - a11y-spacing: mais entrelinha e espaço entre letras/palavras;
   - a11y-motion: sem animações/transições;
   - a11y-cursor: cursor maior.
   ========================================================================== */
.a11y-widget {
	position: fixed;
	right: 0;
	top: 120px;
	z-index: 9000;
}

.a11y-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 12px 0 0 12px;
	background: var(--ecib-blue, #2e5c8a);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(var(--ecib-ink-rgb, 34, 48, 28), 0.5);
	transition: background 0.2s ease;
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible,
.a11y-widget.is-open .a11y-toggle {
	background: var(--ecib-next-purple, #ad7bcc);
}

.a11y-toggle svg {
	width: 26px;
	height: 26px;
}

.a11y-panel {
	position: absolute;
	right: 52px;
	top: 0;
	width: 260px;
	max-height: calc(100vh - 24px);
	overflow: auto;
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	color: #22301c;
	font-family: var(--ecib-font-body, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
	font-size: 0.9rem;
	box-shadow: 0 30px 60px -20px rgba(var(--ecib-ink-rgb, 34, 48, 28), 0.45);
	border: 1px solid var(--ecib-line, #e0e0e0);
}

.a11y-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-family: var(--ecib-font-heading, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
	font-size: 1rem;
}

.a11y-close {
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(var(--ecib-ink-rgb, 34, 48, 28), 0.06);
	color: inherit;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.a11y-close:hover {
	background: rgba(var(--ecib-next-purple-rgb, 173, 123, 204), 0.15);
	color: var(--ecib-next-purple, #ad7bcc);
}

.a11y-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0 12px;
	border-bottom: 1px solid var(--ecib-line, #e0e0e0);
	margin-bottom: 8px;
}

.a11y-row-label {
	font-weight: 700;
}

.a11y-row-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.a11y-btn {
	min-width: 36px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid rgba(var(--ecib-blue-rgb, 46, 92, 138), 0.35);
	border-radius: 8px;
	background: #fff;
	color: var(--ecib-blue, #2e5c8a);
	font-family: var(--ecib-font-heading, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
	font-weight: 700;
	cursor: pointer;
}

.a11y-btn:hover {
	background: rgba(var(--ecib-next-purple-rgb, 173, 123, 204), 0.12);
	border-color: var(--ecib-next-purple, #ad7bcc);
	color: var(--ecib-next-purple, #ad7bcc);
}

.a11y-size-value {
	min-width: 42px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.a11y-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 8px;
	border: none;
	border-radius: 8px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.a11y-option:hover {
	background: rgba(var(--ecib-next-purple-rgb, 173, 123, 204), 0.1);
}

.a11y-option-check {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(var(--ecib-ink-rgb, 34, 48, 28), 0.35);
	border-radius: 5px;
	background: #fff;
}

.a11y-option[aria-pressed="true"] .a11y-option-check {
	border-color: var(--ecib-blue, #2e5c8a);
	background: var(--ecib-blue, #2e5c8a) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3e%3cpath d='M7 11.5L4.5 9 3 10.5l4 4 9-9L14.5 4z'/%3e%3c/svg%3e") center / 12px no-repeat;
}

.a11y-panel-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--ecib-line, #e0e0e0);
}

.a11y-reset {
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: var(--ecib-blue, #2e5c8a);
	color: #fff;
	font-family: var(--ecib-font-heading, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
}

.a11y-reset:hover {
	background: var(--ecib-next-purple, #ad7bcc);
}

.a11y-more {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ecib-blue, #2e5c8a);
	text-decoration: underline;
}

@media (max-width: 500px) {
	/* Botão na altura da palavra "Club" — a primeira linha do título do
	   banner. A conta: a .hero-banner sobe 100px (margin-top) e devolve
	   130px de padding-top, então o título começa a 130px do topo da
	   janela; a primeira linha tem 40px de altura (line-height do
	   .hero-title nesta faixa), logo o meio dela está a 150px. Menos
	   metade dos 44px do botão, dá o top abaixo.

	   Se o padding-top do banner ou o line-height do título mudarem,
	   este valor precisa acompanhar. */
	.a11y-widget {
		top: calc(130px + 20px - 22px);
		bottom: auto;
		transform: none;
	}

	/* Painel volta a abrir pra baixo, a partir do topo do botão (top:0 da
	   regra base). A altura máxima desconta a distância até ele mais uma
	   folga no rodapé. */
	.a11y-panel {
		right: 48px;
		width: calc(100vw - 64px);
		max-width: 300px;
		max-height: calc(100vh - 152px);
	}
}

/* ---- Efeitos das opções ------------------------------------------------ */
html.a11y-size-1 body { zoom: 1.1; }
html.a11y-size-2 body { zoom: 1.25; }
html.a11y-size-3 body { zoom: 1.4; }

/* Alto contraste: tokens em preto/branco/marinho (texto ≥ 7:1). */
html.a11y-contrast {
	--ecib-ink: #000000;
	--ecib-ink-rgb: 0, 0, 0;
	--ecib-blue: #002a5c;
	--ecib-blue-rgb: 0, 42, 92;
	--ecib-blue-hover: #001a3a;
	--ecib-next-purple: #4a1a6b;
	--ecib-next-purple-rgb: 74, 26, 107;
	--ecib-teal: #ffffff;
	--ecib-green: #ffffff;
	--ecib-yellow: #ffffff;
	--ecib-orange: #ffffff;
	--ecib-teal-rgb: 255, 255, 255;
	--ecib-green-rgb: 255, 255, 255;
	--ecib-yellow-rgb: 255, 255, 255;
	--ecib-orange-rgb: 255, 255, 255;
	--ecib-whatsapp: #0b5e2f;
	--ecib-whatsapp-hover: #08451f;
	--ecib-whatsapp-dark: #08451f;
	--ecib-line: #000000;
	--ecib-grey: #333333;
	--ecib-amber-ink: #3d2500;
	--ecib-drawer-accent: #ffe600;
}

html.a11y-contrast body {
	background: #fff;
	color: #000;
}

html.a11y-contrast .instagram-section,
html.a11y-contrast .courses-card,
html.a11y-contrast .testimonial-card,
html.a11y-contrast .instagram-post,
html.a11y-contrast .instagram-profile,
html.a11y-contrast .about-page-pillar,
html.a11y-contrast .about-page-stats {
	background: #fff;
	border-color: #000;
}

html.a11y-contrast .courses-card-highlight,
html.a11y-contrast .contact-form-notice {
	background: #fff3b0;
	color: #000;
}

html.a11y-contrast .courses-goal-tag,
html.a11y-contrast .contact-subject-chip {
	background: #fff;
	color: #000;
	border: 1px solid #000;
}

html.a11y-contrast .courses-goal-tag[aria-pressed="true"] {
	background: #000;
	color: #fff;
}

html.a11y-contrast .speakbr-demo {
	background: #002a5c;
}

html.a11y-contrast a:not([class]),
html.a11y-contrast .footer-links a,
html.a11y-contrast .courses-card-more,
html.a11y-contrast .legal-page-content a {
	color: #002a5c;
	text-decoration: underline;
}

/* Escala de cinza — só nas áreas de conteúdo (um filtro no <html> ou
   no <body> faria os elementos fixos rolarem com a página). */
html.a11y-gray main,
html.a11y-gray .site-footer,
html.a11y-gray .site-header .container {
	filter: grayscale(1);
}

/* Links sublinhados e em negrito. */
html.a11y-links main a,
html.a11y-links .site-footer a {
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-weight: 700;
}

/* Fonte mais legível: família do sistema, mais aberta. */
html.a11y-font body,
html.a11y-font body * {
	font-family: Verdana, "Segoe UI", Arial, sans-serif !important;
}

/* Mais espaçamento (WCAG 1.4.12). */
html.a11y-spacing body {
	line-height: 1.8 !important;
	letter-spacing: 0.06em;
	word-spacing: 0.12em;
}

html.a11y-spacing p,
html.a11y-spacing li {
	line-height: 1.8 !important;
	margin-bottom: 1em;
}

/* Sem animações/transições. */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* Cursor grande. */
html.a11y-cursor,
html.a11y-cursor body,
html.a11y-cursor a,
html.a11y-cursor button {
	cursor: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3e%3cpath d='M5 3l14 9-6 1.5L15.5 20l-2.5 1-2.5-6.5L6 18z' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3e%3c/svg%3e") 6 4, auto !important;
}
