/*
 * پوسته‌ی ویسا: جلوه‌ها. سبک‌های بلوک (inc/effects.php)، حرکت (assets/js/motion.js) و
 * چیدمان‌های ویژه‌ی الگوها. همه از رنگ‌های پالت می‌آیند تا با هر قالب جور شوند.
 * هر حرکتی با «کاهش حرکت» سیستم‌عامل خاموش است (آخر فایل).
 */

:root {
	--weesa-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--weesa-dur: 0.8s;
	--weesa-dir: 1; /* راست‌چین: «شروع» سمت راست است */
	--weesa-neu-dark: color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	--weesa-neu-light: color-mix(in srgb, #fff 92%, transparent);
	--weesa-glow: color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
}
html[dir="ltr"] {
	--weesa-dir: -1;
}

/* ---------- زمینه‌های تیره: متن روشن ---------- */
:is(.is-style-section-aurora-dark, .is-style-section-girih-dark) {
	color: var(--wp--preset--color--base);
}
:is(.is-style-section-aurora-dark, .is-style-section-girih-dark) :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)) {
	color: inherit;
}
:is(.is-style-section-aurora-dark, .is-style-section-girih-dark) :is(.weesa-eyebrow, .weesa-lead, .weesa-stat-value, .weesa-stat-label, .weesa-note) {
	color: inherit;
	opacity: 0.88;
}
:is(.is-style-section-aurora-dark, .is-style-section-girih-dark) .weesa-stat-value {
	opacity: 1;
}

/* ---------- ظاهر شدن هنگام اسکرول (فقط زیر html.weesa-motion) ---------- */
.weesa-delay-1 { --weesa-delay: 0.1s; }
.weesa-delay-2 { --weesa-delay: 0.2s; }
.weesa-delay-3 { --weesa-delay: 0.3s; }
.weesa-delay-4 { --weesa-delay: 0.5s; }
.weesa-delay-5 { --weesa-delay: 0.8s; }

@keyframes weesa-fade-up { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes weesa-fade-in { from { opacity: 0; } }
@keyframes weesa-zoom-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes weesa-slide-start { from { opacity: 0; transform: translate3d(calc(48px * var(--weesa-dir)), 0, 0); } }
@keyframes weesa-slide-end { from { opacity: 0; transform: translate3d(calc(-48px * var(--weesa-dir)), 0, 0); } }
@keyframes weesa-blur-in { from { opacity: 0; filter: blur(14px); transform: scale(1.03); } }
@keyframes weesa-flip-up { from { opacity: 0; transform: perspective(900px) rotateX(22deg) translate3d(0, 32px, 0); } }
@keyframes weesa-word { from { opacity: 0; transform: translate3d(0, 0.45em, 0); filter: blur(5px); } }

.weesa-motion [class*="weesa-anim-"]:not(.weesa-anim-words):not(.is-in),
.weesa-motion .weesa-stagger:not(.is-in) > *,
.weesa-motion .weesa-anim-words:not(.is-in) .weesa-w {
	opacity: 0;
}
.weesa-motion .is-in:is(.weesa-anim-fade-up, .weesa-anim-fade-in, .weesa-anim-zoom-in, .weesa-anim-slide-start, .weesa-anim-slide-end, .weesa-anim-blur-in, .weesa-anim-flip-up) {
	animation-duration: var(--weesa-dur);
	animation-timing-function: var(--weesa-ease);
	animation-delay: var(--weesa-delay, 0s);
	animation-fill-mode: backwards;
}
.weesa-motion .is-in.weesa-anim-fade-up { animation-name: weesa-fade-up; }
.weesa-motion .is-in.weesa-anim-fade-in { animation-name: weesa-fade-in; }
.weesa-motion .is-in.weesa-anim-zoom-in { animation-name: weesa-zoom-in; }
.weesa-motion .is-in.weesa-anim-slide-start { animation-name: weesa-slide-start; }
.weesa-motion .is-in.weesa-anim-slide-end { animation-name: weesa-slide-end; }
.weesa-motion .is-in.weesa-anim-blur-in { animation-name: weesa-blur-in; }
.weesa-motion .is-in.weesa-anim-flip-up { animation-name: weesa-flip-up; transform-origin: 50% 100%; }
.weesa-motion .weesa-stagger.is-in > * {
	animation: weesa-fade-up var(--weesa-dur) var(--weesa-ease) calc(var(--weesa-delay, 0s) + var(--weesa-i, 0) * 0.09s) backwards;
}
.weesa-anim-words .weesa-w {
	display: inline-block;
}
.weesa-motion .weesa-anim-words.is-in .weesa-w {
	animation: weesa-word 0.6s var(--weesa-ease) calc(var(--weesa-delay, 0s) + var(--weesa-i, 0) * 0.05s) backwards;
}

/* ---------- متن ---------- */
@keyframes weesa-shine { to { background-position: -200% 0; } }
.is-style-gradient,
.weesa-gradient {
	background: linear-gradient(100deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent), var(--wp--preset--color--primary)) 0 0 / 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	-webkit-text-fill-color: transparent;
	animation: weesa-shine 7s linear infinite;
}
mark.weesa-gradient {
	padding: 0;
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) :is(.is-style-gradient, .weesa-gradient) {
	background-image: linear-gradient(100deg, var(--wp--preset--color--base), color-mix(in srgb, var(--wp--preset--color--accent) 55%, var(--wp--preset--color--base)), var(--wp--preset--color--base));
}
.weesa-gradient .weesa-w {
	/* هر کلمه گرادیان خودش را دارد (inline-block) */
	background: inherit;
	-webkit-background-clip: text;
	background-clip: text;
}

/* علامت زیر کلمه، از راست کشیده می‌شود */
mark.weesa-highlight {
	color: inherit;
	padding: 0 0.1em;
	background: linear-gradient(color-mix(in srgb, var(--wp--preset--color--accent) 38%, transparent), color-mix(in srgb, var(--wp--preset--color--accent) 38%, transparent)) 100% 88% / 100% 0.38em no-repeat;
	transition: background-size 1s var(--weesa-ease) 0.3s;
}
.weesa-motion [class*="weesa-anim-"]:not(.is-in) mark.weesa-highlight {
	background-size: 0% 0.38em;
}

/* کلمه‌های چرخان: سه کلمه پشت سر هم در یک جا */
.weesa-rotate {
	display: inline-grid;
	vertical-align: bottom;
	color: var(--wp--preset--color--primary);
}
.weesa-rotate > span {
	grid-area: 1 / 1;
	opacity: 0;
	animation: weesa-rotate 9s var(--weesa-ease) infinite;
}
.weesa-rotate > span:nth-child(2) { animation-delay: 3s; }
.weesa-rotate > span:nth-child(3) { animation-delay: 6s; }
@keyframes weesa-rotate {
	0% { opacity: 0; transform: translate3d(0, 0.6em, 0); }
	4%, 30% { opacity: 1; transform: none; }
	34%, 100% { opacity: 0; transform: translate3d(0, -0.6em, 0); }
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .weesa-rotate {
	color: inherit;
}

/* برچسب کوچک بالای تیتر (قرص) */
.weesa-pill {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.35rem 0.9rem;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.weesa-pill.has-text-align-center {
	margin-inline: auto;
}
.weesa-pill strong {
	padding: 0.05rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	font-size: 0.8em;
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .weesa-pill {
	background: color-mix(in srgb, var(--wp--preset--color--base) 10%, transparent);
}

/* ---------- کارت‌ها ---------- */
:is(.is-style-card-neu, .is-style-card-neu-inset, .is-style-card-glass, .is-style-card-glow, .is-style-card-lift, .is-style-card-tilt, .is-style-card-spotlight, .is-style-card-brutal, .is-style-card-clay) {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--lg);
}

/* نئومورفیسم: سطح هم‌رنگ زمینه، برجستگی فقط با دو سایه؛ حاشیه‌ی کم‌رنگ برای کنتراست */
.is-style-card-neu {
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, #fff 55%, transparent);
	box-shadow: 9px 9px 22px var(--weesa-neu-dark), -9px -9px 22px var(--weesa-neu-light);
}
.is-style-card-neu-inset {
	background: var(--wp--preset--color--surface);
	box-shadow: inset 7px 7px 16px var(--weesa-neu-dark), inset -7px -7px 16px var(--weesa-neu-light);
}

/* شیشه‌ای: روی تصویر یا گرادیان */
.is-style-card-glass {
	background: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent);
	border: 1px solid color-mix(in srgb, #fff 70%, transparent);
	box-shadow: 0 10px 40px -12px rgb(0 0 0 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.6);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .is-style-card-glass {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 34%, transparent);
	border-color: rgb(255 255 255 / 0.2);
	box-shadow: 0 10px 40px -12px rgb(0 0 0 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.12);
	color: var(--wp--preset--color--base);
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .is-style-card-glass :where(h1, h2, h3, h4, p) {
	color: inherit;
}

/* حاشیه‌ی درخشان چرخان */
@property --weesa-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
@keyframes weesa-spin { to { --weesa-angle: 360deg; } }
.is-style-card-glow {
	--weesa-card-bg: var(--wp--preset--color--base);
	border: 2px solid transparent;
	background:
		linear-gradient(var(--weesa-card-bg), var(--weesa-card-bg)) padding-box,
		conic-gradient(from var(--weesa-angle), var(--wp--preset--color--primary), var(--wp--preset--color--accent), color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent), var(--wp--preset--color--primary)) border-box;
	box-shadow: 0 18px 50px -20px var(--weesa-glow);
	animation: weesa-spin 6s linear infinite;
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark) .is-style-card-glow {
	--weesa-card-bg: color-mix(in srgb, var(--wp--preset--color--contrast) 88%, #fff);
}

.is-style-card-lift {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.35s var(--weesa-ease), box-shadow 0.35s var(--weesa-ease);
}
.is-style-card-lift:hover,
.is-style-card-lift:focus-within {
	transform: translateY(-6px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* سه‌بعدی: motion.js زاویه را از جای موس می‌دهد */
.is-style-card-tilt {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--soft);
	transform: perspective(900px) rotateX(var(--weesa-rx, 0deg)) rotateY(var(--weesa-ry, 0deg));
	transform-style: preserve-3d;
	transition: transform 0.5s var(--weesa-ease), box-shadow 0.5s var(--weesa-ease);
	will-change: transform;
}
.is-style-card-tilt:hover {
	transition-duration: 0.12s;
	box-shadow: var(--wp--preset--shadow--lifted);
}
.is-style-card-tilt > :not(.wp-block-image) {
	transform: translateZ(14px);
}

/* نورافکن: نور نرم زیر موس */
.is-style-card-spotlight {
	position: relative;
	background:
		radial-gradient(420px circle at var(--weesa-mx, 50%) var(--weesa-my, -60%), color-mix(in srgb, var(--wp--preset--color--primary) 24%, transparent), transparent 62%),
		color-mix(in srgb, currentColor 5%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
	transition: border-color 0.3s ease;
}
.is-style-card-spotlight:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
}

/* جسور (نئوبروتالیسم) */
.is-style-card-brutal {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--sm);
	box-shadow: 6px 6px 0 var(--wp--preset--color--contrast);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.is-style-card-brutal:hover {
	transform: translate(-2px, -2px);
	box-shadow: 9px 9px 0 var(--wp--preset--color--accent);
}

/* خمیری (کلی‌مورفیسم) */
.is-style-card-clay {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 9%, var(--wp--preset--color--base));
	border-radius: calc(var(--wp--custom--radius--lg) + 6px);
	box-shadow:
		inset -8px -8px 18px color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent),
		inset 8px 8px 18px rgb(255 255 255 / 0.7),
		0 18px 36px -14px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}

/* تصویر لبه‌به‌لبه بالای کارت‌های جدید (مثل کارت معمولی) */
:is(.is-style-card-lift, .is-style-card-tilt, .is-style-card-glass, .is-style-card-neu) > .wp-block-image:first-child:not([class*="is-style-icon"]) {
	margin-top: calc(-1 * var(--wp--preset--spacing--40));
	margin-inline: calc(-1 * var(--wp--preset--spacing--40));
}
:is(.is-style-card-lift, .is-style-card-tilt, .is-style-card-glass, .is-style-card-neu) > .wp-block-image:first-child:not([class*="is-style-icon"]) img {
	border-radius: var(--wp--custom--radius--lg) var(--wp--custom--radius--lg) 0 0;
}

/* ---------- بخش‌ها ---------- */
:is(.is-style-section-aurora, .is-style-section-aurora-dark, .is-style-section-girih, .is-style-section-girih-dark, .is-style-section-mesh) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.is-style-section-aurora { background-color: var(--wp--preset--color--base); }
.is-style-section-aurora-dark { background-color: var(--wp--preset--color--contrast); }
:is(.is-style-section-aurora, .is-style-section-aurora-dark)::before {
	content: "";
	position: absolute;
	inset: -30%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(closest-side at 22% 28%, color-mix(in srgb, var(--wp--preset--color--primary) var(--weesa-a1, 30%), transparent), transparent),
		radial-gradient(closest-side at 78% 22%, color-mix(in srgb, var(--wp--preset--color--accent) var(--weesa-a2, 26%), transparent), transparent),
		radial-gradient(closest-side at 62% 78%, color-mix(in srgb, var(--wp--preset--color--primary) var(--weesa-a3, 20%), transparent), transparent),
		radial-gradient(closest-side at 28% 82%, color-mix(in srgb, var(--wp--preset--color--accent) var(--weesa-a3, 20%), transparent), transparent);
	animation: weesa-aurora 22s ease-in-out infinite alternate;
}
.is-style-section-aurora-dark {
	--weesa-a1: 62%;
	--weesa-a2: 48%;
	--weesa-a3: 38%;
}
@keyframes weesa-aurora {
	0% { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); }
	50% { transform: translate3d(5%, 2%, 0) rotate(6deg) scale(1.08); }
	100% { transform: translate3d(-2%, 4%, 0) rotate(-4deg) scale(1.02); }
}

.is-style-section-mesh {
	background:
		radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent), transparent 70%),
		radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent), transparent 70%),
		var(--wp--preset--color--surface);
}

.is-style-section-neu {
	background-color: var(--wp--preset--color--surface);
}

.is-style-section-dots {
	background-color: var(--wp--preset--color--base);
	background-image: radial-gradient(color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent) 1.2px, transparent 1.6px);
	background-size: 22px 22px;
}

/* گره‌چینی: ستاره‌ی هشت‌پر و شبکه‌ی آن (assets/images/girih.svg) با رنگ پالت */
.is-style-section-girih { background-color: var(--wp--preset--color--surface); }
.is-style-section-girih-dark { background-color: var(--wp--preset--color--contrast); }
:is(.is-style-section-girih, .is-style-section-girih-dark)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--wp--preset--color--primary);
	opacity: 0.11;
	-webkit-mask: url("../images/girih.svg") 0 0 / 128px 128px repeat;
	mask: url("../images/girih.svg") 0 0 / 128px 128px repeat;
}
.is-style-section-girih-dark::before {
	background-color: var(--wp--preset--color--accent);
	opacity: 0.2;
}

/* ---------- دکمه‌ها ---------- */
.wp-block-button.is-style-neu .wp-block-button__link {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	box-shadow: 6px 6px 14px var(--weesa-neu-dark), -6px -6px 14px var(--weesa-neu-light);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wp-block-button.is-style-neu .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	box-shadow: 3px 3px 8px var(--weesa-neu-dark), -3px -3px 8px var(--weesa-neu-light);
}
.wp-block-button.is-style-neu .wp-block-button__link:active {
	box-shadow: inset 4px 4px 10px var(--weesa-neu-dark), inset -4px -4px 10px var(--weesa-neu-light);
}

.wp-block-button.is-style-glow .wp-block-button__link {
	background: linear-gradient(120deg, var(--wp--preset--color--primary), color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--accent)));
	color: var(--wp--preset--color--on-primary);
	box-shadow: 0 10px 30px -8px var(--weesa-glow);
	transition: transform 0.25s var(--weesa-ease), box-shadow 0.25s var(--weesa-ease);
}
.wp-block-button.is-style-glow .wp-block-button__link:hover,
.wp-block-button.is-style-glow .wp-block-button__link:focus {
	background: linear-gradient(120deg, var(--wp--preset--color--primary), color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--accent)));
	color: var(--wp--preset--color--on-primary);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -8px var(--weesa-glow);
}

.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "←";
	display: inline-block;
	margin-inline-start: 0.6em;
	transition: transform 0.25s var(--weesa-ease);
}
html[dir="ltr"] .wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "→";
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
	transform: translateX(calc(-5px * var(--weesa-dir)));
}

.wp-block-button.is-style-glass .wp-block-button__link {
	background: rgb(255 255 255 / 0.14);
	color: inherit;
	border: 1px solid rgb(255 255 255 / 0.4);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.wp-block-button.is-style-glass .wp-block-button__link:hover {
	background: rgb(255 255 255 / 0.24);
	color: inherit;
}

/* ---------- تصویرها ---------- */
/* طاق جناغی ایرانی */
.wp-block-image.is-style-arch img {
	border-radius: 0 !important;
	-webkit-mask: url("../images/arch.svg") center / 100% 100% no-repeat;
	mask: url("../images/arch.svg") center / 100% 100% no-repeat;
}

@keyframes weesa-blob {
	0% { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
	50% { border-radius: 42% 58% 60% 40% / 44% 58% 42% 56%; }
	100% { border-radius: 52% 48% 38% 62% / 58% 40% 60% 42%; }
}
.wp-block-image.is-style-blob img {
	border-radius: 58% 42% 46% 54% / 52% 44% 56% 48% !important;
	animation: weesa-blob 14s ease-in-out infinite alternate;
}

.wp-block-image.is-style-tilt {
	perspective: 1400px;
}
.wp-block-image.is-style-tilt img {
	transform: rotateY(calc(-14deg * var(--weesa-dir))) rotateX(5deg);
	box-shadow: calc(28px * var(--weesa-dir)) 40px 70px -24px rgb(0 0 0 / 0.38);
	transition: transform 0.7s var(--weesa-ease);
}
.wp-block-image.is-style-tilt:hover img {
	transform: none;
}

.wp-block-image.is-style-frame {
	position: relative;
	isolation: isolate;
}
.wp-block-image.is-style-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: var(--wp--custom--radius--md);
	transform: translate(calc(-18px * var(--weesa-dir)), 18px);
}

@keyframes weesa-float {
	50% { transform: translate3d(0, -12px, 0); }
}
.wp-block-image.is-style-float img,
.weesa-float-anim {
	animation: weesa-float 6s ease-in-out infinite;
}

.wp-block-image.is-style-logo img {
	max-height: 2.75rem;
	width: auto;
	filter: grayscale(1);
	opacity: 0.65;
	transition: filter 0.3s ease, opacity 0.3s ease;
}
.wp-block-image.is-style-logo:hover img {
	filter: none;
	opacity: 1;
}

/* قاب گوشی برای اسکرین‌شات اپ (کلاس weesa-phone روی بلوک تصویر) */
.wp-block-image.weesa-phone {
	position: relative;
	max-width: 17rem;
	margin-inline: auto;
	padding: 0.6rem;
	border-radius: 2.6rem;
	background: var(--wp--preset--color--contrast);
	box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.5), inset 0 0 0 2px color-mix(in srgb, #fff 18%, transparent);
}
.wp-block-image.weesa-phone::before {
	content: "";
	position: absolute;
	top: 1.1rem;
	left: 50%;
	z-index: 1;
	inline-size: 5.5rem;
	block-size: 1.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	transform: translateX(-50%);
}
.wp-block-image.weesa-phone img {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 19;
	object-fit: cover;
	border-radius: 2rem !important;
}

/* ---------- آیکون‌ها ---------- */
.wp-block-image:is(.is-style-icon, .is-style-icon-tile, .is-style-icon-soft, .is-style-icon-neu) {
	--weesa-icon: 2.25rem;
	width: fit-content;
	margin-block-end: 0;
	line-height: 0;
	color: var(--wp--preset--color--primary);
}
.wp-block-image:is(.is-style-icon, .is-style-icon-tile, .is-style-icon-soft, .is-style-icon-neu).aligncenter {
	margin-inline: auto;
}
.weesa-icon-svg,
.wp-block-image:is(.is-style-icon, .is-style-icon-tile, .is-style-icon-soft, .is-style-icon-neu) img {
	display: block;
	inline-size: var(--weesa-icon);
	block-size: var(--weesa-icon);
}
.wp-block-image:is(.is-style-icon-tile, .is-style-icon-soft, .is-style-icon-neu) {
	--weesa-icon: 1.75rem;
	display: grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: var(--wp--custom--radius--md);
}
.wp-block-image.is-style-icon-tile {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	box-shadow: 0 10px 24px -10px var(--weesa-glow);
}
.wp-block-image.is-style-icon-tile img {
	filter: brightness(0) invert(1); /* ویرایشگر: SVG هنوز درون‌خطی نشده */
}
.wp-block-image.is-style-icon-soft {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
}
.wp-block-image.is-style-icon-neu {
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	box-shadow: 6px 6px 14px var(--weesa-neu-dark), -6px -6px 14px var(--weesa-neu-light);
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .wp-block-image:is(.is-style-icon, .is-style-icon-soft) {
	color: inherit;
}
:is(.is-style-section-dark, .is-style-section-primary, .is-style-section-aurora-dark, .is-style-section-girih-dark, .wp-block-cover) .wp-block-image.is-style-icon-soft {
	background: rgb(255 255 255 / 0.1);
}

/* ---------- جداکننده‌ی ترنج ---------- */
.wp-block-separator.is-style-ornament {
	width: min(100%, 16rem) !important;
	height: 24px;
	margin-inline: auto;
	border: 0 !important;
	background-color: var(--wp--preset--color--accent) !important;
	opacity: 1;
	-webkit-mask:
		url("../images/ornament.svg") center / 64px 24px no-repeat,
		linear-gradient(90deg, #000 calc(50% - 40px), transparent 0 calc(50% + 40px), #000 0) center / 100% 1.5px no-repeat;
	mask:
		url("../images/ornament.svg") center / 64px 24px no-repeat,
		linear-gradient(90deg, #000 calc(50% - 40px), transparent 0 calc(50% + 40px), #000 0) center / 100% 1.5px no-repeat;
}

/* ---------- نوار متحرک ---------- */
.weesa-marquee {
	--weesa-marquee-gap: 3rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--weesa-marquee-gap);
}
.weesa-marquee > *,
.weesa-marquee__track > * {
	flex-shrink: 0;
	margin: 0 !important;
}
.weesa-marquee.is-running {
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.weesa-marquee__track {
	display: flex;
	align-items: center;
	gap: var(--weesa-marquee-gap);
	flex-shrink: 0;
	animation: weesa-marquee var(--weesa-marquee-time, 30s) linear infinite;
}
/* راست‌چین: نوار به راست می‌رود تا ابتدای متن اول دیده شود */
@keyframes weesa-marquee {
	to { transform: translate3d(calc((100% + var(--weesa-marquee-gap)) * var(--weesa-dir)), 0, 0); }
}
.weesa-marquee.is-reverse .weesa-marquee__track {
	animation-direction: reverse;
}
.weesa-marquee.is-running:is(:hover, :focus-within) .weesa-marquee__track {
	animation-play-state: paused;
}

/* نوار متن بزرگ با ستاره‌ی هشت‌پر میان کلمه‌ها */
.weesa-marquee-text {
	--weesa-marquee-gap: 2.25rem;
}
.weesa-marquee-text p {
	display: flex;
	align-items: center;
	gap: var(--weesa-marquee-gap);
	font-size: clamp(1.75rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.5;
	white-space: nowrap;
}
.weesa-marquee-text p::after {
	content: "";
	inline-size: 0.6em;
	block-size: 0.6em;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("../images/ornament.svg") center / 260% auto no-repeat;
	mask: url("../images/ornament.svg") center / 260% auto no-repeat;
}
.weesa-marquee-text p:nth-child(even) {
	-webkit-text-stroke: 1.5px currentColor;
}
.is-style-section-primary .weesa-marquee-text p::after,
.is-style-section-dark .weesa-marquee-text p::after {
	background: currentColor;
}
.weesa-marquee-text p:nth-child(even) {
	-webkit-text-fill-color: transparent;
}
.weesa-marquee-text p:nth-child(even)::after {
	-webkit-text-fill-color: initial;
}

/* لوگوی متنی مشتری‌ها */
.weesa-logo-text {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.2;
	color: var(--wp--preset--color--muted);
	opacity: 0.75;
	white-space: nowrap;
}

/* کارت‌های نظر در نوار متحرک */
.weesa-marquee .is-style-card {
	inline-size: min(78vw, 22rem);
	white-space: normal;
}

/* ---------- کاروسل لمسی ---------- */
.weesa-carousel {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding-block: 0.5rem 1.25rem;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent) transparent;
}
.weesa-carousel > * {
	flex: 0 0 min(82%, 21rem);
	margin: 0 !important;
	scroll-snap-align: start;
}
.weesa-carousel__nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
	margin-block-start: 0.25rem;
}
.weesa-carousel__btn {
	display: grid;
	place-items: center;
	inline-size: 2.9rem;
	block-size: 2.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.15rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.weesa-carousel__btn:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}
.weesa-carousel__btn[aria-label="بعدی"]::before { content: "←"; }
.weesa-carousel__btn[aria-label="قبلی"]::before { content: "→"; }
.weesa-carousel__btn[aria-label="قبلی"] { order: -1; }

/* ---------- بنتو ---------- */
.weesa-bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(12rem, auto);
	grid-auto-flow: dense;
	gap: var(--wp--preset--spacing--30);
}
.weesa-bento > * {
	margin: 0 !important;
}
.weesa-bento > .is-wide { grid-column: span 2; }
.weesa-bento > .is-tall { grid-row: span 2; }
.weesa-bento > .is-big { grid-column: span 2; grid-row: span 2; }
.weesa-bento > .wp-block-cover {
	min-height: 100%;
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	align-items: flex-end;
}
.weesa-bento > .wp-block-cover img {
	transition: transform 0.8s var(--weesa-ease);
}
.weesa-bento > .wp-block-cover:hover img {
	transform: scale(1.05);
}
@media (max-width: 960px) {
	.weesa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.weesa-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.weesa-bento > :is(.is-wide, .is-big) { grid-column: auto; }
	.weesa-bento > :is(.is-tall, .is-big) { grid-row: auto; }
	.weesa-bento > .wp-block-cover { min-height: 18rem; }
}

/* ---------- کارت‌های روی‌هم (چسبان هنگام اسکرول) ---------- */
.weesa-stack > * {
	position: sticky;
	top: calc(6.5rem + var(--weesa-k, 0) * 1.1rem);
	margin-block: 0 var(--wp--preset--spacing--40) !important;
	box-shadow: 0 -12px 40px -20px rgb(0 0 0 / 0.25);
}
.weesa-stack > :nth-child(2) { --weesa-k: 1; }
.weesa-stack > :nth-child(3) { --weesa-k: 2; }
.weesa-stack > :nth-child(4) { --weesa-k: 3; }
.weesa-stack > :nth-child(5) { --weesa-k: 4; }
.weesa-stack > :nth-child(6) { --weesa-k: 5; }
.weesa-stack > :nth-child(n + 7) { --weesa-k: 6; }
.weesa-stack .wp-block-columns {
	margin-block: 0;
}

/* ستون چسبان کنار ستون بلند */
@media (min-width: 782px) {
	.weesa-sticky {
		position: sticky;
		top: 7rem;
		align-self: flex-start;
	}
}

/* ---------- خط زمان ---------- */
.weesa-timeline {
	position: relative;
	padding-inline-start: 2.75rem;
	view-timeline-name: --weesa-tl;
}
.weesa-timeline::before,
.weesa-timeline::after {
	content: "";
	position: absolute;
	inset-block: 0.75rem;
	inset-inline-start: 0.7rem;
	inline-size: 2px;
	background: var(--wp--preset--color--border);
}
.weesa-timeline::after {
	background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	transform-origin: top;
	transform: scaleY(0);
}
@supports not (animation-timeline: view()) {
	.weesa-timeline::after { transform: none; }
}
@supports (animation-timeline: view()) {
	.weesa-timeline::after {
		animation: weesa-grow linear both;
		animation-timeline: --weesa-tl;
		animation-range: entry 30% cover 65%;
	}
}
@keyframes weesa-grow { to { transform: scaleY(1); } }
.weesa-timeline > * {
	position: relative;
}
.weesa-timeline > *::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	inset-inline-start: calc(-2.75rem + 0.7rem + 1px - 0.55rem);
	z-index: 1;
	inline-size: 1.1rem;
	block-size: 1.1rem;
	border: 3px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	box-sizing: border-box;
}
.weesa-year {
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* ---------- مراحل افقی با خط رابط ---------- */
.weesa-process > * {
	position: relative;
}
@media (min-width: 782px) {
	.weesa-process > :not(:last-child)::after {
		content: "";
		position: absolute;
		top: 1.75rem;
		inset-inline-start: calc(3.5rem + 1rem);
		inset-inline-end: calc(-1 * var(--wp--preset--spacing--40) + 1rem);
		border-top: 2px dashed color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
	}
}

/* ---------- صحنه‌ی سه‌بعدی (تصویر + برچسب‌های شناور) ---------- */
.weesa-stage {
	position: relative;
	padding: var(--wp--preset--spacing--40) 0;
}
.weesa-chip {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem !important;
	border-radius: var(--wp--custom--radius--md) !important;
	animation: weesa-float 7s ease-in-out infinite;
}
.weesa-chip p {
	margin: 0;
	line-height: 1.4;
	font-size: var(--wp--preset--font-size--small);
}
.weesa-chip p strong {
	display: block;
	font-size: var(--wp--preset--font-size--large);
}
.weesa-chip--a { top: 8%; inset-inline-start: -4%; }
.weesa-chip--b { bottom: 6%; inset-inline-end: -2%; animation-delay: -3.5s; }
@media (max-width: 781px) {
	.weesa-chip--a { inset-inline-start: 0; }
	.weesa-chip--b { inset-inline-end: 0; }
}

/* ---------- قیمت ---------- */
.weesa-price-big {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.3;
}
.weesa-price-big small {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
}
.weesa-ribbon {
	position: absolute;
	top: -0.9rem;
	inset-inline-start: 50%;
	translate: calc(50% * var(--weesa-dir)) 0;
	margin: 0 !important;
	padding: 0.25rem 1rem;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	color: var(--wp--preset--color--on-primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	white-space: nowrap;
}
.weesa-pricing > * {
	position: relative;
}
.weesa-pricing .wp-block-buttons {
	margin-top: auto;
}
.weesa-pricing > * {
	display: flex;
	flex-direction: column;
}

/* جدول مقایسه */
.weesa-compare table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
}
.weesa-compare :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.9rem 1rem;
	text-align: center;
}
.weesa-compare :is(th, td):first-child {
	text-align: start;
	font-weight: 600;
}
.weesa-compare tr:last-child td {
	border-bottom: 0;
}
.weesa-compare thead th {
	background: var(--wp--preset--color--surface);
}
.weesa-compare :is(th, td):nth-child(2) {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, transparent);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
.weesa-compare thead th:nth-child(2) {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}
.weesa-compare .wp-block-table {
	overflow-x: auto;
}

/* ---------- تیم ---------- */
.weesa-team-photo {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
}
.weesa-team-photo img {
	transition: transform 0.8s var(--weesa-ease), filter 0.5s ease;
	filter: saturate(0.85);
}
.weesa-team-card:hover .weesa-team-photo img {
	transform: scale(1.06);
	filter: none;
}

/* ---------- شمارش معکوس ---------- */
.weesa-countdown__boxes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}
.weesa-countdown__cell {
	display: grid;
	gap: 0.15rem;
	min-inline-size: 5rem;
	padding: 0.9rem 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: var(--wp--custom--radius--md);
	background: color-mix(in srgb, currentColor 7%, transparent);
	text-align: center;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.weesa-countdown__value {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.weesa-countdown__label {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.8;
}
.weesa-countdown-date.is-replaced {
	display: none;
}
.weesa-countdown.is-ended .weesa-countdown__boxes {
	opacity: 0.5;
}

/* ---------- تماس شناور (پایین صفحه) ---------- */
.weesa-float-contact {
	position: fixed;
	inset-inline-end: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	margin: 0 !important;
}
.weesa-float-contact .wp-block-button__link {
	box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.35);
}
.weesa-float-contact .wp-block-button:not(:first-child) .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-primary);
}
@media (max-width: 600px) {
	.weesa-float-contact {
		inset-inline: 0.75rem;
	}
	.weesa-float-contact .wp-block-buttons {
		flex-wrap: nowrap;
	}
	.weesa-float-contact .wp-block-button {
		flex: 1 1 0;
	}
	.weesa-float-contact .wp-block-button__link {
		width: 100%;
	}
}
.editor-styles-wrapper .weesa-float-contact {
	position: static;
}

/* ---------- نوار اطلاعیه ---------- */
.weesa-announce {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.weesa-announce a {
	color: inherit;
	text-underline-offset: 3px;
}

/* ---------- سربرگ شیشه‌ای + نوار پیشرفت خواندن ---------- */
header.wp-block-template-part:has(.weesa-header-glass) {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 74%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
}
@supports (animation-timeline: scroll()) {
	header.wp-block-template-part:has(.weesa-header-glass)::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		bottom: -1px;
		block-size: 2px;
		background: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--primary));
		transform-origin: right;
		transform: scaleX(0);
		animation: weesa-progress linear both;
		animation-timeline: scroll(root);
	}
	html[dir="ltr"] header.wp-block-template-part:has(.weesa-header-glass)::after {
		transform-origin: left;
	}
}
@keyframes weesa-progress { to { transform: scaleX(1); } }

/* ---------- نوشته‌ها ---------- */
.weesa-posts .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
}
.weesa-posts .wp-block-post-featured-image img {
	transition: transform 0.7s var(--weesa-ease);
}
.weesa-posts li:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* ---------- بیت و نقل‌قول ---------- */
.weesa-verse {
	line-height: 2.2;
	text-wrap: balance;
}

/* ---------- کاهش حرکت: هیچ چیز نمی‌جنبد، همه‌چیز دیده می‌شود ---------- */
@media (prefers-reduced-motion: reduce) {
	.weesa-rotate > span { animation: none; }
	.weesa-rotate > span:first-child { opacity: 1; }
	:is(.is-style-gradient, .weesa-gradient, .is-style-card-glow, .weesa-chip, .weesa-float-anim),
	.wp-block-image:is(.is-style-blob, .is-style-float) img,
	:is(.is-style-section-aurora, .is-style-section-aurora-dark)::before,
	.weesa-timeline::after,
	header.wp-block-template-part::after {
		animation: none !important;
	}
	.weesa-timeline::after { transform: none; }
	.is-style-card-tilt { transform: none; }
}

/* کاشی رنگی در بنتو و جاهای دیگر */
.weesa-tile {
	border-radius: var(--wp--custom--radius--lg);
}

/* عکس گرد مشتری */
.wp-block-image.weesa-avatar {
	width: 6.5rem;
	margin-inline: auto;
}

/* جای نماد اعتماد (تا کد اینماد گذاشته شود) */
.weesa-seal-placeholder {
	display: grid;
	place-items: center;
	inline-size: 8rem;
	min-block-size: 8rem;
	margin: 0;
	padding: 0.75rem;
	border: 2px dashed var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	line-height: 1.7;
	text-align: center;
}
.weesa-seals img {
	max-height: 8rem;
	width: auto;
}

/* شماره، ایمیل و آیدی لاتین در متن راست‌چین: جهت خودش، تا «@» و خط تیره جابه‌جا نشوند */
.weesa-contact-value a {
	display: inline-block;
	direction: ltr;
	unicode-bidi: isolate;
	text-decoration: none;
}
