.fmhome {
	--fm-accent: #e85941;
	--fm-accent-2: #d14a34;
	--fm-dark: #2e3f50;
	--fm-dark-deep: #1a2832;
	--fm-text: #18191d;
	--fm-muted: #6b7a88;
	--fm-line: rgba(46, 63, 80, 0.1);
	--fm-radius: 18px;
	--fm-ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	max-width: var(--fm-site);
	margin-inline: auto;
	padding: 0 var(--fm-page-gutter) 3rem;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	direction: rtl;
	color: var(--fm-text);
	background: #fff;
	box-sizing: border-box;
}

.fmhome *,
.fmhome *::before,
.fmhome *::after {
	box-sizing: border-box;
}

.fmhome__section {
	margin-bottom: 2.5rem;
	width: 100%;
}

.fmhome__section--intro,
.fmhome__section--spotlight {
	overflow: visible;
}

.fmhome__section--intro {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

.fmhome__section--spotlight {
	padding-top: clamp(1rem, 2vw, 1.5rem);
}

.fmhome__section-head {
	margin-bottom: 1.35rem;
	text-align: center;
}

.fmhome__section-head--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	text-align: right;
}

.fmhome__eyebrow {
	display: inline-block;
	margin-bottom: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fm-accent);
}

.fmhome__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.8vw, 1.95rem);
	line-height: 1.45;
	color: var(--fm-dark);
}

.fmhome__lead {
	margin: 0;
	max-width: 68ch;
	font-size: 0.95rem;
	line-height: 1.95;
	color: var(--fm-muted);
}

.fmhome__lead--center {
	margin-inline: auto;
	text-align: center;
}

.fmhome__text {
	margin: 0.85rem 0 0;
	font-size: 0.92rem;
	line-height: 1.9;
	color: var(--fm-muted);
}

.fmhome__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.25rem;
}

.fmhome__actions--cta {
	margin-top: 0;
	justify-content: flex-end;
}

.fmhome__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.78rem 1.25rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: all var(--fm-ease);
	white-space: nowrap;
}

.fmhome__btn--primary {
	background: linear-gradient(135deg, var(--fm-accent), var(--fm-accent-2));
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(232, 89, 65, 0.22);
}

.fmhome__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(232, 89, 65, 0.28);
}

.fmhome__btn--ghost {
	background: #fff;
	color: var(--fm-dark) !important;
	border-color: var(--fm-line);
}

.fmhome__btn--ghost:hover {
	border-color: rgba(232, 89, 65, 0.35);
	color: var(--fm-accent) !important;
}

.fmhome__btn--light {
	background: #fff;
	color: var(--fm-dark) !important;
}

.fmhome__btn--light:hover {
	background: #f8fafc;
}

.fmhome__btn--outline-light {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.45);
}

.fmhome__btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
}

.fmhome__feature {
	display: grid;
	grid-template-columns: 1fr;
	position: relative;
	overflow: visible;
	border-radius: calc(var(--fm-radius) + 6px);
	isolation: isolate;
}

.fmhome__feature--light {
	background: #fff;
	border: 1px solid var(--fm-line);
	box-shadow: 0 18px 48px rgba(24, 25, 29, 0.06);
}

.fmhome__feature--dark {
	background:
		radial-gradient(circle at 12% 18%, rgba(232, 89, 65, 0.2), transparent 42%),
		linear-gradient(135deg, var(--fm-dark-deep), var(--fm-dark));
	color: #fff;
}

.fmhome__feature-content {
	position: relative;
	z-index: 2;
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	padding-inline-start: clamp(1.5rem, 3vw, 2.5rem);
	padding-inline-end: 0;
}

.fmhome__feature--dark .fmhome__feature-content {
	max-width: 720px;
}

.fmhome__feature-visual {
	position: relative;
	min-height: 260px;
	overflow: visible;
	align-self: stretch;
}

.fmhome__feature-bg-box {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	border-radius: 0 0 calc(var(--fm-radius) + 6px) calc(var(--fm-radius) + 6px);
	z-index: 1;
}

.fmhome__feature-bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fmhome__feature--light .fmhome__feature-bg {
	object-position: left center;
}

.fmhome__feature--dark .fmhome__feature-bg {
	object-position: left center;
	opacity: 0.92;
}

.fmhome__feature--light .fmhome__feature-figure {
	position: absolute;
	top: -10%;
	right: -26%;
	width: 66.5% !important;
	height: auto;
	z-index: 999;
	pointer-events: none;
}

.fmhome__feature--dark .fmhome__feature-figure {
	position: absolute;
	bottom: 0;
	right: -20%;
	width: 50% !important;
	height: auto;
	z-index: 999;
	pointer-events: none;
}

.fmhome__spotlight-tag {
	display: inline-block;
	margin-bottom: 0.65rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(232, 89, 65, 0.18);
	color: #ffb9aa;
	font-size: 0.76rem;
	font-weight: 700;
}

.fmhome__spotlight-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.5;
}

.fmhome__spotlight-text {
	margin: 0;
	max-width: 58ch;
	font-size: 0.92rem;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.82);
}

.fmhome__services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.fmhome__service {
	padding: 0;
	border-radius: var(--fm-radius);
	background: #fff;
	border: 1px solid var(--fm-line);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--fm-ease), box-shadow var(--fm-ease), border-color var(--fm-ease);
}

.fmhome__service:hover {
	transform: translateY(-4px);
	border-color: rgba(232, 89, 65, 0.22);
	box-shadow: 0 14px 34px rgba(24, 25, 29, 0.07);
}

.fmhome__service-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.fmhome__service-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 100%;
}

.fmhome__service-thumb {
	flex-shrink: 0;
	width: 100%;
	overflow: hidden;
	background: #f1f5f9;
	line-height: 0;
}

.fmhome__service-thumb img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: unset;
	object-position: center;
}

.fmhome__service-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.65rem;
	padding: 1.35rem 1.25rem 1.45rem;
}

.fmhome__service-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--fm-dark);
}

.fmhome__service-text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.85;
	color: var(--fm-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fmhome__service-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 0.52rem 1rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	color: var(--fm-accent) !important;
	background: rgba(232, 89, 65, 0.08);
	border: 1px solid rgba(232, 89, 65, 0.2);
	align-self: end;
	transition: background var(--fm-ease), color var(--fm-ease), border-color var(--fm-ease), transform var(--fm-ease);
}

.fmhome__service:hover .fmhome__service-more {
	background: linear-gradient(135deg, var(--fm-accent), var(--fm-accent-2));
	color: #fff !important;
	border-color: transparent;
	transform: translateY(-1px);
}

.fmhome__about {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding: 1.5rem;
	border-radius: calc(var(--fm-radius) + 4px);
	background: #fff;
	border: 1px solid var(--fm-line);
	box-shadow: 0 12px 40px rgba(24, 25, 29, 0.04);
}

.fmhome__about-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.fmhome__stat {
	display: grid;
	gap: 0.25rem;
	padding: 1rem 0.75rem;
	border-radius: 14px;
	background: linear-gradient(145deg, #f8fafc, #f1f5f9);
	border: 1px solid var(--fm-line);
	text-align: center;
}

.fmhome__stat strong {
	font-size: 1.2rem;
	color: var(--fm-accent);
}

.fmhome__stat span {
	font-size: 0.78rem;
	color: var(--fm-muted);
}

.fmhome__section--brands {
	padding: 1.5rem;
	border-radius: calc(var(--fm-radius) + 4px);
	background: linear-gradient(180deg, #f8fafc, #fff);
	border: 1px solid var(--fm-line);
}

.fmhome__brands {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}

.fmhome__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--fm-line);
	text-decoration: none;
	transition: transform var(--fm-ease), box-shadow var(--fm-ease);
}

.fmhome__brand:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(24, 25, 29, 0.06);
}

.fmhome__brand img {
	display: block;
	width: 109px;
	height: 120px;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
}

.fmhome__brand span {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--fm-dark);
	text-align: center;
}

.fmhome__deps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.fmhome__dep {
	padding: 1.2rem;
	border-radius: var(--fm-radius);
	background: #fff;
	border: 1px solid var(--fm-line);
	border-right: 3px solid var(--fm-accent);
}

.fmhome__dep h3 {
	margin: 0 0 0.5rem;
	font-size: 0.98rem;
	color: var(--fm-dark);
}

.fmhome__dep p {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.85;
	color: var(--fm-muted);
}

.fmhome__link-more {
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--fm-accent);
	text-decoration: none;
	white-space: nowrap;
}

.fmhome__link-more:hover {
	color: var(--fm-accent-2);
}

.fmhome__projects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.fmhome__project {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--fm-line);
	transition: transform var(--fm-ease), box-shadow var(--fm-ease);
}

.fmhome__project:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(24, 25, 29, 0.08);
}

.fmhome__project-media {
	display: block;
	background: #f1f5f9;
	overflow: hidden;
	line-height: 0;
}

.fmhome__project-media img {
	width: 100%;
	height: auto;
	object-fit: unset;
	object-position: center;
	display: block;
	transition: transform 0.35s ease;
}

.fmhome__project:hover .fmhome__project-media img {
	transform: scale(1.04);
}

.fmhome__project-body {
	padding: 0.9rem;
	display: grid;
	gap: 0.35rem;
}

.fmhome__project-title {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
}

.fmhome__project-title a {
	color: var(--fm-dark);
	text-decoration: none;
}

.fmhome__project-title a:hover {
	color: var(--fm-accent);
}

.fmhome__project-meta {
	font-size: 0.76rem;
	color: var(--fm-muted);
}

.fmhome__section--cta {
	margin-bottom: 0;
}

.fmhome__cta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: calc(var(--fm-radius) + 6px);
	background:
		radial-gradient(circle at 85% 15%, rgba(232, 89, 65, 0.2), transparent 40%),
		linear-gradient(135deg, var(--fm-dark), var(--fm-dark-deep));
	color: #fff;
}

.fmhome__cta-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	line-height: 1.5;
}

.fmhome__cta-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
	.fmhome__services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.fmhome__deps {
		grid-template-columns: repeat(2, 1fr);
	}

	.fmhome__brands {
		grid-template-columns: repeat(3, 1fr);
	}

	.fmhome__about-stats {
		gap: 0.75rem;
	}

	.fmhome__projects {
		gap: 1rem;
	}
}

@media (max-width: 991px) {
	.fmhome__feature {
		overflow: hidden;
	}

	.fmhome__feature-content {
		padding-inline: clamp(1.25rem, 4vw, 2rem);
		padding-block: clamp(1.35rem, 3vw, 2rem);
	}

	.fmhome__feature-visual {
		min-height: 220px;
		overflow: hidden;
	}

	.fmhome__feature-bg-box {
		border-radius: 0 0 calc(var(--fm-radius) + 6px) calc(var(--fm-radius) + 6px);
	}

	.fmhome__feature--light .fmhome__feature-figure {
		top: auto;
		bottom: -4%;
		right: -6%;
		width: min(58%, 280px) !important;
	}

	.fmhome__feature--dark .fmhome__feature-figure {
		right: -4%;
		width: min(48%, 240px) !important;
	}
}

@media (min-width: 992px) {
	.fmhome__feature {
		grid-template-columns: 1fr minmax(280px, 40%);
		align-items: stretch;
		overflow: visible;
	}

	.fmhome__feature-content {
		padding-block: clamp(2rem, 3.5vw, 2.75rem);
		padding-inline-start: clamp(2rem, 3.5vw, 3rem);
		padding-inline-end: 0;
	}

	.fmhome__feature-visual {
		min-height: 100%;
		overflow: visible;
	}

	.fmhome__feature-bg-box {
		border-radius: calc(var(--fm-radius) + 6px) 0 0 calc(var(--fm-radius) + 6px);
	}

	.fmhome__feature--light .fmhome__feature-bg-box,
	.fmhome__feature--dark .fmhome__feature-bg-box {
		border-radius: calc(var(--fm-radius) + 6px) 0 0 calc(var(--fm-radius) + 6px);
	}

	.fmhome__services {
		grid-template-columns: repeat(4, 1fr);
	}

	.fmhome__about {
		grid-template-columns: 1.3fr 0.7fr;
		align-items: center;
	}

	.fmhome__projects {
		grid-template-columns: repeat(4, 1fr);
	}

	.fmhome__cta {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.fmhome__brands {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 575px) {
	.fmhome__services,
	.fmhome__projects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.fmhome__brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.fmhome__brand {
		min-height: 0;
		aspect-ratio: 1 / 1;
		height: auto;
		padding: 0.85rem;
		width: 100%;
		box-sizing: border-box;
	}

	.fmhome__brand img {
		width: 100%;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: center;
	}

	.fmhome__brand:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		aspect-ratio: auto;
		min-height: 172px;
		padding: 1rem 1.25rem;
	}

	.fmhome__brand:last-child:nth-child(odd) img {
		width: auto;
		height: auto;
		max-width: min(280px, 82%);
		max-height: 150px;
		object-fit: contain;
	}

	.fmhome__about {
		padding: 1.1rem;
		gap: 1rem;
	}

	.fmhome__about-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.fmhome__stat {
		padding: 0.65rem 0.35rem;
		gap: 0.15rem;
	}

	.fmhome__stat strong {
		font-size: 0.95rem;
	}

	.fmhome__stat span {
		font-size: 0.65rem;
		line-height: 1.35;
	}

	.fmhome__about-content .fmhome__actions {
		justify-content: center;
		width: 100%;
	}

	.fmhome__feature-content .fmhome__actions {
		justify-content: center;
		width: 100%;
	}

	.fmhome__service-body {
		padding: 0.7rem 0.65rem 0.8rem;
		gap: 0.4rem;
	}

	.fmhome__service-title {
		font-size: 0.82rem;
		line-height: 1.45;
	}

	.fmhome__service-text {
		display: none;
	}

	.fmhome__service-more {
		padding: 0.4rem 0.65rem;
		font-size: 0.7rem;
		align-self: stretch;
		text-align: center;
	}

	.fmhome__project-body {
		padding: 0.65rem;
		gap: 0.25rem;
	}

	.fmhome__project-title {
		font-size: 0.78rem;
		line-height: 1.4;
	}

	.fmhome__project-meta {
		font-size: 0.68rem;
	}

	.fmhome__feature-visual {
		min-height: 180px;
	}

	.fmhome__feature--light .fmhome__feature-figure,
	.fmhome__feature--dark .fmhome__feature-figure {
		display: none;
	}

	.fmhome__section-head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.fmhome__actions--cta {
		justify-content: center;
		width: 100%;
	}

	.fmhome__actions--cta .fmhome__btn {
		flex: 1 1 auto;
		min-width: 0;
		white-space: normal;
		text-align: center;
	}

	.fmhome__btn {
		white-space: normal;
		padding: 0.65rem 0.95rem;
		font-size: 0.8rem;
	}
}

.elementor-widget-shortcode:has(.fmhome) .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
}
