/* PD Motion — noticeable scroll reveal + hover polish for purbachaldesign.com
   Initial (hidden) states apply only when JS is active (html.pd-js) AND the
   script has marked elements with [data-pd]. If JS fails, nothing stays hidden. */

html.pd-js [data-pd] {
	opacity: 0;
	transition:
		opacity 1s ease,
		transform 1s cubic-bezier(.22, .61, .36, 1),
		box-shadow .45s ease;
	will-change: opacity, transform;
}

html.pd-js [data-pd="up"]   { transform: translateY(52px); }
html.pd-js [data-pd="zoom"] { transform: scale(1.12); }

html.pd-js [data-pd].pd-visible {
	opacity: 1;
	transform: none;
	/* Once revealed, shorten transitions so hover responses feel snappy. */
	transition:
		opacity .45s ease,
		transform .45s ease,
		box-shadow .45s ease;
}

/* Keep zooming covers/images from spilling out of their frame */
html.pd-js [data-pd="zoom"] { overflow: hidden; }

/* Hover polish: small background panels (marked .pd-card by the script) lift */
.pd-card {
	transition: transform .45s ease, box-shadow .45s ease;
}
html.pd-js .pd-card.pd-visible:hover,
.pd-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 24px 44px rgba(30, 47, 34, .22);
}

/* Buttons: lift + grow */
.wp-block-button__link {
	transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, color .35s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 14px 28px rgba(30, 47, 34, .26);
}

/* Photos: stronger zoom inside their frame on hover */
.wp-block-image { overflow: hidden; }
.wp-block-image img,
.wp-block-cover img {
	transition: transform .8s ease;
}
.wp-block-image:hover img,
.wp-block-cover:hover img {
	transform: scale(1.08);
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	html.pd-js [data-pd] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.pd-card,
	.wp-block-button__link,
	.wp-block-image img,
	.wp-block-cover img {
		transition: none !important;
		transform: none !important;
	}
}
