/*!
 * قالب نفس — استایل اصلی
 *
 * فهرست:
 *  1. توکن‌های طراحی (رنگ، حروف، فاصله)
 *  2. پایه و ریست
 *  3. چیدمان (کانتینر، بخش، شبکه)
 *  4. دکمه، برچسب، کارت، فرم
 *  5. هدر و منوی موبایل
 *  6. فوتر و نوار ثابت موبایل
 *  7. هیروی صفحه‌ی نخست
 *  8. محتوای مقاله‌ها و صفحه‌ها
 *  9. راهنمای طراحی
 * 10. المنتور و حرکت
 *
 * قواعد: همه‌جا از ویژگی‌های منطقی (inline/block) استفاده می‌شود تا راست‌چین خودکار درست باشد.
 * برای حروف فارسی هرگز letter-spacing نگذارید؛ اتصال حروف را می‌شکند.
 */

/* ============ 1. توکن‌ها ============ */
:root {
	/* رنگ‌ها. منبع اصلی theme.json است؛ این‌ها فقط نام کوتاه هستند. */
	--nf-charcoal: var(--wp--preset--color--charcoal, #212121);
	--nf-gold: var(--wp--preset--color--gold, #d1ae6e);
	--nf-gold-light: #e3c98f;
	--nf-gold-ink: var(--wp--preset--color--gold-ink, #8a6a2b);
	--nf-ivory: var(--wp--preset--color--ivory, #faf7f0);
	--nf-sand: var(--wp--preset--color--sand, #efe6d3);
	--nf-teal: var(--wp--preset--color--teal, #2f5d62);
	--nf-muted: var(--wp--preset--color--muted, #5b5b5b);
	--nf-white: #fff;
	--nf-line: rgba(33, 33, 33, 0.14);

	--nf-font: var(--wp--preset--font-family--vazirmatn, Vazirmatn, Tahoma, system-ui, sans-serif);

	/* مقیاس حروف */
	--nf-fs-xs: 0.8125rem;
	--nf-fs-s: 0.9375rem;
	--nf-fs-m: 1.0625rem;
	--nf-fs-l: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	--nf-fs-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
	--nf-fs-2xl: clamp(1.85rem, 1.4rem + 1.9vw, 2.75rem);
	--nf-fs-3xl: clamp(2.2rem, 1.5rem + 3vw, 3.9rem);

	/* شعاع گوشه: هر نقش اندازه‌ی خودش را دارد */
	--nf-r-s: 8px;
	--nf-r-m: 14px;
	--nf-r-l: 28px;
	--nf-r-pill: 999px;

	/* چیدمان */
	--nf-container: 1200px;
	--nf-narrow: 46rem;
	--nf-gutter: clamp(1rem, 4.5vw, 2rem);
	--nf-section-y: clamp(3.5rem, 8vw, 6.5rem);
	--nf-header-h: 72px;

	--nf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--nf-toward-copy: right;
}
[dir="rtl"] { --nf-toward-copy: left; }

@media (min-width: 1024px) {
	:root { --nf-header-h: 80px; }
}

/* ============ 2. پایه ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-block-start: calc(var(--nf-header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--nf-font);
	font-size: var(--nf-fs-m);
	font-weight: 400;
	line-height: 1.9;
	color: var(--nf-charcoal);
	background: var(--nf-ivory);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.nf-lock { overflow: hidden; }

img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-weight: 800;
	line-height: 1.4;
	text-wrap: balance;
}
h1 { font-size: var(--nf-fs-3xl); }
h2 { font-size: var(--nf-fs-2xl); }
h3 { font-size: var(--nf-fs-xl); }
h4 { font-size: var(--nf-fs-l); }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
	color: var(--nf-teal);
	text-underline-offset: 0.25em;
	text-decoration-thickness: 0.08em;
}
a:hover { color: var(--nf-charcoal); }

:focus-visible {
	outline: 3px solid var(--nf-teal);
	outline-offset: 3px;
	border-radius: 4px;
}
.site-footer :focus-visible,
.nf-drawer :focus-visible,
.nf-stickybar :focus-visible,
.nf-announce :focus-visible { outline-color: var(--nf-gold); }

::selection { background: var(--nf-gold); color: var(--nf-charcoal); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	inset-block-start: 0.75rem; inset-inline-start: 0.75rem;
	z-index: 1000;
	width: auto; height: auto; margin: 0; padding: 0.75rem 1.25rem;
	clip: auto; clip-path: none;
	background: var(--nf-charcoal); color: var(--nf-ivory);
	border-radius: var(--nf-r-s);
}

.nf-icon { flex: none; }

/* ============ 3. چیدمان ============ */
.nf-container {
	width: min(100% - 2 * var(--nf-gutter), var(--nf-container));
	margin-inline: auto;
}
.nf-container--narrow { width: min(100% - 2 * var(--nf-gutter), var(--nf-narrow)); }

.site-main { min-height: 60vh; }
.site-main:focus { outline: none; }

.nf-section { padding-block: var(--nf-section-y); }
.nf-section--sand { background: var(--nf-sand); }
.nf-section--dark {
	background: var(--nf-charcoal);
	color: var(--nf-ivory);
}
.nf-section--dark h1,
.nf-section--dark h2,
.nf-section--dark h3 { color: var(--nf-ivory); }

.nf-section__head { max-width: 44rem; margin-block-end: clamp(1.75rem, 4vw, 3rem); }
.nf-section__head--center { margin-inline: auto; text-align: center; }
.nf-section__lead { font-size: var(--nf-fs-l); color: var(--nf-muted); }

.nf-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.nf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.nf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.nf-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.nf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.nf-meta { font-size: var(--nf-fs-s); color: var(--nf-muted); margin: 0; }
.nf-empty { text-align: center; }

/* ============ 4. اجزا ============ */

/* --- دکمه --- */
.nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.65em 1.6em;
	border: 2px solid transparent;
	border-radius: var(--nf-r-pill);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--nf-ease), color 0.25s var(--nf-ease), border-color 0.25s var(--nf-ease);
}
.nf-btn--gold { background: var(--nf-gold); color: var(--nf-charcoal); }
.nf-btn--gold:hover { background: var(--nf-gold-light); color: var(--nf-charcoal); }
.nf-btn--dark { background: var(--nf-charcoal); color: var(--nf-ivory); }
.nf-btn--dark:hover { background: #3a3a3a; color: var(--nf-ivory); }
.nf-btn--outline { background: transparent; border-color: var(--nf-charcoal); color: var(--nf-charcoal); }
.nf-btn--outline:hover { background: var(--nf-charcoal); color: var(--nf-ivory); }
.nf-btn--outline-light { background: transparent; border-color: rgba(250, 247, 240, 0.5); color: var(--nf-ivory); }
.nf-btn--outline-light:hover { background: var(--nf-ivory); color: var(--nf-charcoal); }
.nf-btn--sm { min-height: 40px; padding: 0.4em 1.15em; font-size: var(--nf-fs-s); }
.nf-btn--lg { min-height: 56px; padding: 0.8em 2em; font-size: 1.0625rem; }

/* --- برچسب --- */
.nf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	padding: 0.2em 0.9em;
	border-radius: var(--nf-r-pill);
	background: var(--nf-sand);
	color: var(--nf-charcoal);
	font-size: var(--nf-fs-xs);
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;
}
.nf-badge--gold { background: var(--nf-gold); }
.nf-badge--teal { background: var(--nf-teal); color: #fff; }
.nf-badge--dark { background: var(--nf-charcoal); color: var(--nf-ivory); }

/* --- کارت --- */
.nf-card {
	display: flex;
	flex-direction: column;
	background: var(--nf-white);
	border: 1px solid var(--nf-line);
	border-radius: var(--nf-r-m);
	overflow: hidden;
}
.nf-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nf-sand);
}
.nf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--nf-ease); }
.nf-card:hover .nf-card__media img { transform: scale(1.04); }
.nf-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--nf-gold-ink); }
.nf-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.nf-card__title { margin: 0; font-size: var(--nf-fs-l); }
.nf-card__title a { color: inherit; text-decoration: none; }
.nf-card__title a:hover { color: var(--nf-teal); text-decoration: underline; }
.nf-card__text { margin: 0; color: var(--nf-muted); font-size: var(--nf-fs-s); }
.nf-card__body .nf-meta { margin-block-start: auto; }

/* --- فرم --- */
.nf-form label,
.nf-search label:not(.screen-reader-text) { display: block; margin-block-end: 0.35rem; font-weight: 600; font-size: var(--nf-fs-s); }
.nf-form p { margin-block-end: 1.1rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], input[type="password"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--nf-charcoal);
	background: var(--nf-white);
	border: 1.5px solid var(--nf-line);
	border-radius: var(--nf-r-m);
	transition: border-color 0.2s var(--nf-ease), box-shadow 0.2s var(--nf-ease);
}
textarea { min-height: 7rem; }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--nf-teal);
	box-shadow: 0 0 0 3px rgba(47, 93, 98, 0.2);
}

.nf-search { display: flex; gap: 0.5rem; max-width: 28rem; margin-inline: auto; margin-block-start: 1.5rem; }
.nf-search input { flex: 1; }

/* --- آیکن‌دکمه --- */
.nf-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s var(--nf-ease);
}
.nf-iconbtn:hover { background: var(--nf-sand); color: inherit; }

/* --- صفحه‌بندی --- */
.nf-pagination { margin-block-start: 2.5rem; }
.nf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.nf-pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; min-height: 44px; padding-inline: 0.9rem;
	border-radius: var(--nf-r-pill);
	border: 1.5px solid var(--nf-line);
	color: var(--nf-charcoal);
	text-decoration: none;
	font-weight: 600;
}
.nf-pagination .page-numbers.current,
.nf-pagination .page-numbers:hover { background: var(--nf-charcoal); border-color: var(--nf-charcoal); color: var(--nf-ivory); }

/* ============ 5. هدر ============ */
.nf-announce {
	padding: 0.5rem var(--nf-gutter);
	background: var(--nf-charcoal);
	color: var(--nf-ivory);
	font-size: var(--nf-fs-s);
	text-align: center;
	line-height: 1.6;
}
.nf-announce a { color: var(--nf-gold); }
.nf-announce a:hover { color: var(--nf-gold-light); }

.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: rgba(250, 247, 240, 0.94);
	border-block-end: 1px solid transparent;
	transition: border-color 0.3s var(--nf-ease), background-color 0.3s var(--nf-ease);
}
@supports (backdrop-filter: blur(1px)) {
	.site-header { background: rgba(250, 247, 240, 0.86); backdrop-filter: saturate(1.3) blur(14px); }
}
.site-header.is-scrolled { border-color: var(--nf-line); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--nf-header-h);
}

/* برند */
.nf-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: inherit;
	text-decoration: none;
	margin-inline-end: auto;
}
.nf-brand:hover { color: inherit; }
.nf-brand__mark { width: 44px; height: 44px; }
.nf-brand__logo { width: auto; height: 48px; max-width: 200px; object-fit: contain; }
.nf-brand__logo.is-inverted { filter: brightness(0) invert(1); }
.nf-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.nf-brand__name { font-weight: 800; font-size: 1.125rem; }
.nf-brand__latin { font-size: 0.75rem; color: var(--nf-gold-ink); font-weight: 500; }
.nf-drawer .nf-brand__latin,
.site-footer .nf-brand__latin { color: var(--nf-gold); }

/* منوی دسکتاپ */
.nf-nav { display: none; }
.nf-nav__list, .nf-drawer__list, .site-footer__list {
	list-style: none; margin: 0; padding: 0;
}

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__cta { display: none; }

@media (min-width: 1024px) {
	.nf-brand { margin-inline-end: 0; }
	.nf-nav { display: block; flex: 1; }
	.nf-nav__list { display: flex; justify-content: center; gap: 0.25rem; }
	.nf-nav__list > li { position: relative; }
	.nf-nav__list a {
		display: block;
		padding: 0.5rem 0.95rem;
		border-radius: var(--nf-r-pill);
		color: var(--nf-charcoal);
		font-size: var(--nf-fs-s);
		font-weight: 600;
		text-decoration: none;
		transition: background-color 0.2s var(--nf-ease);
	}
	.nf-nav__list a:hover,
	.nf-nav__list .current-menu-item > a,
	.nf-nav__list .current-menu-ancestor > a { background: var(--nf-sand); }

	/* زیرمنو */
	.nf-nav__list .sub-menu {
		position: absolute;
		inset-block-start: 100%;
		inset-inline-start: 0;
		min-width: 15rem;
		margin: 0; padding: 0.5rem;
		list-style: none;
		background: var(--nf-white);
		border: 1px solid var(--nf-line);
		border-radius: var(--nf-r-m);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s var(--nf-ease), transform 0.2s var(--nf-ease), visibility 0s 0.2s;
	}
	.nf-nav__list .menu-item-has-children:hover > .sub-menu,
	.nf-nav__list .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
	}
	.nf-nav__list .sub-menu a { border-radius: var(--nf-r-s); }

	.site-header__cta { display: inline-flex; }
	.nf-burger { display: none; }
}

/* منوی موبایل: تمام‌صفحه و تیره */
.nf-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	padding: 0 var(--nf-gutter) 1.5rem;
	overflow-y: auto;
	background: var(--nf-charcoal);
	color: var(--nf-ivory);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s var(--nf-ease), transform 0.3s var(--nf-ease), visibility 0s 0.3s;
}
.nf-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nf-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--nf-header-h); }
.nf-drawer .nf-iconbtn:hover { background: rgba(250, 247, 240, 0.12); }
.nf-drawer__nav { margin-block: 1rem; }
.nf-drawer__list a {
	display: block;
	padding: 0.85rem 0;
	border-block-end: 1px solid rgba(250, 247, 240, 0.14);
	color: var(--nf-ivory);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}
.nf-drawer__list a:hover { color: var(--nf-gold); }
.nf-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; padding-inline-start: 1rem; }
.nf-drawer__list .sub-menu a { font-size: 1.05rem; font-weight: 500; opacity: 0.85; padding-block: 0.6rem; }
.nf-drawer__foot { display: grid; gap: 1.25rem; margin-block-start: auto; padding-block-start: 1.5rem; }
.nf-drawer__contact { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.nf-drawer__contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--nf-ivory); text-decoration: none; }
.nf-drawer__contact a:hover { color: var(--nf-gold); }
@media (min-width: 1024px) { .nf-drawer { display: none; } }

/* ============ 6. فوتر ============ */
.site-footer {
	padding-block-start: clamp(3rem, 7vw, 5rem);
	background: var(--nf-charcoal);
	color: rgba(250, 247, 240, 0.8);
	font-size: var(--nf-fs-s);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--nf-gold); }
.site-footer .nf-brand { color: var(--nf-ivory); }

.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; } }

.site-footer__brand p { margin-block: 1rem; max-width: 22rem; }
.site-footer__social {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border: 1.5px solid rgba(250, 247, 240, 0.35);
	border-radius: 50%;
	transition: background-color 0.2s var(--nf-ease), border-color 0.2s var(--nf-ease), color 0.2s var(--nf-ease);
}
.site-footer__social:hover { background: var(--nf-gold); border-color: var(--nf-gold); color: var(--nf-charcoal); }

.site-footer__title { margin: 0 0 1rem; color: var(--nf-ivory); font-size: 1.05rem; font-weight: 700; }
.site-footer__list li + li { margin-block-start: 0.15rem; }
.site-footer__list a { display: inline-block; padding-block: 0.3rem; }

.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.site-footer__contact li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.7; }
.site-footer__contact .nf-icon { margin-block-start: 0.25rem; color: var(--nf-gold); }

.site-footer__bottom {
	margin-block-start: clamp(2.5rem, 6vw, 4rem);
	padding-block: 1.25rem;
	border-block-start: 1px solid rgba(250, 247, 240, 0.14);
	font-size: var(--nf-fs-xs);
}
.site-footer__bottom p { margin: 0; }

/* نوار ثابت پایین موبایل */
.nf-stickybar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 90;
	display: flex;
	gap: 0.6rem;
	padding: 0.65rem var(--nf-gutter) calc(0.65rem + env(safe-area-inset-bottom));
	background: rgba(33, 33, 33, 0.97);
}
.nf-stickybar .nf-btn { flex: 1; min-height: 48px; }
.nf-stickybar__call { flex: 0 0 52px !important; padding: 0; }
@media (max-width: 767.98px) {
	.has-sticky-cta { padding-block-end: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .nf-stickybar { display: none; } }

/* ============ 7. هیرو ============ */
.nf-hero {
	position: relative;
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
	overflow-x: clip;
}
.nf-hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .nf-hero__grid { grid-template-columns: 1.1fr 0.9fr; } }

.nf-hero__badge { margin-block-end: 1.25rem; padding: 0.35em 1em; border-radius: 1.25rem; font-size: var(--nf-fs-xs); line-height: 1.8; }
.nf-hero__badge .nf-icon { color: var(--nf-gold-ink); }
.nf-hero__title { max-width: 16em; margin-block-end: 0.5em; font-weight: 900; line-height: 1.3; }
.nf-hero__lead { max-width: 34rem; font-size: var(--nf-fs-l); color: var(--nf-muted); margin-block-end: 1.75rem; }
.nf-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.nf-hero__facts {
	display: flex; flex-wrap: wrap; gap: 1rem 2rem;
	margin: 2.25rem 0 0; padding: 0;
}
.nf-hero__facts > div { padding-inline-start: 0.9rem; border-inline-start: 2px solid var(--nf-gold); }
@media (max-width: 599.98px) {
	.nf-hero__actions .nf-btn { flex: 1 1 100%; }
	.nf-hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
	.nf-hero__facts > div:last-child { grid-column: 1 / -1; }
}
.nf-hero__facts dt { font-size: var(--nf-fs-xs); color: var(--nf-muted); line-height: 1.6; }
.nf-hero__facts dd { margin: 0; font-weight: 700; line-height: 1.6; }

/* صحنه: قاب نیم‌دایره + خطوط حامل */
.nf-hero__stage { position: relative; isolation: isolate; width: min(100%, 26rem); margin-inline: auto; padding-block: 1rem; }
@media (min-width: 900px) { .nf-hero__stage { width: min(100%, 27rem); } }

.nf-staff {
	position: absolute;
	inset-block-start: 8%;
	inset-inline-start: -70%;
	z-index: -1;
	width: 240%;
	max-width: none;
	height: 84%;
	overflow: visible;
	color: var(--nf-gold);
	pointer-events: none;
	/* خطوط سمت متن محو می‌شوند و سمت دیگر از لبه‌ی صفحه بیرون می‌روند */
	-webkit-mask-image: linear-gradient(to var(--nf-toward-copy), transparent 6%, #000 30%);
	mask-image: linear-gradient(to var(--nf-toward-copy), transparent 6%, #000 30%);
}
.nf-hero__frame { position: relative; margin: 0; }
.nf-hero__frame::after {
	content: "";
	position: absolute;
	inset: -0.85rem;
	border: 1.5px solid var(--nf-gold);
	border-radius: 999px 999px 2.25rem 2.25rem;
	pointer-events: none;
}
.nf-hero__img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--nf-sand);
	border-radius: 999px 999px 1.5rem 1.5rem;
}

/* ============ 8. محتوا ============ */
.nf-page__head { margin-block-end: 2rem; }
.nf-page__head h1 { margin-block: 0.6rem 0.5rem; font-size: var(--nf-fs-2xl); }
.nf-page__cover { margin: 0 0 2.5rem; }
.nf-page__cover img { width: 100%; border-radius: var(--nf-r-l); }

.entry-content { font-size: var(--nf-fs-m); }
.entry-content > * + * { margin-block-start: 1.25em; }
.entry-content h2, .entry-content h3 { margin-block-start: 2em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5rem; }
.entry-content li + li { margin-block-start: 0.35em; }
.entry-content img { border-radius: var(--nf-r-m); }
.entry-content figcaption { margin-block-start: 0.5rem; font-size: var(--nf-fs-s); color: var(--nf-muted); text-align: center; }
.entry-content blockquote {
	margin-inline: 0;
	padding: 0.5rem 1.5rem;
	border-inline-start: 4px solid var(--nf-gold);
	background: var(--nf-sand);
	border-radius: var(--nf-r-s);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--nf-fs-s); }
.entry-content th, .entry-content td { padding: 0.7rem 0.9rem; border: 1px solid var(--nf-line); text-align: start; }
.entry-content th { background: var(--nf-sand); }

.post-navigation { margin-block-start: 3rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--nf-line); }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; color: var(--nf-charcoal); text-decoration: none; font-weight: 700; }
.post-navigation a:hover { color: var(--nf-teal); }

/* ============ 9. راهنمای طراحی ============ */
.sg-title { margin-block: 3rem 1.25rem; padding-block-end: 0.5rem; border-block-end: 1px solid var(--nf-line); font-size: var(--nf-fs-xl); }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-block-end: 1rem; }
.sg-swatch {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 0.1rem;
	min-height: 8rem; padding: 0.9rem 1rem;
	background: var(--c); color: var(--on);
	border: 1px solid var(--nf-line);
	border-radius: var(--nf-r-m);
	font-size: var(--nf-fs-s);
	line-height: 1.5;
}
.sg-swatch span { font-size: var(--nf-fs-xs); opacity: 0.85; }
.sg-type h1, .sg-type h2, .sg-type h3 { margin-block-end: 0.3em; }

/* ============ 10. المنتور و حرکت ============ */
.elementor-page .site-main { min-height: 0; }
.elementor-editor-active .nf-stickybar { display: none; }
.elementor-editor-active.has-sticky-cta { padding-block-end: 0; }

/* تنها حرکت خودکار سایت: ورود هیرو. بدون جاوااسکریپت همه‌چیز از اول نمایش داده می‌شود. */
@keyframes nf-in { to { opacity: 1; transform: none; } }
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
@keyframes nf-rise { to { clip-path: inset(0 0 0 0 round 999px 999px 1.5rem 1.5rem); } }

.js .nf-hero [data-in] {
	opacity: 0;
	transform: translateY(14px);
	animation: nf-in 0.8s var(--nf-ease) forwards;
}
.js .nf-hero [data-in="1"] { animation-delay: 0.05s; }
.js .nf-hero [data-in="2"] { animation-delay: 0.15s; }
.js .nf-hero [data-in="3"] { animation-delay: 0.27s; }
.js .nf-hero [data-in="4"] { animation-delay: 0.38s; }
.js .nf-hero [data-in="5"] { animation-delay: 0.5s; }

.js .nf-hero__img {
	clip-path: inset(100% 0 0 0 round 999px 999px 1.5rem 1.5rem);
	animation: nf-rise 1.1s var(--nf-ease) 0.2s forwards;
}
.js .nf-staff path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: nf-draw 2.4s var(--nf-ease) forwards;
	animation-delay: calc(0.3s + var(--i, 0) * 0.14s);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}
