/*
 * 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.9s) var(--wp--custom--ease, ease), transform var(--pf-reveal-duration, 0.9s) var(--wp--custom--ease, ease);
	will-change: opacity, transform;
}
.pf-js .pf-reveal-up { transform: translateY(28px); }
.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: 3px solid var(--wp--preset--color--accent, currentColor);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- page basics ---------- */
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; font-variation-settings: "wdth" 100; }
img, svg, canvas { max-width: 100%; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks main { margin-block-start: 0; }
.wp-block-post-content > .alignfull, .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
h1, h2, h3, h4 { font-variation-settings: "wdth" 116; }
@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; }
}

/* ---------- shared section building blocks ---------- */
.pf-section { position: relative; padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); padding-left: clamp(1.25rem, 3.5vw, 3rem); padding-right: clamp(1.25rem, 3.5vw, 3rem); }
.pf-section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.pf-section.pf-wide > * { max-width: 1280px; }
.pf-section > .alignfull { max-width: none; }

/* blueprint surface */
.pf-bp {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	background-image:
		linear-gradient(rgba(202, 219, 255, 0.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(202, 219, 255, 0.16) 1px, transparent 1px),
		linear-gradient(rgba(202, 219, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(202, 219, 255, 0.07) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
}
.pf-bp :where(h1, h2, h3, h4, h5, h6, p, li) { color: inherit; }
.pf-grain { position: relative; }
.pf-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.08;
	mix-blend-mode: overlay;
	background-image: url("../svg/grain.svg");
}

/* headings and lead text */
.pf-d { font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -0.035em; line-height: 0.94; }
h2.pf-d { font-size: var(--wp--preset--font-size--xx-large); max-width: 16ch; margin-top: 0; }
.pf-hand { font-family: var(--wp--preset--font-family--hand); font-weight: 400; letter-spacing: 0; font-variation-settings: normal; }
.pf-lede { font-size: var(--wp--preset--font-size--lede); color: var(--wp--preset--color--muted); max-width: 56ch; margin-top: 20px; line-height: 1.6; }
.pf-bp .pf-lede, .has-primary-background-color .pf-lede, .pf-on-dark .pf-lede { color: var(--wp--preset--color--muted-light); }

/* checkmark lists */
.pf-checks { list-style: none; padding: 0; margin: 0; }
.pf-checks li { position: relative; padding-left: 30px; }
.pf-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.22em;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("../svg/icon-check.svg") center / contain no-repeat;
	mask: url("../svg/icon-check.svg") center / contain no-repeat;
}

/* title block (the drawing-sheet label used on every page header and the footer) */
.pf-tblock {
	display: grid;
	grid-template-columns: auto auto;
	gap: 0;
	border: 1.5px solid rgba(202, 219, 255, 0.55);
	font-size: 0.78rem;
	min-width: 280px;
	background: rgba(10, 20, 48, 0.25);
	backdrop-filter: blur(4px);
}
.pf-tblock > * { margin: 0; padding: 8px 12px; border-right: 1px solid rgba(202, 219, 255, 0.35); border-bottom: 1px solid rgba(202, 219, 255, 0.35); }
.pf-tblock > :nth-child(2n) { border-right: 0; }
.pf-tblock > :nth-last-child(-n + 2) { border-bottom: 0; }
.pf-tblock .pf-tcell { display: block; }
.pf-tblock .pf-tcell > * { margin: 0; }
.pf-tblock .pf-tlabel { display: block; color: var(--wp--preset--color--muted-light); font-size: 0.68rem; line-height: 1.4; }
.pf-tblock .pf-tvalue { display: block; font-weight: 600; color: var(--wp--preset--color--base); font-size: 0.78rem; line-height: 1.4; }
.pf-tblock .pf-tvalue a { color: inherit; }
.pf-tblock .pf-tvalue.pf-big { font-size: 1.5rem; font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* buttons: the colour fills in from the pointer */
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	white-space: nowrap;
	transition: color 0.4s var(--wp--custom--ease), transform 0.5s var(--wp--custom--ease), border-color 0.4s, background-color 0.4s;
	--x: 50%;
	--y: 50%;
}
.wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	clip-path: circle(0 at var(--x) var(--y));
	background: var(--wp--preset--color--contrast);
	transition: clip-path 0.6s var(--wp--custom--ease);
}
.wp-block-button__link:hover::before, .wp-block-button__link:focus-visible::before { clip-path: circle(150% at var(--x) var(--y)); }
.wp-block-button.is-style-amber .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-amber .wp-block-button__link::before { background: var(--wp--preset--color--base); }
.wp-block-button.is-style-amber .wp-block-button__link:hover, .wp-block-button.is-style-amber .wp-block-button__link:focus-visible { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--base); border: 1.5px solid rgba(202, 219, 255, 0.4); }
.wp-block-button.is-style-ghost .wp-block-button__link::before { background: var(--wp--preset--color--base); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover, .wp-block-button.is-style-ghost .wp-block-button__link:focus-visible { background: transparent; color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-line .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1.5px solid rgba(14, 26, 51, 0.12); }
.wp-block-button.is-style-line .wp-block-button__link:hover, .wp-block-button.is-style-line .wp-block-button__link:focus-visible { background: transparent; color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-phone .wp-block-button__link::before { display: none; }
.wp-block-buttons.is-layout-flex { gap: 12px; }

/* progress bar and floating call button (added by assets/js/site.js) */
.pf-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 210; transform-origin: left; transform: scaleX(0); background: var(--wp--preset--color--accent); pointer-events: none; }
.pf-fab {
	position: fixed; right: 16px; bottom: 16px; z-index: 190; width: 58px; height: 58px; border-radius: 18px;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
	display: none; place-items: center; box-shadow: 0 14px 30px -10px rgba(233, 162, 28, 0.8);
	transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.pf-fab::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: url("../svg/icon-phone.svg") center / contain no-repeat; mask: url("../svg/icon-phone.svg") center / contain no-repeat; }
.pf-fab.show { transform: scale(1); }
.pf-fab:hover { background: var(--wp--preset--color--base); }
@media (max-width: 1060px) { .pf-fab { display: grid; } }

/* skip link */
.pf-skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); padding: 10px 16px; border-radius: 8px; transition: top 0.2s; }
.pf-skip:focus { top: 16px; }

/* ---------- page header (blueprint hero shared by the inner pages) ---------- */
.pf-page-hero { position: relative; overflow: hidden; padding: calc(84px + clamp(70px, 9vw, 120px)) clamp(1.25rem, 3.5vw, 3rem) clamp(56px, 6vw, 84px); }
.pf-page-hero::before {
	content: "";
	position: absolute;
	right: -60px;
	top: 94px;
	width: min(520px, 46vw);
	aspect-ratio: 520 / 380;
	background: center / contain no-repeat;
	opacity: 0.55;
	pointer-events: none;
}
.pf-page-hero > * { max-width: 1280px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.pf-page-hero__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.pf-page-hero__in > * { margin: 0; }
.pf-crumbs { display: flex; gap: 10px; font-size: 0.9rem; color: var(--wp--preset--color--muted-light); margin: 0 0 26px; }
.pf-crumbs a { color: var(--wp--preset--color--base); font-weight: 700; text-decoration: none; }
.pf-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-page-title { margin: 0; font-size: var(--wp--preset--font-size--page-title); font-weight: 850; line-height: 0.88; letter-spacing: -0.05em; font-variation-settings: "wdth" 122; color: var(--wp--preset--color--base); }
.pf-page-lede { margin: 26px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--wp--preset--color--muted-light); max-width: 52ch; }
.pf-page-dim { position: relative; margin: 44px 0 0; height: 22px; max-width: 760px; text-align: center; line-height: 22px; font-family: var(--wp--preset--font-family--hand); color: var(--wp--preset--color--line); font-size: 0.98rem; border-left: 1px solid var(--wp--preset--color--line); border-right: 1px solid var(--wp--preset--color--line); }
.pf-page-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--wp--preset--color--line); }
.pf-page-dim span { position: relative; padding: 0 12px; background: var(--wp--preset--color--primary); }
.pf-page-hero .pf-tblock { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
	.pf-js .pf-page-hero .pf-page-title, .pf-js .pf-page-hero .pf-page-lede, .pf-js .pf-page-hero .pf-page-dim, .pf-js .pf-page-hero .pf-tblock { animation: pf-fade-up 1s var(--wp--custom--ease) both; }
	.pf-js .pf-page-hero .pf-page-lede { animation-delay: 0.25s; }
	.pf-js .pf-page-hero .pf-page-dim { animation-delay: 0.4s; }
	.pf-js .pf-page-hero .pf-tblock { animation-delay: 0.5s; }
}
@keyframes pf-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
	.pf-page-hero__in { grid-template-columns: 1fr; }
	.pf-page-hero .pf-tblock { justify-self: start; }
	.pf-page-hero::before { opacity: 0.25; }
}
