/*
 * Proweaver Factory: shared helpers. Section styles go in assets/css/sections/<section>.css.
 *
 * Scroll animations: add the class pf-reveal to a block, plus one direction (pf-reveal-up, -down, -left, -right, -zoom)
 * and optionally a delay (pf-delay-1 to pf-delay-4). assets/js/animate.js adds .is-visible when the block comes into
 * view. Nothing is hidden without JavaScript, in the editor, or for visitors who ask for reduced motion.
 */
.pf-js .pf-reveal {
	opacity: 0;
	transition: opacity var(--pf-reveal-duration, 0.6s) ease, transform var(--pf-reveal-duration, 0.6s) ease;
	will-change: opacity, transform;
}
.pf-js .pf-reveal-up { transform: translateY(24px); }
.pf-js .pf-reveal-down { transform: translateY(-24px); }
.pf-js .pf-reveal-left { transform: translateX(-32px); }
.pf-js .pf-reveal-right { transform: translateX(32px); }
.pf-js .pf-reveal-zoom { transform: scale(0.94); }
.pf-js .pf-reveal.is-visible { opacity: 1; transform: none; }
.pf-delay-1 { transition-delay: 0.1s; }
.pf-delay-2 { transition-delay: 0.2s; }
.pf-delay-3 { transition-delay: 0.3s; }
.pf-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	.pf-js .pf-reveal { opacity: 1; transform: none; transition: none; }
}

/* In the editor everything stays visible. */
.editor-styles-wrapper .pf-reveal { opacity: 1 !important; transform: none !important; }

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

/* ==== Bion Pharmacy: shared design (colour aliases, type, buttons, shared components) ==== */
:root {
	--navy: var(--wp--preset--color--contrast);
	--blue: var(--wp--preset--color--primary);
	--lime: var(--wp--preset--color--accent);
	--paper: var(--wp--preset--color--secondary);
	--muted: var(--wp--preset--color--muted);
	--blue-dark: var(--wp--preset--color--blue-dark);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--section-space: 120px;
}
@media (max-width: 767px) { :root { --section-space: 64px; } }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
header.wp-block-template-part { display: contents; }
.wp-site-blocks > main, .wp-site-blocks > footer { margin: 0; }
main.wp-block-group.is-layout-constrained { padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wp-site-blocks p { margin: 0; color: var(--muted); }
.wp-site-blocks :is(h1, h2, h3) { margin: 0; color: inherit; }
.wp-site-blocks h1 { font-size: clamp(49px, 6.5vw, 100px); }
.wp-site-blocks h2 { font-size: clamp(35px, 4.5vw, 67px); }
.wp-site-blocks h3 { font-size: 29px; letter-spacing: -.02em; line-height: 1.15; }
.wp-site-blocks figure { margin: 0; }
.wp-site-blocks img { display: block; }
.wrap { width: min(1380px, 92%); margin-left: auto; margin-right: auto; }
.wp-site-blocks :where(section.section, section.wrap) { padding-block: var(--section-space); }
.wp-site-blocks .wp-block-group > .wp-block-group, .wp-site-blocks .wp-block-group > .wp-block-buttons { max-width: none; }

.eyebrow, .wp-site-blocks p.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--blue); display: flex; align-items: center; gap: 10px; margin: 0 0 24px; line-height: 1.65; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--lime); flex: none; }
.accent, .wp-site-blocks h2 .accent { color: var(--blue); }

/* Buttons: .btn on the Button block; modifiers btn-light, btn-outline, btn-link, btn-filter, btn-toggle, btn-plain */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button.btn .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; max-width: 100%;
	padding: 12px 22px; border: 1px solid transparent; border-radius: 100px; background: var(--navy); color: #fff; text-align: center;
	font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: .035em; text-transform: uppercase; white-space: normal;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wp-block-button.btn-light .wp-block-button__link { background: var(--lime); color: #fff; }
.wp-block-button.btn-outline .wp-block-button__link { background: #fff; color: var(--navy); border-color: var(--navy); }
.wp-block-button.btn .wp-block-button__link:hover, .wp-block-button.btn .wp-block-button__link:focus-visible { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
@media (hover: hover) { .wp-block-button.btn .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #101d4c20; } }
.wp-block-button.btn .wp-block-button__link:active { transform: scale(.97); }
.wp-block-button.btn .wp-block-button__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.wp-block-button.btn-toggle .wp-block-button__link { background: #fff; color: var(--navy); border-color: #101d4c30; }
.wp-block-button.btn-toggle .wp-block-button__link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.wp-block-button.btn-plain .wp-block-button__link { all: unset; cursor: pointer; }

/* Reveal: factory pf-reveal classes, slightly slower like the mockup */
.pf-js .pf-reveal { --pf-reveal-duration: .85s; transition-timing-function: var(--ease); }

/* Shared contact methods (phone, fax, email), used on the home and contact pages */
.cf-methods { display: grid; gap: 14px; margin: 0; padding: 0; }
.cf-method { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #ffffff2e; border-radius: 18px; color: #fff; transition: background .3s, transform .3s; }
.cf-method:hover { background: #ffffff14; transform: translateY(-3px); }
.cf-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--navy); flex: none; position: relative; }
.cf-ico::before { content: ''; position: absolute; inset: 12px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.cf-phone .cf-ico { --ico: url(../svg/phone.svg); }
.cf-fax .cf-ico { --ico: url(../svg/fax.svg); }
.cf-email .cf-ico { --ico: url(../svg/email.svg); }
.cf-method p small { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #ffffffbf; line-height: 1.3; }
.cf-method .cf-value, .cf-method .cf-value .wp-block-button__link { display: block; font-family: var(--wp--preset--font-family--manrope); font-weight: 700; font-size: clamp(17px, 2vw, 20px); line-height: 1.3; overflow-wrap: anywhere; color: inherit; margin: 0; padding: 0; background: none; border: 0; text-transform: none; letter-spacing: 0; }
.wp-site-blocks .cf-method p.cf-value { color: inherit; }
.cf-method .cf-value .wp-block-button__link::after { content: ''; position: absolute; inset: 0; }
.cf-method .cf-value .wp-block-button, .cf-method .wp-block-buttons { display: block; margin: 0; }
.cf-method:has(a:focus-visible) { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Dialog (contact information, social profiles, gallery) built by assets/js/bion.js */
dialog.bion-dialog { border: 0; border-radius: 24px; padding: 35px; width: min(92%, 650px); box-shadow: 0 30px 100px #0004; color: var(--navy); }
dialog.bion-dialog::backdrop { background: #091a3caa; backdrop-filter: blur(6px); }
dialog.bion-dialog h2 { font-size: 36px; margin: 14px 0; }
dialog.bion-dialog p { margin: 12px 0; }
dialog.bion-dialog .cf-methods { margin: 20px 0; }
dialog.bion-dialog .cf-method { background: var(--paper); border-color: transparent; color: var(--navy); }
dialog.bion-dialog .cf-method small { color: var(--muted); }
.bion-dialog .close { float: right; border: 0; background: var(--navy); color: #fff; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; transition: background .3s; }
.bion-dialog .close:hover { background: var(--blue-dark); }
.bion-dialog .eyebrow { margin-bottom: 14px; }
.bion-dialog .bion-dialog-link { display: inline-flex; align-items: center; min-height: 56px; padding: 12px 22px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.bion-dialog .bion-dialog-link:hover { background: var(--blue-dark); }

/* Scroll progress bar and the larger-text switch */
.bion-progress { position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--lime)); box-shadow: 0 0 14px #008dbf55; z-index: 100000; width: 0; transition: width .12s linear; }
.bion-utility { position: fixed; bottom: 20px; right: 20px; z-index: 90; border: 0; border-radius: 50%; width: 48px; height: 48px; background: var(--navy); color: #fff; box-shadow: 0 6px 20px #0003; cursor: pointer; font: inherit; transition: background .3s; }
.bion-utility:hover { background: var(--blue-dark); }
body.bion-large { font-size: 19px; }
body.bion-large .wp-site-blocks p { font-size: 19px; }

/* Canvas particle fields built by assets/js/bion.js */
.bion-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

/* Intro overlay built by assets/js/bion.js */
#bion-intro { position: fixed; inset: 0; z-index: 2147483646; display: grid; place-items: center; overflow: hidden; isolation: isolate; transition: visibility 0s linear 1.3s; }
#bion-intro.bion-exit { visibility: hidden; pointer-events: none; }
.bion-curtain { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--paper); z-index: 0; transition: transform 1s cubic-bezier(.76, 0, .18, 1) .4s; }
.bion-curtain.top { top: 0; } .bion-curtain.bottom { bottom: 0; }
.bion-exit .bion-curtain.top { transform: translateY(-101%); } .bion-exit .bion-curtain.bottom { transform: translateY(101%); }
.bion-capsules { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; transition: opacity .4s; }
.bion-capsules i { position: absolute; left: var(--x); bottom: -70px; width: var(--s); height: calc(var(--s) * .42); border-radius: 99px; background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); opacity: 0; animation: bion-capsule var(--t) linear var(--d) infinite; box-shadow: inset 0 0 0 1px #ffffff55; }
@keyframes bion-capsule { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 12%, 80% { opacity: .4; } 100% { opacity: 0; transform: translateY(-115vh) rotate(calc(var(--r) + 220deg)); } }
.bion-orbit { position: absolute; left: 50%; top: 50%; width: min(72vw, 640px); aspect-ratio: 1; border: 1px solid #008dbf22; border-radius: 50%; transform: translate(-50%, -50%); animation: bion-orbit 12s linear infinite; pointer-events: none; }
.bion-orbit::before, .bion-orbit::after { content: ''; position: absolute; border-radius: 50%; width: 10px; height: 10px; background: var(--lime); top: 50%; left: -5px; }
.bion-orbit::after { background: var(--blue); left: auto; right: -5px; }
.bion-orbit.second { width: min(92vw, 800px); animation-duration: 19s; animation-direction: reverse; }
@keyframes bion-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.bion-intro-center { position: relative; z-index: 2; text-align: center; width: min(84vw, 400px); animation: bion-word .8s both; }
.bion-intro-mark { position: relative; display: grid; place-items: center; margin: 0 auto 30px; width: min(240px, 65vw); }
.bion-intro-logo { width: min(240px, 65vw); height: auto; display: block; animation: bion-logo-in 1.1s cubic-bezier(.22, 1, .36, 1) .15s both; }
.bion-pulse { position: absolute; left: 50%; top: 50%; width: 135%; aspect-ratio: 1; border: 1.5px solid var(--blue); border-radius: 50%; opacity: 0; animation: bion-pulse 2.8s ease-out 1s infinite; }
.bion-pulse.p2 { border-color: var(--lime); animation-delay: 2s; }
@keyframes bion-pulse { 0% { opacity: .55; transform: translate(-50%, -50%) scale(.45); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
@keyframes bion-logo-in { from { clip-path: inset(0 100% 0 0); opacity: 0; transform: scale(.92); } 60% { opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }
.bion-intro-label { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); font-weight: 700; padding-bottom: 12px; }
.bion-intro-label span { display: inline-block; animation: bion-word .8s cubic-bezier(.22, 1, .36, 1) both; }
.bion-intro-label span:nth-child(1) { animation-delay: .6s; } .bion-intro-label span:nth-child(2) { animation-delay: .78s; } .bion-intro-label span:nth-child(3) { animation-delay: .96s; }
@keyframes bion-word { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bion-intro-track { height: 4px; width: 220px; background: #101d4c18; border-radius: 9px; overflow: hidden; margin: 24px auto 12px; opacity: 0; animation: bion-word .7s ease 1.1s forwards; }
.bion-intro-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--lime)); box-shadow: 0 0 12px #008dbf66; transform: scaleX(var(--p, 0)); transform-origin: left; }
.bion-intro-count { font-size: 14px; color: var(--navy); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bion-intro-status { min-height: 22px; margin-top: 6px; font-size: 13px; color: var(--navy); opacity: .75; letter-spacing: .04em; }
.bion-intro-status.swap { animation: bion-word .5s cubic-bezier(.22, 1, .36, 1) both; }
.bion-exit .bion-intro-center { animation: bion-center-out .6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes bion-center-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px) scale(1.07); } }
.bion-exit .bion-orbit, .bion-exit .bion-capsules { opacity: 0; transition: opacity .4s; }
.bion-skip { position: absolute; bottom: 30px; right: 30px; border: 1px solid #101d4c33; background: #fff; color: var(--navy); border-radius: 40px; padding: 9px 18px; font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; z-index: 3; cursor: pointer; transition: background .3s, color .3s; }
.bion-skip:hover { background: var(--navy); color: #fff; }
.bion-exit .bion-skip { opacity: 0; transition: opacity .25s; }
html.bion-loading, html.bion-loading body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.bion-capsules i, .bion-pulse, .bion-intro-logo, .bion-intro-label span, .bion-intro-track, .bion-intro-center, .bion-orbit { animation: none !important; }
	.bion-intro-track { opacity: 1; }
	#bion-intro, .bion-curtain { transition: none !important; }
	html { scroll-behavior: auto; }
	.wp-block-button.btn .wp-block-button__link { transition: none !important; transform: none !important; }
}

/* Gallery lightbox (built by assets/js/bion.js) */
dialog.bion-lightbox { width: min(94vw, 1100px); max-width: none; padding: 20px; background: var(--navy); color: #fff; border: 0; border-radius: 24px; }
dialog.bion-lightbox::backdrop { background: #101d4cdd; backdrop-filter: blur(9px); }
dialog.bion-lightbox img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; }
dialog.bion-lightbox p { color: #fff; margin: 0; font-size: 16px; }
dialog.bion-lightbox .top, dialog.bion-lightbox .bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
dialog.bion-lightbox .bottom { margin: 12px 0 0; }
dialog.bion-lightbox button { background: var(--paper); color: var(--navy); border: 0; border-radius: 30px; min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
dialog.bion-lightbox button:hover { background: var(--blue); color: #fff; }
