/* ==========================================================================
   Paperbag child theme — main stylesheet (mobile first)
   Visual language: design.md (large light headings, soft pastel blocks,
   dark rounded panels, pill buttons, small hand-drawn accents).
   Colours come from theme.json presets: var(--wp--preset--color--*)
   ========================================================================== */

:root {
	--pb-ink: var(--wp--preset--color--ink, #0d0d0c);
	--pb-muted: var(--wp--preset--color--muted, #52606d);
	--pb-violet: var(--wp--preset--color--primary, #8247ff);
	--pb-violet-deep: var(--wp--preset--color--primary-dark, #3f27ac);
	--pb-night: var(--wp--preset--color--night, #2d1f6b);
	--pb-panel: var(--wp--preset--color--panel, #1f2933);
	--pb-lilac: var(--wp--preset--color--lilac, #dfd1f4);
	--pb-mint: var(--wp--preset--color--mint, #a9cecc);
	--pb-sky: var(--wp--preset--color--sky, #dff3f6);
	--pb-teal: var(--wp--preset--color--teal, #23596d);
	--pb-blush: var(--wp--preset--color--blush, #dfc9c0);
	--pb-blush-light: var(--wp--preset--color--blush-light, #f1d9d0);
	--pb-mist: var(--wp--preset--color--mist, #f5f7fa);
	--pb-line: #e4e7eb;
	--pb-line-dark: rgba(255, 255, 255, .14);
	--pb-on-dark: #c9d1d9;
	--pb-wa: #1c7c3f;

	--pb-wide: 1320px;
	--pb-gutter: clamp(1.25rem, 4.5vw, 4.5rem);
	--pb-inset: clamp(.625rem, 1.6vw, 1.5rem);      /* gap between a rounded panel and the viewport edge */
	--pb-section: clamp(4rem, 9vw, 8.5rem);
	--pb-radius-lg: clamp(1.5rem, 2.4vw, 2.25rem);
	--pb-radius: 1.5rem;
	--pb-radius-sm: 1rem;
	--pb-header-h: 4.5rem;
	--pb-shadow-soft: 0 1px 2px rgba(13, 13, 12, .04), 0 12px 40px rgba(31, 41, 51, .08);
	--pb-shadow-float: 0 4px 12px rgba(31, 41, 51, .06), 0 24px 60px rgba(31, 41, 51, .14);

	--motion-fast: 180ms;
	--motion-base: 320ms;
	--motion-emphasis: 700ms;
	--motion-section: 900ms;
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-draw: cubic-bezier(.87, 0, .13, 1);
	--ease-snap: cubic-bezier(.63, 0, .04, 1);
	--ease-back: cubic-bezier(.34, 1.4, .64, 1);
	--ease-quint: cubic-bezier(.86, 0, .07, 1);

	interpolate-size: allow-keywords; /* smooth <details> height where supported */
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pb-header-h) + 1rem); }
body,
button, input, select, textarea {
	font-family: var(--wp--preset--font-family--sans, Figtree, system-ui, sans-serif);
}
body {
	background: #fff;
	color: var(--pb-ink);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--pb-violet); color: #fff; }

h1, h2, h3, h4 { color: var(--pb-ink); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: .6em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

a { color: var(--pb-violet-deep); transition: color var(--motion-fast); }
a:hover, a:focus { color: var(--pb-violet); }
/* Links inside running text are underlined, not colour-only (WCAG 1.4.1). */
.entry-content p a, .entry-content li a:not(.wp-block-button__link), .pb-quote p a, .pb-product-custom li a, .pb-product-description a {
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
:focus-visible { outline: 3px solid var(--pb-violet); outline-offset: 3px; border-radius: 4px; }
img { height: auto; }

.pb-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

/* ---------- Buttons: pill, 600 weight, text flip on hover (motion.js adds .pb-flip) ---------- */
a.pb-btn,
.wp-block-button a.wp-block-button__link,
.main-navigation .menu-bar-items a.pb-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	min-height: 3.25rem;
	padding: .8em 1.55em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: var(--pb-ink);
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.005em;
	text-decoration: none;
	transition: background-color var(--motion-base) var(--ease-out), color var(--motion-base), border-color var(--motion-base), translate .25s var(--ease-out);
	translate: var(--pb-mx, 0) var(--pb-my, 0); /* magnetic offset (motion.js) — transform stays free */
}
.pb-btn:hover, .pb-btn:focus, .wp-block-button__link:hover, .wp-block-button__link:focus { background: #2a2f36; color: #fff; }

/* Primary / quote: brand violet with an arrow disc. */
a.pb-btn--quote,
.main-navigation .menu-bar-items a.pb-btn--quote,
.wp-block-button.is-style-pb-quote .wp-block-button__link { background: var(--pb-violet); color: #fff; padding-right: .45em; }
a.pb-btn--quote:hover, a.pb-btn--quote:focus,
.main-navigation .menu-bar-items a.pb-btn--quote:is(:hover, :focus),
.wp-block-button.is-style-pb-quote .wp-block-button__link:hover,
.wp-block-button.is-style-pb-quote .wp-block-button__link:focus { background: var(--pb-violet-deep); color: #fff; }
.pb-btn--quote:not(:has(.pb-btn__arrow)),
.wp-block-button.is-style-pb-quote .wp-block-button__link:not(:has(.pb-btn__arrow)) { padding-right: 1.55em; }

.pb-btn--wa, .wp-block-button.is-style-pb-whatsapp .wp-block-button__link { background: var(--pb-wa); color: #fff; }
.pb-btn--wa:hover, .pb-btn--wa:focus { background: #155f30; color: #fff; }

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent; border-color: rgba(13, 13, 12, .22); color: var(--pb-ink); padding: .8em 1.55em;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-on-dark .wp-block-button.is-style-outline .wp-block-button__link,
.is-style-pb-section-dark .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 255, 255, .35); color: #fff; }
.pb-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-pb-section-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--pb-ink); }
.pb-btn--lg { min-height: 3.6rem; font-size: 1.125rem; }

/* Text flip: two stacked copies; the visible one tips away, the other rolls in. */
.pb-flip { display: inline-grid; overflow: hidden; perspective: 40em; padding-block: .12em; margin-block: -.12em; }
.pb-flip > span {
	grid-area: 1 / 1;
	transform-origin: 50% 50% -.6em;
	transition: transform .6s var(--ease-snap), opacity .45s var(--ease-snap);
}
.pb-flip > span + span { transform: translateY(120%) rotateX(-50deg) skewY(8deg) scale(.8); opacity: 0; }
:is(a, button):is(:hover, :focus-visible) > .pb-flip > span:first-child { transform: translateY(-120%) rotateX(50deg) skewY(-8deg) scale(.8); opacity: 0; }
:is(a, button):is(:hover, :focus-visible) > .pb-flip > span + span { transform: none; opacity: 1; }

/* Arrow disc: two arrows swap horizontally. */
.pb-btn__arrow {
	position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
	width: 2.4em; height: 2.4em; border-radius: 50%; background: #fff; color: var(--pb-violet);
	transition: transform .5s var(--ease-snap);
}
.pb-btn__arrow svg { grid-area: 1 / 1; width: 1.05em; height: 1.05em; transition: transform .55s var(--ease-snap); }
.pb-btn__arrow svg + svg { transform: translateX(-140%); }
a:is(:hover, :focus-visible) > .pb-btn__arrow svg:first-child { transform: translateX(140%); }
a:is(:hover, :focus-visible) > .pb-btn__arrow svg + svg { transform: none; }
a:is(:hover, :focus-visible) > .pb-btn__arrow { transform: scale(.92); }

.wp-block-buttons { gap: .75rem; }

/* ---------- Header ---------- */
.pb-skip { position: absolute; left: -999px; }
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid transparent;
	transition: translate .5s var(--ease-quint), border-color var(--motion-base), background-color var(--motion-base);
}
/* No transform/filter on the header itself: the mobile menu inside it is position:fixed. */
.site-header.is-hidden { translate: 0 -100%; transition-duration: .3s; }
.site-header.is-scrolled { border-bottom-color: var(--pb-line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.inside-header { padding: .7rem var(--pb-gutter); max-width: calc(var(--pb-wide) + 2 * var(--pb-gutter)); }
.site-header .header-image { height: 40px; width: auto; max-height: none; }
.site-branding-container { gap: .65rem; }
.main-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.main-title a, .main-title a:hover { color: var(--pb-ink); }
.site-description { font-size: .8125rem; color: var(--pb-muted); margin: .1rem 0 0; }
@media (max-width: 1199px) { .site-description { display: none; } }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	position: relative; padding: 0 var(--pb-nav-pad, .9rem); line-height: 3rem; font-size: 1rem; font-weight: 500; color: var(--pb-muted);
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--pb-ink); }
.main-navigation .main-nav ul ul {
	background: #fff; border-radius: var(--pb-radius-sm); box-shadow: var(--pb-shadow-float); padding: .5rem; width: 14rem;
}
.main-navigation .main-nav ul ul li a { line-height: 1.3; padding: .7rem .9rem; border-radius: .6rem; }
.main-navigation .main-nav ul ul li a:hover { background: var(--pb-mist); }
.pb-header-cta { display: flex; align-items: center; padding-left: .75rem; }
.main-navigation .menu-bar-items .pb-header-cta > a.pb-btn { min-height: 2.75rem; padding: .55em .4em .55em 1.2em; font-size: .9688rem; white-space: nowrap; color: #fff; }
.main-navigation .menu-bar-items .pb-header-cta > a.pb-btn .pb-btn__arrow { width: 2em; height: 2em; }
.main-navigation .menu-bar-items .pb-header-cta > a.pb-btn:not(:has(.pb-btn__arrow)) { padding-right: 1.2em; }
@media (max-width: 420px) { .pb-header-cta { display: none; } } /* mobile bar covers it */
@media (min-width: 769px) and (max-width: 1199px) {
	.main-navigation { --pb-nav-pad: .55rem; }
	.main-navigation .main-nav ul li a { font-size: .9688rem; }
	#site-navigation .inside-navigation { flex-wrap: nowrap; }
	.pb-header-cta { padding-left: .4rem; }
}
@media (min-width: 769px) and (max-width: 959px) { #site-navigation .pb-header-cta { display: none; } } /* the floating quote bar covers these widths */
@media (min-width: 960px) and (max-width: 1100px) {
	.main-navigation { --pb-nav-pad: .45rem; }
	.main-title { font-size: .95rem; }
}

/* Hand-drawn underline on hover (desktop nav + footer links). */
@media (min-width: 769px) {
	.main-navigation .main-nav > ul > li > a::after {
		content: ""; position: absolute; left: var(--pb-nav-pad, .9rem); right: var(--pb-nav-pad, .9rem); bottom: .55rem; height: .45rem; pointer-events: none;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5C22 2.5 55 1.8 99 3.2' fill='none' stroke='%238247ff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
		clip-path: inset(0 100% 0 0);
		transition: clip-path .7s var(--ease-draw);
	}
	.main-navigation .main-nav > ul > li:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > a::after { clip-path: inset(0 0 0 0); }
	.main-navigation .main-nav > ul > li.menu-item-has-children > a::after { right: 2.1rem; }
}

/* Mobile: full-screen white menu; items rise in one after another. */
@media (max-width: 768px) {
	:root { --pb-header-h: 4rem; }
	.inside-header { padding-top: .55rem; padding-bottom: .55rem; }
	.site-header .header-image { height: 34px; }
	.main-title { font-size: .95rem; }
	.has-inline-mobile-toggle .site-branding-container { flex: 1 1 0; min-width: 0; }
	.site-branding-container .site-logo { margin-right: .5rem; }
	.mobile-menu-control-wrapper .menu-toggle {
		width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; background: var(--pb-mist); color: var(--pb-ink); line-height: 1;
		display: grid; place-items: center;
	}
	.mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus { background: var(--pb-lilac); }
	.site-header #site-navigation.toggled { /* beats GeneratePress's translucent toggled background */
		position: fixed; inset: 0; z-index: -1; display: block; margin: 0;
		padding: calc(var(--pb-header-h) + 1.25rem) var(--pb-gutter) calc(6rem + env(safe-area-inset-bottom, 0px));
		background: #fff; overflow-y: auto; overscroll-behavior: contain;
	}
	.admin-bar #site-navigation.toggled { top: 46px; }
	.site-header #site-navigation.toggled .inside-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 1.75rem; padding: 0; max-width: none; }
	#site-navigation.toggled .main-nav > ul { display: block; }
	#site-navigation.toggled .main-nav ul li a {
		padding: .65rem 0; line-height: 1.2; font-size: 1.75rem; font-weight: 400; letter-spacing: -.02em; color: var(--pb-ink);
		border-bottom: 1px solid var(--pb-line);
	}
	#site-navigation.toggled .main-nav ul ul { position: static; width: auto; box-shadow: none; padding: 0 0 0 1rem; background: none; }
	#site-navigation.toggled .main-nav ul ul li a { font-size: 1.25rem; padding: .55rem 0; border-radius: 0; color: var(--pb-muted); }
	#site-navigation.toggled .main-nav > ul > li { animation: pb-menu-in .42s var(--ease-out) both; }
	#site-navigation.toggled .main-nav > ul > li:nth-child(2) { animation-delay: .05s; }
	#site-navigation.toggled .main-nav > ul > li:nth-child(3) { animation-delay: .1s; }
	#site-navigation.toggled .main-nav > ul > li:nth-child(4) { animation-delay: .15s; }
	#site-navigation.toggled .main-nav > ul > li:nth-child(n+5) { animation-delay: .2s; }
	.site-header #site-navigation.toggled .main-nav { order: 1; }
	.site-header #site-navigation.toggled .menu-bar-items { order: 2; display: block !important; animation: pb-menu-in .42s .25s var(--ease-out) both; }
	#site-navigation.toggled .pb-header-cta { display: block; padding: 0; }
	.main-navigation#site-navigation.toggled .menu-bar-items .pb-header-cta > a.pb-btn { display: flex; width: 100%; min-height: 3.5rem; font-size: 1.0625rem; justify-content: space-between; padding-left: 1.5rem; }
	#site-navigation.toggled .inside-navigation > .menu-toggle { display: none; }
	html.pb-menu-open, html.pb-menu-open body { overflow: hidden; }
}
@keyframes pb-menu-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Layout: full-width pages built from blocks ---------- */
.pb-page .site-content { padding: 0; }
.pb-page .inside-article { padding: 0; }
.pb-page .entry-content:not(:first-child) { margin-top: 0; }
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.site-content { overflow-x: clip; }

/* Sections. -alt and -dark are rounded panels inset from the viewport edge. */
.is-style-pb-section,
.is-style-pb-section-alt,
.is-style-pb-section-dark {
	padding: var(--pb-section) var(--pb-gutter) !important;
	margin: 0 !important;
}
.is-style-pb-section-alt,
.is-style-pb-section-dark {
	margin: var(--pb-inset) var(--pb-inset) !important;
	border-radius: var(--pb-radius-lg);
	padding-left: calc(var(--pb-gutter) - var(--pb-inset)) !important;
	padding-right: calc(var(--pb-gutter) - var(--pb-inset)) !important;
}
.is-style-pb-section-alt { background: var(--pb-mist); }
.is-style-pb-section-dark,
.pb-panel--dark { background: var(--pb-panel); color: var(--pb-on-dark); }
:is(.is-style-pb-section-dark, .pb-on-dark) :is(h1, h2, h3, h4, strong) { color: #fff; }
:is(.is-style-pb-section-dark, .pb-on-dark) a:not(.wp-block-button__link):not(.pb-btn) { color: #fff; }

.pb-eyebrow {
	display: flex; align-items: center; gap: .55em; /* block-level so it lines up with the content box */
	color: var(--pb-violet-deep); font-size: .9375rem !important; font-weight: 600; letter-spacing: 0;
	margin-bottom: 1rem !important;
}
.pb-eyebrow::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--pb-violet); flex: none; }
p.has-text-align-center.pb-eyebrow { justify-content: center; }
:is(.is-style-pb-section-dark, .pb-on-dark) .pb-eyebrow { color: var(--pb-mint); }
:is(.is-style-pb-section-dark, .pb-on-dark) .pb-eyebrow::before { background: var(--pb-mint); }
.pb-lead { color: var(--pb-muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; }
/* Centred leads get a measure; left-aligned ones keep the full content box (a max-width would make
   constrained layouts centre them) and rely on balanced wrapping instead. */
.pb-lead.has-text-align-center { max-width: 42rem; margin-left: auto; margin-right: auto; }
.pb-lead:not(.has-text-align-center) { text-wrap: balance; }
:is(.is-style-pb-section-dark, .pb-on-dark) .pb-lead { color: var(--pb-on-dark); }
h2.has-text-align-center { margin-left: auto; margin-right: auto; max-width: 18em; }

/* Section head: title left, supporting copy + button right (home). */
.pb-section-head { gap: 2rem 4rem !important; align-items: flex-end !important; margin-bottom: clamp(2rem, 4vw, 3.5rem) !important; }
.pb-section-head h2 { margin-bottom: 0; }
.pb-section-head .pb-lead { margin-top: 0; }

/* Block style: card */
.is-style-pb-card {
	background: #fff;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	padding: clamp(1.5rem, 2.5vw, 2.25rem) !important;
	height: 100%;
	transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.is-style-pb-section-alt .is-style-pb-card { border-color: transparent; }
.is-style-pb-card:hover { translate: 0 -4px; box-shadow: var(--pb-shadow-soft); }
.is-style-pb-card > :first-child { margin-top: 0; }
.is-style-pb-card > :last-child { margin-bottom: 0; }
.is-style-pb-card h3 { margin-bottom: .5rem; }
.is-style-pb-card p { color: var(--pb-muted); }
.is-style-pb-card .wp-block-image img { border-radius: var(--pb-radius-sm); }
.is-style-pb-section-dark .is-style-pb-card { background: rgba(255, 255, 255, .05); border-color: var(--pb-line-dark); }
.is-style-pb-section-dark .is-style-pb-card p { color: var(--pb-on-dark); }

/* ---------- Inner-page hero (About, Custom Solutions, Contact, Thank you) ---------- */
.pb-hero {
	position: relative; overflow: hidden; isolation: isolate;
	margin: var(--pb-inset) var(--pb-inset) 0 !important;
	padding: clamp(4rem, 9vw, 8rem) calc(var(--pb-gutter) - var(--pb-inset)) clamp(3.5rem, 7vw, 6.5rem) !important;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-lilac);
}
.pb-hero::before, .pb-hero::after { /* soft colour discs */
	content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.pb-hero::before { width: 34rem; height: 34rem; right: -8rem; top: -12rem; background: radial-gradient(circle at 40% 40%, rgba(169, 206, 204, .9), rgba(169, 206, 204, 0) 70%); }
.pb-hero::after { width: 26rem; height: 26rem; right: 18%; bottom: -16rem; background: radial-gradient(circle, rgba(241, 217, 208, .95), rgba(241, 217, 208, 0) 70%); }
.pb-hero h1 { margin-bottom: .35em; }
.pb-hero .pb-lead { color: #3e4a56; }
.pb-hero .pb-eyebrow { color: var(--pb-night); }

/* ---------- Home hero ---------- */
.pb-hero.pb-home-hero {
	margin: 0 !important; border-radius: 0; background: #fff;
	padding: clamp(2.5rem, 6vw, 5.5rem) var(--pb-gutter) clamp(2.5rem, 4vw, 3.5rem) !important;
}
.pb-home-hero::before, .pb-home-hero::after { display: none; }
.pb-home-hero > .wp-block-columns { gap: clamp(2rem, 4vw, 4rem); margin-bottom: 0; }
.pb-home-hero__copy { animation: pb-rise var(--motion-section) var(--ease-out) var(--pb-intro, 0s) both; }
.pb-home-hero__copy > * { max-width: 36rem; }
.pb-home-hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 1.5rem; max-width: 11.5em; }
.pb-home-hero .pb-lead { font-size: clamp(1.0625rem, 1.35vw, 1.3rem); margin-bottom: 2rem; color: var(--pb-muted); }
.pb-home-hero .wp-block-buttons { margin-bottom: 0; }
@keyframes pb-rise { from { opacity: 0; transform: translateY(24px); } }

/* Rotating value line (motion.js). Without JS it simply shows the first phrase. */
.pb-rotator { display: grid; color: var(--pb-violet); overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.pb-rotator > span { grid-area: 1 / 1; white-space: nowrap; transition: transform .75s var(--ease-out), opacity .6s var(--ease-out); }
/* Waiting phrases sit below the line; the outgoing one leaves upwards (both at opacity 0, so the reset is invisible). */
.pb-rotator.is-ready > span { transform: translateY(105%); opacity: 0; }
.pb-rotator.is-ready > span.is-active { transform: none; opacity: 1; }
.pb-rotator.is-ready > span.is-leaving { transform: translateY(-105%); opacity: 0; }

/* Composition: product cards floating on dashed connector paths (percent coordinates of a 600×560 box). */
.pb-stage {
	position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 600 / 560;
	--pb-px: 0px; --pb-py: 0px;
}
.pb-stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-stage__lines .base { fill: none; stroke: #cfd6de; stroke-width: 1.5; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; }
.pb-stage__lines .flow {
	fill: none; stroke: var(--pb-violet); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
	stroke-dasharray: 16 100; stroke-dashoffset: 16; opacity: 0;
	animation: pb-flow 5.2s var(--ease-out) infinite;
	animation-delay: calc(var(--pb-intro, 0s) + 1.7s + var(--d, 0s));
}
@media (max-width: 781px) { .pb-stage__lines .flow--extra { display: none; } } /* one light per screen on phones */
@keyframes pb-flow {
	0% { stroke-dashoffset: 16; opacity: 0; }
	4% { opacity: 1; }
	25% { stroke-dashoffset: -100; opacity: 1; }
	28%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.pb-stage__layer { position: absolute; inset: 0; transition: transform .2s linear; }
.pb-stage__layer--near { transform: translate3d(calc(var(--pb-px) / 2.2), calc(var(--pb-py) / 2.2), 0); }
.pb-stage__layer--far { transform: translate3d(calc(var(--pb-px) / -2.5), calc(var(--pb-py) / -2.5), 0); }
.pb-card-float {
	position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0;
	border-radius: var(--pb-radius-sm); overflow: hidden; background: #fff;
	box-shadow: var(--pb-shadow-float);
	animation: pb-pop .5s var(--ease-back) both;
	animation-delay: calc(var(--pb-intro, 0s) + .35s + var(--i, 0) * 120ms);
}
.pb-card-float img { display: block; width: 100%; height: auto; }
.pb-card-float--main { border-radius: var(--pb-radius); }
.pb-card-float--main img { aspect-ratio: 16 / 9; object-fit: cover; }
.pb-card-float--tint { padding: 6%; }
.pb-card-float--tint img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; transform: scale(1.3); } /* product shots have wide white margins */
.pb-card-float--mint { background: var(--pb-mint); }
.pb-card-float--lilac { background: var(--pb-lilac); }
.pb-card-float--blush { background: var(--pb-blush-light); }
.pb-chip {
	position: absolute; left: var(--x); top: var(--y);
	display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .55rem;
	border-radius: 999px; background: #fff; box-shadow: var(--pb-shadow-float);
	font-size: clamp(.75rem, 1vw, .875rem); font-weight: 600; white-space: nowrap; color: var(--pb-ink);
	animation: pb-pop .5s var(--ease-back) both;
	animation-delay: calc(var(--pb-intro, 0s) + .35s + var(--i, 0) * 120ms);
}
.pb-chip__dot { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pb-lilac); color: var(--pb-violet-deep); flex: none; }
.pb-chip__dot svg { width: 1rem; height: 1rem; }
.pb-chip--mint .pb-chip__dot { background: var(--pb-mint); color: var(--pb-teal); }
@keyframes pb-pop { from { opacity: 0; transform: scale(0); } }

/* Proof band under the hero. */
.pb-proof {
	display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none;
	margin: clamp(2.5rem, 5vw, 4rem) auto 0 !important; padding: 0 !important; max-width: var(--pb-wide);
}
.pb-proof li {
	display: inline-flex; align-items: center; gap: .55em; margin: 0; padding: .6rem 1.1rem;
	border-radius: 999px; background: var(--pb-mist); color: var(--pb-muted); font-size: .9375rem; font-weight: 500;
}
.pb-proof li::before {
	content: ""; width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%;
	background: var(--pb-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323596d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
@media (max-width: 781px) {
	.pb-home-hero > .wp-block-columns { flex-direction: column; }
	.pb-stage { max-width: 30rem; }
	.pb-proof {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(-1 * var(--pb-gutter)) !important; padding-inline: var(--pb-gutter) !important;
	}
	.pb-proof::-webkit-scrollbar { display: none; }
	.pb-proof li { flex: none; font-size: .875rem; padding: .5rem .9rem; }
}

/* ---------- Category cards: large pastel tiles ---------- */
.pb-cat-grid {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem);
}
.pb-cat-card {
	--tint: var(--pb-mist);
	position: relative; display: flex; flex-direction: column; margin: 0 !important; overflow: hidden;
	padding: clamp(1.25rem, 2vw, 1.75rem) !important; border-radius: var(--pb-radius);
	background: var(--tint);
	transition: translate .45s var(--ease-out);
}
.pb-cat-card:nth-child(4n+1) { --tint: var(--pb-mint); }
.pb-cat-card:nth-child(4n+2) { --tint: var(--pb-lilac); }
.pb-cat-card:nth-child(4n+3) { --tint: var(--pb-blush-light); }
.pb-cat-card:nth-child(4n+4) { --tint: var(--pb-sky); }
.pb-cat-card .wp-block-image { order: -1; margin: 0 0 1.25rem; }
.pb-cat-card img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease-out); }
.pb-cat-card:hover img, .pb-cat-card:focus-within img { transform: scale(1.05) rotate(-1.5deg); }
.pb-cat-card h3 { font-size: clamp(1.25rem, 1.7vw, 1.625rem); margin: 0 0 .4rem; padding-right: 3rem; }
.pb-cat-card h3 a { color: var(--pb-ink); text-decoration: none; }
.pb-cat-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.pb-cat-card p { margin: 0; color: #3e4a56; font-size: .9688rem; line-height: 1.45; }
.pb-cat-card::after { /* arrow disc */
	content: ""; position: absolute; right: clamp(1.25rem, 2vw, 1.75rem); bottom: clamp(1.25rem, 2vw, 1.75rem);
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
	transition: transform .5s var(--ease-snap), background-color .3s;
}
.pb-cat-card:hover::after, .pb-cat-card:focus-within::after { transform: rotate(-45deg); }
.pb-cat-card:has(p) h3 { padding-right: 0; }
.pb-cat-card:has(p) p { padding-right: 3rem; }
@media (max-width: 1023px) { .pb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
	/* Horizontal snap row on phones: compact, still one tap per category. */
	.pb-cat-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--pb-gutter)); padding-inline: var(--pb-gutter); scroll-padding-inline: var(--pb-gutter);
	}
	.pb-cat-grid::-webkit-scrollbar { display: none; }
	.pb-cat-card { scroll-snap-align: start; }
}
.pb-cat-more { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.75rem !important; color: var(--pb-muted); font-size: .9375rem; }
.pb-cat-more a {
	display: inline-flex; padding: .45rem 1rem; border: 1px solid var(--pb-line); border-radius: 999px;
	color: var(--pb-ink) !important; text-decoration: none !important; font-weight: 500; transition: background-color .25s, border-color .25s;
}
.pb-cat-more a:hover, .pb-cat-more a:focus { background: var(--pb-mist); border-color: var(--pb-mist); }

/* ---------- Factory: dark panel, sticky intro + stacked mint cards ---------- */
.pb-factory { position: relative; overflow: clip; }
.pb-factory > .wp-block-columns { gap: clamp(2rem, 5vw, 5rem); align-items: flex-start !important; margin-bottom: 0; }
.pb-factory__intro h2 { margin-bottom: .5em; }
.pb-stat-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2rem 0 !important; border-top: 1px solid var(--pb-line-dark); }
.pb-stat-grid > .wp-block-group { margin: 0 !important; padding: 1.1rem 0 !important; border-bottom: 1px solid var(--pb-line-dark); }
.pb-stat-grid > .wp-block-group:nth-child(odd) { padding-right: 1rem !important; }
.pb-stat-grid > .wp-block-group:nth-child(even) { padding-left: 1.25rem !important; border-left: 1px solid var(--pb-line-dark); }
.pb-stat-number { font-size: clamp(2.25rem, 3.6vw, 3.25rem) !important; font-weight: 400; letter-spacing: -.04em; line-height: 1; margin: 0 0 .35rem !important; color: #fff; font-variant-numeric: tabular-nums; }
.pb-stat-label { margin: 0 !important; font-size: .9375rem; color: var(--pb-on-dark); }
.pb-stack { display: grid; gap: 1.25rem; }
.pb-stack-card {
	margin: 0 !important; padding: clamp(1.25rem, 2vw, 1.75rem) !important; border-radius: var(--pb-radius);
	background: var(--pb-mint); color: #16323c;
	display: grid !important; gap: 1.25rem; grid-template-columns: 1fr;
}
.pb-stack-card:nth-child(2) { background: var(--pb-lilac); color: #231a4f; }
.pb-stack-card:nth-child(3) { background: var(--pb-blush-light); color: #3b2720; }
.pb-stack-card .wp-block-image { margin: 0; }
.pb-stack-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--pb-radius-sm); }
.pb-stack-card h3 { color: inherit !important; margin: 0 0 .4rem; font-size: clamp(1.375rem, 2vw, 1.75rem); }
.pb-stack-card p { margin: 0; color: inherit; opacity: .85; }
.pb-stack-card__num { font-size: .875rem !important; font-weight: 600; opacity: .7; margin: 0 0 .75rem !important; }
@media (min-width: 992px) {
	.pb-factory__intro { position: sticky; top: calc(var(--pb-header-h) + 3rem); }
	/* Stacked cards: all stick at the same line and the next one slides over the previous.
	   Spacing is the grid gap, NOT a card margin: a sticky box's margin counts against its
	   container, so margins made the first cards let go before the last one arrived.
	   motion.js sets --pb-depth (0…n) as later cards cover a card: it shrinks, lifts and dims. */
	.pb-stack { gap: 10vh; }
	/* Spacer after the last card: the finished stack holds for a moment before scrolling away. */
	.pb-stack::after { content: ""; height: 8vh; }
	.pb-stack-card {
		position: sticky; top: calc(var(--pb-header-h) + 2.5rem);
		grid-template-columns: 1.1fr 1fr; align-items: center;
		transform-origin: 50% 0; will-change: transform;
		transform: translateY(calc(var(--pb-depth, 0) * -.9rem)) scale(calc(1 - var(--pb-depth, 0) * .045));
		box-shadow: 0 -16px 48px rgba(0, 0, 0, .28);
	}
	.pb-stack-card::after {
		content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
		background: #0d141b; opacity: calc(var(--pb-depth, 0) * .32);
	}
	.pb-stack-card img { aspect-ratio: 4 / 3.4; }
}
.pb-cert-line {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1rem;
	margin: clamp(2.5rem, 5vw, 4rem) auto 0 !important; padding: 1rem 1.5rem; max-width: 60rem;
	border: 1px solid var(--pb-line); border-radius: 999px; color: var(--pb-muted); font-size: .9375rem;
}
.pb-cert-line strong { color: var(--pb-ink); }
.pb-on-dark .pb-cert-line, .is-style-pb-section-dark .pb-cert-line { border-color: var(--pb-line-dark); color: var(--pb-on-dark); }
:is(.pb-on-dark, .is-style-pb-section-dark) .pb-cert-line strong { color: #fff; }
@media (max-width: 600px) { .pb-cert-line { border-radius: var(--pb-radius-sm); } }

/* ---------- Lists: checks ---------- */
ul.is-style-pb-checks { list-style: none; padding-left: 0; margin-left: 0; }
ul.is-style-pb-checks li { position: relative; padding-left: 2rem; margin-bottom: .65rem; }
ul.is-style-pb-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--pb-lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f27ac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.is-style-pb-section-dark ul.is-style-pb-checks li::before { background-color: var(--pb-mint); }

/* ---------- Process: node network with a travelling light on the connector ---------- */
ol.is-style-pb-steps {
	--node: 3rem;
	position: relative; list-style: none; counter-reset: step; padding: 0; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
	display: grid; gap: 1rem;
}
ol.is-style-pb-steps > li {
	counter-increment: step; position: relative; z-index: 1; margin: 0;
	padding: 1.5rem 1.5rem 1.5rem calc(var(--node) + 2.25rem);
	background: linear-gradient(150deg, var(--pb-bg1), var(--pb-bg2));
	border-radius: var(--pb-radius); box-shadow: var(--pb-shadow-soft); color: var(--pb-muted); font-size: .9688rem;
	transition: --pb-bg1 .5s var(--ease-out), --pb-bg2 .5s var(--ease-out), --pb-dash .5s var(--ease-out),
		color .4s, box-shadow .5s var(--ease-out);
}
ol.is-style-pb-steps > li strong { display: block; color: var(--pb-ink); transition: color .4s; font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; margin-bottom: .35rem; }
ol.is-style-pb-steps > li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 1.25rem; top: 1.35rem;
	z-index: 3; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center;
	background: var(--pb-lilac); color: var(--pb-violet-deep); font-weight: 600; font-size: .9375rem;
	transition: background-color .4s, color .4s, scale .5s var(--ease-out);
}
/* Active card = dark panel with a violet gradient. At rest it is the middle step (production);
   on hover the highlight moves to the card under the pointer and the colours cross-fade
   (registered properties let the gradient stops transition; other browsers just switch). */
@property --pb-bg1 { syntax: "<color>"; inherits: false; initial-value: #fff; }
@property --pb-bg2 { syntax: "<color>"; inherits: false; initial-value: #fff; }
@property --pb-dash { syntax: "<color>"; inherits: false; initial-value: #cfd6de; }
ol.is-style-pb-steps > li { --pb-bg1: #fff; --pb-bg2: #fff; --pb-dash: #cfd6de; }
ol.is-style-pb-steps > li:nth-child(3),
ol.is-style-pb-steps:has(> li:hover) > li:hover {
	--pb-bg1: var(--pb-panel); --pb-bg2: color-mix(in oklab, var(--pb-panel) 55%, var(--pb-violet-deep)); --pb-dash: rgba(255, 255, 255, .45);
	color: var(--pb-on-dark); box-shadow: 0 20px 50px rgba(31, 41, 51, .28);
}
ol.is-style-pb-steps > li:nth-child(3) strong,
ol.is-style-pb-steps:has(> li:hover) > li:hover strong { color: #fff; }
ol.is-style-pb-steps > li:nth-child(3)::before,
ol.is-style-pb-steps:has(> li:hover) > li:hover::before { background: var(--pb-violet); color: #fff; scale: 1.08; }
/* While another card is hovered, the middle one steps back to the light style. */
ol.is-style-pb-steps:has(> li:hover) > li:nth-child(3):not(:hover) { --pb-bg1: #fff; --pb-bg2: #fff; --pb-dash: #cfd6de; color: var(--pb-muted); box-shadow: var(--pb-shadow-soft); }
ol.is-style-pb-steps:has(> li:hover) > li:nth-child(3):not(:hover) strong { color: var(--pb-ink); }
ol.is-style-pb-steps:has(> li:hover) > li:nth-child(3):not(:hover)::before { background: var(--pb-lilac); color: var(--pb-violet-deep); scale: none; }
/* Connector: static dashed rail + short violet light running along it. */
ol.is-style-pb-steps::before,
ol.is-style-pb-steps::after { content: ""; position: absolute; pointer-events: none; }
ol.is-style-pb-steps::before { left: calc(1.25rem + var(--node) / 2); top: 2rem; bottom: 2rem; border-left: 2px dashed #cfd6de; }
ol.is-style-pb-steps::after {
	left: calc(1.25rem + var(--node) / 2 - 1px); top: 2rem; width: 4px; height: 18%; border-radius: 4px;
	background: linear-gradient(transparent, var(--pb-violet), transparent);
	animation: pb-rail-y 4.4s var(--ease-out) infinite; opacity: 0;
}
@keyframes pb-rail-y { 0% { transform: translateY(0); opacity: 0; } 5% { opacity: 1; } 34% { opacity: 1; transform: translateY(460%); } 38%, 100% { opacity: 0; transform: translateY(460%); } }
@media (min-width: 1024px) {
	ol.is-style-pb-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
	ol.is-style-pb-steps > li { padding: calc(var(--node) + 2.5rem) 1.35rem 1.5rem; }
	ol.is-style-pb-steps > li::before { left: 1.35rem; top: 1.35rem; }
	ol.is-style-pb-steps::before { left: 2rem; right: 2rem; top: calc(1.35rem + var(--node) / 2); bottom: auto; border-left: 0; border-top: 2px dashed #cfd6de; }
	ol.is-style-pb-steps::after {
		left: 2rem; top: calc(1.35rem + var(--node) / 2 - 1px); width: 14%; height: 4px;
		background: linear-gradient(90deg, transparent, var(--pb-violet), transparent);
		animation-name: pb-rail-x;
	}
	/* The rail can't be one element over the cards: each card is its own stacking context
	   (scroll reveal), so a rail on the list would paint over every node disc.
	   Instead: the list rail sits BEHIND the cards (visible in the gaps), each card paints its
	   own dashed segment as a background, and its ::after carries the light, staggered so it
	   travels card to card — all inside the card, under the disc (::before, z-index 3). */
	ol.is-style-pb-steps { --rail-y: calc(1.35rem + var(--node) / 2 - 1px); }
	ol.is-style-pb-steps::before { z-index: 0; }
	ol.is-style-pb-steps::after { display: none; }
	ol.is-style-pb-steps > li {
		z-index: 1; overflow: hidden;
		background:
			repeating-linear-gradient(90deg, var(--pb-dash) 0 6px, transparent 6px 11px) 0 var(--rail-y) / 100% 2px no-repeat,
			linear-gradient(150deg, var(--pb-bg1), var(--pb-bg2));
	}
	ol.is-style-pb-steps > li:first-child { background-position: calc(1.35rem + var(--node) / 2) var(--rail-y), 0 0; }
	ol.is-style-pb-steps > li:last-child { background-size: calc(100% - 1.35rem) 2px, auto; }
	ol.is-style-pb-steps > li::after {
		content: ""; position: absolute; z-index: 2; pointer-events: none; left: 0; top: calc(var(--rail-y) - 1px); width: 45%; height: 4px;
		background: linear-gradient(90deg, transparent, var(--pb-violet), transparent); border-radius: 4px;
		opacity: 0; transform: translateX(-100%);
		animation: pb-rail-x 4.4s linear infinite;
	}
	ol.is-style-pb-steps > li:nth-child(2)::after { animation-delay: .3s; }
	ol.is-style-pb-steps > li:nth-child(3)::after { animation-delay: .6s; }
	ol.is-style-pb-steps > li:nth-child(4)::after { animation-delay: .9s; }
	ol.is-style-pb-steps > li:nth-child(5)::after { animation-delay: 1.2s; }
}
/* One card-width pass in ~.35s (8% of 4.4s); the delays above chain the five passes. */
@keyframes pb-rail-x { 0% { transform: translateX(-100%); opacity: 0; } 1% { opacity: 1; } 8% { transform: translateX(222%); opacity: 1; } 8.5%, 100% { transform: translateX(222%); opacity: 0; } }

/* ---------- Media grids (factory, expo, certificates) ---------- */
.pb-photo-grid.wp-block-gallery { gap: .75rem !important; }
.pb-photo-grid.wp-block-gallery .wp-block-image { overflow: hidden; border-radius: var(--pb-radius-sm); }
.pb-photo-grid.wp-block-gallery .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease-out); }
.pb-photo-grid .wp-block-image:hover img { transform: scale(1.04); }
.pb-cert-grid.wp-block-gallery .wp-block-image img { border: 1px solid var(--pb-line); border-radius: .75rem; background: #fff; aspect-ratio: auto; object-fit: contain; }
.pb-photo-grid figcaption, .pb-cert-grid figcaption { position: static !important; background: none !important; color: var(--pb-muted) !important; font-size: .875rem !important; padding: .5rem 0 0 !important; text-align: left !important; }
.pb-photo-grid.wp-block-gallery .wp-block-image:has(figcaption) { overflow: visible; }
.pb-photo-grid.wp-block-gallery .wp-block-image:has(figcaption) img { border-radius: var(--pb-radius-sm); }

/* ---------- Certificates (About #certificates): credential cards + SGS test list ---------- */
.pb-creds { display: grid !important; gap: clamp(.75rem, 1.4vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: clamp(2rem, 4vw, 3rem) 0 0 !important; }
.pb-cred { margin: 0 !important; display: flex; flex-direction: column; }
.pb-cred h3 { font-size: 1.25rem; }
.pb-cred > p:not(.pb-cred__issuer) { font-size: .9375rem; }
.pb-cred__issuer { margin: 0 0 .75rem !important; font-size: .8125rem !important; font-weight: 600; letter-spacing: .02em; color: var(--pb-violet-deep) !important; }
.pb-cred__meta { list-style: none; padding: 1rem 0 0 !important; margin: auto 0 0 !important; border-top: 1px solid var(--pb-line); font-size: .875rem; }
.pb-cred__meta li { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .25rem; color: var(--pb-muted); }
.pb-cred__meta strong { color: var(--pb-ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pb-certs__tests { margin-top: clamp(2.5rem, 5vw, 4rem) !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.pb-certs__group { margin: 1.5rem 0 .5rem !important; font-size: .8125rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); }
.pb-certs__tests .is-style-pb-checks { margin-top: 0; font-size: .9688rem; }
.pb-certs__entity { margin-top: 1.25rem !important; font-size: .875rem; color: var(--pb-muted); }
.pb-case .wp-block-image img, figure.pb-case img { border-radius: var(--pb-radius); }

/* ---------- Logo wall / marquee ---------- */
.is-style-pb-logos.wp-block-gallery { gap: .75rem !important; }
.is-style-pb-logos.wp-block-gallery .wp-block-image {
	display: grid; place-items: center; padding: .75rem 1rem; background: #fff; border-radius: var(--pb-radius-sm);
}
.is-style-pb-logos.wp-block-gallery .wp-block-image img { height: clamp(64px, 6vw, 88px) !important; width: auto !important; max-width: 100%; object-fit: contain !important; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.is-style-pb-logos.wp-block-gallery .wp-block-image:hover img { filter: none; opacity: 1; }
.pb-marquee-title { color: var(--pb-muted); font-size: 1rem !important; margin: clamp(3rem, 6vw, 5rem) 0 1.5rem !important; }
/* motion.js turns the gallery into two identical rows sliding left; duplicates are aria-hidden. */
.is-style-pb-logos.is-marquee {
	display: block !important; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.pb-marquee__track { display: flex; width: max-content; animation: pb-marquee var(--pb-marquee-dur, 40s) linear infinite; }
.pb-marquee__group { display: flex; gap: 4rem; padding-right: 4rem; align-items: center; }
.is-marquee .wp-block-image { background: none !important; padding: 0 !important; width: auto !important; margin: 0 !important; flex: none !important; }
.is-style-pb-logos.wp-block-gallery.is-marquee .wp-block-image img { height: clamp(72px, 7vw, 104px) !important; opacity: .85; }
.is-marquee:is(:hover, :focus-within) .pb-marquee__track,
.is-marquee.is-paused .pb-marquee__track { animation-play-state: paused; }
@keyframes pb-marquee { to { transform: translateX(-50%); } }

/* ---------- Case studies: tabs over paired panels ---------- */
.pb-tabs__nav {
	display: flex; gap: .25rem; width: max-content; max-width: 100%; margin: clamp(2rem, 4vw, 3rem) auto clamp(1.5rem, 3vw, 2.5rem);
	padding: .35rem; border-radius: 999px; background: #fff; box-shadow: var(--pb-shadow-soft);
	overflow-x: auto; scrollbar-width: none;
}
.pb-tabs__nav::-webkit-scrollbar { display: none; }
.pb-tabs__nav button {
	flex: none; padding: .7rem 1.25rem; border: 0; border-radius: 999px; background: transparent; color: var(--pb-muted);
	font-size: .9688rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color var(--motion-base), color var(--motion-base);
}
.pb-tabs__nav button:hover { color: var(--pb-ink); background: transparent; }
.pb-tabs__nav button[aria-selected="true"] { background: var(--pb-mist); color: var(--pb-ink); }
.pb-tabs.is-ready { display: grid !important; }
.pb-tabs.is-ready > .pb-case-panel { grid-area: 1 / 1; transition: opacity var(--motion-base) ease-in-out, visibility var(--motion-base); }
.pb-tabs.is-ready > .pb-case-panel[hidden] { display: flex !important; visibility: hidden; opacity: 0; }
.pb-tabs:not(.is-ready) > .pb-case-panel + .pb-case-panel { margin-top: 1.25rem !important; }
.pb-case-panel { gap: var(--pb-inset) !important; margin: 0 !important; align-items: stretch !important; }
.pb-case-panel > .wp-block-column { border-radius: var(--pb-radius-lg); margin: 0 !important; }
.pb-case-panel__media { display: grid; place-items: center; padding: clamp(1.25rem, 3vw, 3rem); background: var(--pb-mist); }
.pb-case-panel__media .wp-block-image { margin: 0; }
.pb-case-panel__media img { max-height: 26rem; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.pb-case-panel__copy {
	display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 4vw, 4rem) !important;
	background: rgba(169, 206, 204, .55); color: #17343d;
}
.pb-case-panel__copy h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; }
.pb-case-panel__copy p { color: #2c4a53; font-size: 1.0625rem; }
.pb-case-panel__copy .pb-eyebrow { color: var(--pb-teal); }
.pb-case-panel__copy .pb-eyebrow::before { background: var(--pb-teal); }
.pb-case-panel__copy .wp-block-buttons { margin-top: 1rem; }

/* Testimonials on a warm blush board, slightly tilted like cards on a table. */
.pb-voices { gap: clamp(1rem, 2vw, 1.5rem) !important; margin-top: clamp(1.25rem, 2vw, 1.5rem) !important; padding: clamp(1.25rem, 3.5vw, 3.5rem); border-radius: var(--pb-radius-lg); background: var(--pb-blush-light); }
.is-style-pb-testimonial {
	margin: 0; padding: clamp(1.5rem, 2.4vw, 2.25rem); background: #fff; border: 0; border-radius: var(--pb-radius); height: 100%;
	box-shadow: 0 10px 30px rgba(59, 39, 32, .08);
	transition: rotate .5s var(--ease-out), translate .5s var(--ease-out);
}
.is-style-pb-testimonial::before {
	content: "\201C"; display: block; height: 2.25rem; margin-bottom: .5rem; font: 4.5rem/1 Georgia, "Times New Roman", serif; color: var(--pb-violet);
}
.is-style-pb-testimonial p { font-size: 1.0625rem; font-style: normal; line-height: 1.5; color: var(--pb-ink); }
.is-style-pb-testimonial cite { color: var(--pb-muted); font-size: .875rem; font-style: normal; font-weight: 600; }
@media (max-width: 781px) {
	/* Phones: swipe through the quotes instead of three tall cards. */
	.pb-voices.wp-block-columns {
		flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		padding: 1.25rem; scroll-padding-inline: 1.25rem;
	}
	.pb-voices::-webkit-scrollbar { display: none; }
	.pb-voices > .wp-block-column { flex: 0 0 85% !important; scroll-snap-align: start; }
}
@media (min-width: 782px) {
	.pb-voices > .wp-block-column:nth-child(1) .is-style-pb-testimonial { rotate: -2deg; }
	.pb-voices > .wp-block-column:nth-child(2) .is-style-pb-testimonial { rotate: 1.5deg; translate: 0 .75rem; }
	.pb-voices > .wp-block-column:nth-child(3) .is-style-pb-testimonial { rotate: -1deg; }
	.pb-voices .is-style-pb-testimonial:hover { rotate: 0deg; translate: 0 -.25rem; }
}

/* ---------- FAQ: heading column + accordion ---------- */
.pb-faq-wrap { gap: 2rem clamp(2rem, 6vw, 6rem) !important; }
.pb-faq-wrap > .wp-block-column:first-child h2 { margin-top: 0; }
@media (min-width: 782px) { .pb-faq-wrap > .wp-block-column:first-child { position: sticky; top: calc(var(--pb-header-h) + 2rem); align-self: flex-start; } }
.is-style-pb-faq { border-bottom: 1px solid var(--pb-line); padding: 0; margin: 0 !important; }
.is-style-pb-faq:first-of-type { border-top: 1px solid var(--pb-line); }
.is-style-pb-faq summary {
	cursor: pointer; list-style: none; position: relative; padding: 1.35rem 3.5rem 1.35rem 0;
	font-weight: 500; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); letter-spacing: -.01em; line-height: 1.35;
	transition: color var(--motion-fast);
}
.is-style-pb-faq summary:hover { color: var(--pb-violet-deep); }
.is-style-pb-faq summary::-webkit-details-marker { display: none; }
.is-style-pb-faq summary::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; border-radius: 50%;
	background: var(--pb-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: transform .28s var(--ease-out), background-color .28s;
}
.is-style-pb-faq[open] summary::after { transform: rotate(45deg); background-color: var(--pb-lilac); }
.is-style-pb-faq > :not(summary) { color: var(--pb-muted); margin: 0 3.5rem 1.35rem 0; }
.is-style-pb-faq::details-content {
	block-size: 0; overflow: hidden; opacity: 0;
	transition: block-size .28s var(--ease-out), opacity .28s, content-visibility .28s allow-discrete;
}
.is-style-pb-faq[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- Quote section: dark CTA panel with grainy orbs ---------- */
.pb-quote { padding: var(--pb-inset); scroll-margin-top: var(--pb-header-h); }
.pb-quote__panel {
	position: relative; overflow: hidden; isolation: isolate;
	padding: var(--pb-section) calc(var(--pb-gutter) - var(--pb-inset));
	border-radius: var(--pb-radius-lg); background: var(--pb-panel); color: var(--pb-on-dark);
}
.pb-quote__inner { position: relative; max-width: var(--pb-wide); margin: 0 auto; display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .pb-quote__inner { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.pb-quote :is(h1, h2) { color: #fff; margin-top: 0; font-size: clamp(2.25rem, 4.6vw, 4rem); }
.pb-quote__intro > p { color: var(--pb-on-dark); font-size: 1.125rem; }
.pb-quote__points { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .75rem; }
.pb-quote__points li { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 500; }
.pb-quote__points li::before {
	content: ""; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%;
	background: var(--pb-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2933' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.pb-quote a { color: #fff; }
.pb-quote__alt { font-size: .9688rem; }
/* Contact page (contacts="1"): the contact list is its own grid cell — under the intro beside the
   form on desktop, after the form on phones so the form comes first. The bullet points repeat the
   intro sentence, so phones skip them. */
.pb-quote__inner--contacts .pb-quote__contacts { order: 3; }
@media (max-width: 959px) { .pb-quote__inner--contacts .pb-quote__points { display: none; } }
@media (min-width: 960px) {
	.pb-quote__inner--contacts { grid-template-areas: "intro form" "contacts form"; grid-template-rows: auto 1fr; row-gap: 0; }
	.pb-quote__inner--contacts .pb-quote__intro { grid-area: intro; }
	.pb-quote__inner--contacts .pb-quote__form { grid-area: form; }
	.pb-quote__inner--contacts .pb-quote__contacts { grid-area: contacts; align-self: start; }
}
.pb-quote__contacts { list-style: none; padding: 1.5rem 0 0; margin: 0; display: grid; gap: 1rem; border-top: 1px solid var(--pb-line-dark); }
.pb-quote__contacts li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .9rem; align-items: center; }
.pb-quote__contacts .pb-icon { grid-row: span 2; width: 2.5rem; height: 2.5rem; padding: .65rem; margin: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.pb-quote__contacts span { font-size: .8125rem; color: var(--pb-on-dark); }
.pb-quote__contacts a, .pb-quote__contacts address { font-style: normal; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.pb-quote__form { background: #fff; color: var(--pb-ink); border-radius: var(--pb-radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.pb-quote .pb-quote__form a:not(.pb-btn) { color: var(--pb-violet-deep); }
.pb-quote__privacy { font-size: .8125rem; color: var(--pb-muted); margin: 1rem 0 0; }
.pb-quote__orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; transition: transform .6s var(--ease-out); }
.pb-quote__orb::after { /* grain */
	content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .35; mix-blend-mode: overlay;
	-webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pb-quote__orb--1 { width: 42rem; height: 42rem; left: -16rem; bottom: -24rem; background: radial-gradient(circle at 60% 40%, rgba(130, 71, 255, .55), rgba(63, 39, 172, .15) 55%, transparent 70%); transform: translate3d(calc(var(--pb-px, 0px) * 3), calc(var(--pb-py, 0px) * 3), 0); }
.pb-quote__orb--2 { width: 24rem; height: 24rem; right: -6rem; top: -10rem; background: radial-gradient(circle, rgba(169, 206, 204, .45), transparent 68%); transform: translate3d(calc(var(--pb-px, 0px) * -2), calc(var(--pb-py, 0px) * -2), 0); }
.pb-quote__orb--3 { width: 14rem; height: 14rem; left: 38%; top: 12%; background: radial-gradient(circle, rgba(241, 217, 208, .3), transparent 68%); transform: translate3d(calc(var(--pb-px, 0px)), calc(var(--pb-py, 0px)), 0); }

/* Fluent Forms — align with the theme without loading its extra styles. */
.pb-quote .fluentform .ff-el-group { margin-bottom: 1.1rem; }
.pb-quote .fluentform .ff-el-input--label label { font-weight: 600; font-size: .9375rem; color: var(--pb-ink); }
.pb-quote .fluentform .ff-el-form-control {
	border: 1px solid #d5dbe1; border-radius: .875rem; padding: .8rem 1rem; font-size: 1rem; background: var(--pb-mist); color: var(--pb-ink);
	transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast);
}
.pb-quote .fluentform .ff-el-form-control:focus { border-color: var(--pb-violet); background: #fff; box-shadow: 0 0 0 4px rgba(130, 71, 255, .16); outline: none; }
.pb-quote .fluentform .ff-btn-submit {
	width: 100%; min-height: 3.5rem; padding: 1rem 1.5rem !important; border-radius: 999px !important; background: var(--pb-violet) !important; border: 0 !important;
	color: #fff !important; font-weight: 600 !important; font-size: 1.0625rem !important; transition: background-color var(--motion-base);
}
.pb-quote .fluentform .ff-btn-submit:hover, .pb-quote .fluentform .ff-btn-submit:focus { background: var(--pb-violet-deep) !important; }
.pb-quote .ff-el-help-message { color: var(--pb-muted); }
.pb-notice { background: #fff4e5; color: #6b3d00; border-radius: .75rem; padding: .75rem 1rem; }

/* ---------- Custom Solutions page ---------- */
.pb-solution-grid { gap: 1rem !important; }
.pb-anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pb-anchor-nav .wp-block-button__link { min-height: 2.75rem; padding: .5em 1.2em; font-size: .9688rem; }
[id="materials"], [id="printing"], [id="handles"], [id="sizes"] { scroll-margin-top: calc(var(--pb-header-h) + 1rem); }
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--pb-line); border-radius: var(--pb-radius-sm); overflow: hidden; }
.wp-block-table th, .wp-block-table td { border: 0; border-top: 1px solid var(--pb-line); padding: .8rem 1rem; }
.wp-block-table thead th { border-top: 0; background: var(--pb-mist); font-weight: 600; text-align: left; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--pb-mist); }
.wp-block-table.is-style-stripes { border-bottom: 0; }

/* ---------- Contact cards ---------- */

/* ---------- WooCommerce: archives ---------- */
.woocommerce .site-main, .woocommerce-page .site-main { margin-bottom: 0; }
.woocommerce .site-content, .woocommerce-page .site-content { padding-top: var(--pb-inset); }
.woocommerce-products-header {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--pb-lilac); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem); margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--pb-radius-lg);
}
.woocommerce-products-header::after { content: ""; position: absolute; z-index: -1; width: 28rem; height: 28rem; right: -8rem; top: -12rem; border-radius: 50%; background: radial-gradient(circle, rgba(169, 206, 204, .9), transparent 70%); }
.woocommerce-products-header__title { margin: 0 0 .5rem; }
.term-description { color: #3e4a56; max-width: 44rem; font-size: 1.0625rem; }
.woocommerce-breadcrumb { font-size: .875rem; color: var(--pb-muted); margin-bottom: 1.25rem !important; }
.woocommerce-breadcrumb a { color: var(--pb-muted); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { font-size: .9375rem; color: var(--pb-muted); }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--pb-line); border-radius: 999px; padding: .5rem 1rem; background: #fff; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); margin: 0 0 2.5rem !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (min-width: 782px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.woocommerce ul.products li.product {
	position: relative; width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column;
	background: var(--pb-mist); border-radius: var(--pb-radius); overflow: hidden; text-align: left;
	transition: translate .4s var(--ease-out), background-color .4s;
}
.woocommerce ul.products li.product:hover { translate: 0 -4px; background: #eef1f5; }
.woocommerce ul.products li.product > a:first-child { display: block; overflow: hidden; }
.woocommerce ul.products li.product a img { margin: 0 !important; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; transition: transform .7s var(--ease-out); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.single-product ul.products li.product:hover a img { transform: none; } /* no picture hover on product pages */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
	font-size: 1.0625rem !important; font-weight: 500; letter-spacing: -.01em; color: var(--pb-ink); padding: 1rem 1.25rem .3rem !important; line-height: 1.3;
}
.pb-card-specs { font-size: .875rem; color: var(--pb-muted); margin: 0; padding: 0 1.25rem; }
.pb-card-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding: .9rem 1.25rem 1.25rem; font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--pb-violet-deep); }
.pb-card-cta::after { content: "→"; transition: transform .35s var(--ease-out); }
li.product:hover .pb-card-cta::after { transform: translateX(4px); }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: .4rem; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li :is(a, span) { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--pb-mist); color: var(--pb-ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--pb-ink); color: #fff; }

/* ---------- WooCommerce: single product ---------- */
.single-product div.product { display: grid; gap: 2rem; margin-bottom: 0; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.single-product div.product > * { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery { position: relative; opacity: 1 !important; } /* show the main image before JS runs (LCP) */
.single-product div.product .woocommerce-product-gallery__image { background: var(--pb-mist); border-radius: var(--pb-radius); overflow: hidden; }
.single-product div.product .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
/* Static gallery: first image full width, the rest as a thumbnail grid. */
.single-product div.product .woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.single-product div.product .woocommerce-product-gallery__image { width: auto !important; margin: 0 !important; float: none !important; }
.single-product div.product .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }
.single-product div.product .woocommerce-product-gallery__image:not(:first-child) { border-radius: var(--pb-radius-sm); }
.single-product div.product .woocommerce-product-gallery__image:not(:first-child) img { aspect-ratio: 1; object-fit: cover; }
.single-product .product_title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 400; margin-bottom: 1rem; }
.single-product .woocommerce-product-details__short-description { color: var(--pb-muted); font-size: 1.0625rem; }
.single-product .pb-product-details,
.single-product .pb-product-description,
.single-product .pb-quote,
.single-product .related { grid-column: 1 / -1; }

.pb-product-specs { margin: 1.5rem 0 0; }
.pb-product-specs h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; margin: 0 0 .75rem; }
.pb-product-specs table.shop_attributes { margin-bottom: 0; }
.pb-actions { display: grid; gap: .75rem; margin: 1.5rem 0 .75rem; }
@media (min-width: 480px) { .pb-actions { grid-template-columns: 1fr 1fr; } }
.pb-actions .pb-btn { width: 100%; }
.pb-sku { font-size: .875rem; color: var(--pb-muted); }

.pb-product-details { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 4vw, 3rem); }

.pb-product-details h2, .pb-product-description h2, .related > h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.woocommerce table.shop_attributes { border: 1px solid var(--pb-line); border-radius: var(--pb-radius-sm); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_attributes th { width: 38%; background: var(--pb-mist); font-weight: 600; padding: .75rem 1rem; border-top: 1px solid var(--pb-line); text-align: left; }
.woocommerce table.shop_attributes td { padding: .75rem 1rem; font-style: normal; border-top: 1px solid var(--pb-line); }
.woocommerce table.shop_attributes tr:first-child th, .woocommerce table.shop_attributes tr:first-child td { border-top: 0; }
.woocommerce table.shop_attributes td p { padding: 0; margin: 0; }
.pb-product-custom { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--pb-radius); background: var(--pb-lilac); }
.pb-product-custom h2 { margin-top: 0; }
.pb-product-description { max-width: 48rem; }
.single-product .pb-quote { margin-top: 1.5rem !important; padding: 0; }
.single-product .pb-quote__panel { padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem); }
.single-product .pb-quote h2 { font-size: clamp(1.75rem, 3vw, 2.625rem); }
.pb-actions .pb-btn { font-size: 1rem; }
.single-product .related { padding-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--pb-muted); }
.pb-footer { max-width: calc(var(--pb-wide) + 2 * var(--pb-gutter)); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) var(--pb-gutter) 7rem; font-size: .9688rem; }
@media (min-width: 960px) { .pb-footer { padding-bottom: 2.5rem; } }
.pb-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 782px) { .pb-footer__grid { grid-template-columns: 2.2fr 1fr 1fr 1.6fr; gap: 3rem; } }
.pb-footer__brand { color: var(--pb-ink); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1.15; margin-bottom: .75rem; max-width: 12em; }
.pb-footer__about p:not(.pb-footer__brand) { max-width: 26rem; }
.pb-footer__title { color: var(--pb-ink); font-weight: 600; margin-bottom: 1rem; font-size: .9375rem; }
.pb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pb-footer a:not(.pb-btn) { position: relative; color: var(--pb-muted); text-decoration: none; }
.pb-footer a:not(.pb-btn):hover, .pb-footer a:not(.pb-btn):focus { color: var(--pb-ink); }
.pb-footer__col a:not(.pb-btn)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: .4rem; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5C22 2.5 55 1.8 99 3.2' fill='none' stroke='%238247ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease-draw);
}
.pb-footer__col a:not(.pb-btn):is(:hover, :focus-visible)::after { clip-path: inset(0 0 0 0); }
.pb-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.pb-footer__contact a { display: inline-flex; gap: .6rem; align-items: flex-start; }
.pb-footer__contact a::after { display: none; }
.pb-footer__contact .pb-icon { margin-top: .2em; color: var(--pb-violet); }
.pb-footer__about .pb-btn { margin-top: .75rem; }
.pb-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--pb-line); font-size: .875rem; }

/* ---------- Floating WhatsApp + mobile action bar ---------- */
.pb-wa-float {
	position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%;
	display: none; place-items: center; background: var(--pb-wa); color: #fff; box-shadow: 0 10px 30px rgba(28, 124, 63, .35);
	transition: transform .35s var(--ease-back), background-color .25s;
}
.pb-wa-float:hover, .pb-wa-float:focus { color: #fff; background: #155f30; transform: scale(1.08); }
.pb-wa-float .pb-icon { width: 1.8rem; height: 1.8rem; }
.pb-mobile-bar {
	position: fixed; left: .625rem; right: .625rem; bottom: calc(.625rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
	display: grid; grid-template-columns: 1.4fr 1fr; gap: .375rem; padding: .375rem;
	background: rgba(255, 255, 255, .96); border-radius: 999px; box-shadow: 0 10px 34px rgba(31, 41, 51, .2);
	transition: translate .4s var(--ease-out);
}
.pb-mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; padding: .5rem; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff; }
.pb-mobile-bar__quote { background: var(--pb-violet); }
.pb-mobile-bar__wa { background: var(--pb-wa); }
html.pb-menu-open .pb-mobile-bar { translate: 0 calc(100% + 1.5rem); }
@media (min-width: 960px) {
	.pb-mobile-bar { display: none; }
	.pb-wa-float { display: grid; }
}
@media (max-width: 959px) { body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Thank-you page ---------- */
.pb-thanks-icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.25rem; background: var(--pb-violet); color: #fff; font-size: 2rem; font-weight: 600; }

/* ---------- Editor tweaks (add_editor_style) ---------- */
.editor-styles-wrapper .pb-cat-card h3 a::after { display: none; }
.editor-styles-wrapper .pb-stack { gap: 1.25rem; }
.editor-styles-wrapper .pb-stack::after { display: none; }
.editor-styles-wrapper .pb-stack-card { position: static; }

/* ==========================================================================
   Motion. Only transform/opacity (plus SVG stroke offsets) are animated.
   Content never depends on JS: motion.js only adds enhancements, and
   prefers-reduced-motion switches everything to the final static state.
   ========================================================================== */

/* Hand-drawn marks injected by motion.js into .pb-mark spans (one per screen). */
.pb-mark { position: relative; display: inline-block; white-space: nowrap; }
.pb-mark__svg { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pb-mark--underline .pb-mark__svg { left: 7%; width: 86%; top: 82%; height: .32em; stroke: var(--pb-violet); stroke-width: 3; }
/* Circle: a loose sketch drawn BEHIND the words (isolated so z-index -1 stays inside the span),
   with room around the glyphs. Its viewBox (128×48) matches the box's usual proportions, so the
   stretch is near-uniform and the line stays thin and even. */
.pb-mark--circle { isolation: isolate; padding-inline: .15em; }
.pb-mark--circle .pb-mark__svg { z-index: -1; left: -7%; width: 114%; top: -30%; height: 160%; stroke: var(--pb-violet); stroke-width: 1.2; opacity: .75; }
.pb-mark--lines .pb-mark__svg { right: -.55em; top: -.5em; width: .6em; height: .6em; stroke: var(--pb-violet); stroke-width: 3; }
.pb-mark__svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pb-mark--underline .pb-mark__svg path { transition: stroke-dashoffset .9s var(--ease-draw); }
.pb-mark--underline .pb-mark__svg path + path { transition-delay: .25s; }
.pb-mark--circle .pb-mark__svg path { transition: stroke-dashoffset 1.2s var(--ease-draw); }
.pb-mark--lines .pb-mark__svg path { transition: stroke-dashoffset .5s var(--ease-out); }
.pb-mark--lines .pb-mark__svg path:nth-child(2) { transition-delay: .15s; }
.pb-mark--lines .pb-mark__svg path:nth-child(3) { transition-delay: .3s; }
.pb-mark.is-drawn .pb-mark__svg path { stroke-dashoffset: 0; }
:is(.is-style-pb-section-dark, .pb-on-dark) .pb-mark--circle .pb-mark__svg { stroke: var(--pb-mint); opacity: 1; }

/* Loops pause while their block is off screen (motion.js adds .is-paused). */
.is-paused, .is-paused *, .is-paused::before, .is-paused::after, .is-paused *::after { animation-play-state: paused !important; }

/* Scroll reveal: CSS scroll-driven where supported; other browsers show content as is. */
@supports (animation-timeline: view()) {
	.pb-cat-card,
	.is-style-pb-card,
	.pb-stat-grid > .wp-block-group,
	ol.is-style-pb-steps > li,
	.pb-voices,
	.is-style-pb-faq,
	.pb-photo-grid .wp-block-image,
	.pb-cert-grid .wp-block-image,
	.woocommerce ul.products li.product,
	.pb-quote__form,
	.pb-case-panel__copy > * {
		animation: pb-reveal linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 45%;
	}
}
@keyframes pb-reveal {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: none; }
}

/* Opening curtain (front page, first view per session; see inc/layout.php). */
.pb-curtain { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; background: var(--pb-mint); transform-origin: 50% 0; animation: pb-curtain-out .5s .62s var(--ease-quint) both; }
.pb-curtain span { position: absolute; inset: 0; transform: translateY(100%); animation: pb-curtain-in .5s cubic-bezier(.64, 0, .78, 0) both; }
.pb-curtain span:nth-child(1) { background: var(--pb-blush-light); }
.pb-curtain span:nth-child(2) { background: var(--pb-blush); animation-delay: .08s; }
.pb-curtain span:nth-child(3) { background: var(--pb-lilac); animation-delay: .16s; }
.pb-curtain span:nth-child(4) { background: #fff; animation-delay: .24s; animation-duration: .45s; }
@keyframes pb-curtain-in { to { transform: none; } }
@keyframes pb-curtain-out { to { transform: scaleY(0); visibility: hidden; } }
.pb-no-curtain .pb-curtain { display: none; }
.home { --pb-intro: .85s; }
.home.pb-no-curtain, .pb-no-curtain .home { --pb-intro: 0s; }

/* ---------- Page transitions (cross-document View Transitions, no JS) ----------
   Header, mobile bar and WhatsApp button stay put; the page content fades/slides.
   Product images morph from the catalog card to the product page (names set in catalog-mode.php). */
@view-transition { navigation: auto; }

.site-header  { view-transition-name: pb-header; }
.pb-mobile-bar { view-transition-name: pb-mobile-bar; }
.pb-wa-float  { view-transition-name: pb-wa; }

::view-transition-old(root) { animation: pb-page-out .18s ease-in both; }
::view-transition-new(root) { animation: pb-page-in .36s var(--ease-out) both; }
@keyframes pb-page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pb-page-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease-out); }
::view-transition-group(pb-header),
::view-transition-group(pb-mobile-bar),
::view-transition-group(pb-wa) { animation-duration: 0s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.pb-curtain { display: none; }
	.pb-mark__svg path { stroke-dashoffset: 0 !important; }
	.pb-stage__layer { transform: none !important; }
	.pb-stage__lines .flow, ol.is-style-pb-steps::after, ol.is-style-pb-steps > li::after { display: none; }
	.pb-voices .is-style-pb-testimonial { rotate: 0deg !important; translate: none !important; }
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
