/* Prosestim Hero Slider — scoped styles */
.psh-hero {
	--psh-speed: 700ms;
	--psh-stagger: 100ms;
	--psh-ease: cubic-bezier(.22, .61, .36, 1);
	--psh-arrow-x: 66px;
	--psh-arrow-y: 50%;
	--psh-counter-x: 66px;
	--psh-counter-y: 88px;
	--psh-justify: flex-start;
	--psh-text-align: left;
	--psh-dot: 8px;
	--psh-dot-active: 28px;
	--psh-valign: center;
	--psh-cx: 0px;
	--psh-cy: 0px;
	--psh-media-x: 8%;
	--psh-media-y: 50%;
	--psh-m-dur: 900ms;
	--psh-m-delay: 250ms;
	--psh-m-dist: 80px;
	--psh-loop-amp: 12;
	--psh-loop-dur: 6s;
	--psh-fx-amt: 18;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: #f7f7f7;
	font-family: "Poppins", system-ui, sans-serif;
}

.psh-hero *,
.psh-hero *::before,
.psh-hero *::after {
	box-sizing: border-box;
}

/* ---------- Track & slides (grid stack: no absolute height, no CLS) ---------- */
.psh-hero__track {
	display: grid;
	touch-action: pan-y;
}

.psh-hero__slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	min-height: 100vh;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity var(--psh-speed) var(--psh-ease), visibility 0s linear var(--psh-speed);
}

.psh-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--psh-speed) var(--psh-ease), visibility 0s;
}

/* Slide effect: JS drives --psh-x */
.psh-hero--slide .psh-hero__slide {
	opacity: 1;
	transform: translate3d(var(--psh-x, 100%), 0, 0);
	transition: transform var(--psh-speed) var(--psh-ease), visibility 0s linear var(--psh-speed);
	will-change: transform;
}
.psh-hero--slide .psh-hero__slide:first-child { --psh-x: 0%; }
.psh-hero--slide .psh-hero__slide.is-active,
.psh-hero--slide .psh-hero__slide.is-leaving {
	visibility: visible;
	transition: transform var(--psh-speed) var(--psh-ease), visibility 0s;
}
.psh-hero__slide.is-leaving { z-index: 1; }
.psh-hero__slide.is-no-transition { transition: none !important; }

/* ---------- Background ---------- */
.psh-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.psh-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	translate: var(--psh-ov-tx, 0%) var(--psh-ov-ty, 0%);
	pointer-events: none;
}

.psh-hero__bg picture { display: block; width: 100%; height: 100%; }
.psh-hero .psh-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	border: 0;
	border-radius: 0;
}

.psh-hero--kenburns .psh-hero__slide.is-active .psh-hero__img {
	animation: psh-kenburns 9s ease-out forwards;
}
@keyframes psh-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

/* ---------- Content ---------- */
.psh-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	align-items: var(--psh-valign, center);
	justify-content: var(--psh-justify);
	width: 100%;
	padding: 120px 176px;
}

.psh-hero__content {
	position: relative;
	z-index: 2;
	left: var(--psh-cx, 0px);
	top: var(--psh-cy, 0px);
	display: flex;
	flex-direction: column;
	align-items: var(--psh-justify);
	max-width: 720px;
	min-width: 0;
	text-align: var(--psh-text-align);
	overflow-wrap: anywhere;
}

.psh-hero .psh-hero__title {
	margin: 0 0 12px;
	padding: 0;
	color: #000;
	font-size: 64px;
	font-weight: 400;
	line-height: 1.1;
}

.psh-hero .psh-hero__desc {
	margin: 0;
	padding: 0;
	color: #111;
	font-size: 20px;
	line-height: 1.5;
}

.psh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--psh-justify);
	column-gap: 64px;
	row-gap: 16px;
	margin-top: 80px;
}

/* ---------- Buttons ---------- */
.psh-hero .psh-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none;
	transform: translateY(0);
	transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
	cursor: pointer;
}
.psh-hero .psh-hero__btn:hover,
.psh-hero .psh-hero__btn:focus-visible {
	text-decoration: none;
	transform: translateY(var(--psh-lift, 0));
}
.psh-hero .psh-hero__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.psh-hero .psh-hero__btn--primary {
	padding: 18px 56px;
	color: #000;
	background-color: #fff;
}
.psh-hero .psh-hero__btn--primary:hover,
.psh-hero .psh-hero__btn--primary:focus-visible {
	color: #fff;
	background-color: #000;
}

.psh-hero .psh-hero__btn--secondary {
	padding: 18px 0;
	color: #000;
	background-color: transparent;
}

.psh-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: .8em;
	line-height: 1;
	transition: transform .25s ease;
}
.psh-hero__btn-icon svg,
.psh-hero__btn-icon i { width: auto; height: 1em; }
.psh-hero__btn-icon .psh-hero__svg { width: 1.4em; height: .84em; }
.psh-hero__btn--secondary:hover .psh-hero__btn-icon,
.psh-hero__btn--secondary:focus-visible .psh-hero__btn-icon {
	transform: translateX(var(--psh-icon-shift, 4px));
}

/* ---------- Product image ---------- */
.psh-hero__media {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	width: 42%;
	max-width: 100%;
	align-self: center;
	translate: var(--psh-m-nx, 0px) var(--psh-m-ny, 0px);
	pointer-events: none;
}
.psh-hero__media-link,
.psh-hero__media-img { pointer-events: auto; }
.psh-hero__media-in,
.psh-hero__media-loop,
.psh-hero__media-fx { width: 100%; }
.psh-hero__media-link { display: block; }
.psh-hero .psh-hero__media-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	margin-inline: auto;
	border: 0;
	box-shadow: none;
}

/* Inline layout: media on the chosen side; content keeps its own alignment */
.psh-media-mode-inline.psh-media-side-right .psh-hero__inner.has-media .psh-hero__media { order: 2; margin-inline-start: auto; }
.psh-media-mode-inline.psh-media-side-left  .psh-hero__inner.has-media .psh-hero__media { order: 0; margin-inline-end: auto; }
.psh-media-mode-inline .psh-hero__inner.has-media .psh-hero__content { flex: 1 1 0; }

/* Free (absolute) layout */
.psh-media-mode-absolute .psh-hero__media {
	position: absolute;
	top: var(--psh-media-y);
	transform: translateY(-50%);
}
.psh-media-mode-absolute.psh-media-side-right .psh-hero__media { right: var(--psh-media-x); left: auto; }
.psh-media-mode-absolute.psh-media-side-left  .psh-hero__media { left: var(--psh-media-x); right: auto; }

/* Entrance effects — replay each time a slide becomes active */
.psh-hero__media-in {
	animation-duration: var(--psh-m-dur);
	animation-delay: var(--psh-m-delay);
	animation-timing-function: var(--psh-ease);
	animation-fill-mode: both;
}
@keyframes psh-m-fade     { from { opacity: 0; } }
@keyframes psh-m-up       { from { opacity: 0; transform: translate3d(0, var(--psh-m-dist), 0); } }
@keyframes psh-m-down     { from { opacity: 0; transform: translate3d(0, calc(var(--psh-m-dist) * -1), 0); } }
@keyframes psh-m-left     { from { opacity: 0; transform: translate3d(var(--psh-m-dist), 0, 0); } }
@keyframes psh-m-right    { from { opacity: 0; transform: translate3d(calc(var(--psh-m-dist) * -1), 0, 0); } }
@keyframes psh-m-zoom-in  { from { opacity: 0; transform: scale(.8); } }
@keyframes psh-m-zoom-out { from { opacity: 0; transform: scale(1.2); } }
@keyframes psh-m-blur     { from { opacity: 0; filter: blur(18px); transform: scale(1.04); } }
@keyframes psh-m-rotate   { from { opacity: 0; transform: rotate(-12deg) scale(.88); } }
@keyframes psh-m-flip     { from { opacity: 0; transform: perspective(900px) rotateY(70deg); } }

:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--fade     { animation-name: psh-m-fade; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--up       { animation-name: psh-m-up; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--down     { animation-name: psh-m-down; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--left     { animation-name: psh-m-left; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--right    { animation-name: psh-m-right; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--zoom-in  { animation-name: psh-m-zoom-in; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--zoom-out { animation-name: psh-m-zoom-out; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--blur     { animation-name: psh-m-blur; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--rotate   { animation-name: psh-m-rotate; }
:is(.psh-hero--ready, .psh-hero--media-onload) .psh-hero__slide.is-active .psh-m-in--flip     { animation-name: psh-m-flip; }

/* Continuous effects */
@keyframes psh-loop-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, calc(var(--psh-loop-amp) * -1px), 0); } }
@keyframes psh-loop-sway  { 0%, 100% { transform: rotate(calc(var(--psh-loop-amp) * -.25deg)); } 50% { transform: rotate(calc(var(--psh-loop-amp) * .25deg)); } }
@keyframes psh-loop-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(calc(1 + var(--psh-loop-amp) / 300)); } }
@keyframes psh-loop-spin  { to { transform: rotate(360deg); } }
.psh-hero__slide.is-active .psh-m-loop--float { animation: psh-loop-float var(--psh-loop-dur) ease-in-out infinite; }
.psh-hero__slide.is-active .psh-m-loop--sway  { animation: psh-loop-sway var(--psh-loop-dur) ease-in-out infinite; }
.psh-hero__slide.is-active .psh-m-loop--pulse { animation: psh-loop-pulse var(--psh-loop-dur) ease-in-out infinite; }
.psh-hero__slide.is-active .psh-m-loop--spin  { animation: psh-loop-spin calc(var(--psh-loop-dur) * 4) linear infinite; }

/* Pointer / hover interaction (fine pointers only) */
.psh-hero__media-fx { transition: transform .5s var(--psh-ease); }
@media (hover: hover) and (pointer: fine) {
	.psh-m-fx--parallax .psh-hero__media-fx {
		transform: translate3d(calc(var(--psh-mx, 0) * var(--psh-fx-amt) * 1px), calc(var(--psh-my, 0) * var(--psh-fx-amt) * 1px), 0);
		transition-duration: .25s;
	}
	.psh-m-fx--tilt .psh-hero__media-fx {
		transform: perspective(1000px) rotateY(calc(var(--psh-mx, 0) * var(--psh-fx-amt) * .5deg)) rotateX(calc(var(--psh-my, 0) * var(--psh-fx-amt) * -.5deg));
		transition-duration: .25s;
	}
	.psh-m-fx--zoom .psh-hero__media:hover .psh-hero__media-fx { transform: scale(calc(1 + var(--psh-fx-amt) / 200)); }
	.psh-m-fx--lift .psh-hero__media:hover .psh-hero__media-fx { transform: translate3d(0, calc(var(--psh-fx-amt) * -1px), 0); }
	.psh-m-fx--zoom .psh-hero__media,
	.psh-m-fx--lift .psh-hero__media { pointer-events: auto; }
}

/* ---------- Arrows (reset theme button styles) ---------- */
.psh-hero .psh-hero__arrow {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: var(--psh-arrow-y);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	color: #fff;
	background-color: rgba(0, 0, 0, .22);
	font-size: 32px;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, color .2s ease, opacity .2s ease, border-color .2s ease;
}
.psh-hero .psh-hero__arrow:hover,
.psh-hero .psh-hero__arrow:focus-visible {
	color: #fff;
	background-color: rgba(0, 0, 0, .6);
}
.psh-hero .psh-hero__arrow:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}
.psh-hero .psh-hero__arrow[disabled] {
	cursor: default;
	opacity: .35;
}
.psh-hero__arrow--prev { left: var(--psh-arrow-x); }
.psh-hero__arrow--next { right: var(--psh-arrow-x); }
.psh-hero__arrow svg,
.psh-hero__arrow i {
	width: 1em;
	height: 1em;
	font-size: inherit;
	pointer-events: none;
}
.psh-hero__arrow svg { fill: currentColor; }
.psh-hero__arrow .psh-hero__svg { fill: none; }

/* ---------- Counter ---------- */
.psh-hero__counter {
	position: absolute;
	z-index: 3;
	top: var(--psh-counter-y);
	right: var(--psh-counter-x);
	display: flex;
	align-items: baseline;
	white-space: pre;
	color: #000;
	font-size: 16px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

/* ---------- Dots ---------- */
.psh-hero__dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 40px;
	display: flex;
	align-items: center;
	transform: translateX(-50%);
}
.psh-hero .psh-hero__dot {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.psh-hero .psh-hero__dot:hover,
.psh-hero .psh-hero__dot:focus { background: transparent; }
.psh-hero .psh-hero__dot:focus-visible { outline: 2px solid #000; outline-offset: 1px; border-radius: 4px; }
.psh-hero__dot::before {
	content: "";
	display: block;
	width: var(--psh-dot);
	height: var(--psh-dot);
	border-radius: 999px;
	background-color: rgba(0, 0, 0, .25);
	transition: width .3s var(--psh-ease), background-color .3s ease;
}
.psh-hero__dot[aria-current="true"]::before {
	width: var(--psh-dot-active);
	background-color: #000;
}

/* ---------- Content entrance (only after first change → never delays LCP) ---------- */
.psh-hero--ready .psh-hero__anim {
	transition: opacity .6s var(--psh-ease), transform .6s var(--psh-ease);
}
.psh-hero--ready.psh-hero--anim-fade .psh-hero__slide:not(.is-active) .psh-hero__anim { opacity: 0; }
.psh-hero--ready.psh-hero--anim-fade-up .psh-hero__slide:not(.is-active) .psh-hero__anim { opacity: 0; transform: translateY(24px); }
.psh-hero--ready.psh-hero--anim-fade-left .psh-hero__slide:not(.is-active) .psh-hero__anim { opacity: 0; transform: translateX(32px); }
.psh-hero--ready .psh-hero__slide.is-active .psh-hero__anim {
	transition-delay: calc(var(--psh-speed) * .35 + var(--i, 0) * var(--psh-stagger));
}

/* ---------- Screen-reader live region ---------- */
.psh-hero__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Responsive fallbacks (Elementor controls override) ---------- */
@media (max-width: 1024px) {
	.psh-hero__inner { padding: 100px 96px; }
	.psh-hero { --psh-arrow-x: 24px; }
}
@media (max-width: 767px) {
	.psh-hero { --psh-arrow-x: 12px; --psh-arrow-y: 90%; --psh-counter-x: 24px; --psh-counter-y: 24px; }
	.psh-hero__inner { padding: 96px 24px 120px; }
	.psh-hero .psh-hero__title { font-size: 40px; }
	.psh-hero .psh-hero__desc { font-size: 16px; }
	.psh-hero__actions { column-gap: 24px; margin-top: 40px; }
	.psh-hero .psh-hero__btn--primary { padding: 14px 28px; }
	.psh-hero .psh-hero__btn--secondary { padding: 14px 0; }
	.psh-hero .psh-hero__arrow { width: 44px; height: 44px; font-size: 22px; }

	.psh-stack-mobile-yes .psh-hero__actions { flex-direction: column; align-items: stretch; align-self: stretch; }
	.psh-stack-mobile-yes .psh-hero__btn { width: 100%; }

	/* Product image on mobile */
	.psh-media-mob-hide .psh-hero__media { display: none; }
	:is(.psh-media-mob-top, .psh-media-mob-bottom) .psh-hero__inner.has-media {
		flex-direction: column;
		align-items: var(--psh-justify);
		justify-content: var(--psh-valign, center);
	}
	:is(.psh-media-mob-top, .psh-media-mob-bottom) .psh-hero__inner.has-media .psh-hero__content { flex: 0 0 auto; }
	:is(.psh-media-mob-top, .psh-media-mob-bottom) .psh-hero__media {
		position: relative;
		top: auto; left: auto; right: auto;
		transform: none;
		align-self: center;
		margin-inline: auto !important;
	}
	.psh-media-mob-top .psh-hero__media { order: 0 !important; }
	.psh-media-mob-bottom .psh-hero__media { order: 2 !important; }
}

/* Hover-only flourishes stay on precise pointers */
@media (hover: none) {
	.psh-hero .psh-hero__btn:hover { transform: none; }
	.psh-hero__btn--secondary:hover .psh-hero__btn-icon { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.psh-hero__slide,
	.psh-hero__anim,
	.psh-hero__btn,
	.psh-hero__btn-icon,
	.psh-hero__dot::before { transition: none !important; }
	.psh-hero--kenburns .psh-hero__slide.is-active .psh-hero__img,
	.psh-hero__media-in,
	.psh-hero__media-loop { animation: none !important; }
	.psh-hero__media-fx { transform: none !important; transition: none !important; }
	.psh-hero--ready .psh-hero__slide .psh-hero__anim { opacity: 1 !important; transform: none !important; }
}
