/* Home Fix Landing — همه قواعد زیر .hf-landing محدود شده‌اند تا با قالب تداخل نکنند. */

@font-face {
	font-family: "Vazirmatn";
	src: local("Vazirmatn"), url("fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

.hf-landing {
	--hf-navy: #0e2a47;
	--hf-blue: #1a5fb4;
	--hf-blue-2: #1f6fc5;
	--hf-sky: #bfd9f5;
	--hf-tint: #e8f1fb;
	--hf-bg: #f3f6fa;
	--hf-text: #1d2733;
	--hf-muted: #4a5868;
	--hf-line: #d9e2ec;
	--hf-field: #b8c4d2;
	--hf-err: #b42318;

	direction: rtl;
	text-align: right;
	font-family: "Vazirmatn", "IRANSansX", "IRANSans", Tahoma, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.9;
	color: var(--hf-text);
	background: #fff;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
}

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

.hf-landing h1,
.hf-landing h2,
.hf-landing h3,
.hf-landing p,
.hf-landing ul,
.hf-landing ol,
.hf-landing dl,
.hf-landing dd {
	margin: 0;
	padding: 0;
}

.hf-landing h1,
.hf-landing h2,
.hf-landing h3 {
	font-family: inherit;
	color: var(--hf-navy);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}

.hf-landing ul,
.hf-landing ol {
	list-style: none;
}

.hf-landing a {
	color: var(--hf-blue-2);
	text-decoration: none;
	box-shadow: none;
}

.hf-landing a:hover {
	color: var(--hf-navy);
}

.hf-landing img {
	max-width: 100%;
	height: auto;
}

.hf-landing .hf-icon {
	flex: none;
	display: block;
}

.hf-landing :focus-visible {
	outline: 3px solid var(--hf-blue-2);
	outline-offset: 2px;
}

.hf-landing--bleed {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* چیدمان */
.hf-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.hf-container--narrow {
	max-width: 860px;
}

.hf-section {
	padding-block: 72px;
	scroll-margin-top: 80px;
}

.hf-section--alt {
	background: var(--hf-bg);
}

.hf-section--tint {
	background: var(--hf-tint);
}

.hf-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 70ch;
	margin-bottom: 36px;
}

.hf-head h2,
.hf-about__text h2,
.hf-cta h2 {
	font-size: clamp(26px, 3.6vw, 36px);
	line-height: 1.55;
}

.hf-head p {
	color: var(--hf-muted);
}

/* دکمه‌ها */
.hf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 14px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.hf-btn--sm {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
	border-radius: 12px;
}

.hf-btn--primary,
.hf-landing a.hf-btn--primary {
	background: var(--hf-blue);
	color: #fff;
}

.hf-btn--primary:hover,
.hf-landing a.hf-btn--primary:hover {
	background: var(--hf-navy);
	color: #fff;
}

.hf-btn--primary:disabled {
	background: #7d9cc4;
	cursor: not-allowed;
}

.hf-btn--ghost,
.hf-landing a.hf-btn--ghost {
	background: #fff;
	color: var(--hf-navy);
	border-color: var(--hf-navy);
}

.hf-btn--ghost:hover,
.hf-landing a.hf-btn--ghost:hover {
	background: var(--hf-tint);
	color: var(--hf-navy);
}

.hf-btn--light,
.hf-landing a.hf-btn--light {
	background: #fff;
	color: var(--hf-navy);
}

.hf-btn--light:hover,
.hf-landing a.hf-btn--light:hover {
	background: var(--hf-sky);
	color: var(--hf-navy);
}

.hf-btn--outline-light,
.hf-landing a.hf-btn--outline-light {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.hf-btn--outline-light:hover,
.hf-landing a.hf-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.hf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* هدر */
.hf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--hf-line);
}

body.admin-bar .hf-header {
	top: 32px;
}

.hf-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1200px;
	margin-inline: auto;
	padding: 10px 20px;
}

.hf-brand {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	color: var(--hf-navy);
}

.hf-brand img {
	display: block;
	width: auto;
	max-height: 46px;
}

.hf-brand__text {
	font-size: 20px;
	font-weight: 800;
	color: var(--hf-navy);
}

.hf-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.hf-nav a {
	padding: 8px 14px;
	border-radius: 10px;
	color: var(--hf-text);
	font-size: 16px;
	font-weight: 500;
}

.hf-nav a:hover {
	background: var(--hf-tint);
	color: var(--hf-navy);
}

.hf-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hf-menu-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--hf-line);
	border-radius: 12px;
	background: #fff;
	color: var(--hf-navy);
	cursor: pointer;
}

/* Hero */
.hf-hero {
	background: var(--hf-bg);
}

.hf-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	padding-block: 64px;
}

.hf-hero__text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.hf-hero h1 {
	font-size: clamp(30px, 5vw, 50px);
	line-height: 1.45;
}

.hf-lead {
	max-width: 58ch;
	font-size: 18px;
}

.hf-trust {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--hf-navy);
}

.hf-trust .hf-icon {
	margin-top: 5px;
	color: var(--hf-blue-2);
	stroke-width: 2;
}

.hf-hero__media {
	flex: 1 1 380px;
	min-width: 0;
}

.hf-hero__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 24px;
	background: var(--hf-tint);
	border: 1px solid var(--hf-sky);
	border-radius: 24px;
}

.hf-hero__panel svg {
	display: block;
	width: 100%;
	height: auto;
}

.hf-slot {
	padding: 6px 14px;
	border: 1.5px dashed var(--hf-navy);
	border-radius: 10px;
	background: #fff;
	color: var(--hf-navy);
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

.hf-slot--dark {
	background: transparent;
	color: #bcd3ec;
	border-color: #5c7c9e;
	text-align: right;
}

/* کارت‌های خدمات */
.hf-services {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.hf-card {
	flex: 1 1 250px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	background: #fff;
	border: 1.5px solid var(--hf-line);
	border-radius: var(--hf-radius, 18px);
	transition: border-color 0.15s;
}

.hf-card:hover {
	border-color: var(--hf-blue-2);
}

.hf-card__icon,
.hf-step__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--hf-tint);
	color: var(--hf-navy);
}

.hf-card h3 {
	font-size: 19px;
	line-height: 1.6;
}

.hf-card p {
	flex: 1;
	font-size: 16px;
	line-height: 1.85;
	color: var(--hf-muted);
}

.hf-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 16px;
	font-weight: 700;
}

/* مزیت‌ها */
.hf-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
}

.hf-benefit {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--hf-line);
	border-radius: 18px;
}

.hf-benefit > div {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hf-benefit__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hf-navy);
	color: #fff;
}

.hf-benefit h3 {
	font-size: 19px;
	line-height: 1.6;
}

.hf-benefit p {
	font-size: 16px;
	color: var(--hf-muted);
}

/* مراحل */
.hf-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 20px;
}

.hf-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 22px;
	background: #fff;
	border: 1.5px solid var(--hf-line);
	border-radius: 18px;
}

.hf-step__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hf-step__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.hf-step__num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--hf-blue-2);
}

.hf-step h3 {
	font-size: 18px;
	line-height: 1.6;
}

.hf-step p {
	font-size: 16px;
	color: var(--hf-muted);
}

/* رویکرد تخصصی */
.hf-about {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.hf-about__text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.hf-about__text p {
	max-width: 62ch;
}

.hf-about__aside {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--hf-sky);
	border-radius: 20px;
}

.hf-about__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--hf-navy);
}

.hf-about__aside ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-about__aside li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
}

.hf-about__aside .hf-icon {
	margin-top: 5px;
	color: var(--hf-blue-2);
	stroke-width: 2;
}

/* فرم */
.hf-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(20px, 4vw, 36px);
	background: #fff;
	border: 1px solid var(--hf-line);
	border-radius: 22px;
}

.hf-form__note {
	font-size: 14px;
	color: var(--hf-muted);
}

.hf-req {
	color: var(--hf-err);
	font-weight: 800;
}

.hf-opt {
	font-size: 14px;
	font-weight: 400;
	color: var(--hf-muted);
}

.hf-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

.hf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hf-field label {
	font-size: 16px;
	font-weight: 700;
	color: var(--hf-navy);
}

.hf-field input,
.hf-field select,
.hf-field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--hf-field);
	border-radius: 12px;
	background: #fff;
	color: var(--hf-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
	box-shadow: none;
}

.hf-field select {
	padding-inline: 10px;
}

.hf-field textarea {
	padding: 12px 14px;
	line-height: 1.8;
	resize: vertical;
}

.hf-field input[dir="ltr"] {
	text-align: right;
}

.hf-field [aria-invalid="true"] {
	border-color: var(--hf-err);
}

.hf-field__error {
	font-size: 14px;
	color: var(--hf-err);
}

.hf-trap {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hf-alert {
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 16px;
}

.hf-alert--error {
	background: #fdecea;
	border: 1px solid #f3b7b0;
	color: #8a1c12;
}

.hf-alert--success {
	background: var(--hf-tint);
	border: 1px solid var(--hf-sky);
	color: var(--hf-navy);
	font-weight: 700;
}

/* سوالات متداول */
.hf-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-faq {
	background: #fff;
	border: 1.5px solid var(--hf-line);
	border-radius: 16px;
	overflow: hidden;
}

.hf-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 12px 20px;
	list-style: none;
	cursor: pointer;
	color: var(--hf-navy);
}

.hf-faq summary::-webkit-details-marker {
	display: none;
}

.hf-faq summary h3 {
	font-size: 17px;
	line-height: 1.7;
}

.hf-faq summary .hf-icon {
	transition: transform 0.15s;
}

.hf-faq[open] summary .hf-icon {
	transform: rotate(180deg);
}

.hf-faq p {
	padding: 0 20px 18px;
	font-size: 16px;
	color: var(--hf-muted);
}

/* فراخوان نهایی */
.hf-cta {
	padding-block: 72px;
	background: var(--hf-navy);
	color: #fff;
	scroll-margin-top: 80px;
}

.hf-cta h2 {
	color: #fff;
}

.hf-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

.hf-cta__inner > p {
	max-width: 62ch;
	color: #dce8f6;
}

.hf-cta .hf-slogan {
	width: 100%;
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid #2d4a6b;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

/* فوتر */
.hf-footer {
	background: #08203a;
	color: #dce8f6;
	padding-block: 56px 28px;
}

.hf-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 32px;
	margin-bottom: 36px;
}

.hf-footer__grid > div {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-footer p,
.hf-footer li,
.hf-footer dd {
	font-size: 15px;
	line-height: 1.9;
}

.hf-footer__title {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
}

.hf-footer__title--brand {
	font-size: 20px;
}

.hf-footer__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hf-footer a {
	display: inline-block;
	padding: 4px 0;
	color: #dce8f6;
}

.hf-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.hf-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-contact__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hf-contact dt {
	font-size: 14px;
	color: #9cc2ee;
}

.hf-footer__copy {
	padding-top: 22px;
	border-top: 1px solid #1e3a58;
	font-size: 14px;
	color: #b9cbe0;
}

/* واکنش‌گرا */
@media (max-width: 900px) {
	.hf-nav {
		display: none;
	}

	.hf-nav.is-open {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 16px 16px;
		background: #fff;
		border-bottom: 1px solid var(--hf-line);
		box-shadow: 0 12px 24px rgba(14, 42, 71, 0.08);
	}

	.hf-nav.is-open a {
		padding: 12px 14px;
	}

	.hf-menu-btn {
		display: inline-flex;
	}

	.hf-hide-sm {
		display: none;
	}

	.hf-section {
		padding-block: 56px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .hf-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.hf-landing {
		font-size: 16px;
	}

	.hf-hero__inner {
		padding-block: 40px;
		gap: 32px;
	}

	.hf-section,
	.hf-cta {
		padding-block: 44px;
	}

	.hf-actions .hf-btn {
		flex: 1 1 100%;
	}

	.hf-header__actions .hf-btn--primary {
		padding: 0 14px;
		font-size: 14px;
	}

	.hf-footer {
		padding-block: 40px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hf-landing * {
		transition: none !important;
	}
}
