/*
Theme Name: Master ECU Footer
Description: استایل مستقل فوتر برای Hello Elementor
Version: 1.0.0
*/

/* =========================
   متغیرهای فوتر
========================= */
:root {
	--mef-navy-980: #060d18;
	--mef-navy-950: #08111f;
	--mef-navy-900: #0d1726;
	--mef-navy-850: #111d2d;
	--mef-blue-500: #3f8cff;
	--mef-blue-400: #64a2ff;
	--mef-cyan-400: #78d7e8;
	--mef-text: #eef4fb;
	--mef-muted: #9aa8ba;
	--mef-line: rgba(255,255,255,.09);
	--mef-container: 1240px;
	--mef-radius: 18px;
}

/* =========================
   پایه
========================= */
.me-footer-container {
	width: min(calc(100% - 40px), var(--mef-container));
	margin-inline: auto;
}

.me-site-footer {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 10% 5%, rgba(63,140,255,.10), transparent 34%),
		linear-gradient(180deg, var(--mef-navy-900), var(--mef-navy-980));
	color: var(--mef-text);
	font-family: inherit;
}

.me-site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.02) 50%, transparent 50.2%);
	background-size: 46px 46px;
	opacity: .22;
}

/* =========================
   CTA بالای فوتر
========================= */
.me-footer-cta {
	position: relative;
	z-index: 1;
	padding: 0 0 18px;
	transform: translateY(-1px);
}

.me-footer-cta__inner {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	padding: 38px 44px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 0 0 var(--mef-radius) var(--mef-radius);
	background:
		radial-gradient(circle at 85% 0%, rgba(120,215,232,.14), transparent 30%),
		linear-gradient(135deg, rgba(100,162,255,.12), rgba(255,255,255,.03));
	box-shadow: 0 28px 60px rgba(2, 8, 23, .18);
	backdrop-filter: blur(12px);
}

.me-footer-cta__content {
	max-width: 720px;
}

.me-footer-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--mef-cyan-400);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1px;
}

.me-footer-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mef-blue-500), var(--mef-cyan-400));
}

.me-footer-cta h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: -.4px;
}

.me-footer-cta p {
	margin: 0;
	color: var(--mef-muted);
	font-size: 15px;
	line-height: 2;
}

.me-footer-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.me-footer-btn {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 18px;
	border-radius: 11px;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.me-footer-btn svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.me-footer-btn--primary {
	border: 1px solid rgba(255,255,255,.12);
	background: linear-gradient(145deg, var(--mef-blue-400), var(--mef-blue-500));
	box-shadow: 0 14px 32px rgba(63,140,255,.24);
	color: #fff;
}

.me-footer-btn--primary svg {
	transform: rotate(180deg);
}

.me-footer-btn--ghost {
	border: 1px solid var(--mef-line);
	background: rgba(255,255,255,.04);
	color: #fff;
}

.me-footer-btn:hover {
	color: #fff;
	transform: translateY(-2px);
}

.me-footer-btn--ghost:hover {
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.16);
}

/* =========================
   محتوای اصلی
========================= */
.me-footer-main {
	position: relative;
	z-index: 1;
	padding: 58px 0 48px;
}

.me-footer-grid {
	display: grid;
	grid-template-columns: 1.35fr .8fr .8fr 1.2fr;
	gap: 44px;
}

.me-footer-column h3 {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.4;
}

.me-footer-column h3::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mef-blue-500), var(--mef-cyan-400));
}

.me-footer-column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.me-footer-column li + li {
	margin-top: 10px;
}

.me-footer-column li a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding-inline-start: 13px;
	color: var(--mef-muted);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.7;
	text-decoration: none;
	transition: color .2s ease, padding .2s ease;
}

.me-footer-column li a::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(120,215,232,.75);
}

.me-footer-column li a:hover {
	padding-inline-start: 17px;
	color: #fff;
}

/* درباره */
.me-footer-brand,
.me-footer-brand:hover {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 18px;
	color: #fff;
	text-decoration: none;
}

.me-footer-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.me-footer-brand .custom-logo {
	display: block;
	width: auto;
	max-width: 170px;
	max-height: 54px;
	object-fit: contain;
}

.me-footer-brand__mark {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: linear-gradient(145deg, var(--mef-blue-400), var(--mef-blue-500));
	box-shadow: 0 12px 28px rgba(63,140,255,.22);
	color: #fff;
	font-size: 21px;
	font-weight: 900;
}

.me-footer-brand__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.me-footer-brand__text strong {
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
}

.me-footer-brand__text small {
	color: var(--mef-muted);
	font-size: 11px;
	line-height: 1.4;
}

.me-footer-about > p {
	max-width: 360px;
	margin: 0;
	color: var(--mef-muted);
	font-size: 13.5px;
	line-height: 2.05;
}

.me-footer-socials {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 22px;
}

.me-footer-socials a {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid var(--mef-line);
	border-radius: 10px;
	background: rgba(255,255,255,.035);
	color: #dbe6f2;
	transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.me-footer-socials a:hover {
	transform: translateY(-2px);
	background: rgba(100,162,255,.11);
	border-color: rgba(100,162,255,.24);
	color: #fff;
}

.me-footer-socials svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* تماس */
.me-footer-contact {
	display: flex;
	flex-direction: column;
}

.me-footer-contact__item {
	display: grid;
	grid-template-columns: 38px 1fr;
	align-items: start;
	gap: 11px;
	padding: 11px 0;
	border-bottom: 1px solid var(--mef-line);
	color: var(--mef-text);
	text-decoration: none;
}

.me-footer-contact__item:last-child {
	border-bottom: 0;
}

.me-footer-contact__icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(100,162,255,.09);
	color: var(--mef-cyan-400);
}

.me-footer-contact__icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.me-footer-contact__item > span:last-child {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.me-footer-contact__item small {
	color: var(--mef-muted);
	font-size: 10.5px;
	line-height: 1.5;
}

.me-footer-contact__item strong {
	color: #e9f0f8;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.8;
	word-break: break-word;
}

/* =========================
   پایین فوتر
========================= */
.me-footer-bottom {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--mef-line);
	background: rgba(2, 8, 23, .22);
}

.me-footer-bottom__inner {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.me-footer-bottom p {
	margin: 0;
	color: #8391a3;
	font-size: 12px;
	line-height: 1.7;
}

.me-footer-legal {
	display: flex;
	align-items: center;
	gap: 18px;
}

.me-footer-legal a {
	color: #9aa8ba;
	font-size: 12px;
	text-decoration: none;
	transition: color .2s ease;
}

.me-footer-legal a:hover {
	color: #fff;
}

/* =========================
   تبلت
========================= */
@media (max-width: 1050px) {
	.me-footer-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.me-footer-grid {
		grid-template-columns: 1.35fr 1fr 1fr;
	}

	.me-footer-contact {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0 28px;
	}

	.me-footer-contact h3 {
		grid-column: 1 / -1;
	}
}

/* =========================
   موبایل
========================= */
@media (max-width: 760px) {
	.me-footer-container {
		width: min(calc(100% - 28px), var(--mef-container));
	}

	.me-footer-cta {
		padding-bottom: 8px;
	}

	.me-footer-cta__inner {
		min-height: auto;
		gap: 24px;
		padding: 30px 24px;
		border-radius: 0 0 16px 16px;
	}

	.me-footer-cta h2 {
		font-size: 25px;
		line-height: 1.55;
	}

	.me-footer-cta p {
		font-size: 13.5px;
		line-height: 1.9;
	}

	.me-footer-cta__actions {
		width: 100%;
	}

	.me-footer-btn {
		flex: 1 1 180px;
	}

	.me-footer-main {
		padding: 46px 0 34px;
	}

	.me-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 38px 26px;
	}

	.me-footer-about,
	.me-footer-contact {
		grid-column: 1 / -1;
	}

	.me-footer-contact {
		display: block;
	}

	.me-footer-bottom__inner {
		min-height: auto;
		flex-direction: column;
		align-items: flex-start;
		padding-block: 18px;
	}

	.me-footer-legal {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.me-footer-container {
		width: min(calc(100% - 22px), var(--mef-container));
	}

	.me-footer-cta__inner {
		padding: 27px 18px;
	}

	.me-footer-cta h2 {
		font-size: 22px;
	}

	.me-footer-cta__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.me-footer-btn {
		width: 100%;
	}

	.me-footer-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.me-footer-about,
	.me-footer-contact {
		grid-column: auto;
	}

	.me-footer-column h3 {
		font-size: 14.5px;
	}

	.me-footer-column li a,
	.me-footer-about > p {
		font-size: 13px;
	}

	.me-footer-bottom__inner {
		align-items: center;
		text-align: center;
	}

	.me-footer-legal {
		justify-content: center;
		width: 100%;
	}
}

/* احترام به تنظیمات کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	.me-site-footer *,
	.me-site-footer *::before,
	.me-site-footer *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
