/* ============================================================
   آوان — استایل اصلی
   Mobile First | RTL | پالت آوان: بنفش #4B1D96، نارنجی #FFB300، سفید یاسی #F8F7FF، یاسی #DCCBFF، زرد #FFD966
   ============================================================ */

/* ---------- متغیرها ---------- */
:root {
	/* ---- بنفش هویتی: تیترها، لینک‌ها، عناصر هویتی ---- */
	--brand: #4b1d96;
	--brand-deep: #3b1778;
	--brand-soft: #efe7ff;

	/* ---- یاسی روشن: پس‌زمینه برخی بخش‌ها و کارت‌های منتخب ---- */
	--lilac: #dccbff;
	--lilac-soft: #f4eeff;

	/* ---- نارنجی تأکیدی: دکمه‌های اصلی و CTAها ---- */
	--accent: #ffb300;
	--accent-deep: #f0a400;
	--accent-soft: #fff3d6;
	--accent-ink: #8a5a00;
	--on-accent: #3b1778;

	/* ---- زرد روشن: فقط جزئیات و هایلایت‌های محدود ---- */
	--sun: #ffd966;
	--sun-soft: #fff8e3;

	/* ---- پس‌زمینه، متن و خطوط ---- */
	--bg: #f8f7ff;
	--ink: #4b1d96;
	--text: #3d3166;
	--muted: #6d5f92;
	--line: #e6def8;
	--white: #ffffff;

	/* ---- اجزای مشترک ---- */
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(75, 29, 150, 0.05), 0 3px 12px rgba(75, 29, 150, 0.06);
	--shadow-md: 0 8px 28px rgba(75, 29, 150, 0.1);
	--shadow-lg: 0 24px 60px rgba(75, 29, 150, 0.2);
	--container: 1160px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- ریست و پایه ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	line-height: 1.45;
	margin: 0;
}
p {
	margin: 0;
}
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
figure,
blockquote {
	margin: 0;
}

::selection {
	background: var(--lilac);
	color: var(--brand-deep);
}

:focus-visible {
	outline: 3px solid rgba(75, 29, 150, 0.55);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 28px);
}

.section {
	padding-block: clamp(60px, 9vw, 104px);
}

/* ---------- اجزای مشترک ---------- */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--brand);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.kicker::before {
	content: '';
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
}

.kicker--light {
	color: var(--brand);
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	max-width: 640px;
	margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-head h2 {
	font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.15rem);
	font-weight: 800;
}
.section-head p {
	color: var(--muted);
	font-size: 0.98rem;
}

.section-head--light h2 {
	color: var(--brand);
}
.section-head--light p {
	color: var(--muted);
}

/* دکمه‌ها */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.6;
	cursor: pointer;
	transition:
		transform 0.18s var(--ease),
		box-shadow 0.18s var(--ease),
		background-color 0.18s var(--ease),
		border-color 0.18s var(--ease),
		color 0.18s var(--ease);
}
.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 8px 22px rgba(240, 164, 0, 0.32);
}
.btn-primary:hover {
	background: var(--accent-deep);
	transform: translateY(-2px);
}

.btn-ghost {
	background: transparent;
	color: var(--brand);
	border-color: rgba(75, 29, 150, 0.3);
}
.btn-ghost:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--white);
	transform: translateY(-2px);
}

.btn-block {
	width: 100%;
	margin-top: 8px;
}

/* لینک پرش به محتوا */
.skip-link {
	position: fixed;
	top: -60px;
	inset-inline-start: 16px;
	z-index: 100;
	background: var(--brand);
	color: var(--white);
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	transition: top 0.2s var(--ease);
}
.skip-link:focus {
	top: 12px;
}

/* انیمیشن ظریف ورود عناصر */
@media (prefers-reduced-motion: no-preference) {
	[data-reveal] {
		opacity: 0;
		transform: translateY(22px);
		transition:
			opacity 0.7s var(--ease),
			transform 0.7s var(--ease);
		transition-delay: var(--rd, 0ms);
	}
	[data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ============================================================
   ۱) هدر
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition:
		border-color 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 24px rgba(75, 29, 150, 0.07);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 72px;
}

.brand img {
	height: 70px;
	width: 70px;
	border-radius: 50%;
	object-fit: cover;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
}
.main-nav a {
	display: block;
	padding: 9px 13px;
	border-radius: 10px;
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 500;
	transition:
		background-color 0.2s var(--ease),
		color 0.2s var(--ease);
}
.main-nav a:hover {
	background: var(--brand-soft);
	color: var(--brand);
}
.main-nav a.active {
	color: var(--brand);
	font-weight: 700;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-header {
	padding: 10px 18px;
	font-size: 0.88rem;
	border-radius: 10px;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--brand);
	cursor: pointer;
}
.nav-toggle .icon-close {
	display: none;
}

@media (max-width: 1023.98px) {
	.nav-toggle {
		display: inline-flex;
	}
	.main-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition:
			opacity 0.22s var(--ease),
			transform 0.22s var(--ease),
			visibility 0.22s;
	}
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px 18px 18px;
	}
	.main-nav a {
		padding: 12px 14px;
		font-size: 1rem;
	}
	body.nav-open .main-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	body.nav-open .nav-toggle .icon-menu {
		display: none;
	}
	body.nav-open .nav-toggle .icon-close {
		display: block;
	}
}
@media (max-width: 480.98px) {
	.btn-header {
		padding: 9px 14px;
		font-size: 0.82rem;
	}
	.brand img {
		height: 42px;
	}
}

/* ============================================================
   ۲) Hero
   ============================================================ */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #fbfaff 0%, #f0e9ff 100%);
}
.hero::before {
	content: '';
	position: absolute;
	inset-inline-start: -12%;
	top: -32%;
	width: 540px;
	height: 540px;
	background: radial-gradient(circle, rgba(75, 29, 150, 0.12), transparent 65%);
	pointer-events: none;
}
.hero::after {
	content: '';
	position: absolute;
	inset-inline-end: -10%;
	bottom: -38%;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(255, 179, 0, 0.16), transparent 65%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	display: grid;
	gap: 46px;
	padding-block: clamp(48px, 7vw, 92px);
}

.hero-logo {
	height: 58px;
	width: auto;
	margin-bottom: 18px;
}

.hero-title {
	font-size: clamp(1.75rem, 1.15rem + 3vw, 3.1rem);
	font-weight: 800;
	line-height: 1.4;
	margin-bottom: 16px;
}
.hero-title .accent {
	color: var(--brand);
	background: linear-gradient(transparent 68%, rgba(255, 217, 102, 0.7) 68%);
}

.hero-sub {
	font-size: clamp(1rem, 0.95rem + 0.35vw, 1.13rem);
	line-height: 2.1;
	max-width: 56ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 30px;
}

.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 30px;
}
.hero-points li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--brand-deep);
	font-weight: 600;
	font-size: 0.93rem;
}
.hero-points svg {
	color: var(--accent);
	flex-shrink: 0;
}

.hero-media {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
}
.hero-media::before {
	content: '';
	position: absolute;
	inset-block-start: 22px;
	inset-inline-end: -20px;
	width: 100%;
	height: 100%;
	border-radius: 26px;
	background: linear-gradient(135deg, rgba(220, 203, 255, 0.75), rgba(75, 29, 150, 0.2));
}
.hero-media img {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: 22px;
	border: 1px solid rgba(75, 29, 150, 0.1);
	box-shadow: var(--shadow-md);
	background: var(--white);
}

@media (min-width: 1024px) {
	.hero-inner {
		grid-template-columns: 1.05fr 0.95fr;
		align-items: center;
		gap: 56px;
	}
	.hero-media {
		margin-inline: 0;
	}
}

/* ============================================================
   ۳) معرفی آوان
   ============================================================ */
.about-grid {
	display: grid;
	gap: 40px;
}

.about-copy h2 {
	font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.15rem);
	font-weight: 800;
	margin: 12px 0 18px;
}
.about-copy p {
	color: var(--text);
	line-height: 2.15;
}
.about-copy p + p {
	margin-top: 14px;
}

.about-pillars {
	display: grid;
	gap: 16px;
}
.about-pillars li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--lilac-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		border-color 0.2s var(--ease);
}
.about-pillars li:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
	border-color: rgba(75, 29, 150, 0.35);
}

.pillar-icon {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--white);
	color: var(--brand);
}
.about-pillars h3 {
	font-size: 1.02rem;
	font-weight: 700;
	margin-bottom: 4px;
}
.about-pillars p {
	font-size: 0.9rem;
	color: var(--muted);
	line-height: 1.9;
}

@media (min-width: 1000px) {
	.about-grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 60px;
		align-items: start;
	}
}

/* ============================================================
   ۴) کاتالوگ خدمات
   ============================================================ */
.services {
	background: var(--bg);
}

.services-grid {
	display: grid;
	gap: 18px;
}

.service-card {
	position: relative;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 24px;
	transition:
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease),
		border-color 0.22s var(--ease);
}
.service-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: rgba(75, 29, 150, 0.35);
}

.service-num {
	position: absolute;
	top: 12px;
	inset-inline-end: 18px;
	font-size: 2.1rem;
	font-weight: 800;
	color: rgba(75, 29, 150, 0.08);
	line-height: 1;
	user-select: none;
}

.service-icon {
	display: inline-grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: var(--brand-soft);
	color: var(--brand);
	margin-bottom: 16px;
}

.service-card h3 {
	font-size: 1.06rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.service-card p {
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 2;
}

@media (min-width: 640px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============================================================
   ۵) مراحل همکاری
   ============================================================ */
.steps {
	display: grid;
	gap: 26px;
	position: relative;
}

.step {
	position: relative;
	padding-inline-start: 0;
}

.step-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--white);
	border: 2px solid var(--brand);
	color: var(--brand);
	font-weight: 800;
	font-size: 1.1rem;
	margin-bottom: 14px;
	position: relative;
	z-index: 1;
}

.step h3 {
	font-size: 1.04rem;
	font-weight: 700;
	margin-bottom: 6px;
}
.step p {
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 2;
}

/* موبایل: تایم‌لاین عمودی */
@media (max-width: 899.98px) {
	.step {
		display: grid;
		grid-template-columns: 44px 1fr;
		gap: 4px 18px;
		align-items: start;
	}
	.step-num {
		grid-row: 1 / 3;
		margin-bottom: 0;
	}
	.step::after {
		content: '';
		position: absolute;
		top: 48px;
		inset-inline-start: 21px;
		bottom: -34px;
		width: 2px;
		background: linear-gradient(180deg, rgba(220, 203, 255, 0.95), rgba(220, 203, 255, 0.3));
	}
	.step:last-child::after {
		display: none;
	}
	.step h3 {
		align-self: end;
		padding-top: 10px;
	}
	.step p {
		padding-bottom: 6px;
	}
}

/* دسکتاپ: چهار ستون با خط اتصال */
@media (min-width: 900px) {
	.steps {
		grid-template-columns: repeat(4, 1fr);
		gap: 30px;
	}
	.steps::before {
		content: '';
		position: absolute;
		top: 22px;
		right: 12.5%;
		left: 12.5%;
		height: 2px;
		background: linear-gradient(90deg, rgba(220, 203, 255, 0.3), rgba(220, 203, 255, 0.95), rgba(220, 203, 255, 0.3));
	}
	.step {
		text-align: center;
	}
	.step-num {
		margin-bottom: 16px;
	}
}

/* ============================================================
   ۶) چرا آوان؟
   ============================================================ */
.why {
	background: var(--lilac-soft);
	position: relative;
	overflow: hidden;
}
.why::before {
	content: '';
	position: absolute;
	inset-inline-start: -8%;
	top: -20%;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(75, 29, 150, 0.1), transparent 65%);
	pointer-events: none;
}
.why::after {
	content: '';
	position: absolute;
	inset-inline-end: -6%;
	bottom: -30%;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(255, 179, 0, 0.12), transparent 65%);
	pointer-events: none;
}
.why .container {
	position: relative;
}

.why-grid {
	display: grid;
	gap: 16px;
}

.why-card {
	background: var(--white);
	border: 1px solid rgba(75, 29, 150, 0.1);
	border-radius: var(--radius-lg);
	padding: 24px 22px;
	transition:
		background-color 0.22s var(--ease),
		transform 0.22s var(--ease),
		border-color 0.22s var(--ease);
}
.why-card:hover {
	transform: translateY(-4px);
	border-color: rgba(75, 29, 150, 0.35);
	box-shadow: var(--shadow-sm);
}

.why-icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand);
	margin-bottom: 14px;
}
.why-card h3 {
	color: var(--brand);
	font-size: 1.02rem;
	font-weight: 700;
	margin-bottom: 6px;
}
.why-card p {
	color: var(--text);
	font-size: 0.9rem;
	line-height: 2;
}

.why-quote {
	margin-top: 34px;
	position: relative;
	background: var(--sun-soft);
	border-radius: var(--radius-lg);
	padding: 28px 30px 24px;
	overflow: hidden;
}
.why-quote::before {
	content: '«';
	position: absolute;
	top: 2px;
	inset-inline-start: 20px;
	font-size: 4rem;
	font-weight: 800;
	color: rgba(75, 29, 150, 0.16);
	line-height: 1;
}
.why-quote blockquote {
	color: var(--brand-deep);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 2;
	max-width: 62ch;
	margin-inline: auto;
	text-align: center;
}
.why-quote figcaption {
	text-align: center;
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 600;
}

@media (min-width: 760px) {
	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ============================================================
   ۷) نتایج و دستاوردها
   ============================================================ */
.results-panel {
	background: linear-gradient(135deg, #f8f7ff, #eee5ff);
	border: 1px solid var(--line);
	border-radius: 26px;
	padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 56px);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.results-icon {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: var(--accent-soft);
	border: 1px solid rgba(255, 179, 0, 0.4);
	color: var(--accent-ink);
	margin-bottom: 4px;
}
.results-panel h2 {
	font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.05rem);
	font-weight: 800;
}
.results-panel p {
	color: var(--text);
	max-width: 60ch;
}
.results-panel .btn {
	margin-top: 8px;
}

/* ============================================================
   ۸) تجربه دانش‌آموزان
   ============================================================ */
.testimonials {
	background: var(--bg);
}

.demo-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: start;
	background: rgba(255, 255, 255, 0.7);
	border: 1px dashed rgba(240, 164, 0, 0.65);
	border-radius: 12px;
	padding: 12px 16px;
	color: var(--accent-ink);
	font-size: 0.85rem !important;
	line-height: 1.9;
	max-width: 560px;
}
.demo-note svg {
	flex-shrink: 0;
	margin-top: 4px;
}

.testi-grid {
	display: grid;
	gap: 18px;
}

.testi-card {
	position: relative;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 24px 20px;
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease);
}
.testi-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.testi-badge {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent-ink);
	background: var(--accent-soft);
	border: 1px solid rgba(255, 179, 0, 0.45);
	border-radius: 999px;
	padding: 3px 12px;
}

.testi-card blockquote {
	color: var(--text);
	font-size: 0.95rem;
	line-height: 2.1;
	padding-top: 14px;
}
.testi-card figcaption {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 600;
}

@media (min-width: 900px) {
	.testi-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============================================================
   ۹) سؤالات متداول
   ============================================================ */
.faq-list {
	max-width: 780px;
	margin-inline: auto;
}

.faq-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}
.faq-item.open {
	border-color: rgba(75, 29, 150, 0.4);
	box-shadow: var(--shadow-sm);
}

.faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 20px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: start;
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--brand);
}
.faq-chevron {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand);
	transition:
		transform 0.28s var(--ease),
		background-color 0.28s var(--ease),
		color 0.28s var(--ease);
}
.faq-item.open .faq-chevron {
	transform: rotate(180deg);
	background: var(--brand);
	color: var(--white);
}

.faq-a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s var(--ease);
}
.faq-a > div {
	overflow: hidden;
}
.faq-a p {
	padding: 0 20px 18px;
	color: var(--text);
	font-size: 0.93rem;
	line-height: 2.1;
}
.faq-item.open .faq-a {
	grid-template-rows: 1fr;
}

/* ============================================================
   ۱۰) فرم درخواست مشاوره
   ============================================================ */
.contact {
	background: var(--lilac-soft);
	position: relative;
	overflow: hidden;
}
.contact::before {
	content: '';
	position: absolute;
	inset-inline-end: -10%;
	top: -25%;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(75, 29, 150, 0.1), transparent 65%);
	pointer-events: none;
}
.contact .container {
	position: relative;
}

.contact-grid {
	display: grid;
	gap: 44px;
}

.contact-info h2 {
	color: var(--brand);
	font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.15rem);
	font-weight: 800;
	margin: 12px 0 14px;
}
.contact-info > p {
	color: var(--text);
	line-height: 2.1;
	max-width: 52ch;
}

.contact-tele {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 18px;
	color: var(--brand-deep);
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}
.contact-tele:hover {
	border-color: rgba(75, 29, 150, 0.4);
	background: #fbfaff;
	transform: translateY(-2px);
}
.contact-tele-icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand);
}
.contact-tele-text {
	display: flex;
	flex-direction: column;
	line-height: 1.7;
}
.contact-tele-text strong {
	font-size: 0.98rem;
}
.contact-tele-text small {
	color: var(--muted);
	font-size: 0.8rem;
}

.privacy-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-top: 18px;
	background: var(--sun-soft);
	border: 1px solid var(--sun);
	border-radius: var(--radius);
	padding: 16px 18px;
}
.privacy-icon {
	flex-shrink: 0;
	color: var(--accent-ink);
	margin-top: 2px;
}
.privacy-box h3 {
	color: var(--accent-ink);
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 4px;
}
.privacy-box p {
	color: #6b5b33;
	font-size: 0.84rem;
	line-height: 1.95;
}

.contact-form {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 3.4vw, 36px);
	box-shadow: var(--shadow-lg);
}

.form-grid {
	display: grid;
	gap: 16px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.form-field--full {
	grid-column: 1 / -1;
}

.form-field label {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--brand);
}
.form-field label em {
	color: var(--accent-ink);
	font-style: normal;
}
.form-field label small {
	color: var(--muted);
	font-weight: 500;
	font-size: 0.78rem;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 12px 14px;
	background: #fbfaff;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	font-size: 0.95rem;
	color: var(--text);
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
	color: #a49ac2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(75, 29, 150, 0.14);
}

.form-field input[type='tel'] {
	direction: ltr;
	text-align: left;
}
.form-field input[type='tel']::placeholder {
	text-align: left;
}

.form-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236D5F92" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
	background-repeat: no-repeat;
	background-position: left 12px center;
	padding-left: 38px;
	cursor: pointer;
}
.form-field select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.form-field textarea {
	resize: vertical;
	min-height: 104px;
}

.form-field.is-invalid input,
.form-field.is-invalid select {
	border-color: #b3261e;
}

.field-error {
	color: #b3261e;
	font-size: 0.78rem;
	min-height: 0;
	line-height: 1.7;
}
.field-error:empty {
	display: none;
}

.form-demo-hint {
	text-align: center;
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 12px;
}

.form-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	background: var(--brand-soft);
	border: 1px solid rgba(75, 29, 150, 0.3);
	border-radius: 12px;
	padding: 14px 16px;
	color: var(--brand-deep);
	font-size: 0.88rem;
	line-height: 1.9;
}
.form-note svg {
	flex-shrink: 0;
	margin-top: 4px;
}
.form-note[hidden] {
	display: none;
}

@media (min-width: 640px) {
	.form-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1000px) {
	.contact-grid {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
		gap: 52px;
	}
}

/* ============================================================
   ۱۱) فوتر
   ============================================================ */
.site-footer {
	background: var(--bg);
	border-top: 1px solid var(--lilac);
	color: var(--text);
}

.footer-grid {
	display: grid;
	gap: 36px;
	padding-block: clamp(44px, 6vw, 64px) 36px;
}

.footer-logo {
	height: 44px;
	width: auto;
	margin-bottom: 14px;
}
.footer-brand p {
	font-size: 0.9rem;
	line-height: 2;
	max-width: 40ch;
}

.footer-nav h4,
.footer-contact h4 {
	color: var(--brand);
	font-size: 0.98rem;
	font-weight: 700;
	margin-bottom: 14px;
}
.footer-nav ul {
	display: grid;
	gap: 10px;
}
.footer-nav a,
.footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--muted);
	transition: color 0.2s var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover {
	color: var(--brand);
}
.footer-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	border-top: 1px solid rgba(75, 29, 150, 0.12);
	padding-block: 20px;
}
.footer-bottom p {
	font-size: 0.8rem;
	color: var(--muted);
}

@media (min-width: 820px) {
	.footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

/* ============================================================
   ۱۲) چت شناور
   ============================================================ */
.chat-fab {
	position: fixed;
	bottom: 20px;
	inset-inline-end: 20px;
	z-index: 60;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: none;
	background: var(--accent);
	color: var(--on-accent);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(240, 164, 0, 0.4);
	transition:
		transform 0.2s var(--ease),
		background-color 0.2s var(--ease);
}
.chat-fab:hover {
	transform: translateY(-3px) scale(1.03);
	background: var(--accent-deep);
}
.chat-fab .fab-close {
	display: none;
}
.chat-fab.is-open .fab-open {
	display: none;
}
.chat-fab.is-open .fab-close {
	display: block;
}

.chat-panel {
	position: fixed;
	bottom: 92px;
	inset-inline-end: 20px;
	z-index: 60;
	width: min(372px, calc(100vw - 28px));
	height: min(520px, calc(100vh - 130px));
	height: min(520px, calc(100dvh - 130px));
	background: var(--white);
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.98);
	transition:
		opacity 0.22s var(--ease),
		transform 0.22s var(--ease),
		visibility 0.22s;
}
.chat-panel.open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.chat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	background: var(--brand);
	color: var(--white);
}
.chat-avatar {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	object-fit: cover;
}
.chat-title {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
	flex: 1;
	min-width: 0;
}
.chat-title strong {
	font-size: 0.95rem;
}
.chat-title small {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.65);
}
.chat-close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	border-radius: 10px;
	color: var(--white);
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}
.chat-close:hover {
	background: rgba(255, 255, 255, 0.16);
}

.chat-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: rgba(75, 29, 150, 0.25) transparent;
}
.chat-body::-webkit-scrollbar {
	width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
	background: rgba(75, 29, 150, 0.22);
	border-radius: 3px;
}

.msg {
	display: flex;
}
.msg-bot {
	justify-content: flex-start;
}
.msg-user {
	justify-content: flex-end;
}

.bubble {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 0.88rem;
	line-height: 1.95;
}
.msg-bot .bubble {
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--text);
	border-start-start-radius: 4px;
}
.msg-user .bubble {
	background: var(--brand);
	color: var(--white);
	border-start-end-radius: 4px;
}
.bubble a {
	color: var(--brand);
	font-weight: 700;
	text-decoration: underline;
}
.msg-user .bubble a {
	color: var(--white);
}

.bubble.typing {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 14px 16px;
}
.bubble.typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(75, 29, 150, 0.3);
	animation: typing 1.1s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) {
	animation-delay: 0.18s;
}
.bubble.typing span:nth-child(3) {
	animation-delay: 0.36s;
}
@keyframes typing {
	0%,
	60%,
	100% {
		transform: translateY(0);
		opacity: 0.5;
	}
	30% {
		transform: translateY(-4px);
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bubble.typing span {
		animation: none;
	}
}

.chat-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-top: 1px solid var(--line);
	background: var(--white);
}
.chat-form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	background: #f4f1fe;
	border: 1.5px solid transparent;
	border-radius: 11px;
	font-size: 0.9rem;
	color: var(--text);
}
.chat-form input:focus {
	outline: none;
	border-color: var(--brand);
	background: var(--white);
}
.chat-send {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: var(--accent);
	color: var(--on-accent);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition:
		background-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}
.chat-send:hover {
	background: var(--accent-deep);
	transform: translateY(-2px);
}

@media (max-width: 480px) {
	.chat-fab {
		bottom: 16px;
		inset-inline-end: 16px;
		width: 54px;
		height: 54px;
	}
	.chat-panel {
		bottom: 84px;
		inset-inline-end: 12px;
	}
}
/* ---------- وضعیت‌های اتصال واقعی فرم و چت ---------- */

.form-note.is-warning {
	background: #fff3d6;
	border-color: #f0a400;
	color: #8a5a00;
}

.contact-form button:disabled,
.chat-send:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.chat-sender-name {
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	margin-bottom: 5px;
	color: var(--brand);
}

.msg-user .chat-sender-name {
	color: var(--white);
}

.chat-message-text {
	display: block;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.chat-delivery-warning {
	display: block;
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px solid rgba(179, 38, 30, 0.2);
	color: #b3261e;
	font-size: 0.75rem;
	line-height: 1.8;
}

.form-field.is-invalid textarea {
	border-color: #b3261e;
}

.chat-send:disabled:hover {
	transform: none;
	background: var(--accent);
}