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

/* ===== Proweaver Factory: shared design rules (Family Matters ABA) ===== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) :where(h1, h2, h3, p, ul, ol, figure) { margin-block-end: 0; }
.wp-site-blocks img { display: block; max-width: 100%; height: auto; }
.wp-site-blocks a { text-underline-offset: 3px; }


/* Typography helpers */
.pf-kick { font: 500 clamp(15px, 1.2vw, 19px) / 1.3 var(--wp--preset--font-family--body); text-transform: uppercase; letter-spacing: .04em; color: var(--wp--preset--color--slate); margin-bottom: 10px; }
.pf-kick--white { color: var(--wp--preset--color--base); }
.pf-kick--yellow { color: var(--wp--preset--color--accent); }
.pf-h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.15; letter-spacing: -.005em; font-weight: 400; }
.pf-h3 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.2; font-weight: 400; }
.pf-lead { font-size: clamp(18px, 1.4vw, 20px); color: var(--wp--preset--color--contrast); }
.pf-yellow { color: var(--wp--preset--color--accent); }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons: pill, fill slides up on hover/focus */
.wp-block-buttons { gap: 14px; }
.wp-block-button .wp-block-button__link {
	--pf-slide: var(--wp--preset--color--primary);
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 56px; padding: 0 34px; border-radius: 40px; font: 500 17px / 1.2 var(--wp--preset--font-family--body);
	background-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary);
	box-shadow: 0 14px 30px -14px rgba(254, 197, 9, .9);
	background-image: linear-gradient(var(--pf-slide), var(--pf-slide)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0;
	transition: background-size .55s cubic-bezier(.22, 1, .36, 1), color .45s, translate .3s; text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus-visible { background-size: 100% 101%; translate: 0 -2px; color: var(--pf-slide-text, #fff); background-color: var(--wp--preset--color--accent); }
.wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); --pf-slide: #fff; --pf-slide-text: var(--wp--preset--color--primary); }
.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:focus-visible { background-color: transparent; }
.wp-block-button.pf-link-plain .wp-block-button__link { min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; justify-content: flex-start; translate: none; transition: color .3s; }
.wp-block-button.pf-link-plain .wp-block-button__link:hover, .wp-block-button.pf-link-plain .wp-block-button__link:focus-visible { background: none; color: var(--wp--preset--color--accent); translate: none; }
.pf-on-dark .wp-block-button .wp-block-button__link, .has-primary-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link { --pf-slide: #fff; --pf-slide-text: var(--wp--preset--color--primary); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wp-block-button .wp-block-button__link { transition: none; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Decorative waves (SVG files in assets/svg) */
.pf-wave-b::after { content: ""; position: absolute; left: 50%; translate: -50% 0; width: max(100%, 1920px); aspect-ratio: 1920 / 86; bottom: -1px; background: url(../svg/wave-bottom.svg) center / 100% 100% no-repeat; pointer-events: none; z-index: 3; }
