/* لندینگ غرفه‌سازی: چیزهایی که با کلاس‌های Tailwind بیان نمی‌شوند */

/* ---------- انیمیشن‌های تکرارشونده ---------- */
@keyframes boothOutline {
	0% {
		outline-color: rgba(0, 0, 0, 0);
		outline-offset: 0;
	}

	10%,
	50% {
		outline-color: rgba(0, 0, 0, 0.1);
	}

	100% {
		outline-color: rgba(0, 0, 0, 0);
		outline-offset: 8px;
	}
}

@keyframes boothFloating {
	0% {
		transform: translate(0, -5%);
	}

	100% {
		transform: translate(5%, 5%);
	}
}

@keyframes boothMarquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(var(--booth-marquee-to));
	}
}

blockquote::before {
	display: none;
}

.hero-image,
.our-services-item {
	outline: 1px solid rgba(0, 0, 0, 0);
	animation: boothOutline 1.5s forwards linear infinite;
}

/* ---------- متن‌های ادیتوری ---------- */
.booth-rich > *:last-child {
	margin-bottom: 0;
}

.booth-rich p {
	margin-bottom: 1em;
}

.booth-rich h2 {
	line-height: 1.5;
	margin-bottom: 12px;
}

.booth-rich h3 {
	margin-bottom: 8px;
}

.booth-rich ul,
.booth-rich ol {
	font-size: 90%;
	line-height: 1.8;
	padding-inline-start: 18px;
	margin-bottom: 1em;
}

.booth-rich ul {
	list-style: disc;
}

.booth-rich ol {
	list-style: decimal;
}

.booth-rich li p {
	margin: 0;
}

.booth-rich a {
	color: var(--link-color);
}

.booth-rich table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

.booth-rich :is(th, td) {
	border: 1px solid #ddd;
	padding: 8px;
}

.booth-rich blockquote {
	margin: 48px 0 8px;
}

.booth-rich blockquote p:last-child {
	margin: 0;
}

/* آیکون‌ها از اسپرایت؛ اندازه‌ی پیش‌فرض svg در قالب ۲۴ پیکسل است */
.booth-arrow {
	fill: currentColor;
	width: 25px;
	height: 50px;
}

/* ---------- کشورها ---------- */
.booth-country {
	border-inline-end: 1px solid #777;
	padding: 12px 0;
	margin: 12px 0;
}

.booth-country svg {
	width: 128px;
	height: 128px;
	margin: auto;
	transition: 0.3s;
	fill: var(--booth-country-color, currentColor);
}

.booth-country:hover svg {
	scale: 1.1;
	fill: var(--accent-color);
}

.booth-country h3 {
	margin-top: 12px;
	font-size: 12px;
	text-align: center;
	color: var(--booth-country-color, inherit);
}

.booth-country a h3 {
	color: black;
	text-decoration: underline;
	text-underline-offset: 8px;
}

.booth-country:nth-child(2n + 1) {
	border-inline-start: 1px solid #777;
}

@media (min-width: 1024px) {
	.booth-country {
		padding: 0 24px;
	}

	.booth-country h3 {
		font-size: 18px;
		line-height: 1.5;
	}

	.booth-country:nth-child(2n + 1) {
		border-inline-start: none;
	}

	.booth-country:nth-child(4n + 3) {
		border-inline-start: 1px solid #777;
	}
}

/* ---------- مراحل همکاری ---------- */
.booth-step {
	position: relative;
	padding: 24px;
}

.booth-step__icon {
	position: absolute;
	top: -60%;
	inset-inline-end: -15%;
	width: 50%;
	max-width: 50%;
}

.booth-step:nth-child(even) .booth-step__icon {
	animation: boothFloating infinite alternate 2s ease-in-out;
}

.booth-step:nth-child(odd) .booth-step__icon {
	animation: boothFloating infinite alternate 1.5s ease-in-out;
}

/* ---------- نوار لوگوها ---------- */
.booth-marquee {
	overflow: hidden;
	mask-image: linear-gradient(to left, transparent, black 8%, black 92%, transparent);
}

.booth-marquee__track {
	--booth-marquee-to: -50%;
	display: flex;
	width: max-content;
	align-items: center;
	gap: 24px;
	animation: boothMarquee 40s linear infinite;
}

.booth-marquee[data-direction="ltr"] .booth-marquee__track {
	--booth-marquee-to: 50%;
	transform: translateX(-50%);
}

.booth-marquee:hover .booth-marquee__track {
	animation-play-state: paused;
}

.booth-marquee__item {
	display: flex;
	width: 120px;
	height: 72px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	filter: grayscale(1);
}

.booth-marquee__item img {
	max-height: 100%;
	object-fit: contain;
}

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

	.booth-marquee__track,
	.booth-step__icon,
	.hero-image,
	.our-services-item {
		animation: none;
	}
}

/* ---------- اسلایدر قبل و بعد ---------- */
.booth-compare {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
	--booth-compare-pos: 50%;
}

.booth-compare__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.booth-compare__after {
	position: absolute;
	inset: 0;
	width: var(--booth-compare-pos);
	overflow: hidden;
}

.booth-compare__after .booth-compare__img {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: max(100%, var(--booth-compare-width, 100%));
}

.booth-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: var(--booth-compare-pos);
	width: 2px;
	background: #fff;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.booth-compare__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	translate: -50% -50%;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
}

.booth-compare__label {
	position: absolute;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
	pointer-events: none;
}

.booth-compare__label--before {
	inset-inline-end: 12px;
}

.booth-compare__label--after {
	inset-inline-start: 12px;
}

.booth-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	direction: ltr;
}

/* ---------- دکمه شناور ---------- */
.booth-float {
	position: fixed;
	inset-inline-start: 16px;
	bottom: 30px;
	z-index: 40;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
	.booth-float {
		inset-inline-start: 6px;
		inset-inline-end: 6px;
		bottom: 35px;
		justify-content: center;
	}
}

/* ---------- پرسش و پاسخ ---------- */
.booth-faq {
	border-top: 1px solid #d5d8dc;
}

.booth-faq__item {
	border-bottom: 1px solid #d5d8dc;
}

.booth-faq__q {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 0;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	line-height: 2;
	list-style: none;
}

.booth-faq__q::-webkit-details-marker {
	display: none;
}

.booth-faq__q::before {
	content: "";
	width: 0;
	height: 0;
	flex: 0 0 auto;
	border-block: 5px solid transparent;
	border-inline-start: 6px solid currentColor;
	transition: transform 0.2s;
}

.booth-faq__item[open] .booth-faq__q::before {
	transform: rotate(-90deg);
}

.booth-faq__a {
	padding: 15px 0;
	font-size: 13px;
	line-height: 2;
}

@media (min-width: 768px) {
	.booth-faq__q {
		font-size: 16px;
	}

	.booth-faq__a {
		font-size: inherit;
		line-height: 1.8;
	}
}

/* ---------- کارت‌های «چرا مهم است» بدون تصویر پرچم ---------- */
.booth-why-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.booth-why-grid {
		grid-template-columns: repeat(var(--why-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.booth-why-grid {
		grid-template-columns: repeat(var(--why-cols, 3), minmax(0, 1fr));
	}
}

/* ---------- ویدیو ---------- */
.bvid {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 9 / 16;
	background: #000;
	border: 0;
	padding: 0;
}

.bvid__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

.bvid__play {
	position: absolute;
	inset: 50% auto auto 50%;
	translate: -50% -50%;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
}

.bvid__play::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	translate: -40% -50%;
	border-block: 10px solid transparent;
	border-left: 16px solid #fff;
}

.bvid--wide {
	aspect-ratio: 16 / 9;
}

.bvid iframe,
.bvid__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background: #000;
}

/* ---------- گالری سبک ---------- */
.bgal {
	display: grid;
	grid-template-columns: repeat(var(--bgal-cols-mobile, 3), 1fr);
	gap: var(--bgal-gap, 15px);
}

.bgal__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
}

.bgal__img {
	width: 100%;
	height: var(--bgal-h-mobile, 70px);
	object-fit: cover;
	transition: transform 0.3s;
}

.bgal__item:hover .bgal__img {
	transform: scale(1.05);
}

.bgal__more {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.bgal__more-num {
	font-size: 20px;
	font-weight: 700;
}

@media (min-width: 768px) {
	.bgal {
		grid-template-columns: repeat(var(--bgal-cols-tablet, 4), 1fr);
	}

	.bgal__img {
		height: var(--bgal-h, 120px);
	}
}

@media (min-width: 1024px) {
	.bgal {
		grid-template-columns: repeat(var(--bgal-cols, 5), 1fr);
	}
}

/* ---------- لایت‌باکس ---------- */
html.blb-open {
	overflow: hidden;
}

.blb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	padding: 48px 16px;
}

.blb[hidden] {
	display: none;
}

.blb__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.blb__img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 8px;
}

.blb__caption {
	color: #fff;
	font-size: 14px;
	text-align: center;
}

.blb__close,
.blb__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
}

.blb__close {
	top: 12px;
	inset-inline-end: 12px;
	width: 40px;
	height: 40px;
	font-size: 26px;
}

.blb__nav {
	top: 50%;
	translate: 0 -50%;
	width: 44px;
	height: 44px;
	font-size: 30px;
}

.blb__prev {
	inset-inline-end: 12px;
}

.blb__next {
	inset-inline-start: 12px;
}

.blb__counter {
	position: absolute;
	bottom: 16px;
	inset-inline-start: 50%;
	translate: -50% 0;
	color: #fff;
	font-size: 13px;
}

/* ---------- نقل‌قول و مسیر راهنما ---------- */
.booth-quote-mark {
	font-size: 80px;
	line-height: 0.6;
	font-family: serif;
}

.booth-breadcrumb nav {
	color: #fff;
	font-size: 12px;
	font-weight: 300;
}

.booth-breadcrumb a {
	color: var(--primary-color);
}

/* ---------- بخش‌های ویدیویی، آزمون و جداکننده ---------- */
.booth-video__player {
	width: 100%;
	max-width: 280px;
}

.booth-video__player.bvid--wide {
	max-width: 100%;
}

.booth-hero-video {
	height: 420px;
	aspect-ratio: 16 / 6;
	object-fit: cover;
}

@media (max-width: 768px) {
	.booth-hero-video {
		height: auto;
	}
}

@media (min-width: 768px) {
	.booth-qa--flip {
		flex-direction: row-reverse;
	}
}

.booth-divider {
	width: 100%;
	border: 0;
	border-top: 1px solid #eee;
	margin: 0;
}

.booth-quiz__start {
	padding: 14px 32px;
	border: 1px solid currentColor;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.booth-quiz__start:hover {
	background: var(--accent-color);
}

.booth-quiz__form legend {
	font-family: "AbarFa", inherit;
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 24px;
}

/* ---------- خدمات و برندها: قاب بخش، عنوان و توضیح ---------- */
.booth-section {
	padding-block: 16px;
}

.booth-section--lead {
	padding-top: 48px;
}

.booth-lead__title {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--heading-color);
}

.booth-lead__text {
	text-align: center;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--secondary-color);
}

/* ---------- خدمات: کارت‌های آیکونی ---------- */
.booth-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.booth-cards > li {
	display: flex;
}

.booth-cards__item {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	padding: 8px;
	border: 1px solid #eee;
	border-radius: 16px;
	color: var(--heading-color);
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.booth-cards__item:hover {
	border-color: var(--primary-color);
	box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.08);
}

.booth-cards__icon {
	flex: none;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.booth-cards__title {
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.7;
}

/* ---------- برندهای مجموعه ---------- */
.booth-brand {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 20px;
}

.booth-brand--flip {
	flex-direction: row-reverse;
}

.booth-brand__logo {
	position: relative;
	flex: 0 0 30%;
	max-width: 30%;
	border-radius: 16px;
	overflow: hidden;
}

.booth-brand__logo.is-framed {
	border: 1px solid #eee;
}

/* تصویر از جریان خارج است تا ارتفاع ردیف را متن تعیین کند، نه لوگو */
.booth-brand__img {
	position: absolute;
	inset: 0;
	margin: auto;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.booth-brand__text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.6rem;
	font-weight: 400;
	line-height: 1.8;
	color: var(--heading-color);
}

.booth-brand__text .more-info {
	color: var(--accent-color);
	text-decoration: underline;
}

.booth-brand__line {
	width: 100%;
	margin: 15px 0;
	border: 0;
	border-top: 1px solid #eee;
}

@media (min-width: 768px) {
	.booth-section,
	.booth-section--lead {
		padding-block: 40px;
	}

	.booth-lead__title {
		font-size: 2rem;
	}

	.booth-lead__text {
		font-size: 1rem;
		margin-bottom: 32px;
	}

	.booth-cards {
		grid-template-columns: repeat(var(--booth-cards, 4), minmax(0, 1fr));
		gap: 14px;
	}

	.booth-cards__item {
		padding: 12px;
	}

	.booth-cards__icon {
		width: 50px;
		height: 50px;
	}

	.booth-cards__title {
		font-size: 0.9em;
	}

	.booth-brand__text {
		font-size: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.booth-cards {
		gap: 22px;
	}

	.booth-cards__item {
		padding: 32px;
	}

	.booth-cards__title {
		font-size: 1rem;
	}
}
