/*
 * 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;
}

/* ---- Page frame (design: sticky header, footer pinned to the bottom, animated background shows through) ---- */
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body ::selection { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
html.pf-intro-lock, html.pf-intro-lock body { overflow: hidden; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.wp-site-blocks > .pf-main { flex-grow: 1; position: relative; z-index: 10; }
.wp-site-blocks > footer { position: relative; z-index: 10; margin-top: auto; }
:where(.pf-main) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin-block: 0; }
:where(.wp-block-group) > :where(*) { margin-block-start: 0; margin-block-end: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--slate-300); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--wp--preset--color--slate-400); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Page gutter used by every full-width section (design: px-4, sm:px-6, lg:px-8). */
:root { --pf-gutter: 1rem; }
@media (min-width: 640px) { :root { --pf-gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --pf-gutter: 2rem; } }

/* The design measures every box with border-box sizing (padding and borders inside the width). */
*, *::before, *::after { box-sizing: border-box; }
