/*! Phoenix Slider – core */

/* ---------------------------------------------------------------------
 * کانتینر و صحنه
 * ------------------------------------------------------------------ */

.pxs {
	--pxs-bg: #0f1115;
	--pxs-radius: 0px;
	--pxs-top: 0px;
	--pxs-max-w: 1200px;
	--pxs-h: 520px;
	--pxs-ratio: 16/9;
	--pxs-dur: 520ms;
	--pxs-ease: cubic-bezier(.22, .61, .36, 1);
	--pxs-sign: 1;

	position: relative;
	box-sizing: border-box;
	margin-inline: auto;
	isolation: isolate;
}

[dir="rtl"] .pxs,
.pxs[dir="rtl"] {
	--pxs-sign: -1;
}

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

.pxs--w-boxed {
	max-width: var(--pxs-max-w);
}

/* بیرون‌زدن از کانتینر محدود قالب. والد باید overflow-x پنهان داشته باشد،
   وگرنه روی بعضی قالب‌ها نوار اسکرول افقی ظاهر می‌شود. */
.pxs-fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.pxs-stage {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: var(--pxs-h);
	border-radius: var(--pxs-radius);
	background: var(--pxs-bg);
}

.pxs--h-full .pxs-stage {
	/* svh نه vh: با باز و بسته شدن نوار آدرس موبایل نمی‌پرد. */
	height: calc(100svh - var(--pxs-top));
}

.pxs--h-ratio .pxs-stage {
	height: auto;
	aspect-ratio: var(--pxs-ratio);
}

.pxs--h-auto .pxs-stage {
	height: auto;
}

/* ---------------------------------------------------------------------
 * تصویر
 * ------------------------------------------------------------------ */

.pxs-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: var(--pxs-focal, 50% 50%);
}

.pxs--fit-contain .pxs-img {
	object-fit: contain;
}

.pxs--h-auto .pxs-img {
	height: auto;
}

/* ---------------------------------------------------------------------
 * پوشش رنگی
 * ------------------------------------------------------------------ */

.pxs-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--pxs-ov, transparent);
}

/* ---------------------------------------------------------------------
 * لایه‌ی پارتیکل
 * ------------------------------------------------------------------ */

.pxs-particles {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	display: block;
	pointer-events: none;
	z-index: 2;
}

.pxs--pl-back .pxs-particles {
	z-index: 0;
}

.pxs--pl-top .pxs-particles {
	z-index: 6;
}

/* ---------------------------------------------------------------------
 * محتوای اسلاید — شبکه‌ی نه‌خانه‌ای
 * ------------------------------------------------------------------ */

.pxs-content {
	position: absolute;
	inset: 0;
	display: grid;
	padding: clamp(16px, 4vw, 56px);
	z-index: 3;
	pointer-events: none;
}

.pxs-content__inner {
	max-width: var(--pxs-tw, 620px);
	color: var(--pxs-tc, #fff);
	pointer-events: auto;
}

/* موقعیت‌ها فیزیکی‌اند نه منطقی: «بالا چپ» در راست‌به‌چپ هم باید چپ بماند،
   چون برچسب‌های شبکه‌ی انتخاب در مدیریت فیزیکی‌اند. start/end در RTL
   جابه‌جا می‌شدند. */
.pxs-zone--top-right { place-items: start right; }
.pxs-zone--top-center { place-items: start center; }
.pxs-zone--top-left { place-items: start left; }
.pxs-zone--middle-right { place-items: center right; }
.pxs-zone--middle-center { place-items: center center; }
.pxs-zone--middle-left { place-items: center left; }
.pxs-zone--bottom-right { place-items: end right; }
.pxs-zone--bottom-center { place-items: end center; }
.pxs-zone--bottom-left { place-items: end left; }

.pxs-align--start { text-align: start; }
.pxs-align--center { text-align: center; }
.pxs-align--end { text-align: end; }

.pxs-subtitle {
	margin: 0 0 .5em;
	font-size: clamp(.85rem, 1.4vw, 1.05rem);
	font-weight: 500;
	letter-spacing: .04em;
	opacity: .9;
}

.pxs-title {
	margin: 0 0 .4em;
	font-size: clamp(1.6rem, 4.4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.2;
	color: inherit;
}

.pxs-text {
	margin: 0 0 1.2em;
	font-size: clamp(.95rem, 1.6vw, 1.15rem);
	line-height: 1.8;
	opacity: .92;
}

.pxs-text:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * دکمه‌ها
 * ------------------------------------------------------------------ */

.pxs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.pxs-align--center .pxs-buttons { justify-content: center; }
.pxs-align--end .pxs-buttons { justify-content: flex-end; }

.pxs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.7em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: clamp(.9rem, 1.3vw, 1rem);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.pxs-btn:hover,
.pxs-btn:focus-visible {
	transform: translateY(-2px);
}

.pxs-btn--primary {
	background: #fff;
	color: #111;
}

.pxs-btn--primary:hover,
.pxs-btn--primary:focus-visible {
	background: #e9e9e9;
	color: #111;
}

.pxs-btn--outline {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

.pxs-btn--outline:hover,
.pxs-btn--outline:focus-visible {
	background: rgba(255, 255, 255, .14);
	color: inherit;
}

.pxs-btn--text {
	padding-inline: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .35em;
}

/* ---------------------------------------------------------------------
 * انیمیشن ورود محتوا
 * ------------------------------------------------------------------ */

.pxs-anim {
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--pxs-delay, 0ms);
}

.pxs-anim--fade { opacity: 0; }
.pxs-anim--up { opacity: 0; transform: translateY(28px); }
.pxs-anim--down { opacity: 0; transform: translateY(-28px); }
.pxs-anim--zoom { opacity: 0; transform: scale(.92); }

.is-live .pxs-anim,
.pxs--scene .pxs-anim,
.pxs--sequence .pxs-anim {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------------
 * لینک کل اسلاید
 * ------------------------------------------------------------------ */

.pxs-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	text-indent: -9999px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------
 * ابزار
 * ------------------------------------------------------------------ */

.pxs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pxs-notice {
	padding: 14px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	background: #fff8e5;
	color: #50575e;
	font-size: 14px;
	line-height: 1.8;
}

.pxs-notice small {
	opacity: .7;
}

/* ---------------------------------------------------------------------
 * پس‌زمینه‌ی ردیف قالب (Show on background در ایمپرزا)
 *
 * لایه‌ی پس‌زمینه‌ی ایمپرزا تمام ردیف را می‌پوشاند و pointer-events ندارد،
 * پس اسلایدر ارتفاعش را از ردیف می‌گیرد و کنترل‌های غیرقابل‌کلیک پنهان‌اند.
 * ------------------------------------------------------------------ */

.pxs-row-bg__layer > .pxs {
	position: absolute;
	inset: 0;
}

.pxs--bg,
.pxs--bg .pxs-stage {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border-radius: 0;
}

.pxs--bg.pxs--h-ratio .pxs-stage {
	aspect-ratio: auto;
}

.pxs--bg .pxs-nav,
.pxs--bg .pxs-dots,
.pxs--bg .pxs-playpause,
.pxs--bg .pxs-counter,
.pxs--bg .pxs-progress,
.pxs--bg .pxs-seq-progress,
.pxs--bg .pxs-seq-load {
	display: none !important;
}

/* سکانس داخل ردیف مسیر اسکرول ندارد و مثل ویدیو پخش می‌شود. */
.pxs--bg .pxs-seq-track {
	height: 100% !important;
}

.pxs--bg .pxs-seq-stage {
	position: absolute;
	inset: 0;
	height: 100%;
}

/* ---------------------------------------------------------------------
 * کاهش انیمیشن
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.pxs-anim {
		transition-duration: .01ms;
		transition-delay: 0ms;
		opacity: 1;
		transform: none;
	}

	.pxs-btn {
		transition: none;
	}

	.pxs-btn:hover,
	.pxs-btn:focus-visible {
		transform: none;
	}
}
