/*
 * Proweaver Factory: shared helpers. Section styles go in assets/css/sections/<section>.css.
 *
 * Scroll animations: add the class pf-reveal to a block, plus one direction (pf-reveal-up, -down, -left, -right, -zoom)
 * and optionally a delay (pf-delay-1 to pf-delay-4). assets/js/animate.js adds .is-visible when the block comes into
 * view. Nothing is hidden without JavaScript, in the editor, or for visitors who ask for reduced motion.
 */
.pf-js .pf-reveal {
	opacity: 0;
	transition: opacity var(--pf-reveal-duration, 0.6s) ease, transform var(--pf-reveal-duration, 0.6s) ease;
	will-change: opacity, transform;
}
.pf-js .pf-reveal-up { transform: translateY(24px); }
.pf-js .pf-reveal-down { transform: translateY(-24px); }
.pf-js .pf-reveal-left { transform: translateX(-32px); }
.pf-js .pf-reveal-right { transform: translateX(32px); }
.pf-js .pf-reveal-zoom { transform: scale(0.94); }
.pf-js .pf-reveal.is-visible { opacity: 1; transform: none; }
.pf-delay-1 { transition-delay: 0.1s; }
.pf-delay-2 { transition-delay: 0.2s; }
.pf-delay-3 { transition-delay: 0.3s; }
.pf-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	.pf-js .pf-reveal { opacity: 1; transform: none; transition: none; }
}

/* In the editor everything stays visible. */
.editor-styles-wrapper .pf-reveal { opacity: 1 !important; transform: none !important; }

/* A visible keyboard focus for everything clickable. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, currentColor);
	outline-offset: 2px;
}
