/* =====================================================
   Footer — نجمة الستين  (RTL · info-columns layout)
   ===================================================== */

.site-footer {
	--f-black:      #080c12;
	--f-dark:       #0b1220;
	--f-blue:       #1a4fa0;
	--f-blue-mid:   #1d5cc4;
	--f-gold:       #c79a3c;
	--f-white:      #ffffff;
	--f-white-dim:  rgba(255,255,255,.70);
	--f-white-mute: rgba(255,255,255,.40);
	--f-border:     rgba(255,255,255,.10);

	position: relative;
	direction: rtl;        /* ← يكفي هذا ليجعل كل flex داخله يبدأ من اليمين */
	overflow: hidden;
	background: linear-gradient(
		160deg,
		#060a10 0%,
		#080e1a 30%,
		#0d1f42 65%,
		#0a1530 100%
	);
	color: var(--f-white);
	font-weight: 500;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 55% 50% at 4% 95%, rgba(199,154,60,.18) 0, transparent 68%),
		radial-gradient(ellipse 50% 45% at 95% 8%,  rgba(29,92,196,.30) 0, transparent 65%);
	pointer-events: none;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

/* ── INNER WRAPPER ─────────────────────────────────── */
.footer-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	justify-content: space-between;   /* يوزع العمود الأيمن والأعمدة على كامل العرض */
	align-items: flex-start;
	gap: clamp(32px, 6vw, 40px);
	width: min(1180px, calc(100% - 80px));
	margin-inline: auto;
	padding-block: clamp(44px, 6vw, 72px);
}

/* ── BRAND COLUMN (right) ──────────────────────────── */
.footer-brand {
	flex: 0 0 auto;
	width: clamp(210px, 22%, 270px);
	text-align: right;
}

.footer-logo {
	width: clamp(90px, 12vw, 130px);
	height: auto;
	margin-inline-end: auto;   /* يلصق الشعار ناحية اليمين */
	margin-bottom: 28px;
	object-fit: contain;
}

/* ── CONTACT LIST ──────────────────────────────────── */
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-contact-list li {
	display: flex;
	flex-direction: row;       /* RTL على الأب → أيقونة يمين، نص يسارها */
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--f-white-dim);
}

.footer-contact-icon {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--f-gold);
	color: var(--f-gold);
	font-size: 11px;
	margin-top: 1px;
}

.footer-contact-list a,
.footer-contact-list address {
	color: inherit;
	text-decoration: none;
	font-style: normal;
	transition: color .18s ease;
}

.footer-contact-list a:hover {
	color: var(--f-gold);
}

/* ── NAV COLUMNS ───────────────────────────────────── */
.footer-nav {
	flex: 1 1 0;
	display: flex;
	flex-direction: row;
	justify-content: space-between;   /* توزيع الأعمدة على كامل المساحة */
	align-items: flex-start;
	text-align: right;
}

.footer-nav-col {
	display: flex;
	flex-direction: column;
}

.footer-nav-title {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--f-gold);
}

.footer-nav-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
	text-align: right;
}

.footer-nav-col a {
	color: var(--f-white-dim);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35;
	transition: color .18s ease;
}

.footer-nav-col a:hover {
	color: var(--f-white);
}

/* ── BOTTOM BAR ────────────────────────────────────── */
.footer-bottom {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1180px, calc(100% - 80px));
	margin-inline: auto;
	padding-block: 14px;
	border-top: 1px solid var(--f-border);
	color: var(--f-white-mute);
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 860px) {
	.footer-inner {
		flex-direction: column;
		width: calc(100% - 48px);
		gap: 32px;
	}

	.footer-brand {
		width: 100%;
	}

	.footer-nav {
		width: 100%;
		flex-wrap: wrap;
		gap: 24px 36px;
	}

	.footer-bottom {
		width: calc(100% - 48px);
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 480px) {
	.footer-inner    { width: calc(100% - 32px); }
	.footer-nav      { gap: 20px 28px; }
	.footer-nav-col a { font-size: 13px; }
	.footer-bottom   { width: calc(100% - 32px); font-size: 11px; }
}
/* Central pre-footer CTA */
.site-main > .final-cta,
.site-main > .services-section.final-cta {
	display: none;
}

.site-prefooter-cta {
	position: relative;
	direction: rtl;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(360px, 42vw, 520px);
	display: grid;
	align-items: center;
	padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
	color: #ffffff;
	background: #07111f;
}

.site-prefooter-cta__media,
.site-prefooter-cta__media::after,
.site-prefooter-cta__media img {
	position: absolute;
	inset: 0;
}

.site-prefooter-cta__media {
	z-index: -2;
}

.site-prefooter-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-prefooter-cta__media::after {
	content: "";
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(7, 17, 31, 0.42) 0%, rgba(7, 17, 31, 0.86) 58%, rgba(7, 17, 31, 0.95) 100%),
		linear-gradient(180deg, rgba(7, 17, 31, 0.08) 0%, rgba(7, 17, 31, 0.68) 100%);
}

.site-prefooter-cta__content {
	width: min(760px, 100%);
	margin-inline: 0 auto;
	text-align: right;
}

.site-prefooter-cta__eyebrow {
	display: inline-flex;
	margin-bottom: 14px;
	color: #f2c76b;
	font-size: 13px;
	font-weight: 800;
}

.site-prefooter-cta h2 {
	margin: 0;
	font-size: clamp(34px, 5vw, 68px);
	font-weight: 900;
	line-height: 1.15;
}

.site-prefooter-cta p {
	max-width: 620px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.9;
}

.site-prefooter-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.site-prefooter-cta__button {
	min-height: 52px;
	padding: 13px 24px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-weight: 900;
	line-height: 1.2;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-prefooter-cta__button:hover,
.site-prefooter-cta__button:focus-visible {
	transform: translateY(-2px);
}

.site-prefooter-cta__button--primary {
	background: #c79a3c;
	border-color: #c79a3c;
	color: #07111f;
}

.site-prefooter-cta__button--secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

/* Shared footer modals */
.request-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 20px;
	direction: rtl;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.request-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.request-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 10, 18, 0.72);
	backdrop-filter: blur(10px);
}

.request-modal__dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	border-radius: 8px;
	background: #ffffff;
	color: #102033;
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.request-modal__accent {
	height: 6px;
	background: linear-gradient(90deg, #c79a3c, #1d5cc4);
}

.request-modal__inner {
	padding: clamp(24px, 5vw, 42px);
}

.request-modal__close {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(16, 32, 51, 0.14);
	border-radius: 50%;
	background: #ffffff;
	color: #102033;
	font-size: 24px;
	line-height: 1;
}

.request-modal__logo {
	width: 92px;
	height: auto;
	margin-bottom: 18px;
}

.request-modal h2 {
	margin: 0;
	font-size: clamp(25px, 4vw, 38px);
	line-height: 1.25;
}

.request-modal__lead {
	margin: 12px 0 24px;
	color: #5c6878;
	line-height: 1.8;
}

.request-form,
.request-field {
	display: grid;
	gap: 14px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.request-field label {
	font-size: 13px;
	font-weight: 800;
	color: #102033;
}

.request-field label span {
	color: #718096;
	font-weight: 700;
}

.request-field input,
.request-field select,
.request-field textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d9e0ea;
	border-radius: 6px;
	padding: 10px 12px;
	background: #f8fafc;
	color: #102033;
}

.request-field textarea {
	min-height: 104px;
	resize: vertical;
}

.request-submit {
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	border-color: #c79a3c;
	background: #c79a3c;
	color: #07111f;
	font-weight: 900;
}

.request-success {
	display: none;
	padding: 12px 14px;
	border-radius: 6px;
	background: #ecfdf5;
	color: #047857;
	font-weight: 800;
	text-align: center;
}

.request-modal.is-submitted .request-success {
	display: block;
}

body.modal-open {
	overflow: hidden;
}

@media (max-width: 680px) {
	.site-prefooter-cta {
		padding: 48px 20px;
	}

	.site-prefooter-cta__actions,
	.site-prefooter-cta__button {
		width: 100%;
	}

	.form-row {
		grid-template-columns: 1fr;
	}
}