/* REC — estilos complementares ao theme.json.
   Tudo usa as variáveis geradas pelo theme.json (--wp--preset--*, --wp--custom--*): trocar a paleta no theme.json troca o site inteiro.
   Mantido enxuto de propósito: sem framework. */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }

/* ---------- Foco visível (WCAG 2.2) ---------- */
:focus-visible {
	outline: var(--wp--custom--foco--largura, 3px) solid var(--wp--preset--color--azul-700);
	outline-offset: var(--wp--custom--foco--afastamento, 2px);
}
.is-style-secao-azul :focus-visible,
.rec-on-dark :focus-visible,
.rec-footer :focus-visible { outline-color: var(--wp--preset--color--amarelo-500); }

/* Link "ir para o conteúdo" */
.skip-link, .screen-reader-text:focus { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
	left: var(--wp--preset--spacing--md); top: var(--wp--preset--spacing--sm);
	background: var(--wp--preset--color--amarelo-500); color: var(--wp--preset--color--azul-800);
	padding: 0.6em 1.1em; border-radius: var(--wp--custom--radius--pilula); font-weight: 700; text-decoration: none;
}

/* ---------- Botões ---------- */
.wp-element-button, .wp-block-button__link {
	transition: background-color var(--wp--custom--movimento--curto) var(--wp--custom--movimento--curva),
		color var(--wp--custom--movimento--curto) var(--wp--custom--movimento--curva),
		transform var(--wp--custom--movimento--curto) var(--wp--custom--movimento--curva);
	text-decoration: none;
}
.wp-block-button.is-style-botao-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--azul-50); }
.wp-block-button.is-style-botao-amarelo .wp-block-button__link:hover { background: var(--wp--preset--color--amarelo-600); }
.is-style-secao-azul .wp-block-button.is-style-botao-ghost .wp-block-button__link {
	color: var(--wp--preset--color--branco); border-color: var(--wp--preset--color--branco);
}
.is-style-secao-azul .wp-block-button.is-style-botao-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }
.wp-element-button[disabled], .wp-element-button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Card ---------- */
.is-style-card { transition: box-shadow var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva); }
@media (prefers-reduced-motion: no-preference) {
	.is-style-card { transition: transform var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva), box-shadow var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva); }
	.is-style-card:hover { transform: translateY(-3px); }
}
.is-style-card:hover { box-shadow: var(--wp--preset--shadow--media); }

/* ---------- Hero e elementos visuais ---------- */
.rec-hero { position: relative; overflow: hidden; isolation: isolate; }
.rec-hero__lateral { background: var(--wp--preset--gradient--hero-lateral); }
.rec-grafismo-r {
	position: absolute; pointer-events: none; z-index: -1; opacity: 0.16;
	width: min(70vw, 640px); aspect-ratio: 640 / 560;
	background: url("../img/grafismo-r.svg") no-repeat center / contain;
}
.rec-grafismo-r--esq { left: -12%; bottom: -14%; }
.rec-grafismo-r--dir { right: -10%; top: -8%; }

/* divisor em onda: colocar no fim da seção de cima, com a cor da seção de baixo */
.rec-onda { display: block; width: 100%; height: clamp(40px, 6vw, 96px); margin: -1px 0 0; background-repeat: no-repeat; background-size: 100% 100%; }
.rec-onda--branco { background-image: url("../img/divisor-onda-branco.svg"); }
.rec-onda--creme { background-image: url("../img/divisor-onda-creme.svg"); }
.rec-onda--azul-claro { background-image: url("../img/divisor-onda-azul-claro.svg"); }

/* foto com duotone azul (reforço quando o filtro SVG nativo não estiver disponível) */
.rec-foto-duotone { position: relative; border-radius: var(--wp--custom--radius--card-grande); overflow: hidden; }
.rec-foto-duotone::after { content: ""; position: absolute; inset: 0; background: var(--wp--preset--gradient--sobreposicao-foto); pointer-events: none; }

/* ---------- Cabeçalho fixo e compacto ---------- */
.rec-header {
	position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--branco);
	min-height: var(--wp--custom--cabecalho--altura-topo); display: flex; align-items: center;
	transition: min-height var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva), box-shadow var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva);
}
.rec-header.is-scrolled { min-height: var(--wp--custom--cabecalho--altura-compacto); box-shadow: var(--wp--preset--shadow--suave); }
.rec-header .custom-logo, .rec-header img { transition: height var(--wp--custom--movimento--medio) var(--wp--custom--movimento--curva); }
.rec-header.is-scrolled .custom-logo, .rec-header.is-scrolled .wp-block-site-logo img { height: 2.5rem; width: auto; }

/* ---------- Ícones (máscara: herdam a cor do texto) ---------- */
.rec-icon { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; background-color: currentColor; -webkit-mask: var(--rec-icon) center / contain no-repeat; mask: var(--rec-icon) center / contain no-repeat; vertical-align: -0.2em; }
.rec-icon--grande { width: 2.25rem; height: 2.25rem; }
.rec-icon-caixa {
	display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem;
	border-radius: var(--wp--custom--radius--campo); background: var(--wp--preset--color--azul-50); color: var(--wp--preset--color--azul-700);
}

/* ---------- Formulários (usados na Etapa 6) ---------- */
.rec-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--wp--preset--color--neutro-800); }
.rec-form .rec-ajuda { color: var(--wp--preset--color--neutro-600); font-size: var(--wp--preset--font-size--pequeno); margin: 0.25rem 0 0; }
.rec-form input[type="text"], .rec-form input[type="email"], .rec-form input[type="tel"], .rec-form select, .rec-form textarea {
	width: 100%; font: inherit; color: var(--wp--preset--color--neutro-800); background: var(--wp--preset--color--branco);
	border: 1.5px solid var(--wp--preset--color--neutro-400); border-radius: var(--wp--custom--radius--campo);
	padding: 0.75em 0.9em; min-height: 2.9rem;
	transition: border-color var(--wp--custom--movimento--curto), box-shadow var(--wp--custom--movimento--curto);
}
.rec-form textarea { min-height: 8rem; resize: vertical; }
.rec-form input:hover, .rec-form select:hover, .rec-form textarea:hover { border-color: var(--wp--preset--color--azul-600); }
.rec-form input:focus-visible, .rec-form select:focus-visible, .rec-form textarea:focus-visible {
	outline: none; border-color: var(--wp--preset--color--azul-700); box-shadow: 0 0 0 3px var(--wp--preset--color--azul-200);
}
.rec-form [aria-invalid="true"] { border-color: var(--wp--preset--color--erro); background: var(--wp--preset--color--erro-50); }
.rec-form .rec-erro { color: var(--wp--preset--color--erro); font-size: var(--wp--preset--font-size--pequeno); font-weight: 600; margin: 0.3rem 0 0; }
.rec-form input[type="checkbox"] { width: 1.5rem; height: 1.5rem; accent-color: var(--wp--preset--color--azul-600); margin-right: 0.5rem; flex: none; }
.rec-form input[type="file"] {
	width: 100%; border: 1.5px dashed var(--wp--preset--color--azul-600); border-radius: var(--wp--custom--radius--campo);
	padding: 1rem; background: var(--wp--preset--color--azul-50);
}
.rec-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot */
.rec-alerta { border-radius: var(--wp--custom--radius--campo); padding: 0.9rem 1.1rem; border: 1.5px solid; display: flex; gap: 0.7rem; align-items: flex-start; }
.rec-alerta--sucesso { background: var(--wp--preset--color--sucesso-50); border-color: var(--wp--preset--color--sucesso); color: var(--wp--preset--color--sucesso); }
.rec-alerta--erro { background: var(--wp--preset--color--erro-50); border-color: var(--wp--preset--color--erro); color: var(--wp--preset--color--erro); }

/* ---------- Movimento: aparecer ao rolar ---------- */
.rec-js .rec-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--wp--custom--movimento--longo) var(--wp--custom--movimento--curva), transform var(--wp--custom--movimento--longo) var(--wp--custom--movimento--curva); }
.rec-js .rec-reveal.is-visible { opacity: 1; transform: none; }
.rec-js .rec-reveal[data-atraso="1"] { transition-delay: 80ms; }
.rec-js .rec-reveal[data-atraso="2"] { transition-delay: 160ms; }
.rec-js .rec-reveal[data-atraso="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.rec-js .rec-reveal { opacity: 1 !important; transform: none !important; }
	.is-style-card:hover { transform: none !important; }
}
