/* =========================================================
   ساوین سنگ یزد — استایل اصلی
   RTL-first | موبایل‌فرست | بدون وابستگی خارجی
   فهرست:
   1. فونت‌ها و متغیرها    2. پایه        3. دکمه‌ها و عناصر کوچک
   4. هدر                   5. هیرو        6. بخش‌ها و گریدها
   7. کارت‌ها               8. فرم‌ها       9. فوتر
   10. صفحات داخلی          11. محصول      12. مودال و لایت‌باکس
   13. وبلاگ و محتوا        14. ریسپانسیو و دسترس‌پذیری
   ========================================================= */

/* ---------- 1. فونت‌ها و متغیرها ---------- */
@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* رنگ‌ها */
	--pink: #C2185B;
	--pink-600: #A81250;
	--pink-50: #FCEBF2;
	--ink: #2C2C2C;
	--text: #222222;
	--gray: #6B6B6B;
	--gray-300: #D9D9D9;
	--line: #E9E9E9;
	--soft: #F8F8F8;
	--white: #FFFFFF;
	--footer: #242424;

	/* فونت: اگر IRANSansX در قالب فعال شود، این متغیر بازنویسی می‌شود */
	--font-fa: "Vazirmatn", "Tahoma", system-ui, sans-serif;
	--font-en: "Manrope", "Vazirmatn", system-ui, sans-serif;

	/* ابعاد */
	--container: 1240px;
	--narrow: 760px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 84px;
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 16px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--section-y: clamp(72px, 9vw, 120px);
}
@media (max-width: 900px) { :root { --header-h: 68px; } }

/* ---------- 2. پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; background: var(--white); color: var(--text);
	font-family: var(--font-fa); font-size: 16px; line-height: 1.95; font-weight: 400;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html, body { max-width: 100%; }
body { overflow-x: clip; }
img, video, svg { max-width: 100%; height: auto; display: block; }
img { background: var(--soft); }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 800; line-height: 1.45; color: var(--ink); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--pink); color: #fff; }

.latin { font-family: var(--font-en); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.center { text-align: center; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); }
.site-main { padding-top: var(--header-h); min-height: 60vh; }
.has-hero-header .site-main { padding-top: 0; }
.empty { text-align: center; color: var(--gray); padding: 48px 0; }

/* ---------- 3. دکمه‌ها و عناصر کوچک ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 28px; border-radius: var(--r-sm); border: 1.5px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-chev-l { transform: translateX(-3px); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-600); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178E46; color: #fff; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.round-btn {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 42px; height: 42px; border-radius: 50%; background: var(--pink); color: #fff; border: 1.5px solid var(--pink);
	transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.round-btn--outline { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.round-btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.link-arrow .icon { transition: transform .25s var(--ease); color: var(--pink); }
.link-arrow:hover { color: var(--pink); }
.link-arrow:hover .icon { transform: translateX(-4px); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.eyebrow .latin { color: var(--pink); }
.mark { flex: none; }

/* ---------- 4. هدر ---------- */
.site-header {
	position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: var(--header-h);
	border-bottom: 1px solid var(--line);
	transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* پس‌زمینه‌ی هدر روی pseudo-element است؛ اگر backdrop-filter روی خود هدر بود، منوی موبایل (fixed) داخل ارتفاع هدر گیر می‌کرد */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	transition: opacity .35s var(--ease);
}
body.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { inset-block-start: 46px; } body.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); } }

/* در صفحه‌ی اصلی بالای صفحه شفاف است */
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) {
	border-color: transparent;
}
.has-hero-header .site-header:not(.is-scrolled):not(.is-open)::before { opacity: 0; }
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) .primary-menu a { color: #fff; }
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { color: #fff; }
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) .site-logo__img { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .3)); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .25); }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo__img { height: 46px; width: auto; background: none; transition: filter .3s; }
@media (max-width: 900px) { .site-logo__img { height: 38px; } }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.primary-menu a {
	position: relative; display: block; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink);
}
.primary-menu a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; background: var(--pink);
	transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after, .primary-menu .current_page_item > a::after { transform: scaleX(1); }
.primary-menu a:hover { color: inherit; }
.primary-menu .menu-item { position: relative; }
.primary-menu .sub-menu {
	position: absolute; inset-inline-start: -16px; top: 100%; min-width: 220px; padding: 10px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
}
.primary-menu .menu-item:hover > .sub-menu, .primary-menu .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { color: var(--ink) !important; padding: 8px 12px; border-radius: 6px; }
.primary-menu .sub-menu a:hover { background: var(--soft); }
.primary-menu .sub-menu a::after { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; color: var(--ink); }
.nav-toggle__bars { position: relative; display: block; width: 24px; height: 16px; margin: auto; }
.nav-toggle__bars i { position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 7px; }
.nav-toggle__bars i:nth-child(3) { top: 14px; }
.is-open .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.is-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.site-header__inner { justify-content: space-between; }
	.primary-nav {
		position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; flex-direction: column; justify-content: flex-start;
		background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
	}
	body.admin-bar .primary-nav { top: calc(var(--header-h) + 32px); }
	.primary-nav { height: calc(100dvh - var(--header-h)); bottom: auto; }
	.is-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-menu a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
	.primary-menu a::after { display: none; }
	.primary-menu .current-menu-item > a { color: var(--pink) !important; }
	.primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 16px; }
	.nav-cta-mobile { display: inline-flex; margin-top: 28px; }
	.site-header { order: 0; }
}

/* ---------- 5. هیرو ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #3a352d; }
.hero__media, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__video { object-fit: cover; background: none; }
.hero__media img { animation: hero-settle 2.4s var(--ease) both; }
.hero__video { z-index: 1; }
.hero__shade {
	position: absolute; inset: 0; z-index: 2;
	background:
		linear-gradient(180deg, rgba(20, 18, 16, .55) 0, rgba(20, 18, 16, 0) 26%),
		linear-gradient(270deg, rgba(20, 18, 16, .72) 0, rgba(20, 18, 16, .38) 42%, rgba(20, 18, 16, .08) 100%);
}
.hero__inner { position: relative; z-index: 3; padding-block: calc(var(--header-h) + 48px) 96px; }
.hero__texts { display: grid; }
.hero__content { grid-area: 1 / 1; max-width: 640px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; align-self: center; }
.hero__content.is-active { opacity: 1; visibility: visible; transition: none; }
.hero__content.is-active > * { animation: hero-rise .9s var(--ease) both; }
.hero__content.is-active > .hero__sub { animation-delay: .12s; }
.hero__content.is-active > .btn { animation-delay: .24s; }
.hero__content .hero__title { display: block; }
.hero__title { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 800; line-height: 1.3; margin-bottom: .35em; text-wrap: balance; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 34em; margin-bottom: 2rem; font-weight: 400; }
.hero__scroll { position: absolute; inset-inline-start: var(--gutter); bottom: 36px; width: 1px; height: 64px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero__scroll span { position: absolute; inset-inline: 0; top: 0; height: 24px; background: #fff; animation: scroll-hint 2.2s var(--ease) infinite; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes scroll-hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(280%); } }
@media (max-width: 700px) { .hero__scroll { display: none; } .hero__inner { padding-bottom: 72px; } }

/* ---------- 6. بخش‌ها و گریدها ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* معرفی برند */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__lead { font-size: 1.1rem; color: var(--gray); max-width: 36em; margin-bottom: 1.6rem; }
.about__media, .about-page__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.about__media img, .about-page__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ظهور تصویر: فقط یک حرکت ملایم (بدون اسکریپت دیده می‌شود) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	[data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
	[data-reveal].is-in img { transform: none; }
}

/* ---------- 7. کارت‌ها ---------- */
.card-product { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -34px rgba(0, 0, 0, .35); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card-product:hover { box-shadow: 0 1px 0 var(--line), 0 28px 50px -30px rgba(0, 0, 0, .4); }
.card-product__link { display: block; height: 100%; }
.card-product__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-product:hover .card-product__media img { transform: scale(1.045); }
.card-product__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 22px; }
.card-product__title { font-size: 1.1rem; margin: 0; font-weight: 700; }
.card-product__sub { margin: 2px 0 0; color: var(--gray); font-size: .92rem; }
.card-product:hover .round-btn { transform: translateX(-4px); background: var(--pink-600); }
.is-ajax { transition: opacity .25s; }
.is-ajax.is-loading { opacity: .35; pointer-events: none; }

/* پروژه‌ها */
.projects-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.projects-mosaic .card-project--large { grid-column: span 7; }
.projects-mosaic .card-project--normal { grid-column: span 5; }
.projects-mosaic .card-project__media { height: clamp(300px, 36vw, 520px); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.projects-grid .card-project__media { aspect-ratio: 4 / 3.2; }
.projects-grid .card-project[hidden] { display: none; }
.card-project { position: relative; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card-project__link { display: block; position: relative; }
.card-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card-project:hover .card-project__media img { transform: scale(1.04); }
.card-project__caption { position: absolute; inset-inline: 0; bottom: 0; padding: 56px 26px 24px; color: #fff; background: linear-gradient(0deg, rgba(18, 16, 14, .78), rgba(18, 16, 14, 0)); }
.card-project__caption h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.card-project__caption p { margin: 2px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.card-project__zoom {
	position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.9); transition: all .3s var(--ease);
}
.card-project:hover .card-project__zoom, .card-project__zoom:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card-project__zoom { opacity: 1; transform: none; } }
@media (max-width: 900px) {
	.projects-mosaic .card-project--large, .projects-mosaic .card-project--normal { grid-column: span 12; }
	.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .projects-grid { grid-template-columns: minmax(0, 1fr); } }

/* مزایا */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; height: 100%; }
.feature__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--pink-50); color: var(--pink); margin-bottom: 20px; }
.feature__title { font-size: 1.12rem; margin-bottom: .5em; }
.feature__text { color: var(--gray); font-size: .95rem; margin: 0; }
.section:not(.section--soft) .feature { background: var(--soft); border-color: transparent; }

/* نظرات */
.slider-nav { display: flex; gap: 10px; }
.slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.slider::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; margin: 0; padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; gap: 14px; }
.quote .icon { color: var(--pink); }
.quote blockquote { margin: 0; flex: 1; color: var(--text); }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { display: flex; flex-direction: column; font-size: .92rem; color: var(--gray); }
.quote figcaption strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 980px) { .quote { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .quote { flex-basis: 88%; } }

/* مشاوره */
.consult { position: relative; color: #fff; padding-block: var(--section-y); overflow: hidden; background: var(--ink); }
.consult__bg, .consult__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.consult__bg img { object-fit: cover; background: none; }
.consult::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(28, 26, 24, .86), rgba(28, 26, 24, .7)); }
.consult__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.consult__text h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.consult__text p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 30em; }
.consult__card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
@media (max-width: 860px) { .consult__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 8. فرم‌ها ---------- */
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.field label small { color: var(--gray); font-weight: 400; }
.field input, .field textarea, .field select, .searchform input {
	width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--gray-300);
	border-radius: var(--r-sm); padding: 13px 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
.field input { height: 52px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .searchform input:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(194, 24, 91, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--pink-600); }
.form__foot { margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { margin: 0; font-size: .92rem; font-weight: 500; }
.form__status.is-error { color: var(--pink-600); }
.form__status.is-success { color: #1B7A47; }
.form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form.is-done .form__grid, .form.is-done .btn { display: none; }
.form.is-done .form__status { font-size: 1.05rem; padding: 12px 0; }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

.searchform { position: relative; }
.searchform button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--gray); }

/* ---------- 9. فوتر ---------- */
.site-footer { background: var(--footer); color: #BDBDBD; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(56px, 7vw, 88px) 48px; }
.site-logo--footer .site-logo__img { height: 52px; background: none; }
.footer-brand__tagline { color: #fff; font-weight: 600; margin: 20px 0 4px; }
.footer-brand__text { margin: 0 0 22px; max-width: 28em; }
.footer-col__title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-menu li + li { margin-top: 10px; }
.footer-menu a:hover, .site-footer a:hover { color: #fff; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-list .icon { flex: none; margin-top: 5px; color: #9A9A9A; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: all .25s var(--ease); }
.social a:hover { background: var(--pink); border-color: var(--pink); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .88rem; color: #9A9A9A; }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

.wa-float {
	position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
	background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
	transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { background: #178E46; color: #fff; transform: translateY(-3px); }

/* ---------- 10. صفحات داخلی ---------- */
.page-header { background: var(--soft); padding-block: clamp(36px, 5vw, 64px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-header__title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0; }
.page-header__lead { color: var(--gray); font-size: 1.08rem; max-width: 40em; margin: 14px 0 0; }
.breadcrumbs { margin-bottom: 18px; font-size: .88rem; color: var(--gray); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--gray-300); }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* فیلترها */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters--center { align-items: center; border: 0; padding: 0; }
.filter-group { display: flex; align-items: center; gap: 18px; }
.filter-group__label { flex: none; width: 76px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.filter-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--gray-300); background: #fff; border-radius: 999px; padding: 6px 18px; font-size: .9rem; line-height: 1.7; color: var(--ink); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }
.catalog__count { color: var(--gray); font-size: .92rem; margin-bottom: 18px; }
.catalog__more { margin-top: 44px; }
@media (max-width: 700px) {
	.filter-group { flex-direction: column; align-items: flex-start; gap: 8px; }
	.filter-group__chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
	.filter-group__chips::-webkit-scrollbar { display: none; }
	.chip { white-space: nowrap; }
}

/* درباره و مراحل */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-page__media { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .about-page { grid-template-columns: minmax(0, 1fr); } .about-page__media { position: static; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--gray-300); }
.step::before { content: ""; position: absolute; inset-inline-start: 0; top: -4px; width: 40px; height: 7px; border-radius: 4px; background: var(--pink); }
.step__n { display: block; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--gray); margin-bottom: 16px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--gray); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* خدمات */
.services { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.service { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.service--flip .service__media { order: 2; }
.service__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.service__body p { color: var(--gray); max-width: 30em; }
@media (max-width: 860px) { .service { grid-template-columns: minmax(0, 1fr); } .service--flip .service__media { order: 0; } }

/* تماس */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-cards { display: grid; gap: 14px; margin-bottom: 22px; }
.info-cards li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); }
.info-cards .icon { color: var(--pink); margin-top: 4px; flex: none; }
.info-cards span { display: block; font-size: .85rem; color: var(--gray); }
.info-cards p, .info-cards a { margin: 0; font-weight: 600; color: var(--ink); }
.contact-form { background: var(--soft); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 22px; }
.map iframe { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; display: block; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.map:hover iframe { filter: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. محصول ---------- */
.product-top { padding-block: 32px clamp(48px, 6vw, 80px); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pgallery__main { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.pgallery__img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__zoom { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--ink); }
.pgallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pgallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; transition: border-color .2s; }
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb.is-active { border-color: var(--pink); }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info__cat { margin: 0 0 6px; font-size: .9rem; color: var(--pink); font-weight: 600; }
.product-info__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .2em; }
.product-info__design { color: var(--gray); font-size: 1.05rem; margin-bottom: 1.2rem; }
.product-info__price { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.product-info__short { margin-bottom: 1.4rem; color: var(--gray); }
.product-info__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.product-info__note { margin: 16px 0 0; font-size: .88rem; color: var(--gray); }
.spec-list > div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { flex: 0 0 34%; color: var(--gray); font-size: .92rem; }
.spec-list dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .product-layout { grid-template-columns: minmax(0, 1fr); } .product-info { position: static; } }
@media (max-width: 560px) { .product-info__actions .btn { width: 100%; } }

/* پروژه‌ی تکی */
.project-cover { margin: 0 0 clamp(32px, 4vw, 56px); border-radius: var(--r-lg); overflow: hidden; }
.project-cover a { display: block; cursor: zoom-in; }
.project-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.gallery-grid a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.05); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; max-width: 48%; }
.post-nav small { color: var(--gray); }
.post-nav span { font-weight: 700; color: var(--ink); }
.post-nav__next { margin-inline-start: auto; text-align: left; }
@media (max-width: 860px) { .project-layout { grid-template-columns: minmax(0, 1fr); } .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 12. مودال و لایت‌باکس ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--text); }
.modal::backdrop { background: rgba(24, 22, 20, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal__box { position: relative; padding: clamp(24px, 4vw, 40px); }
.modal__box h2 { font-size: 1.5rem; margin-bottom: 2px; padding-inline-end: 40px; }
.modal__sub { color: var(--gray); margin-bottom: 22px; }
.modal__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--soft); border-radius: 50%; }
.modal__close:hover { background: var(--pink); color: #fff; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 15, 14, .95); display: grid; place-items: center; animation: fade-in .25s both; }
.lightbox__img { max-width: min(92vw, 1500px); max-height: 86vh; object-fit: contain; background: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.lightbox__btn:hover { background: var(--pink); border-color: var(--pink); }
.lightbox__close { top: 20px; inset-inline-start: 20px; }
.lightbox__prev { top: 50%; inset-inline-end: 20px; transform: translateY(-50%); }
.lightbox__next { top: 50%; inset-inline-start: 20px; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .9rem; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body.is-locked { overflow: hidden; }

/* ---------- 13. وبلاگ و محتوا ---------- */
.card-post { display: flex; flex-direction: column; }
.card-post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); margin-bottom: 18px; background: var(--soft); }
.card-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-post:hover .card-post__media img { transform: scale(1.04); }
.card-post__meta { color: var(--gray); font-size: .85rem; margin-bottom: 6px; }
.card-post__title { font-size: 1.15rem; margin-bottom: .4em; }
.card-post__excerpt { color: var(--gray); font-size: .95rem; margin: 0; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); }
.post-feature__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.post-feature p { color: var(--gray); }
@media (max-width: 860px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }
.article__cover { margin-block: clamp(24px, 4vw, 48px) 0; }
.article__cover img { width: 100%; max-height: 600px; object-fit: cover; border-radius: var(--r-lg); }
.article__tags a { display: inline-block; margin: 28px 0 0 8px; padding: 2px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--gray); }
.entry { font-size: 1.05rem; line-height: 2.05; }
.entry > * + * { margin-top: 1.2em; }
.entry h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry h3 { font-size: 1.28rem; margin-top: 1.6em; }
.entry a { color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.entry ul, .entry ol { padding-inline-start: 1.4em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry blockquote { margin-inline: 0; padding: 4px 24px; border-inline-start: 3px solid var(--pink); color: var(--gray); font-size: 1.12rem; }
.entry img { border-radius: var(--r-sm); }
.entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.entry .alignwide { max-width: min(1240px, 100vw - 2 * var(--gutter)); }
.entry figcaption, .wp-caption-text { font-size: .88rem; color: var(--gray); text-align: center; margin-top: 8px; }
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links, .pagination { gap: 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); margin: 0 4px; font-weight: 600; }
a.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--pink); border-color: var(--pink); color: #fff; }
.widget { margin-bottom: 32px; }
.widget__title { font-size: 1.05rem; }
.comment-list { margin: 32px 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--r-sm); }
.comment-form .submit { background: var(--pink); color: #fff; border: 0; border-radius: var(--r-sm); height: 48px; padding: 0 28px; font-weight: 600; }
.notfound { padding-block: clamp(80px, 12vw, 160px); }
.notfound__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 200; color: var(--pink); line-height: 1; margin-bottom: 12px; }
.notfound__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 14. ریسپانسیو و دسترس‌پذیری ---------- */
@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.btn--lg { height: 54px; padding: 0 26px; }
	.card-product__body { padding: 16px 18px 18px; }
	.wa-float { width: 50px; height: 50px; inset-inline-start: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .wa-float, .consult { display: none !important; } .site-main { padding-top: 0; } }

/* ---------- 15. شبکه‌های اجتماعی، پنل کناری، دکمه‌ی شناور ---------- */
.social { flex-wrap: wrap; }
.social--light { margin: 0 0 22px; }
.social--light a { color: var(--ink); border-color: var(--gray-300); }
.social--light a:hover { color: #fff; }
.wa-float { background: var(--pink); }
.wa-float:hover { background: var(--pink-600); }
.wa-float--whatsapp { background: #1FA855; }
.wa-float--whatsapp:hover { background: #178E46; }


/* ---------- 15. هیرو چندتصویری/چندویدئویی ---------- */
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--ease); }
.hero__slide .hero__img { animation: none; }
.hero__slide.is-active .hero__img { animation: hero-settle 7s var(--ease) both; }
.hero__dots { position: absolute; z-index: 4; inset-inline-end: var(--gutter); bottom: 34px; display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); position: relative; overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: right; }
.hero__dot.is-active::after { transform: scaleX(1); transition: transform var(--hero-interval, 6s) linear; }
.hero__dot:focus-visible { outline-offset: 4px; }
@media (max-width: 700px) { .hero__dots { bottom: 22px; inset-inline-end: 20px; } .hero__dot { width: 24px; } }

/* ---------- 16. Elementor ---------- */
.elementor-widget-savin-section { margin-bottom: 0 !important; }
.elementor-widget-savin-section > .elementor-widget-container { margin: 0; }
.elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0; }
.elementor-editor-active .hero { min-height: 640px; }

/* ---------- 17. موبایل: تنظیمات تکمیلی ---------- */
@media (max-width: 640px) {
	:root { --gutter: 18px; }
	.section-head { align-items: flex-start; }
	.section-title { font-size: 1.55rem; }
	.hero__title { font-size: 2.3rem; }
	.hero__sub { font-size: 1rem; }
	.hero .btn { width: 100%; }
	.card-project__caption { padding: 40px 18px 16px; }
	.contact-form, .consult__card { padding: 22px 18px; }
	.footer-brand__text { max-width: none; }
	.site-footer__bar-inner { flex-direction: column; text-align: center; }
	.quote { padding: 26px 22px; }
	.post-nav { flex-direction: column; }
	.post-nav a { max-width: 100%; }
	.modal__box { padding: 24px 18px; }
	.spec-list > div { gap: 12px; }
	.spec-list dt { flex-basis: 38%; }
}

/* در ویرایشگر Elementor هدر ثابت روی بخش‌های بالای صفحه را نمی‌پوشاند */
.elementor-editor-active .site-header, .elementor-editor-active .wa-float { position: absolute; }
.elementor-editor-active .site-main, .elementor-editor-active.has-hero-header .site-main { padding-top: 0; }
.elementor-editor-active .site-header::before { opacity: 1 !important; }
.e-con > .elementor-widget-savin-section, .e-con > .elementor-widget-savin-section > .elementor-widget-container { width: 100%; max-width: 100%; }
.e-con.savin-container { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; }

/* ---------- 18. جستجو و بازگشت به بالا ---------- */
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: none; border: 1.5px solid var(--gray-300); border-radius: 50%; color: var(--ink); transition: all .25s var(--ease); }
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .5); }
.has-hero-header .site-header:not(.is-scrolled):not(.is-open) .icon-btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 1200px) { .icon-btn { width: 40px; height: 40px; } }

.search-overlay {
	position: fixed; inset-inline: 0; top: var(--header-h); z-index: 99; background: #fff; padding-block: 18px; border-bottom: 1px solid var(--line);
	box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease);
}
body.admin-bar .search-overlay { top: calc(var(--header-h) + 32px); }
.search-overlay__form { display: flex; align-items: center; gap: 14px; color: var(--gray); }
.search-overlay__form input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--text); }
.search-overlay__form input:focus { outline: 0; }
.search-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(24, 22, 20, .4); opacity: 0; visibility: hidden; transition: opacity .3s; }
body.search-open .search-overlay { opacity: 1; visibility: visible; transform: none; }
body.search-open .search-backdrop { opacity: 1; visibility: visible; }
@media (max-width: 782px) { body.admin-bar .search-overlay { top: calc(var(--header-h) + 46px); } }
.elementor-editor-active .search-overlay, .elementor-editor-active .search-backdrop { display: none; }

.to-top {
	position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pink); }
@media (max-width: 640px) { .to-top { width: 42px; height: 42px; inset-inline-end: 14px; bottom: 14px; } }

/* آیکون دلخواه شبکه‌ها (تصویر آپلودشده) */
.social img.icon-custom, .wa-float img.icon-custom { width: 22px; height: 22px; object-fit: contain; background: none; }
.wa-float img.icon-custom { width: 28px; height: 28px; }

/* دکمه‌های گفتگو */
.chat-buttons { display: grid; gap: 10px; margin-bottom: 22px; }
.chat-buttons--ghost { display: flex; flex-wrap: wrap; margin: 0; }
.btn--chat { background: var(--ink); color: #fff; }
.btn--chat:hover { background: var(--pink); color: #fff; }
.btn--chat-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--chat-ghost:hover { background: var(--ink); color: #fff; }
.btn--wa.btn--chat-ghost { background: transparent; color: #178E46; border-color: #1FA855; }
.btn--wa.btn--chat-ghost:hover { background: #1FA855; color: #fff; }
.btn img.icon-custom { width: 20px; height: 20px; object-fit: contain; background: none; }
@media (max-width: 560px) { .chat-buttons--ghost .btn { width: 100%; } }

/* ---------- 19. مشتریان ---------- */
.clients { overflow: hidden; }
.client {
	position: relative; flex: none; display: grid; place-items: center; width: 200px; height: 108px; padding: 16px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); direction: rtl; text-align: center;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.client:hover, a.client:focus-visible { border-color: var(--pink); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .4); color: var(--ink); }
.client__logo { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; background: none; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.clients--gray .client__logo { filter: grayscale(1); opacity: .72; }
.clients--gray .client:hover .client__logo, .clients--gray .client:focus-visible .client__logo { filter: none; opacity: 1; }
/* نام مشتری: فقط هنگام هاور/فوکوس روی لوگو */
.client__name {
	position: absolute; inset-inline: 0; bottom: 0; padding: 7px 10px; border-radius: 0 0 var(--r) var(--r); background: var(--pink); color: #fff;
	font-size: .82rem; font-weight: 600; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: all .25s var(--ease);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client--logo:hover .client__name, .client--logo:focus-visible .client__name { opacity: 1; transform: none; }
/* بدون لوگو: خود نام نمایش داده می‌شود */
.client__text { font-weight: 700; font-size: 1.02rem; line-height: 1.6; color: var(--gray); transition: color .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.client:hover .client__text { color: var(--pink); }

.client { margin: 0 9px; }
/* همیشه تک‌ردیف؛ اگر جا شد وسط‌چین، وگرنه (با اسکریپت) انیمیشن. بدون اسکریپت: اسکرول افقی ساده */
.clients__viewport { direction: ltr; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.clients__viewport::-webkit-scrollbar { display: none; }
.clients__track { display: flex; flex-wrap: nowrap; justify-content: center; width: max-content; min-width: 100%; }
.clients__viewport.is-marquee { 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); }
.is-marquee .clients__track { justify-content: flex-start; min-width: 0; animation: clients-scroll var(--clients-time, 40s) linear infinite; will-change: transform; }
.is-marquee:hover .clients__track, .is-marquee:focus-within .clients__track { animation-play-state: paused; }
@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .client { width: 150px; height: 88px; padding: 12px; margin: 0 6px; } .client__logo { max-height: 46px; } }
/* کاربرانی که انیمیشن را کم کرده‌اند: بدون حرکت؛ همان یک ردیف با اسکرول افقی */
@media (prefers-reduced-motion: reduce) { .is-marquee .clients__track { animation: none; } .client.is-dup { display: none; } }

/* ---------- 20. پخش‌کننده‌ی شناور فایل صوتی ---------- */
.audio-player { position: fixed; z-index: 95; bottom: 20px; direction: rtl; }
.audio-player[hidden] { display: none; }
.audio-player--center { left: 50%; transform: translateX(-50%); max-width: calc(100vw - 150px); }
.audio-player--left { left: 20px; bottom: 82px; }
.audio-player--right { right: 20px; bottom: 82px; }
.audio-pill { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 5px 6px 5px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); }
.audio-pill__play { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pink); color: #fff; transition: background-color .2s; }
.audio-pill__play:hover { background: var(--pink-600); }
.audio-pill__main { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px 0 6px; height: 42px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.audio-pill__title { min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; }
.audio-eq i { width: 3px; height: 5px; background: var(--pink); border-radius: 2px; }
.is-playing .audio-eq i { animation: audio-eq 1s ease-in-out infinite; }
.is-playing .audio-eq i:nth-child(2) { animation-delay: .2s; }
.is-playing .audio-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes audio-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.is-waiting .audio-pill__play { animation: audio-pulse 1.6s ease-out infinite; }
@keyframes audio-pulse { 0% { box-shadow: 0 0 0 0 rgba(194, 24, 91, .5); } 100% { box-shadow: 0 0 0 14px rgba(194, 24, 91, 0); } }

/* آیکون‌های پخش/توقف و صدا بر اساس وضعیت */
.audio-player .ico-pause, .audio-player .ico-mute { display: none; }
.audio-player.is-playing .ico-play { display: none; }
.audio-player.is-playing .ico-pause { display: inline-flex; }
.audio-player.is-muted .ico-vol { display: none; }
.audio-player.is-muted .ico-mute { display: inline-flex; }
.audio-player .ico-play, .audio-player .ico-pause, .audio-player .ico-vol, .audio-player .ico-mute { align-items: center; justify-content: center; }
.audio-player .ico-play { display: inline-flex; }
.audio-player .ico-vol { display: inline-flex; }
.audio-player.is-playing .ico-play, .audio-player.is-muted .ico-vol { display: none; }

.audio-panel { position: absolute; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 24px)); padding: 16px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); }
.audio-panel[hidden] { display: none; }
.audio-player--center .audio-panel { left: 50%; transform: translateX(-50%); }
.audio-player--left .audio-panel { left: 0; }
.audio-player--right .audio-panel { right: 0; }
.audio-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.audio-panel__title { font-size: .95rem; line-height: 1.6; }
.audio-panel__close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); }
.audio-panel__close:hover { background: var(--pink); color: #fff; }
.audio-seek { display: flex; align-items: center; gap: 10px; }
.audio-time { flex: none; min-width: 42px; font-size: .78rem; color: var(--gray); font-variant-numeric: tabular-nums; text-align: center; }
.audio-range { flex: 1; min-width: 0; height: 24px; accent-color: var(--pink); cursor: pointer; }
.audio-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.audio-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); transition: background-color .2s, color .2s; }
.audio-btn:hover { background: var(--soft); color: var(--pink); }
.audio-btn--main { width: 52px; height: 52px; background: var(--pink); color: #fff; }
.audio-btn--main:hover { background: var(--pink-600); color: #fff; }
.audio-volume { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; max-width: 130px; }
.audio-range--vol { height: 20px; }
.audio-player.no-volume .audio-range--vol { display: none; }
.elementor-editor-active .audio-player { display: none; }
@media (max-width: 640px) {
	.audio-player--left { left: 14px; bottom: 74px; }
	.audio-player--right { right: 14px; bottom: 74px; }
	.audio-pill__title { max-width: 120px; }
	.audio-pill { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .is-playing .audio-eq i, .is-waiting .audio-pill__play { animation: none; } .audio-eq i { height: 10px; } }
