/*
Theme Name: Mikharim
Theme URI: https://mikharim.com
Author: Mikharim
Description: قالب سبک، مینیمال و راست‌چین برای سرویس خرید از ترکیه. بدون وابستگی، بدون جی‌کوئری، بهینه برای Core Web Vitals.
Version: 3.2.1
Requires PHP: 8.1
License: GPLv2 or later
Text Domain: mikharim-theme
Tags: rtl-language-support, custom-logo, custom-menu, blog
*/

/* ═══════════════════════════ توکن‌های طراحی ═══════════════════════════ */

:root {
	--bg: #ffffff;          /* فقط کارت‌ها و سطوح شناور */
	--page: #fdf8ef;        /* زمینه واقعی سایت — هدر هم همین است */
	--surface: #f8f4ec;
	--surface-2: #efe9de;
	--border: #ece5da;

	--primary: #1e4a8f;
	--primary-soft: #e3eaf7;
	--primary-deep: #0c2454;
	--accent: #4fb185;
	--accent-soft: #e4f6ed;
	--accent-deep: #1c7250;

	--text: #14181f;
	--muted: #5f6875;

	/* ── پالت پستلی: رنگ زنده، ته‌رنگ سطح، و رنگ متن هم‌خانواده ── */
	--pink: #ffc2dc;
	--pink-soft: #ffeaf3;
	--pink-tint: #fff7fb;
	--pink-ink: #a63a68;

	--yellow: #ffdf94;
	--yellow-soft: #fff4d9;
	--yellow-tint: #fffbf1;
	--yellow-ink: #8a6008;

	--blue: #b9dcff;
	--blue-soft: #e7f3ff;
	--blue-tint: #f5faff;
	--blue-ink: #1f5f9e;

	--mint: #b4ecd4;
	--mint-soft: #e3f9ef;
	--mint-tint: #f4fdf9;
	--mint-ink: #12795a;

	--lilac: #d8cffb;
	--lilac-soft: #efeaff;
	--lilac-ink: #5340a3;

	/* نام‌های قدیمی برای سازگاری */
	--pastel-pink: var(--pink);
	--pastel-yellow: var(--yellow);
	--pastel-blue: var(--blue);
	--pastel-pink-ink: var(--pink-ink);
	--pastel-yellow-ink: var(--yellow-ink);
	--pastel-blue-ink: var(--blue-ink);
	--pastel-pink-soft: var(--pink-soft);
	--pastel-yellow-soft: var(--yellow-soft);
	--pastel-blue-soft: var(--blue-soft);

	--r-card: 20px;
	--r-control: 14px;
	--shadow: 0 1px 2px rgba(27, 28, 30, .04), 0 8px 24px rgba(27, 28, 30, .05);

	--container: 1160px;
	--gutter: 20px;

	--icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E");

	color-scheme: light;
}

/* ═══════════════════════════ پایه ═══════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: Vazirmatn, "IRANSans", Tahoma, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-radius: var(--r-card); }

a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 16px; }

:focus-visible {
	outline: 2px solid var(--primary-deep);
	outline-offset: 3px;
	border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; inset-inline-start: 8px; top: 8px; z-index: 999;
	background: var(--text); color: #fff; padding: 10px 18px; border-radius: 8px;
	transform: translateY(calc(-100% - 16px));
}
.skip-link:focus { transform: none; }

/* ═══════════════════════════ دکمه‌ها ═══════════════════════════ */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px;
	font: inherit; font-weight: 700; font-size: .95rem;
	border: 1px solid transparent; border-radius: 999px;
	cursor: pointer; text-decoration: none;
	transition: background-color .16s ease, border-color .16s ease, transform .14s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
	background: linear-gradient(135deg, var(--primary-deep), #1a4a92);
	color: #fff;
}
.btn--primary:hover { background: linear-gradient(135deg, #071a3e, #12377a); color: #fff; }

.btn--ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }

.btn--accent {
	background: linear-gradient(135deg, #2f9169, #1c7250);
	color: #ffffff;
}
.btn--accent:hover { background: linear-gradient(135deg, #37a377, #23815d); color: #ffffff; }

.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--primary { box-shadow: 0 8px 20px rgba(12, 36, 84, .22); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(12, 36, 84, .28); }
.btn--accent { box-shadow: 0 8px 20px rgba(79, 177, 133, .3); }
.btn--accent:hover { box-shadow: 0 12px 26px rgba(79, 177, 133, .36); }
.btn svg { transition: transform .18s ease; }
.btn:hover svg { transform: translateX(-3px); }

/* ═══════════════════════════ هدر ═══════════════════════════ */

/* نوار بالایی باریک */
.topbar {
	position: relative;
	background: linear-gradient(110deg, var(--primary-deep) 0%, #1a4a92 60%, #2a5fae 100%);
	color: rgba(255, 255, 255, .9);
	font-size: .78rem;
	line-height: 1.6;
}
/* نوار چهاررنگ پستلی زیر نوار بالایی */
.topbar::after {
	content: "";
	position: absolute; inset-inline: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg,
		var(--pink) 0 25%,
		var(--yellow) 25% 50%,
		var(--mint) 50% 75%,
		var(--blue) 75% 100%);
}
.topbar__inner {
	display: flex; align-items: center; gap: 16px;
	min-height: 38px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item svg { color: var(--pastel-yellow); flex-shrink: 0; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.topbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.topbar__link { color: #fff; font-weight: 600; }
.topbar__link:hover { color: var(--pastel-yellow); text-decoration: none; }
.topbar__link--wa { display: inline-flex; align-items: center; gap: 6px; }

.footer-wa {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 600; color: var(--accent-deep);
}

/* هدر اصلی */
.site-header {
	position: sticky; top: 0; z-index: 40;
	/* هم‌رنگ زمینه صفحه تا نوار سفید جدا از سایت دیده نشود */
	background: rgba(253, 248, 239, .86);
	background: color-mix(in srgb, var(--page) 86%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.site-header.is-stuck {
	border-bottom-color: var(--border);
	box-shadow: 0 6px 24px rgba(20, 24, 31, .07);
	background: rgba(253, 248, 239, .96);
	background: color-mix(in srgb, var(--page) 96%, transparent);
}

.site-header__inner {
	display: flex; align-items: center; gap: 22px;
	min-height: 96px;
	transition: min-height .22s ease;
}
.site-header.is-stuck .site-header__inner { min-height: 76px; }

/* برند فقط تصویری است — لوگوتایپ متنی نداریم. */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img,
.brand .custom-logo {
	display: block;
	height: 58px; width: auto; max-width: none;
	border-radius: 0;
	transition: height .22s ease;
}
.site-header.is-stuck .brand img,
.site-header.is-stuck .brand .custom-logo { height: 46px; }

.brand--text { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand--aside img, .brand--aside .custom-logo { height: 96px; margin-inline: auto; }
.footer-brand { font-size: 1.15rem; margin-bottom: 10px; }

/* ناوبری */
/* لوگو راست، منو دقیقاً وسط، دکمه‌ها چپ */
.nav {
	position: absolute; inset-inline-start: 50%;
	transform: translateX(50%);
}
.site-header__inner { position: relative; justify-content: space-between; }
.header-cta { margin-inline-start: 0; }
.nav ul { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav a {
	position: relative;
	display: block; padding: 9px 15px; border-radius: var(--r-control);
	color: var(--text); font-size: .93rem; font-weight: 500;
	transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue-ink); text-decoration: none; }

.nav li:nth-child(2) a:hover { background: var(--pink-soft); color: var(--pink-ink); }
.nav li:nth-child(3) a:hover { background: var(--yellow-soft); color: var(--yellow-ink); }
.nav li:nth-child(4) a:hover { background: var(--mint-soft); color: var(--mint-ink); }

.nav .current-menu-item > a { color: var(--primary-deep); font-weight: 700; background: var(--bg); }
.nav .current-menu-item > a::after {
	content: "";
	position: absolute; inset-inline: 15px; bottom: 4px;
	height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* دکمه همبرگری */
.nav-toggle {
	display: none;
	background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
	width: 44px; height: 44px; cursor: pointer;
	align-items: center; justify-content: center;
	transition: background-color .16s ease;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i {
	display: block; width: 18px; height: 2px; border-radius: 2px;
	background: var(--text);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════════════════════ هیرو ═══════════════════════════ */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 6vw, 78px);
	background:
		radial-gradient(120% 80% at 82% 0%, var(--blue-soft) 0%, transparent 58%),
		radial-gradient(100% 70% at 6% 100%, var(--pink-soft) 0%, transparent 60%),
		linear-gradient(180deg, var(--page) 0%, var(--page) 100%);
}

.hero__glow {
	position: absolute; z-index: 0;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.hero__glow--a {
	inset-inline-end: -130px; top: -150px;
	width: 480px; height: 480px;
	background: rgba(185, 220, 255, .8);
	animation: mkht-drift 16s ease-in-out infinite;
}
.hero__glow--b {
	inset-inline-start: -110px; bottom: -190px;
	width: 430px; height: 430px;
	background: rgba(255, 194, 220, .62);
	animation: mkht-drift 20s ease-in-out infinite reverse;
}
.hero__glow--c {
	inset-inline-start: 34%; top: -200px;
	width: 340px; height: 340px;
	background: rgba(255, 223, 148, .58);
	animation: mkht-drift 24s ease-in-out infinite;
}

@keyframes mkht-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%      { transform: translate(-24px, 22px) scale(1.06); }
}

.hero__grid {
	position: relative; z-index: 1;
	display: flex; justify-content: center;
	padding-block: clamp(10px, 3vw, 34px);
}

.hero__copy { text-align: center; max-width: 780px; }
.hero h1 { margin-bottom: 16px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); }
.hero h1 .hl {
	position: relative;
	padding-inline: 4px;
	white-space: nowrap;
}
.hero h1 .hl::before {
	content: "";
	position: absolute; inset-inline: -4px; bottom: 4px; height: 38%;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--yellow), var(--pink));
	z-index: -1;
}


.hero__lead { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 1.08rem; }
.hero__facts { justify-content: center; }

.pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 18px;
	font-size: .82rem; font-weight: 600; color: var(--primary-deep);
	box-shadow: var(--shadow);
}
.pill__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: #22a06b;
	box-shadow: 0 0 0 3px rgba(34, 160, 107, .18);
}

.hero__facts {
	display: flex; flex-wrap: wrap; gap: 8px 22px;
	list-style: none; margin: 20px 0 0; padding: 0;
}
.hero__facts li {
	display: flex; align-items: center; gap: 7px;
	font-size: .86rem; color: var(--muted);
}
.hero__facts svg { color: #22a06b; flex-shrink: 0; }

/* ── نوار اعداد ── */

.strip { border-block: 1px solid var(--border); background: var(--page); }
.strip__item:nth-child(1) { background: var(--pink-tint); }
.strip__item:nth-child(2) { background: var(--yellow-tint); }
.strip__item:nth-child(3) { background: var(--blue-tint); }
.strip__item:nth-child(4) { background: var(--mint-tint); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item {
	text-align: center;
	padding: 26px 12px;
	border-inline-start: 1px solid var(--border);
}
.strip__item:first-child { border-inline-start: 0; }
.strip__item:nth-child(1) { box-shadow: inset 0 -4px 0 var(--pink); }
.strip__item:nth-child(2) { box-shadow: inset 0 -4px 0 var(--yellow); }
.strip__item:nth-child(3) { box-shadow: inset 0 -4px 0 var(--blue); }
.strip__item:nth-child(4) { box-shadow: inset 0 -4px 0 var(--mint); }
.strip__item strong {
	display: block;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	color: var(--primary-deep); line-height: 1.4;
}
.strip__item span { font-size: .82rem; color: var(--muted); }

/* ═══════════════════════════ چیدمان صفحات اپلیکیشنی ═══════════════════════════ */

.app-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
	padding: 36px 0 60px;
}

/* در RTL ستون دوم سمت چپ می‌افتد — سایدبار همان‌جا می‌نشیند. */
.app-main { grid-column: 1; }
.app-aside { grid-column: 2; position: sticky; top: 100px; }
.app-layout, .app-main, .app-aside, .page-body { min-width: 0; max-width: 100%; }

/* داخل ستون، کارت‌ها باید تمام عرض بگیرند نه اینکه وسط شناور بمانند. */
.app-main .mkh-narrow { max-width: none; margin-inline: 0; }

.app-aside__intro {
	background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft));
	border-radius: var(--r-card);
	padding: 24px;
	margin-bottom: 14px;
}
.app-aside__intro h2 { font-size: 1.1rem; margin-bottom: 6px; line-height: 1.6; }
.app-aside__intro p { margin: 0; color: var(--muted); font-size: .87rem; }

.app-points { list-style: none; margin: 0 0 14px; padding: 0; }
.app-points li {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	margin-bottom: 8px;
}
.app-points__icon {
	display: grid; place-items: center; flex-shrink: 0;
	width: 32px; height: 32px; border-radius: 9px;
	background: var(--primary-soft); color: var(--primary-deep);
}
.app-points strong { display: block; font-size: .88rem; }
.app-points small { color: var(--muted); font-size: .8rem; line-height: 1.7; }

.app-support {
	background: var(--accent-soft);
	border: 1px solid #f6dfb8;
	border-radius: var(--r-card);
	padding: 18px;
	text-align: center;
}
.app-support strong { display: block; font-size: .92rem; color: var(--accent-deep); }
.app-support small { display: block; color: #a3702a; font-size: .8rem; margin-bottom: 12px; }
.app-support .btn { width: 100%; }
/* ═══════════════════════════ باکس لینک (ستاره صفحه اصلی) ═══════════════════════════ */

.hero .mkh-linkbox {
	position: relative;
	max-width: 720px;
	margin-inline: auto;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 14px;
	border: 0;
	border-radius: 26px;
	background: var(--bg);
	box-shadow:
		0 2px 6px rgba(20, 24, 31, .05),
		0 22px 50px rgba(31, 95, 158, .13);
}

/* قاب گرادیانی پستلی دور باکس */
.hero .mkh-linkbox::before {
	content: "";
	position: absolute; inset: -3px;
	border-radius: 29px;
	background: linear-gradient(120deg, var(--pink), var(--yellow), var(--mint), var(--blue));
	background-size: 300% 300%;
	z-index: -1;
	animation: mkht-frame 9s ease infinite;
}
@keyframes mkht-frame {
	0%, 100% { background-position: 0% 50%; }
	50%      { background-position: 100% 50%; }
}

.hero .mkh-linkbox .mkh-input {
	background: var(--surface);
	border: 2px solid transparent;
	border-radius: 18px;
	padding: 17px 52px 17px 18px;
	font-size: 1rem;
}
.hero .mkh-linkbox .mkh-input:focus {
	background: var(--bg);
	border-color: var(--blue);
	box-shadow: 0 0 0 4px var(--blue-soft);
}

/* آیکون لینک داخل فیلد */
.hero .mkh-linkbox__field { position: relative; }
.hero .mkh-linkbox__field::after {
	content: "";
	position: absolute; inset-inline-start: 18px; top: 50%;
	width: 20px; height: 20px; margin-top: -10px;
	background: currentColor; color: var(--blue-ink); opacity: .55;
	-webkit-mask: var(--icon-link) center / contain no-repeat;
	mask: var(--icon-link) center / contain no-repeat;
	pointer-events: none;
}

.hero .mkh-linkbox .mkh-btn {
	border-radius: 18px;
	padding: 17px 30px;
	font-size: 1rem;
	background: linear-gradient(135deg, var(--primary-deep), #1a4a92);
	box-shadow: 0 8px 20px rgba(12, 36, 84, .24);
	transition: transform .14s ease, box-shadow .16s ease;
}
.hero .mkh-linkbox .mkh-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(12, 36, 84, .3);
}

.hero .mkh-linkbox__hint {
	padding-top: 4px;
	font-size: .82rem; color: var(--muted);
	text-align: center;
}

@media (max-width: 640px) {
	.hero .mkh-linkbox { grid-template-columns: 1fr; }
	.hero .mkh-linkbox .mkh-btn { width: 100%; }
}

/* ═══════════════════════════ خط‌های هدایت پستلی ═══════════════════════════ */

.guide {
	position: relative;
	margin-block: -26px;
	pointer-events: none;
}

/* بدون کشیدگی غیریکنواخت، وگرنه فلش و ضخامت خط کج می‌شوند.
   آینه‌کردن افقی تا مسیر هم‌جهت با خواندن راست‌به‌چپ باشد. */
.guide svg {
	display: block;
	width: 100%; height: auto;
	max-height: 140px;
	overflow: visible;
	transform: scaleX(-1);
}

.guide__path {
	fill: none;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-dasharray: 11 12;
	stroke-dashoffset: 1900;
}
.js .guide.is-in .guide__path {
	transition: stroke-dashoffset 1.8s cubic-bezier(.33, 1, .68, 1);
	stroke-dashoffset: 0;
}
.guide:not(.is-in) .guide__path { stroke-dashoffset: 0; }

/* نقطه‌ای که روی مسیر حرکت می‌کند */
.guide__spark { opacity: .9; }

.guide__arrow { stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.guide--pink  .guide__path, .guide--pink  .guide__arrow { stroke: var(--pink); }
.guide--pink  .guide__spark { fill: var(--pink-ink); }
.guide--yellow .guide__path, .guide--yellow .guide__arrow { stroke: var(--yellow); }
.guide--yellow .guide__spark { fill: var(--yellow-ink); }
.guide--blue  .guide__path, .guide--blue  .guide__arrow { stroke: var(--blue); }
.guide--blue  .guide__spark { fill: var(--blue-ink); }
.guide--mint  .guide__path, .guide--mint  .guide__arrow { stroke: var(--mint); }
.guide--mint  .guide__spark { fill: var(--mint-ink); }

/* برچسب کوچکی که کنار خط می‌نشیند و مسیر را روایت می‌کند */
.guide__label {
	position: absolute; top: 50%; inset-inline-start: 10%;
	transform: translateY(-50%);
	background: var(--bg);
	border-radius: 999px;
	padding: 7px 18px;
	font-size: .82rem; font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(20, 24, 31, .07);
}
.guide--pink .guide__label { color: var(--pink-ink); border: 2px solid var(--pink); }
.guide--yellow .guide__label { color: var(--yellow-ink); border: 2px solid var(--yellow); }
.guide--blue .guide__label { color: var(--blue-ink); border: 2px solid var(--blue); }
.guide--mint .guide__label { color: var(--mint-ink); border: 2px solid var(--mint); }

@media (max-width: 720px) {
	.guide__label { inset-inline-start: 50%; transform: translate(50%, -50%); font-size: .76rem; }
}

/* ═══════════════════════════ سکشن‌ها ═══════════════════════════ */

.section { position: relative; padding: clamp(48px, 6.5vw, 84px) 0; }
.section--surface { background: var(--surface); }
.section--white { background: var(--bg); }
.section--pink { background: var(--pink-tint); }
.section--yellow { background: var(--yellow-tint); }
.section--blue { background: var(--blue-tint); }
.section--mint { background: var(--mint-tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section__head h2 { margin-bottom: 8px; letter-spacing: -.01em; }
.section__head p { color: var(--muted); margin: 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 7px;
	margin-bottom: 12px;
	font-size: .79rem; font-weight: 700; letter-spacing: .02em;
	color: var(--blue-ink);
	background: var(--blue-soft);
	border-radius: 999px;
	padding: 6px 16px;
}
.eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: currentColor; opacity: .55;
}
.section--pink .eyebrow { color: var(--pink-ink); background: var(--pink-soft); }
.section--yellow .eyebrow { color: var(--yellow-ink); background: var(--yellow-soft); }
.section--mint .eyebrow { color: var(--mint-ink); background: var(--mint-soft); }

.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	padding: 26px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(20, 24, 31, .10);
	transform: translateY(-4px);
}

.card--feature:nth-child(1) { background: var(--blue-tint); }
.card--feature:nth-child(2) { background: var(--pink-tint); }
.card--feature:nth-child(3) { background: var(--yellow-tint); }
.card--feature:nth-child(4) { background: var(--mint-tint); }
.card--feature:nth-child(1):hover { box-shadow: 0 14px 34px rgba(31, 95, 158, .16); }
.card--feature:nth-child(2):hover { box-shadow: 0 14px 34px rgba(166, 58, 104, .14); }
.card--feature:nth-child(3):hover { box-shadow: 0 14px 34px rgba(138, 96, 8, .14); }
.card--feature:nth-child(4):hover { box-shadow: 0 14px 34px rgba(18, 121, 90, .14); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }

.steps {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	list-style: none; margin: 0; padding: 0;
	counter-reset: step;
}
.step { position: relative; padding-top: 8px; }

/* خط رابط بین قدم‌ها */
.step::after {
	content: "";
	position: absolute; top: 33px;
	inset-inline-end: calc(-50% + 40px);
	width: calc(100% - 80px); height: 4px;
	border-radius: 4px;
	background-image: linear-gradient(to left, currentColor 55%, transparent 55%);
	background-size: 16px 4px;
	color: var(--blue);
}
.step:nth-child(1)::after { color: var(--pink); }
.step:nth-child(2)::after { color: var(--yellow); }
.step:nth-child(3)::after { color: var(--mint); }
.step:last-child::after { display: none; }

.step h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

.step__num {
	position: relative; z-index: 1;
	display: grid; place-items: center;
	width: 62px; height: 62px;
	border-radius: 50%;
	font-weight: 700; font-size: 1.3rem;
	transition: transform .2s ease;
}
.step:hover .step__num { transform: scale(1.06) rotate(-4deg); }

.step:nth-child(1) .step__num { background: var(--pink); color: var(--pink-ink); box-shadow: 0 10px 22px rgba(255, 194, 220, .55); }
.step:nth-child(2) .step__num { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 10px 22px rgba(255, 223, 148, .55); }
.step:nth-child(3) .step__num { background: var(--mint); color: var(--mint-ink); box-shadow: 0 10px 22px rgba(180, 236, 212, .6); }
.step:nth-child(4) .step__num { background: var(--blue); color: var(--blue-ink); box-shadow: 0 10px 22px rgba(185, 220, 255, .6); }

.feature__icon {
	display: grid; place-items: center;
	width: 44px; height: 44px; margin-bottom: 16px;
	border-radius: 13px;
}
.feature__icon { width: 50px; height: 50px; border-radius: 16px; }
.feature__icon.tone-1 { background: var(--blue); color: var(--blue-ink); }
.feature__icon.tone-2 { background: var(--pink); color: var(--pink-ink); }
.feature__icon.tone-3 { background: var(--yellow); color: var(--yellow-ink); }
.feature__icon.tone-4 { background: var(--mint); color: var(--mint-ink); }

.card--feature { height: 100%; }

/* ═══════════════════════════ محاسبه‌گر ═══════════════════════════ */

.calc {
	display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: end;
	background: var(--bg); border: 1px solid var(--border);
	border-radius: 18px; box-shadow: 0 2px 4px rgba(20,24,31,.04), 0 18px 44px rgba(14,49,112,.07);
	padding: 28px; max-width: 740px; margin-inline: auto;
}
.calc__eq { display: grid; place-items: center; color: var(--primary); padding-bottom: 12px; }
.calc label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.calc input, .calc output {
	display: block; width: 100%;
	padding: 12px 14px;
	font: inherit; font-size: 1.05rem; font-weight: 600;
	border: 1px solid var(--border); border-radius: var(--r-control);
	background: var(--bg); color: var(--text);
}
.calc output {
	background: linear-gradient(135deg, var(--yellow), #ffeec2);
	border-color: transparent; color: var(--yellow-ink); font-weight: 700;
}
.calc__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .78rem; color: var(--muted); }

/* ═══════════════════════════ تعرفه ═══════════════════════════ */

.pricing-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--bg); }
.pricing-table th, .pricing-table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--border); }
.pricing-table thead th { background: var(--surface); font-size: .85rem; color: var(--muted); }
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border); border-radius: var(--r-card);
	max-width: 860px; margin-inline: auto;
	background: var(--bg);
	box-shadow: 0 10px 30px rgba(20, 24, 31, .05);
}
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table__price { color: var(--primary-deep); font-weight: 600; white-space: nowrap; }

/* ═══════════════════════════ نظرات ═══════════════════════════ */

.quote {
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--r-card); padding: 26px; margin: 0;
	display: flex; flex-direction: column; height: 100%;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.quote:hover { border-color: #d3dcea; box-shadow: var(--shadow); transform: translateY(-2px); }
.quote__stars { display: flex; gap: 2px; color: #f5a623; margin-bottom: 12px; }
.quote p { font-size: .95rem; color: var(--text); flex: 1; }
.quote footer { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.quote__avatar {
	display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; font-weight: 700;
}
.quote__avatar.tone-1 { background: var(--pink); color: var(--pink-ink); }
.quote__avatar.tone-2 { background: var(--yellow); color: var(--yellow-ink); }
.quote__avatar.tone-3 { background: var(--mint); color: var(--mint-ink); }
.quote__avatar.tone-4 { background: var(--blue); color: var(--blue-ink); }

/* ═══════════════════════════ پرسش‌های متداول ═══════════════════════════ */

.faq { max-width: 760px; margin-inline: auto; }
.faq details {
	background: var(--bg); border: 2px solid transparent;
	border-radius: 18px; margin-bottom: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20, 24, 31, .04);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--mint); box-shadow: 0 10px 26px rgba(18, 121, 90, .10); }
.faq details:hover { border-color: var(--mint); }
.faq summary {
	list-style: none; cursor: pointer;
	padding: 16px 20px;
	font-weight: 600; font-size: .97rem;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	display: grid; place-items: center; flex-shrink: 0;
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--mint-soft); color: var(--mint-ink);
	font-size: 1.2rem; line-height: 1;
	transition: transform .18s ease, background-color .18s ease;
}
.faq details[open] summary::after { background: var(--mint); transform: rotate(180deg); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--mint-soft); }
.faq .faq__body { padding: 16px 20px; color: var(--muted); font-size: .92rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ═══════════════════════════ CTA پایانی ═══════════════════════════ */

.cta {
	position: relative; overflow: hidden;
	text-align: center;
	background: linear-gradient(120deg, var(--pink-soft) 0%, var(--yellow-soft) 48%, var(--blue-soft) 100%);
	border-radius: 28px;
	padding: clamp(42px, 5.5vw, 70px) 24px;
	color: var(--text);
}
.cta__shape {
	position: absolute; inset-inline-end: -70px; top: -80px;
	width: 280px; height: 280px; border-radius: 50%;
	background: rgba(255, 194, 220, .55);
	filter: blur(14px);
	animation: mkht-drift 18s ease-in-out infinite;
}
.cta::after {
	content: "";
	position: absolute; inset-inline-start: -60px; bottom: -90px;
	width: 240px; height: 240px; border-radius: 50%;
	background: rgba(180, 236, 212, .5);
	filter: blur(14px);
}
.cta h2 { position: relative; margin-bottom: 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta p { position: relative; color: var(--muted); max-width: 470px; margin: 0 auto 26px; }
.cta .btn { position: relative; }

/* ═══════════════════════════ محتوای برگه و نوشته ═══════════════════════════ */

.page-hero { padding: 40px 0 8px; }
.page-hero h1 {
	margin-bottom: 6px;
	/* تیتر صفحات داخلی حدود ۲۰٪ کوچک‌تر از تیتر اصلی سایت است. */
	font-size: clamp(1.36rem, 3.36vw, 2rem);
}
.page-hero p { color: var(--muted); margin: 0; }

.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-current] { color: var(--text); }

.entry-content { padding-bottom: 56px; }
.entry-content > * { max-width: 720px; margin-inline: auto; }

/* برگه‌های دوستونی و پنل، عرض کامل می‌گیرند و متن وسط صفحه شناور نمی‌شود. */
.entry-content--app { padding-bottom: 0; }
.entry-content--app > *, .entry-content--app .container { max-width: var(--container); }
.app-main > *, .app-main .page-body > * { max-width: none; margin-inline: 0; }

.page-head { margin-bottom: 22px; }
.page-head h1 {
	margin-bottom: 0;
	font-size: clamp(1.36rem, 3.36vw, 2rem);
}

.page-body {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
	padding: clamp(22px, 3vw, 34px);
}
.page-body > :first-child { margin-top: 0; }
.page-body > :last-child { margin-bottom: 0; }
.page-body h2 {
	font-size: 1.3rem;
	margin-top: 30px;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var(--yellow);
	border-radius: 2px;
}
.page-body h3 { font-size: 1.05rem; margin-top: 22px; color: var(--primary-deep); }
.entry-content h2 { margin-top: 34px; }
.entry-content h3 { margin-top: 24px; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; }
.entry-content .app-points { padding-inline: 0; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
	margin: 24px auto; padding: 14px 20px;
	border-inline-start: 3px solid var(--primary); background: var(--surface);
	border-radius: 0 var(--r-control) var(--r-control) 0;
	color: var(--muted);
}
.entry-content img, .entry-content figure { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; }
.entry-content code {
	background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em;
}

.entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }

/* فرم تماس */
.contact-panel {
	margin-top: 28px;
	padding: clamp(20px, 3vw, 32px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-card);
}
.contact-form { position: relative; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.contact-form .form-field { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.contact-form input,
.contact-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	font: inherit;
	font-size: .95rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--r-control);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); outline-offset: 1px; }
.contact-form__privacy { color: var(--muted); font-size: .82rem; }
.contact-form__trap {
	position: absolute;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.contact-notice { margin-bottom: 18px; padding: 12px 15px; border-radius: var(--r-control); font-weight: 600; }
.contact-notice--success { color: var(--accent-deep); background: var(--accent-soft); }
.contact-notice--error { color: #8b2332; background: #fde8eb; }

@media (max-width: 640px) {
	.contact-form__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════ آرشیو ═══════════════════════════ */

.post-card {
	display: flex; flex-direction: column;
	background: var(--bg); border: 1px solid var(--border);
	border-radius: var(--r-card); overflow: hidden;
}
.post-card img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__body { padding: 20px; }
.post-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 34px 0; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: .9rem;
}
.pagination .current { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }

/* ═══════════════════════════ فوتر ═══════════════════════════ */

.site-footer {
	background: linear-gradient(180deg, var(--page), var(--blue-tint));
	border-top: 1px solid var(--border);
	padding: 52px 0 0;
	margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-col h3 { font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: .88rem; }
.footer-col p { margin: 0 0 10px; }

.footer-wa-card {
	display: flex; align-items: center; gap: 10px;
	padding: 11px 12px;
	background: rgba(255, 255, 255, .78);
	border: 1px solid #cde8da;
	border-radius: 14px;
	color: var(--text);
	transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.footer-wa-card:hover {
	background: var(--bg); border-color: var(--accent); color: var(--text);
	text-decoration: none; transform: translateY(-1px);
}
.footer-wa-card__icon {
	display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
	border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep);
}
.footer-wa-card__copy { display: grid; min-width: 0; line-height: 1.45; }
.footer-wa-card__copy strong { color: var(--text); font-size: .84rem; }
.footer-wa-card__copy small { color: var(--muted); font-size: .78rem; direction: ltr; text-align: right; }
.footer-wa-card__arrow { margin-inline-start: auto; color: var(--accent-deep); font-size: 1rem; }
.footer-hours { margin-top: 9px !important; font-size: .8rem !important; }

.socials { display: flex; gap: 8px; }
.socials a {
	display: grid; place-items: center; width: 38px; height: 38px;
	background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
	color: var(--text);
}
.socials a:hover { background: var(--primary-soft); color: var(--primary-deep); }

.credit {
	display: inline-flex; align-items: center;
	line-height: 0;
	opacity: .8;
	transition: opacity .16s ease, transform .16s ease;
}
a.credit:hover { opacity: 1; transform: translateY(-2px); text-decoration: none; }
.credit img { display: block; width: 30px; height: 30px; border-radius: 8px; }

.site-footer__bottom {
	margin-top: 40px; padding: 18px 0;
	border-top: 1px solid var(--border);
	color: var(--muted); font-size: .82rem;
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ═══════════════════════════ ریسپانسیو ═══════════════════════════ */

@media (max-width: 1040px) {
	.hero__grid { grid-template-columns: 1fr; gap: 34px; }
	.hero__copy { text-align: center; }
	.hero__lead { margin-inline: auto; }
	.hero__facts { justify-content: center; }
	.hero .mkh-linkbox { margin-inline: auto; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
	.step:nth-child(2)::after { display: none; }
}

@media (max-width: 980px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.app-layout { grid-template-columns: minmax(0, 1fr); }
	.app-main, .app-aside { grid-column: 1; }
	.app-aside { position: static; }
	.app-aside__intro { display: none; }
	.app-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.app-points li { margin: 0; }
}

@media (max-width: 900px) {
	.topbar__item:not(.topbar__item--hide-sm) { font-size: .74rem; }
	.topbar__item--hide-sm, .topbar__sep { display: none; }

	.brand { order: 1; }
	.brand img, .brand .custom-logo,
	.site-header.is-stuck .brand img,
	.site-header.is-stuck .brand .custom-logo { height: 40px; }

	.site-header__inner,
	.site-header.is-stuck .site-header__inner { min-height: 72px; }
	.site-header__inner { flex-wrap: wrap; gap: 10px; }

	/* در RTL: لوگو راست، اکشن‌ها کنار هم و همبرگر در چپ‌ترین نقطه. */
	.nav-toggle { display: inline-flex; margin-inline-start: 0; order: 3; }
	.header-cta { order: 2; margin-inline-start: auto; gap: 8px; }
	.nav {
		position: static; transform: none;
		display: none; order: 10; width: 100%; margin-inline-start: 0;
		padding-bottom: 14px; border-top: 1px solid var(--border); padding-top: 10px;
	}
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav a { padding: 12px 14px; }
	.nav .current-menu-item > a::after { inset-inline: auto; width: 3px; height: 60%; top: 20%; bottom: auto; inset-inline-start: 0; }
	.header-cta .header-profile span { display: none; }
	.grid--3, .grid--2 { grid-template-columns: 1fr; }
	.calc { grid-template-columns: 1fr; }
	.calc__eq { display: none; }
}

@media (max-width: 660px) {
	.strip__grid { grid-template-columns: repeat(2, 1fr); }
	.strip__item:nth-child(3) { border-inline-start: 0; }
	.strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
	.steps { grid-template-columns: 1fr; }
	.step::after { display: none; }
	.calc { grid-template-columns: 1fr; }
	.calc__eq { transform: rotate(-90deg); padding: 0; }
	.app-points { grid-template-columns: minmax(0, 1fr); }
	.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 560px) {
	.topbar__inner { gap: 8px; padding-inline: 14px; }
	/* لینک‌های پیگیری/واتساپ در منو و فوتر موجودند؛ اینجا باعث سرریز هدر باریک می‌شدند. */
	.topbar__end { display: none; }
	.site-header__inner { gap: 7px; padding-inline: 14px; }
	.brand img, .brand .custom-logo,
	.site-header.is-stuck .brand img,
	.site-header.is-stuck .brand .custom-logo { height: 36px; }
	.nav-toggle { width: 40px; height: 40px; }
	.header-cta { gap: 5px; }
	.header-cta .btn { min-height: 40px; padding: 7px 10px; }
	.header-cta .header-profile { width: 40px; padding-inline: 0; }
	.grid--4 { grid-template-columns: 1fr; }
	.site-footer { padding-top: 36px; margin-top: 30px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
	.footer-col--brand, .footer-col--contact { grid-column: 1 / -1; }
	.footer-col--brand { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
	.footer-col h3 { margin-bottom: 9px; }
	.footer-col li { margin-bottom: 4px; }
	.footer-col li a { display: inline-flex; align-items: center; min-height: 34px; }
	.footer-wa-card { min-height: 64px; padding: 11px 13px; }
	.site-footer__bottom {
		margin-top: 28px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
		justify-content: center; text-align: center; gap: 8px;
	}
	.site-footer__bottom > span { flex-basis: 100%; }
	.section { padding: 40px 0; }
}

@media (max-width: 360px) {
	.header-cta .header-order { width: 40px; padding-inline: 0; }
	.header-cta .header-order span { display: none; }
}

/* ═══════════════════════════ ظاهر شدن نرم ═══════════════════════════ */

/* بدون جاوااسکریپت هیچ‌چیز مخفی نمی‌ماند. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* هدر چسبان نباید روی هدف اسکرول بیفتد */
.mkh, .app-main, [id] { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
