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

/* ------------------------------------------------------------------ design tokens (presets from theme.json) */
:root {
	--pf-ink: var(--wp--preset--color--ink);
	--pf-ink-2: var(--wp--preset--color--ink-2);
	--pf-plum: var(--wp--preset--color--plum);
	--pf-violet: var(--wp--preset--color--violet);
	--pf-magenta: var(--wp--preset--color--magenta);
	--pf-pink: var(--wp--preset--color--pink);
	--pf-rose: var(--wp--preset--color--rose);
	--pf-ivory: var(--wp--preset--color--ivory);
	--pf-white: var(--wp--preset--color--white);
	--pf-mauve: var(--wp--preset--color--mauve);
	--pf-grad: var(--wp--preset--gradient--brand);
	--pf-txt-d: rgba(251, 246, 242, 0.66);
	--pf-line-d: rgba(251, 246, 242, 0.12);
	--pf-line-l: rgba(18, 5, 26, 0.12);
	--pf-serif: var(--wp--preset--font-family--heading);
	--pf-script: var(--wp--preset--font-family--script);
	--pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pf-live: #3ddc84;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
img { max-width: 100%; height: auto; }
::selection { background: var(--pf-magenta); color: var(--pf-white); }
main { overflow-x: clip; }
html:focus-within { scroll-padding-top: 80px; }

/* ------------------------------------------------------------------ type */
.pf-eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0;
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pf-rose);
}
.pf-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.pf-eyebrow-dark { color: var(--pf-magenta); }
.pf-display { font-weight: 400; line-height: 0.98; letter-spacing: -0.025em; margin: 0; }
.pf-display em { font-style: italic; font-weight: 300; color: var(--pf-rose); }
.pf-on-light .pf-display { color: var(--pf-ink); }
.pf-on-light .pf-display em { color: var(--pf-magenta); }
.pf-lead { color: var(--pf-txt-d); max-width: 56ch; margin: 0; }
.pf-on-light p, .pf-on-light .pf-lead { color: var(--pf-mauve); }
.pf-script { font-family: var(--pf-script); font-weight: 400; font-style: normal; background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding: 0.3em 0.14em 0.22em 0.1em; margin: -0.3em -0.04em -0.22em 0; line-height: 1; }
.pf-section-head { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 820px; margin: 0 auto 64px; }
.pf-section-head .pf-eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.pf-section-head .pf-display { margin: 20px 0 22px; }
.pf-section-head .pf-lead { margin: 0 auto; }

/* ------------------------------------------------------------------ buttons: liquid fill, hover and focus on every one */
.wp-block-button .wp-block-button__link {
	--pf-fill: var(--pf-ivory); --pf-fc: var(--pf-ink);
	position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
	transition: color 0.5s var(--pf-ease), border-color 0.5s, box-shadow 0.5s;
}
.wp-block-button .wp-block-button__link::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; border-radius: 50%;
	background: var(--pf-fill); transform: translate(-50%, -50%) scale(0); transition: transform 0.7s var(--pf-ease); z-index: -1;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible { color: var(--pf-fc); border-color: transparent; }
.wp-block-button .wp-block-button__link:hover::before,
.wp-block-button .wp-block-button__link:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.wp-block-button .wp-block-button__link:focus-visible { outline: 2px solid var(--pf-rose); outline-offset: 3px; }
.wp-block-button.pf-btn-grad .wp-block-button__link { border-color: transparent; box-shadow: 0 20px 50px -18px rgba(225, 29, 143, 0.7); }
.wp-block-button.pf-btn-grad .wp-block-button__link:hover,
.wp-block-button.pf-btn-grad .wp-block-button__link:focus-visible { color: var(--pf-ink); }
.wp-block-button.pf-btn-ink .wp-block-button__link { --pf-fill: var(--pf-magenta); --pf-fc: var(--pf-white); border-color: transparent; }
.wp-block-button.pf-btn-ink .wp-block-button__link:hover,
.wp-block-button.pf-btn-ink .wp-block-button__link:focus-visible { background-color: var(--pf-ink); }
.wp-block-button.pf-btn-dark .wp-block-button__link { --pf-fill: var(--pf-ink); --pf-fc: var(--pf-ivory); border-color: var(--pf-line-l); color: var(--pf-ink); }
.wp-block-button.pf-btn-sm .wp-block-button__link { padding: 12px 22px; font-size: 13px; }
.wp-block-button.pf-btn-arrow .wp-block-button__link::after {
	content: ""; width: 17px; height: 17px; flex-shrink: 0; background: currentColor; transition: transform 0.5s var(--pf-ease);
	-webkit-mask: var(--pf-arrow) center / contain no-repeat; mask: var(--pf-arrow) center / contain no-repeat;
}
.wp-block-button.pf-btn-arrow .wp-block-button__link:hover::after,
.wp-block-button.pf-btn-arrow .wp-block-button__link:focus-visible::after { transform: translateX(4px) rotate(-45deg); }
.pf-btn-arrow { --pf-arrow: url("../svg/icon-arrow.svg"); }
.wp-block-button.pf-btn-link .wp-block-button__link { background: none; border: 0; padding: 4px 0; color: var(--pf-txt-d); font-size: 13px; border-radius: 0; box-shadow: none; }
.wp-block-button.pf-btn-link .wp-block-button__link::before { display: none; }
.wp-block-button.pf-btn-link .wp-block-button__link::after { content: none; }
.wp-block-button.pf-btn-link .wp-block-button__link:hover,
.wp-block-button.pf-btn-link .wp-block-button__link:focus-visible { color: var(--pf-rose); background: none; }
.wp-block-button.pf-btn-link.pf-ic-phone .wp-block-button__link::before {
	display: block; position: static; width: 16px; height: 16px; aspect-ratio: auto; border-radius: 0; z-index: auto; transform: none;
	background: currentColor; -webkit-mask: var(--pf-icon) center / contain no-repeat; mask: var(--pf-icon) center / contain no-repeat; order: -1;
}
.wp-block-button.pf-btn-link .wp-block-button__link:hover::before { transform: none; }
.wp-block-buttons { gap: 14px; }

/* ------------------------------------------------------------------ icons: a tile with a glyph, drawn from assets/svg (the .pf-ic-<name> classes are generated in inc/assets.php) */
.pf-tile { --tile: 46px; --glyph: 20px; --tile-x: 0px; --tile-y: 0px; --tile-gap: 16px; --tile-radius: 50%; position: relative; padding-left: calc(var(--tile) + var(--tile-gap) + var(--tile-x)); min-height: calc(var(--tile) + var(--tile-y)); }
.pf-tile::before { content: ""; position: absolute; left: var(--tile-x); top: var(--tile-y); width: var(--tile); height: var(--tile); border-radius: var(--tile-radius); background: var(--tile-bg, var(--pf-grad)); }
.pf-tile::after {
	content: ""; position: absolute; left: calc(var(--tile-x) + (var(--tile) - var(--glyph)) / 2); top: calc(var(--tile-y) + (var(--tile) - var(--glyph)) / 2);
	width: var(--glyph); height: var(--glyph); background: var(--tile-fg, var(--pf-white));
	-webkit-mask: var(--pf-icon) center / contain no-repeat; mask: var(--pf-icon) center / contain no-repeat;
}

/* ------------------------------------------------------------------ inner page hero (used with pf-<page>-hero) */
.pf-phero { position: relative; overflow: hidden; background: radial-gradient(800px 600px at 85% 40%, rgba(123, 31, 142, 0.45), transparent 60%), var(--pf-ink); }
.pf-phero > * { position: relative; z-index: 2; }
.pf-phero::before {
	content: ""; position: absolute; right: 7%; top: 50%; width: min(300px, 24vw); aspect-ratio: 5 / 6; transform: translateY(-44%); z-index: 1;
	background: var(--pf-grad); -webkit-mask: url("../svg/fingerprint.svg") center / contain no-repeat; mask: url("../svg/fingerprint.svg") center / contain no-repeat;
}
.pf-phero::after {
	content: ""; position: absolute; right: 4%; width: min(360px, 32vw); height: 2px; top: 30%; z-index: 2;
	background: linear-gradient(90deg, transparent, var(--pf-rose), transparent); box-shadow: 0 0 18px var(--pf-magenta); animation: pf-pscan 4s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
}
@keyframes pf-pscan { from { top: 22%; } to { top: 78%; } }
.pf-phero .pf-crumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pf-txt-d); margin: 0 0 34px; }
.pf-phero .pf-crumbs a { color: inherit; transition: color 0.3s; }
.pf-phero .pf-crumbs a:hover, .pf-phero .pf-crumbs a:focus-visible { color: var(--pf-rose); }
.pf-phero .pf-phero-title { max-width: 10.5ch; margin: 0; }
.pf-phero .pf-lead { margin-top: 30px; }
@media (max-width: 980px) {
	.pf-phero::before { opacity: 0.25; width: 240px; }
	.pf-phero::after { display: none; }
}

/* ------------------------------------------------------------------ credentials (home welcome, about story) */
.wp-block-group.pf-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 8px; max-width: 620px; }
.pf-creds > .pf-cred { margin: 0; }
.pf-cred { --tile: 46px; --tile-gap: 16px; padding: 20px 20px 20px calc(18px + 46px + 16px); border-radius: 20px; background: var(--pf-white); border: 1px solid var(--pf-line-l); box-shadow: 0 24px 50px -34px rgba(18, 5, 26, 0.45); --tile-x: 18px; --tile-y: 20px; min-height: 0; }
.pf-cred h3 { color: var(--pf-ink); margin: 0 0 4px; line-height: 1.2; font-size: 1.25rem; }
.pf-cred p { font-size: 13.5px; line-height: 1.5; margin: 0; color: var(--pf-mauve); }
@media (max-width: 760px) { .wp-block-group.pf-creds { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ service cards (home services, services list) */
.wp-block-group.pf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pf-cards > .pf-svc-card { margin: 0; }
.pf-svc-card {
	--tile: 70px; --glyph: 32px; --tile-x: 36px; --tile-y: 36px; --tile-radius: 22px;
	position: relative; padding: 36px 36px 34px calc(36px + 70px + 26px); border-radius: 28px; overflow: hidden;
	background: linear-gradient(160deg, rgba(251, 246, 242, 0.06), rgba(251, 246, 242, 0.015)); border: 1px solid var(--pf-line-d);
	transition: transform 0.6s var(--pf-ease), border-color 0.5s;
}
.pf-svc-card::before { box-shadow: 0 18px 36px -14px rgba(225, 29, 143, 0.7); }
.pf-svc-card:hover, .pf-svc-card:focus-within { transform: translateY(-6px); border-color: rgba(255, 143, 207, 0.35); }
.pf-svc-card .pf-svc-cat { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--pf-rose); margin: 0; }
.pf-svc-card .pf-svc-title { font-size: 30px; line-height: 1.1; margin: 6px 0 10px; padding-right: 60px; }
.pf-svc-card .pf-svc-desc { color: var(--pf-txt-d); font-size: 15px; margin: 0; }
.pf-svc-card .pf-svc-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 22px; padding: 0; }
.pf-svc-card .pf-svc-tags li { font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--pf-line-d); color: rgba(251, 246, 242, 0.8); }
.pf-svc-card .pf-svc-actions { margin: 0; gap: 14px 20px; align-items: center; }
.pf-svc-card .pf-svc-n { position: absolute; right: 28px; top: 18px; margin: 0; font-family: var(--pf-serif); font-size: 84px; font-weight: 600; line-height: 1; color: rgba(251, 246, 242, 0.05); pointer-events: none; }
.pf-svc-card.is-hidden { display: none; }
@media (max-width: 980px) { .wp-block-group.pf-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
	.pf-svc-card { --tile-x: 28px; --tile-y: 28px; padding: calc(28px + 70px + 20px) 28px 28px; }
	.pf-svc-card .pf-svc-title { padding-right: 0; }
}

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

/* Social icon buttons (header, footer): the button text stays for screen readers, the glyph is drawn from assets/svg. */
.wp-block-button.pf-social .wp-block-button__link {
	--pf-fill: var(--pf-magenta); --pf-fc: var(--pf-ivory);
	width: 42px; height: 42px; padding: 0; gap: 0; justify-content: center; font-size: 0; border: 1px solid rgba(251, 246, 242, 0.25); border-radius: 50%;
	transition: border-color 0.4s, color 0.4s;
}
.wp-block-button.pf-social .wp-block-button__link::after {
	content: ""; width: 17px; height: 17px; background: currentColor;
	-webkit-mask: var(--pf-icon) center / contain no-repeat; mask: var(--pf-icon) center / contain no-repeat;
}
.wp-block-button.pf-social .wp-block-button__link:hover, .wp-block-button.pf-social .wp-block-button__link:focus-visible { border-color: var(--pf-magenta); color: var(--pf-ivory); }
.pf-socials { gap: 10px; }
.pf-js .pf-svc-card.pf-reveal.is-visible:hover { transform: translateY(-6px); }
