/**
 * PXS Hero widget — minimal hero slider for the front page.
 * Each slide stacks a background-cover image, optional overlay/fade, and a content
 * column with title, short description and a CTA. Arrows appear on the left and right
 * (hover or always, per setting) for previous/next.
 */

.pxs-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 460px;
	background-color: #0f172a;
	border-radius: 0;
	isolation: isolate;
	--pxs-hero-speed: 700ms;
	--pxs-hero-aspect: auto;
}

/*
 * Aspect-ratio mode: hero height = width ÷ ratio, so the background image is not aggressively
 * cropped on wide screens. The "Minimum height (safety floor)" Elementor control still sets
 * min-height on top of this, so narrow viewports never collapse the hero too far.
 */
.pxs-hero--aspect {
	min-height: 0;
	aspect-ratio: var(--pxs-hero-aspect, 21 / 9);
}

.pxs-hero__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.pxs-hero--aspect .pxs-hero__viewport {
	height: 100%;
}

.pxs-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	width: 100%;
	min-height: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--pxs-hero-speed, 700ms) ease;
	z-index: 1;
}

.pxs-hero--aspect .pxs-hero__slide {
	min-height: 0;
	height: 100%;
}

.pxs-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.pxs-hero__slide-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	text-decoration: none;
	color: transparent;
	background: transparent;
}

.pxs-hero__slide-link:focus {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.pxs-hero__slide-bg {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 1;
	will-change: transform;
}

.pxs-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: 0.4;
	pointer-events: none;
	z-index: 2;
	--pxs-hero-overlay-color-a: #000;
	--pxs-hero-overlay-color-end: #000;
	--pxs-hero-gradient-angle: 180deg;
}

.pxs-hero--gradient .pxs-hero__overlay {
	background-color: transparent;
	background-image: linear-gradient(var(--pxs-hero-gradient-angle, 180deg), rgba(0, 0, 0, 0) 0%, var(--pxs-hero-overlay-color-end, #000) 100%);
}

.pxs-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: inherit;
	padding: 32px 40px;
	align-items: flex-start;
	justify-content: flex-end;
	text-align: left;
	pointer-events: none;
}

.pxs-hero__content {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: inherit;
	max-width: 100%;
	pointer-events: auto;
}

.pxs-hero__title {
	margin: 0 0 8px;
	color: #fff;
	line-height: 1.15;
	font-size: clamp(1.4rem, 1.4rem + 1.6vw, 2.4rem);
	font-weight: 700;
	text-wrap: balance;
}

.pxs-hero__title a {
	color: inherit;
	text-decoration: none;
}

.pxs-hero__title a:hover,
.pxs-hero__title a:focus {
	text-decoration: underline;
}

.pxs-hero__description {
	margin: 0 0 16px;
	color: #e5e7eb;
	max-width: 560px;
	font-size: 1rem;
	line-height: 1.5;
}

.pxs-hero__cta {
	position: relative;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	background-color: #ec4899;
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition:
		background-color 200ms ease,
		color 200ms ease,
		transform 200ms ease,
		box-shadow 200ms ease;
}

.pxs-hero__cta:hover,
.pxs-hero__cta:focus {
	background-color: #db2777;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.pxs-hero__cta-prefix {
	white-space: nowrap;
}

.pxs-hero__cta-price {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-weight: 700;
}

.pxs-hero__cta-currency {
	font-weight: 700;
}

.pxs-hero__cta-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 4px;
	transition: transform 200ms ease;
}

.pxs-hero__cta:hover .pxs-hero__cta-arrow,
.pxs-hero__cta:focus .pxs-hero__cta-arrow {
	transform: translateX(3px);
}

/* Arrows */

.pxs-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background-color: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	z-index: 7;
	opacity: 0;
	transition:
		opacity 200ms ease,
		background-color 200ms ease,
		color 200ms ease,
		transform 200ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.pxs-hero__arrow:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.pxs-hero__arrow:hover,
.pxs-hero__arrow:focus {
	background-color: rgba(0, 0, 0, 0.85);
}

.pxs-hero__arrow--prev {
	left: 14px;
	transform: translateY(-50%) translateX(-6px);
}

.pxs-hero__arrow--next {
	right: 14px;
	transform: translateY(-50%) translateX(6px);
}

.pxs-hero__arrow svg {
	width: 22px;
	height: 22px;
	display: block;
}

.pxs-hero--arrows-always .pxs-hero__arrow,
.pxs-hero:hover .pxs-hero__arrow,
.pxs-hero:focus-within .pxs-hero__arrow {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* Dots */

.pxs-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 8;
	padding: 0;
	margin: 0;
}

.pxs-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition:
		background-color 200ms ease,
		transform 200ms ease,
		width 200ms ease;
}

.pxs-hero__dot.is-active {
	background-color: #fff;
	transform: scale(1.15);
}

.pxs-hero__dot:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Editor placeholder */

.pxs-hero.pxs-elementor-widget-placeholder {
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f1f5f9;
	color: #475569;
	border: 1px dashed #cbd5e1;
	padding: 16px;
	text-align: center;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

	.pxs-hero__slide,
	.pxs-hero__arrow,
	.pxs-hero__cta,
	.pxs-hero__cta-arrow,
	.pxs-hero__dot {
		transition: none;
	}
}

/* Mobile niceties */

@media (max-width: 600px) {

	.pxs-hero__inner {
		padding: 20px 18px;
	}

	.pxs-hero__arrow {
		width: 38px;
		height: 38px;
	}

	.pxs-hero__arrow svg {
		width: 18px;
		height: 18px;
	}

	.pxs-hero__cta {
		padding: 12px 18px;
		font-size: 0.95rem;
	}
}
