/* =========================================================
   آوای فاخته - استایل صفحه نمایش خدمات
   ========================================================= */

.avaf-page {
	font-family: 'Shabnam', Tahoma, sans-serif;
	direction: rtl;
	color: #24282e;
	background: #fafafa;
	line-height: 1.9;
	font-feature-settings: normal;
}

.avaf-page * {
	box-sizing: border-box;
}

.avaf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 80px;
}

/* ---------------- ساختار دو ستونه ---------------- */

.avaf-columns {
	display: flex;
	flex-direction: row; /* در RTL اولین آیتم در سمت راست قرار می‌گیرد */
	align-items: flex-start;
	gap: 32px;
}

.avaf-sidebar {
	flex: 0 0 30%;
	max-width: 30%;
	align-self: flex-start;
	position: sticky;
	top: 24px;
}

.avaf-content {
	flex: 0 0 70%;
	max-width: 70%;
}

/* گالری داخل ستون کناری - کمی جمع‌وجورتر از حالت تمام‌عرض */
.avaf-gallery-sidebar {
	padding: 14px;
}

.avaf-gallery-sidebar .avaf-gallery-thumbs li {
	width: 56px;
	height: 56px;
}

/* ---------------- تصویر شاخص ---------------- */

.avaf-featured-image {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.avaf-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------------- کادرهای مینیمال ---------------- */

.avaf-box {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 28px;
}

.avaf-section-title {
	font-size: 20px;
	font-weight: bold;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid #f1f1f1;
	position: relative;
}

.avaf-section-title::before {
	content: '';
	position: absolute;
	bottom: -2px;
	right: 0;
	width: 56px;
	height: 2px;
	background: #b8925c;
}

.avaf-header {
	margin-bottom: 24px;
}

.avaf-categories {
	margin-bottom: 12px;
}

.avaf-cat-badge {
	display: inline-block;
	background: #f4ece1;
	color: #8a6a3c;
	font-size: 13px;
	padding: 4px 14px;
	border-radius: 30px;
	margin-left: 6px;
}

.avaf-title {
	font-size: 30px;
	font-weight: bold;
	margin: 0;
	line-height: 1.5;
}

.avaf-description,
.avaf-rich-text {
	font-size: 16px;
	color: #3c4148;
}

.avaf-description p,
.avaf-rich-text p {
	margin: 0 0 18px;
}

.avaf-description img,
.avaf-rich-text img {
	max-width: 100%;
	border-radius: 12px;
	height: auto;
}

/* ---------------- گالری تصاویر ---------------- */

.avaf-gallery-main {
	position: relative;
	display: block;
	width: 100%;
	border: none;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f4f4f4;
	margin-bottom: 16px;
	aspect-ratio: 16 / 10;
	cursor: zoom-in;
}

.avaf-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .2s ease;
}

.avaf-gallery-zoom-icon {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, transform .15s ease;
}

.avaf-gallery-main:hover .avaf-gallery-zoom-icon {
	background: rgba(0,0,0,.8);
	transform: scale(1.08);
}

/* لایت‌باکس تمام‌صفحه تصویر گالری */

.avaf-image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.avaf-image-lightbox.is-open {
	display: flex;
}

.avaf-image-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10,10,12,.9);
}

.avaf-image-lightbox-img {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.avaf-image-lightbox-close {
	position: absolute;
	top: 18px;
	left: 24px;
	z-index: 2;
	background: none;
	border: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.avaf-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.avaf-gallery-thumbs li {
	width: 84px;
	height: 84px;
}

.avaf-thumb-btn {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	opacity: .7;
	transition: all .2s ease;
}

.avaf-thumb-btn:hover {
	opacity: 1;
}

.avaf-thumb-btn.is-active {
	border-color: #b8925c;
	opacity: 1;
}

.avaf-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------------- گالری ویدئو (گرید بندانگشتی) ---------------- */

.avaf-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.avaf-video-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	border: none;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: #1b1d21;
	padding: 0;
}

.avaf-video-thumb-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.avaf-video-thumb-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #3c3120, #b8925c);
	opacity: .85;
}

.avaf-video-play-icon {
	position: absolute;
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: #b8925c;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, background .15s ease;
}

.avaf-video-thumb:hover .avaf-video-play-icon {
	transform: translate(50%, -50%) scale(1.08);
	background: #fff;
}

.avaf-video-thumb-title {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	padding: 8px 10px 6px;
	font-size: 12px;
	color: #fff;
	text-align: right;
	background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}

/* مودال پخش ویدئو */

.avaf-video-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.avaf-video-modal.is-open {
	display: flex;
}

.avaf-video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10,10,12,.85);
}

.avaf-video-modal-box {
	position: relative;
	z-index: 1;
	width: min(900px, 92vw);
}

.avaf-video-modal-close {
	position: absolute;
	top: -42px;
	left: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.avaf-video-modal-content {
	width: 100%;
}

.avaf-video-modal-player {
	width: 100%;
	max-height: 80vh;
	border-radius: 10px;
	display: block;
	background: #000;
}

.avaf-video-modal-content .avaf-video-embed-wrap iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	border: 0;
}

body.avaf-modal-open {
	overflow: hidden;
}

/* ---------------- فرم درخواست مشاوره ---------------- */

.avaf-consultation-form-wrap {
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 28px;
}

.avaf-form-title {
	font-size: 19px;
	margin: 0 0 8px;
}

.avaf-form-desc {
	font-size: 14px;
	color: #77808a;
	margin: 0 0 20px;
}

.avaf-form-group {
	margin-bottom: 16px;
}

.avaf-form-group label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	color: #3c4148;
}

.avaf-form-group .req {
	color: #d1483f;
}

.avaf-form-group input,
.avaf-form-group textarea {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 11px 14px;
	border: 1px solid #dfe2e6;
	border-radius: 10px;
	background: #fbfbfc;
	transition: border-color .15s ease;
}

.avaf-form-group input:focus,
.avaf-form-group textarea:focus {
	outline: none;
	border-color: #b8925c;
	background: #fff;
}

.avaf-form-group textarea {
	resize: vertical;
	min-height: 90px;
}

/* هانی‌پات: کاملاً از دید کاربر مخفی، اما برای ربات‌های ساده در دسترس */
.avaf-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.avaf-submit-btn {
	width: 100%;
	background: #b8925c;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px;
	font-family: inherit;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.avaf-submit-btn:hover {
	background: #a17e4e;
}

.avaf-submit-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.avaf-form-message {
	margin-top: 14px;
	font-size: 14px;
	border-radius: 10px;
	padding: 0;
	min-height: 0;
	transition: all .2s ease;
}

.avaf-form-message.is-success {
	padding: 12px 14px;
	background: #e9f7ee;
	color: #1e7a44;
}

.avaf-form-message.is-error {
	padding: 12px 14px;
	background: #fdecea;
	color: #b3261e;
}

/* ---------------- بنر پارالکس + عضویت در خبرنامه ---------------- */

.avaf-parallax-banner {
	position: relative;
	margin-top: 40px;
	padding: 90px 20px;
	overflow: hidden;
	background-color: #24282e;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avaf-parallax-bg-image {
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	opacity: .35;
	z-index: 0;
}

.avaf-parallax-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 24, .25);
	z-index: 1;
}

.avaf-newsletter-box {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 560px;
	text-align: center;
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(6px);
	border-radius: 20px;
	padding: 40px 32px;
}

.avaf-newsletter-box h2 {
	font-size: 24px;
	margin: 0 0 10px;
}

.avaf-newsletter-box p {
	font-size: 14px;
	color: #e6e6e6;
	margin: 0 0 24px;
}

.avaf-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.avaf-newsletter-form .avaf-form-message {
	flex-basis: 100%;
	margin-top: 4px;
}

.avaf-newsletter-form input[type="email"] {
	flex: 1;
	font-family: inherit;
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.95);
	color: #24282e;
}

.avaf-newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: #b8925c;
}

.avaf-newsletter-submit {
	background: #b8925c;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, opacity .15s ease;
}

.avaf-newsletter-submit:hover {
	background: #a17e4e;
}

.avaf-newsletter-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.avaf-newsletter-box .avaf-form-message {
	margin-top: 14px;
	font-size: 14px;
}

.avaf-newsletter-box .avaf-form-message.is-success {
	padding: 10px 14px;
	background: rgba(233, 247, 238, .95);
	color: #1e7a44;
	border-radius: 10px;
}

.avaf-newsletter-box .avaf-form-message.is-error {
	padding: 10px 14px;
	background: rgba(253, 236, 234, .95);
	color: #b3261e;
	border-radius: 10px;
}

/* ---------------- ریسپانسیو / موبایل ---------------- */

@media (max-width: 960px) {
	.avaf-columns {
		flex-direction: column;
	}

	.avaf-sidebar,
	.avaf-content {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.avaf-sidebar {
		position: static;
		top: auto;
		margin-bottom: 8px;
	}

	.avaf-title {
		font-size: 24px;
	}

	.avaf-box,
	.avaf-consultation-form-wrap {
		padding: 20px;
	}

	.avaf-container {
		padding: 20px 14px 50px;
	}

	.avaf-gallery-thumbs li {
		width: 68px;
		height: 68px;
	}

	/* background-attachment: fixed در موبایل (به‌خصوص iOS) پشتیبانی مناسبی ندارد */
	.avaf-parallax-banner {
		background-attachment: scroll;
		padding: 60px 16px;
	}

	.avaf-newsletter-form {
		flex-direction: column;
	}

	.avaf-newsletter-submit {
		padding: 12px;
	}

	.avaf-video-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}

@media (max-width: 480px) {
	.avaf-title {
		font-size: 21px;
	}

	.avaf-section-title {
		font-size: 17px;
	}

	.avaf-newsletter-box {
		padding: 28px 20px;
	}

	.avaf-newsletter-box h2 {
		font-size: 20px;
	}
}
