/* ===== Fars Header ===== */
.fh-header {
	direction: rtl;
	position: relative;
	width: 100%;
	z-index: 999;
	transition: background-color .35s ease, box-shadow .35s ease;
	box-sizing: border-box;
}

.fh-header * {
	box-sizing: border-box;
}

/* حالت استیکی: با position:fixed + یک spacer که ارتفاعش با JS تنظیم میشه
   (این روش برخلاف position:sticky، داخل سکشن‌های المنتور با overflow/transform هم درست کار می‌کنه) */
.fh-header.is-sticky {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
}

/* شکستن هدر از عرض کانتینر المنتور در حالت نرمال، تا عرض هدر دقیقاً معادل حالت استیکی (که fixed و به اندازه‌ی کل viewport است) باشد.
   بدون این، پدینگ صفر در دو حالت به خاطر عرض متفاوت کانتینر ظاهر متفاوتی پیدا می‌کند. */
.fh-header:not(.is-sticky) {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.fh-header-spacer {
	height: 0;
	width: 100%;
	transition: none;
}

.fh-header.is-sticky.fh-shadow {
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.fh-inner {
	max-width: 1400px;
	margin: 0 auto;
	height: 90px;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}

/* ===== لوگو (استک با opacity برای جلوگیری از نمایش هم‌زمان، و همیشه وسط‌چین عمودی) ===== */
.fh-logo {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.fh-logo a {
	display: block;
	position: relative;
	text-decoration: none;
	height: 100%;
	width: 140px;
	max-width: 100%;
}

.fh-logo img {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 140px;
	max-width: 100%;
	height: auto;
	margin: 0;
	transition: opacity .3s ease, visibility .3s ease;
}

.fh-logo-sticky {
	opacity: 0;
	visibility: hidden;
}

.fh-logo-normal {
	opacity: 1;
	visibility: visible;
}

.fh-header.is-sticky .fh-logo-normal {
	opacity: 0;
	visibility: hidden;
}

.fh-header.is-sticky .fh-logo-sticky {
	opacity: 1;
	visibility: visible;
}

.fh-logo-mobile {
	display: none;
}

/* ===== منو دسکتاپ ===== */
.fh-menu {
	flex: 1;
	display: flex;
	justify-content: center;
}

.fh-menu-list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
}

.fh-menu-list > li {
	position: relative;
}

.fh-menu-list > li > a {
	position: relative;
	display: inline-block;
	padding: 10px 2px;
	font-size: 15px;
	font-weight: 600;
	color: #1c1c1c;
	text-decoration: none;
	letter-spacing: .2px;
	transition: color .25s ease;
}

.fh-menu-list > li > a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 4px;
	width: 0;
	height: 2px;
	background-color: #c9a24b;
	transition: width .3s ease;
}

.fh-menu-list > li:hover > a::after,
.fh-menu-list > li.current-menu-item > a::after {
	width: 100%;
}

/* زیرمنو دسکتاپ */
.fh-menu-list ul {
	list-style: none;
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	min-width: 220px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 44px rgba(0,0,0,.14);
	padding: 10px 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	z-index: 10;
}

.fh-menu-list li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fh-menu-list ul li {
	position: relative;
}

.fh-menu-list ul li a {
	display: block;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 500;
	color: #1c1c1c;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.fh-menu-list ul li a:hover {
	color: #c9a24b;
	background-color: rgba(0,0,0,.03);
}

.fh-menu-list ul ul {
	top: -10px;
	right: calc(100% + 10px);
}

/* ===== سمت چپ: تماس + همبرگر ===== */
.fh-right-side {
	display: flex;
	align-items: center;
	gap: 18px;
}

/* ===== دکمه تماس دسکتاپ ===== */
/* ساختار: [شماره - قابل جمع‌شدن][آیکون - همیشه ثابت سمت چپ] در ردیف RTL
   چون آیکون آخرین فرزند است، همیشه در لبه چپ دکمه می‌ماند و باز/بسته شدن
   کاملاً از سمت چپ و متقارن انجام می‌شود. */
.fh-contact-btn {
	display: inline-flex;
	align-items: center;
	height: 50px;
	border-radius: 50px;
	background-color: #1c1c1c;
	text-decoration: none;
	transition: background-color .3s ease;
	white-space: nowrap;
}

.fh-contact-btn .fh-contact-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fh-contact-btn svg {
	width: 22px;
	height: 22px;
	fill: #fff;
	stroke: #fff;
	flex-shrink: 0;
}

.fh-contact-btn .fh-contact-number {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	direction: ltr;
	padding-inline-start: 0;
	transition: max-width .45s cubic-bezier(.65,0,.35,1), opacity .3s ease, padding-inline-start .45s ease;
}

.fh-contact-btn:hover {
	background-color: #c9a24b;
}

.fh-contact-btn:hover .fh-contact-number {
	max-width: 180px;
	opacity: 1;
}

/* ===== همبرگر (بدون هیچ نشانگر/دایره اضافه) ===== */
.fh-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.fh-burger::before,
.fh-burger::after,
.fh-burger span::before,
.fh-burger span::after {
	content: none !important;
	display: none !important;
}

.fh-burger span {
	display: block;
	width: 26px;
	height: 2px;
	background-color: #1c1c1c;
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease;
}

.fh-header.menu-open .fh-burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.fh-header.menu-open .fh-burger span:nth-child(2) {
	opacity: 0;
}

.fh-header.menu-open .fh-burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== پنل موبایل مدرن ===== */
.fh-mobile-panel {
	position: fixed;
	top: 0;
	right: -100%;
	width: 88%;
	max-width: 380px;
	height: 100vh;
	background-color: #fff;
	box-shadow: -14px 0 50px rgba(0,0,0,.18);
	z-index: 1001;
	display: flex;
	flex-direction: column;
	border-radius: 20px 0 0 20px;
	overflow: hidden;
	transition: right .45s cubic-bezier(.65,0,.35,1);
}

.fh-header.menu-open .fh-mobile-panel {
	right: 0;
}

.fh-mobile-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(0,0,0,.06);
	flex-shrink: 0;
}

.fh-mobile-panel-logo {
	width: 110px;
	height: auto;
}

.fh-mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	transition: transform .25s ease;
	-webkit-appearance: none;
	appearance: none;
	margin-inline-end: 6px;
}

.fh-mobile-close svg {
	width: 22px;
	height: 22px;
	fill: #1c1c1c;
}

.fh-mobile-close:hover {
	transform: rotate(90deg);
}

.fh-mobile-panel-inner {
	padding: 14px 22px 30px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.fh-mobile-menu-list {
	list-style: none;
	margin: 6px 0 24px;
	padding: 0;
	flex: 1;
}

.fh-mobile-menu-list li {
	border-bottom: 1px solid rgba(0,0,0,.055);
}

.fh-mobile-menu-list > li > a {
	position: relative;
	display: block;
	padding: 15px 6px;
	font-size: 15.5px;
	font-weight: 600;
	color: #1c1c1c;
	text-decoration: none;
	transition: color .2s ease, padding-right .2s ease;
}

.fh-mobile-menu-list > li > a:hover,
.fh-mobile-menu-list > li.current-menu-item > a {
	color: #c9a24b;
	padding-right: 12px;
}

.fh-mobile-menu-list > li > a::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 60%;
	background-color: #c9a24b;
	border-radius: 3px;
	transition: width .2s ease;
}

.fh-mobile-menu-list > li:hover > a::before,
.fh-mobile-menu-list > li.current-menu-item > a::before {
	width: 3px;
}

.fh-mobile-menu-list li.menu-item-has-children > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.fh-mobile-menu-list li.menu-item-has-children > a::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s ease;
	opacity: .6;
	flex-shrink: 0;
	margin-inline-start: 8px;
}

.fh-mobile-menu-list li.menu-item-has-children.submenu-open > a::after {
	transform: rotate(-135deg);
}

.fh-mobile-menu-list ul {
	list-style: none;
	margin: 0 0 8px;
	padding-right: 14px;
	display: none;
}

.fh-mobile-menu-list ul li {
	border-bottom: none;
}

.fh-mobile-menu-list ul li a {
	display: block;
	padding: 10px 6px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	transition: color .2s ease;
}

.fh-mobile-menu-list ul li a:hover {
	color: #c9a24b;
}

.fh-mobile-contact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px;
	border-radius: 50px;
	background-color: #1c1c1c;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background-color .25s ease;
	flex-shrink: 0;
}

.fh-mobile-contact svg {
	fill: #fff;
	flex-shrink: 0;
}

.fh-mobile-contact span {
	direction: ltr;
}

.fh-mobile-contact:hover {
	background-color: #c9a24b;
}

.fh-mobile-social {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.fh-mobile-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0,0,0,.05);
	transition: background-color .25s ease;
}

.fh-mobile-social a svg {
	width: 18px;
	height: 18px;
	fill: #1c1c1c;
	transition: fill .25s ease;
}

.fh-mobile-social a i {
	font-size: 18px;
	line-height: 1;
	color: #1c1c1c;
	transition: color .25s ease;
}

.fh-mobile-social a:hover {
	background-color: #c9a24b;
}

.fh-mobile-social a:hover svg {
	fill: #fff;
}

.fh-mobile-social a:hover i {
	color: #fff;
}

.fh-mobile-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(15,15,15,.45);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s ease;
	z-index: 1000;
}

.fh-header.menu-open .fh-mobile-overlay {
	opacity: 1;
	visibility: visible;
}

body.fh-menu-open-lock {
	overflow: hidden;
}

/* ===== ریسپانسیو: تبلت و موبایل ===== */
@media (max-width: 1024px) {
	.fh-menu {
		display: none;
	}

	.fh-logo-desktop {
		display: none;
	}

	.fh-logo-mobile {
		display: flex;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.fh-inner {
		justify-content: space-between;
	}

	.fh-right-side {
		flex-direction: row-reverse;
		width: 100%;
		justify-content: space-between;
	}

	/* دکمه تماس موبایل: فقط آیکون، بدون هاور/بازشدن */
	.fh-contact-btn {
		width: 42px !important;
		height: 42px !important;
		padding: 0 !important;
		justify-content: center;
	}

	.fh-contact-btn .fh-contact-number {
		display: none !important;
		max-width: 0 !important;
	}

	.fh-contact-btn:hover {
		background-color: #1c1c1c;
	}

	.fh-burger {
		display: flex;
	}
}

@media (max-width: 480px) {
	.fh-mobile-panel {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
	}
}
