/* =====================================================================
   مسار — نظام التصميم (نسخة الثلاث صفحات)
   خط أكبر، مساحات أوسع، كلام أقل.
   ================================================================== */

:root {
	--navy: #07004D;
	--steel: #2D82B7;
	--euca: #42E2B8;
	--sand: #F3DFBF;
	--ghost: #F8F9FA;
	--blush: #EB8A90;

	--navy-deep: #04002F;
	--navy-soft: #171063;
	--ink: #0C0B24;
	--muted: #56546F;
	--line: #E2E2EC;
	--line-dark: rgba(255,255,255,.14);
	--white: #FFFFFF;

	--font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
	--font-en: 'Geist', 'Inter', -apple-system, sans-serif;

	--container: 1240px;
	--gutter: 24px;

	/* مقياس أكبر وأجرأ */
	--step-7: clamp(2.35rem, 1.1rem + 5.4vw, 5rem);
	--step-6: clamp(2rem, 1.15rem + 3.6vw, 3.6rem);
	--step-5: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
	--step-4: clamp(1.6rem, 1.35rem + 1vw, 2.1rem);
	--step-3: 1.4rem;
	--step-2: 1.25rem;
	--step-1: 1.125rem;
	--step-0: 1rem;
	--step-s: .9rem;
	--step-xs: .78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html {
	overflow-x: clip;
	max-width: 100%;
}
body {
	margin: 0;
	font-family: var(--font-ar);
	font-size: var(--step-1);
	line-height: 1.95;
	color: var(--ink);
	background: var(--ghost);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	max-width: 100%;
	position: relative;
}
/* أي قسم يحتوي زخرفة خارجة عن حدوده يقصّها عنده لا عند المستند */
.m-section, .m-hero, .m-page-hero, .m-footer, .m-header { max-width: 100%; overflow-x: clip; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--navy);
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
	max-width: 100%;
}
p, li, a, label { overflow-wrap: break-word; }
h1 { font-size: var(--step-7); }
h2 { font-size: var(--step-6); }
h3 { font-size: var(--step-4); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--euca); outline-offset: 3px; }
::selection { background: var(--euca); color: var(--navy); }

.m-skip-link { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 999; background: var(--euca); color: var(--navy); padding: 12px 20px; font-weight: 600; transition: top .2s; }
.m-skip-link:focus { top: 16px; }

.m-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: border-box;
}
.m-section { padding-block: clamp(88px, 11vw, 150px); position: relative; }
.m-section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.m-section--navy h2, .m-section--navy h3 { color: var(--white); }
.m-section--white { background: var(--white); }

.m-eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font-family: var(--font-ar);
	font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: var(--steel);
	margin-bottom: 18px;
	line-height: 1.5;
}
.m-eyebrow::before { content: ''; inline-size: 46px; block-size: 3px; background: linear-gradient(90deg, var(--blush), var(--euca)); flex: none; }
.m-section--navy .m-eyebrow, .m-hero .m-eyebrow, .m-page-hero .m-eyebrow { color: var(--euca); }

.m-head { max-width: 58ch; margin-bottom: clamp(48px, 6vw, 80px); }
.m-head--center { margin-inline: auto; text-align: center; }
.m-head--center .m-eyebrow { justify-content: center; }
.m-head__lede { font-size: var(--step-3); color: var(--muted); line-height: 1.75; }
.m-section--navy .m-head__lede { color: rgba(255,255,255,.7); }

/* --- الأزرار --- */
.m-btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 18px 36px;
	font-family: inherit; font-size: var(--step-1); font-weight: 600;
	border: 2px solid transparent; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.m-btn:hover { transform: translateY(-3px); }
.m-btn .m-chevron { inline-size: 13px; block-size: 15px; }
html[dir="rtl"] .m-btn .m-chevron { transform: scaleX(-1); }

.m-btn--primary { background: var(--euca); color: var(--navy); box-shadow: 0 8px 28px rgba(66,226,184,.35); }
.m-btn--primary:hover { background: var(--white); box-shadow: 0 12px 34px rgba(66,226,184,.45); }
.m-btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.m-btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.m-btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.m-btn--outline:hover { background: var(--navy); color: var(--white); }

/* زر التحويل الوردي — للمواضع التي نريد فيها لفت النظر */
.m-btn--blush { background: var(--blush); color: #3A0E12; box-shadow: 0 8px 28px rgba(235,138,144,.35); }
.m-btn--blush:hover { background: var(--white); color: var(--navy); box-shadow: 0 12px 34px rgba(235,138,144,.45); }
.m-btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.m-chevron { inline-size: 14px; block-size: 16px; flex: none; }

/* --- الترويسة --- */
.m-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; transition: background-color .3s, box-shadow .3s, padding .3s; padding-block: 20px; }
.m-header__inner { display: flex; align-items: center; gap: 32px; }
.m-header__logo { flex: none; }
.m-header__logo img { block-size: 62px; width: auto; transition: block-size .3s; }
.m-header__logo .m-logo--light { display: block; }
.m-header__logo .m-logo--dark { display: none; }
.m-header.is-solid { background: rgba(248,249,250,.95); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }

/* على الجوال: بلا backdrop-filter — وإلا حبس غلاف القائمة داخل الترويسة */
@media (max-width: 1023px) {
	.m-header.is-solid { backdrop-filter: none; background: #F6F7F9; }
}
.m-header.is-solid .m-logo--light { display: none; }
.m-header.is-solid .m-logo--dark { display: block; }
.m-header.is-solid .m-header__logo img { block-size: 50px; }
.m-header.is-solid .m-nav a { color: var(--navy); }
.m-header.is-solid .m-burger span { background: var(--navy); }

.m-nav-shell { margin-inline-start: auto; display: contents; }
.m-nav { margin-inline-start: auto; }
.m-nav ul { display: flex; align-items: center; gap: 36px; }
.m-nav a { position: relative; color: rgba(255,255,255,.9); text-decoration: none; font-size: var(--step-1); font-weight: 500; padding-block: 6px; transition: color .2s; }
.m-nav a::after { content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 0; block-size: 2px; background: var(--euca); transition: inline-size .25s; }
.m-nav a:hover::after, .m-nav .current-menu-item > a::after { inline-size: 100%; }

.m-header__cta .m-btn { padding: 14px 28px; font-size: var(--step-0); }

.m-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; margin-inline-start: auto; }
.m-burger span { display: block; inline-size: 27px; block-size: 2px; background: var(--white); transition: transform .3s, opacity .3s, background-color .3s; }
.m-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.m-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
	.m-burger { display: flex; }
	.m-header__cta { display: none; }

	/* الغلاف: طبقة تغطي الشاشة كاملة، مخفية تماماً حتى الفتح */
	.m-nav-shell {
		display: block;
		position: fixed; inset: 0;
		inline-size: 100%; block-size: 100%;
		overflow: hidden;
		margin: 0; padding: 0;
		z-index: 120;

		/* مخفية بالكامل: لا تشغل مساحة ولا تُرى ولا تُلمس */
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		background: rgba(4, 0, 47, .55);
		transition: opacity .3s ease, visibility 0s linear .3s;
	}
	.m-nav-shell.is-open {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transition: opacity .3s ease, visibility 0s linear 0s;
	}

	/* اللوحة: تنزلق داخل الغلاف فقط */
	.m-nav {
		position: absolute;
		inset-block: 0;
		inset-inline-end: 0;
		inline-size: min(84%, 340px);
		max-inline-size: 84vw;
		background: var(--navy);
		padding: 96px 26px 32px;
		margin: 0;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .32s cubic-bezier(.4, 0, .2, 1);
	}
	html[dir="ltr"] .m-nav {
		inset-inline-end: auto; inset-inline-start: 0;
		transform: translateX(-100%);
	}
	.m-nav-shell.is-open .m-nav { transform: translateX(0); }

	.m-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.m-nav a { color: var(--white); font-size: var(--step-3); padding-block: 16px; border-block-end: 1px solid var(--line-dark); }
	.m-header.is-solid .m-nav a { color: var(--white); }

	/* لم نعد نحتاج طبقة منفصلة — الغلاف نفسه هو الخلفية */
	.m-nav-backdrop { display: none !important; }
}

/* --- شريط تقدّم المسار --- */
.m-rail { position: fixed; inset-inline-end: 24px; inset-block-start: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
html[dir="ltr"] .m-rail { inset-inline-end: auto; inset-inline-start: 24px; }
.m-rail__dot { inline-size: 10px; block-size: 12px; color: rgba(7,0,77,.16); background: currentColor; clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%, 38% 50%); transition: color .35s; }
html[dir="rtl"] .m-rail__dot { transform: scaleX(-1); }
.m-rail__dot.is-lit { color: var(--euca); }
.m-rail.on-dark .m-rail__dot { color: rgba(255,255,255,.2); }
.m-rail.on-dark .m-rail__dot.is-lit { color: var(--euca); }
@media (max-width: 767px) { .m-rail { display: none; } }

/* --- الواجهة الافتتاحية والواجهات الداخلية (تشترك في المشهد) --- */
.m-hero, .m-page-hero {
	position: relative;
	background: radial-gradient(120% 90% at 78% 10%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
	color: rgba(255,255,255,.85);
	overflow: hidden;
}
.m-hero { min-block-size: 100svh; display: flex; align-items: center; padding-block: 150px 100px; }
.m-page-hero { min-block-size: 68svh; display: flex; align-items: center; padding-block: 160px 90px; }

.m-hero__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.m-hero__canvas.is-ready { opacity: 1; }
.m-hero__canvas canvas { inline-size: 100%; block-size: 100%; display: block; }

.m-hero__fallback { position: absolute; inset-block-start: 50%; inset-inline-end: 0; transform: translateY(-50%); inline-size: min(52%, 600px); max-inline-size: 52%; opacity: .1; color: var(--euca); pointer-events: none; }
html[dir="ltr"] .m-hero__fallback { inset-inline-end: auto; inset-inline-start: 0; }

.m-hero__inner, .m-page-hero__inner { position: relative; z-index: 2; max-width: 46ch; }
.m-hero h1, .m-page-hero h1 { color: var(--white); margin-bottom: .3em; }
.m-hero h1 span { display: block; }
.m-hero h1 span:last-child { color: var(--euca); }
.m-hero__lede, .m-page-hero__lede { font-size: var(--step-3); color: rgba(255,255,255,.75); margin-bottom: 40px; max-width: 44ch; line-height: 1.75; }

.m-hero__scroll { position: absolute; inset-block-end: 36px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-en); font-size: var(--step-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.m-hero__scroll i { display: block; inline-size: 1px; block-size: 44px; background: linear-gradient(to bottom, var(--euca), transparent); animation: m-drop 2.2s ease-in-out infinite; }
@keyframes m-drop { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }

/* --- الخدمات: شبكة عناوين كبيرة، بلا نص --- */
.m-services__grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); border: 1px solid var(--line); }
.m-service { position: relative; background: var(--white); padding: 44px 32px; min-block-size: 210px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit; transition: background-color .3s, transform .3s, box-shadow .3s; }
.m-service:hover { background: var(--navy); transform: translateY(-5px); box-shadow: 0 26px 52px rgba(7,0,77,.2); z-index: 2; }
.m-service__num { font-family: var(--font-en); font-size: var(--step-s); font-weight: 600; letter-spacing: .14em; color: var(--steel); transition: color .3s; }
/* شريط وردي رفيع يظهر على حافة البطاقة عند المرور */
.m-service::after {
	content: ''; position: absolute; inset-block-start: 0; inset-inline-end: 0;
	inline-size: 3px; block-size: 0; background: var(--blush);
	transition: block-size .32s ease;
}
.m-service:hover::after { block-size: 100%; }
.m-service h3 { font-size: var(--step-3); margin: 0; transition: color .3s; }
.m-service:hover h3 { color: var(--white); }
.m-service:hover .m-service__num { color: var(--euca); }
@media (max-width: 1023px) { .m-services__grid { grid-template-columns: repeat(2, 1fr); } .m-service { min-block-size: 170px; } }
@media (max-width: 599px)  { .m-services__grid { grid-template-columns: 1fr; } .m-service { min-block-size: 0; gap: 18px; } }

/* --- رحلة المتعلم --- */
.m-journey__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.m-journey__track::before { content: ''; position: absolute; inset-block-start: 33px; inset-inline: 7%; block-size: 1px; background: var(--line-dark); }
.m-station { position: relative; text-align: center; }
.m-station__node { position: relative; z-index: 2; inline-size: 66px; block-size: 66px; margin-inline: auto; display: grid; place-items: center; background: var(--navy); border: 1px solid var(--line-dark); font-family: var(--font-en); font-weight: 700; font-size: var(--step-3); color: rgba(255,255,255,.55); margin-bottom: 22px; transition: border-color .4s, color .4s, box-shadow .4s, background-color .4s; }
.m-station.is-lit .m-station__node { border-color: var(--euca); background: var(--euca); color: var(--navy); box-shadow: 0 0 0 8px rgba(66,226,184,.12), 0 0 44px rgba(66,226,184,.35); }
.m-station:last-child.is-lit .m-station__node { background: var(--blush); border-color: var(--blush); color: #3A0E12; box-shadow: 0 0 0 8px rgba(235,138,144,.14), 0 0 44px rgba(235,138,144,.4); }
.m-station h3 { font-size: var(--step-2); margin: 0; color: var(--white); }
@media (max-width: 1023px) { .m-journey__track { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; } .m-journey__track::before { display: none; } }
@media (max-width: 599px) { .m-journey__track { grid-template-columns: repeat(2, 1fr); } }

/* --- بطاقات من نخدم: كبيرة وبارزة --- */
.m-audience__grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.m-audience {
	position: relative;
	background: var(--white);
	border: 1px solid var(--line);
	padding: clamp(40px, 4vw, 56px) clamp(30px, 3vw, 42px);
	min-block-size: 300px;
	display: flex; flex-direction: column; justify-content: flex-end;
	overflow: hidden;
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
.m-audience::before {
	content: ''; position: absolute; inset-block-start: -34px; inset-inline-end: -22px;
	inline-size: 130px; block-size: 150px;
	background: currentColor; color: rgba(66,226,184,.14);
	clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%, 38% 50%);
	transition: color .3s, transform .4s;
}
html[dir="rtl"] .m-audience::before { transform: scaleX(-1); }
.m-audience:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(7,0,77,.14); border-color: var(--steel); }
.m-audience:hover::before { color: rgba(66,226,184,.32); }
.m-audience h3 { font-size: var(--step-4); margin-bottom: .4em; }
.m-audience p { font-size: var(--step-1); color: var(--muted); line-height: 1.8; }
@media (max-width: 899px) { .m-audience__grid { grid-template-columns: 1fr; } .m-audience { min-block-size: 0; padding-block-start: 72px; } }

/* --- الرؤية والرسالة --- */
.m-vm__grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.m-vm { background: var(--navy); color: rgba(255,255,255,.78); padding: clamp(36px, 4vw, 52px); position: relative; overflow: hidden; }
.m-vm::after { content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 100%; block-size: 3px; background: linear-gradient(90deg, var(--blush), var(--euca) 60%, transparent); }
.m-vm h3 { color: var(--euca); font-size: var(--step-2); margin-bottom: .6em; }
.m-vm p { font-size: var(--step-2); line-height: 1.85; color: var(--white); }
@media (max-width: 767px) { .m-vm__grid { grid-template-columns: 1fr; } }

/* --- الدعوة إلى التواصل --- */
.m-cta { background: var(--navy); position: relative; overflow: hidden; text-align: center; }
.m-cta__glow { position: absolute; inset-block-end: -40%; inset-inline-start: 50%; transform: translateX(-50%); inline-size: min(760px, 140%); block-size: min(760px, 140vw); max-inline-size: 140%; background: radial-gradient(circle, rgba(66,226,184,.18) 0%, transparent 62%); pointer-events: none; }
.m-cta__inner { position: relative; z-index: 2; max-width: 44ch; margin-inline: auto; }
.m-cta h2 { color: var(--white); }
.m-cta p { color: rgba(255,255,255,.72); font-size: var(--step-3); margin-bottom: 38px; }
.m-cta .m-btn-row { justify-content: center; }

/* --- التواصل: بطاقة النموذج --- */
.m-contact__grid { display: grid; gap: 32px; grid-template-columns: 1.25fr .75fr; align-items: start; }
.m-form-card {
	background: var(--white);
	border-block-start: 4px solid transparent;
	border-image: linear-gradient(90deg, var(--blush), var(--euca)) 1;
	box-shadow: 0 24px 64px rgba(7,0,77,.1);
	padding: clamp(32px, 4vw, 52px);
}
.m-form-card h2 { font-size: var(--step-4); }
.m-form-card > p { color: var(--muted); margin-bottom: 32px; }

.m-form { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.m-field { display: flex; flex-direction: column; gap: 8px; }
.m-field--full { grid-column: 1 / -1; }
.m-field label { font-size: var(--step-s); font-weight: 600; color: var(--navy); }
.m-field label .req { color: var(--blush); }
.m-field input, .m-field select, .m-field textarea {
	font-family: inherit; font-size: var(--step-1);
	padding: 16px 18px;
	border: 1px solid var(--line); background: var(--ghost); color: var(--ink);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	width: 100%;
}
.m-field textarea { min-block-size: 150px; resize: vertical; line-height: 1.8; }
.m-field input:focus, .m-field select:focus, .m-field textarea:focus { outline: none; background: var(--white); border-color: var(--steel); box-shadow: 0 0 0 3px rgba(45,130,183,.16); }
.m-field.has-error input, .m-field.has-error textarea, .m-field.has-error select { border-color: var(--blush); }
.m-field__error { font-size: var(--step-s); color: #C0454D; }
.m-field--hp { position: absolute; inset-inline-start: -9999px; }
.m-form__status { grid-column: 1 / -1; padding: 16px 20px; display: none; }
.m-form__status.is-ok { display: block; background: rgba(66,226,184,.16); border-inline-start: 3px solid var(--euca); color: #0A5847; }
.m-form__status.is-fail { display: block; background: rgba(235,138,144,.16); border-inline-start: 3px solid var(--blush); color: #8E2A31; }
@media (max-width: 699px) { .m-form { grid-template-columns: 1fr; } }
@media (max-width: 999px) { .m-contact__grid { grid-template-columns: 1fr; } }

.m-info-card { background: var(--navy); color: rgba(255,255,255,.75); padding: 34px 32px; margin-bottom: 22px; }
.m-info-card h3 { color: var(--euca); font-size: var(--step-1); margin-bottom: .5em; }
.m-info-card a { color: var(--white); text-decoration: none; font-size: var(--step-2); font-weight: 500; }
.m-info-card a:hover { color: var(--euca); }
.m-info-card p { font-size: var(--step-1); }

/* --- الموقع --- */
.m-location { background: var(--white); }
.m-location__grid {
	display: grid; gap: clamp(32px, 5vw, 64px);
	grid-template-columns: .85fr 1.15fr;
	align-items: center;
}
.m-location__text { max-width: 40ch; }
.m-location__media { margin: 0; position: relative; }
.m-location__media img {
	inline-size: 100%; block-size: auto;
	aspect-ratio: 4 / 3; object-fit: cover;
	display: block;
}
/* شريط الهوية أسفل الصورة */
.m-location__media::after {
	content: ''; position: absolute; inset-block-end: 0; inset-inline: 0;
	block-size: 5px; background: linear-gradient(90deg, var(--blush), var(--euca) 50%, var(--steel));
}
@media (max-width: 899px) {
	.m-location__grid { grid-template-columns: 1fr; }
	.m-location__text { max-width: 100%; }
	.m-location__media img { aspect-ratio: 3 / 2; }
}

/* --- الفوتر --- */
.m-footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding-block-start: 64px; font-size: var(--step-0); }
.m-footer__top { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block-end: 44px; }
.m-footer img { block-size: 68px; width: auto; }
.m-footer nav ul { display: flex; flex-wrap: wrap; gap: 28px; }
.m-footer a { color: rgba(255,255,255,.66); text-decoration: none; }
.m-footer a:hover { color: var(--euca); }
.m-footer__bottom { border-block-start: 1px solid var(--line-dark); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: var(--step-s); }
.m-footer__social { display: flex; gap: 14px; }
.m-footer__social a {
	display: inline-grid; place-items: center;
	inline-size: 42px; block-size: 42px;
	border: 1px solid var(--line-dark);
	color: rgba(255,255,255,.72);
	transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.m-footer__social a:hover {
	background: var(--euca); color: var(--navy);
	border-color: var(--euca); transform: translateY(-2px);
}
.m-footer__social svg { inline-size: 19px; block-size: 19px; fill: currentColor; }

/* --- الظهور التدريجي --- */
.m-reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.m-reveal.is-in { opacity: 1; transform: none; }

.m-placeholder-badge { display: inline-block; margin-inline-start: 10px; padding: 4px 10px; font-size: 11px; font-weight: 600; background: var(--blush); color: #4A1216; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.m-reveal { opacity: 1; transform: none; }
	.m-hero__canvas { display: none; }
}

/* =====================================================================
   الهاتف — تجربة مصمَّمة لا مصغَّرة
   ================================================================== */
@media (max-width: 767px) {

	:root { --gutter: 20px; }

	body { font-size: 1.0625rem; line-height: 1.9; }

	/* منع أي تمرير أفقي مهما حدث */
	html, body { max-width: 100%; overflow-x: clip; }
	

	/* --- الواجهة --- */
	.m-hero { min-block-size: auto; padding-block: 116px 72px; }
	.m-page-hero { min-block-size: auto; padding-block: 112px 56px; }
	.m-hero__inner, .m-page-hero__inner { max-width: 100%; min-width: 0; }
	.m-hero h1, .m-page-hero h1, .m-hero__lede, .m-page-hero__lede { max-width: 100%; }
	.m-hero h1, .m-page-hero h1 { line-height: 1.3; margin-bottom: .45em; }
	.m-hero h1 span { display: inline; }          /* يمنع القص عند الأسطر الطويلة */
	.m-hero h1 span:last-child { display: block; }
	.m-hero__lede, .m-page-hero__lede { font-size: 1.125rem; max-width: 100%; margin-bottom: 30px; }
	.m-hero__fallback { inline-size: 62%; max-inline-size: 62%; inset-inline-end: 0; opacity: .07; }
	.m-hero__scroll { display: none; }

	/* --- المسافات --- */
	.m-section { padding-block: 56px; }
	.m-head { margin-bottom: 32px; max-width: 100%; }
	.m-head__lede { font-size: 1.0625rem; }
	.m-eyebrow { font-size: 1.05rem; margin-bottom: 14px; }
	.m-eyebrow::before { inline-size: 32px; }

	/* --- الأزرار: عمودية وممتلئة العرض --- */
	.m-btn-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
	.m-btn { justify-content: center; padding: 17px 24px; font-size: 1.0625rem; width: 100%; }

	/* --- الترويسة --- */
	.m-header { padding-block: 10px; }
	.m-header__inner { gap: 10px; align-items: center; }
	.m-header__logo { min-width: 0; flex: 0 1 auto; }
	.m-header__logo img { block-size: 40px; max-inline-size: 100%; object-fit: contain; }
	.m-header.is-solid .m-header__logo img { block-size: 34px; }
	.m-burger { padding: 8px; margin-inline-start: auto; flex: none; }

	/* --- الخدمات: صف واحد، بطاقة أنيقة --- */
	.m-services__grid { grid-template-columns: 1fr; }
	.m-service {
		flex-direction: row; align-items: center; gap: 18px;
		justify-content: flex-start; min-block-size: 0; padding: 22px 20px;
	}
	.m-service__num { font-size: 1rem; opacity: .8; }
	.m-service h3 { font-size: 1.2rem; margin: 0; }

	/* --- رحلة المتعلم: عمودان مريحان --- */
	.m-journey__track { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
	.m-station__node { inline-size: 50px; block-size: 50px; font-size: 1.2rem; margin-bottom: 12px; }
	.m-station h3 { font-size: 1.0625rem; line-height: 1.5; }

	/* --- بطاقات من نخدم --- */
	.m-audience { min-block-size: 0; padding: 56px 24px 28px; }
	.m-audience::before { inline-size: 96px; block-size: 112px; inset-block-start: -26px; inset-inline-end: -16px; }
	.m-audience h3 { font-size: 1.35rem; }
	.m-audience p { font-size: 1.0625rem; }
	.m-audience__grid { gap: 18px; }

	/* --- الرؤية والرسالة --- */
	.m-vm__grid { gap: 18px; }
	.m-vm { padding: 28px 24px; }
	.m-vm h3 { font-size: 1.15rem; }
	.m-vm p { font-size: 1.0625rem; }

	/* --- الدعوة --- */
	.m-cta p { font-size: 1.125rem; margin-bottom: 28px; }

	/* --- النموذج --- */
	.m-contact__grid { gap: 22px; }
	.m-form-card { padding: 26px 20px; }
	.m-form-card h2 { font-size: 1.5rem; }
	.m-form { gap: 18px; }
	.m-field input, .m-field select, .m-field textarea {
		font-size: 16px;   /* يمنع تكبير iOS التلقائي عند التركيز */
		padding: 15px 16px;
	}
	.m-field textarea { min-block-size: 130px; }
	.m-info-card { padding: 24px 22px; margin-bottom: 16px; }
	.m-info-card a { font-size: 1.125rem; }

	/* --- الفوتر --- */
	.m-footer { padding-block-start: 48px; }
	.m-footer__top { flex-direction: column; align-items: flex-start; gap: 22px; padding-block-end: 32px; }
	.m-footer img { block-size: 56px; }
	.m-footer nav ul { flex-direction: column; gap: 12px; }
	.m-footer__bottom { flex-direction: column; gap: 12px; }
}

/* --- الشاشات الضيقة جداً --- */
@media (max-width: 380px) {
	.m-journey__track { grid-template-columns: 1fr; }
	.m-hero h1, .m-page-hero h1 { font-size: 2.1rem; }
}

/* شريط إدارة ووردبريس لا يغطي الترويسة */
body.admin-bar .m-header { inset-block-start: 32px; }
@media (max-width: 782px) { body.admin-bar .m-header { inset-block-start: 46px; } }


/* =====================================================================
   شبكة أمان ضد الفيض الأفقي
   أي عنصر مطلق أو زخرفي لا يمكنه توسيع المستند.
   ================================================================== */
@media (max-width: 900px) {
	.m-hero__fallback,
	.m-cta__glow,
	.m-audience::before,
	.m-location__media::after {
		max-inline-size: 100%;
	}
	/* الترويسة الثابتة محصورة في عرض الشاشة */
	.m-header { inline-size: 100%; max-inline-size: 100vw; }
	.m-header__inner { flex-wrap: nowrap; }
	.m-header__logo img { max-inline-size: 62vw; }
}


/* الشاشات الصغيرة جداً */
@media (max-width: 480px) {
	.m-header__inner { gap: 10px; }
	.m-header__logo img { max-inline-size: 52vw; }
	.m-container { padding-inline: 16px; }
	.m-journey__track { grid-template-columns: 1fr; }
}
