/**
 * enhance.css — تحسينات abohagr (عمق ثلاثي الأبعاد، زجاجية، كشف عند التمرير، إمالة).
 *
 * قواعد هذا الملف مكتوبة RTL-first بخصائص منطقية (margin-inline / inset-inline)
 * وتجاوزات [dir="rtl"]، لذا لا يحتاج نسخة معكوسة في rtl.css.
 * يُحمّل أخيراً في السلسلة بعد abohagr-style.
 *
 * تُملأ الطبقات التالية عبر المراحل:
 *   M1 — نظام الكشف عند التمرير ([data-reveal])
 *   M2 — العمق/الزجاجية/الميش/القص + الإمالة ([data-tilt])
 *   M3 — طبقة كانفس الهيرو ثلاثي الأبعاد
 *   M4/M5 — تخطيطات متكيّفة مع حجم الداتا (has-{count})
 *
 * @package Abohagr
 */

/* ============================================================
 * تجاوب: منع الفيض الأفقي على كل الشاشات.
 * الهيدر position:relative فالقصّ على الجذر آمن (لا يكسر sticky).
 * يمنع تمدّد نافذة العرض على الموبايل بسبب عناصر خارج الحدود
 * (شرائح السلايدر خارج الشاشة، أغلفة الكشف المتحركة).
 * ============================================================ */
html {
	overflow-x: clip;
}

.swiper {
	overflow: hidden;
}

/* ============================================================
 * أيقونة واتساب العائمة (في كل الموقع) — لونها/اتجاهها من التخصيص عبر --wa-color.
 * ============================================================ */
.abohagr-wa-fab {
	position: fixed;
	bottom: 24px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 60px;
	height: 60px;
	padding: 0;
	border-radius: 50%;
	background: var(--wa-color, #25d366);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
	transition: width 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
}

.abohagr-wa-fab.is-right {
	right: 24px;
}

.abohagr-wa-fab.is-left {
	left: 24px;
}

.abohagr-wa-fab:hover,
.abohagr-wa-fab:focus-visible {
	color: #fff;
	width: auto;
	padding-inline: 20px;
	border-radius: 40px;
	transform: translateY(-3px);
}

.abohagr-wa-fab__label {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	font-size: 15px;
	font-weight: 700;
	transition: max-width 0.3s ease, opacity 0.3s ease;
}

.abohagr-wa-fab:hover .abohagr-wa-fab__label,
.abohagr-wa-fab:focus-visible .abohagr-wa-fab__label {
	max-width: 220px;
	opacity: 1;
}

/* حلقة نبض بلون الأيقونة نفسه. */
.abohagr-wa-fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--wa-color, #25d366);
	animation: abohagr-wa-ring 2s ease-out infinite;
	pointer-events: none;
}

.abohagr-wa-fab:hover::after,
.abohagr-wa-fab:focus-visible::after {
	opacity: 0;
	animation: none;
}

@keyframes abohagr-wa-ring {
	0% { transform: scale(1); opacity: 0.55; }
	100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.abohagr-wa-fab::after { animation: none; }
}

.abohagr-reduce-motion .abohagr-wa-fab::after {
	animation: none;
}

@media (max-width: 575.98px) {
	.abohagr-wa-fab {
		width: 54px;
		height: 54px;
		bottom: 18px;
		font-size: 26px;
	}

	.abohagr-wa-fab.is-right { right: 16px; }
	.abohagr-wa-fab.is-left { left: 16px; }
}

/* أيقونة واتساب داخل أزرار التواصل — لتوضيح أنها زر تواصل عبر واتساب. */
.abohagr-wa-ic {
	margin-inline-end: 8px;
	font-size: 1.05em;
	vertical-align: -1px;
}

/* ============================================================
 * قائمة الموبايل الاحترافية (overlay popup) — بديل slicknav.
 * ============================================================ */

/* زر الهامبرغر */
.abohagr-burger {
	width: 46px;
	height: 46px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	border: none;
	cursor: pointer;
	border-radius: 12px;
	background: var(--brand-gradient, linear-gradient(90deg, #4c47d1, #7c79d8));
	box-shadow: 0 6px 18px rgba(76, 71, 209, 0.28);
}

.abohagr-burger span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

/* منع تمرير الصفحة عند فتح القائمة */
html.abohagr-mmenu-open {
	overflow: hidden;
}

/* الغطاء */
.abohagr-mmenu {
	position: fixed;
	inset: 0;
	z-index: 9995;
	visibility: hidden;
}

.abohagr-mmenu.is-open {
	visibility: visible;
}

.abohagr-mmenu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 16, 48, 0.55);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.abohagr-mmenu.is-open .abohagr-mmenu__backdrop {
	opacity: 1;
}

/* اللوحة — تنزلق من اليمين */
.abohagr-mmenu__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(340px, 86vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -20px 0 60px rgba(11, 16, 48, 0.25);
	transform: translateX(105%);
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
}

.abohagr-mmenu.is-open .abohagr-mmenu__panel {
	transform: translateX(0);
}

/* الرأس */
.abohagr-mmenu__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	background: #fff;
	border-bottom: 1px solid rgba(36, 35, 66, 0.08);
}

.abohagr-mmenu__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--primary-color);
}

.abohagr-mmenu__close {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--secondary-color);
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
}

.abohagr-mmenu__close:hover {
	background: var(--accent-color);
	transform: rotate(90deg);
}

.abohagr-mmenu__close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--primary-color);
}

.abohagr-mmenu__close:hover span {
	background: #fff;
}

.abohagr-mmenu__close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.abohagr-mmenu__close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* القائمة */
.abohagr-mmenu__nav {
	flex: 1 1 auto;
}

.abohagr-mmenu__list,
.abohagr-mmenu__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.abohagr-mmenu__list li {
	position: relative;
	border-bottom: 1px solid rgba(36, 35, 66, 0.06);
}

.abohagr-mmenu__list a {
	display: block;
	padding: 15px 22px;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: color 0.25s, padding 0.25s, background 0.25s;
}

.abohagr-mmenu__list a:hover,
.abohagr-mmenu__list .current-menu-item > a {
	color: var(--accent-color);
	background: var(--secondary-color);
	padding-inline-start: 30px;
}

/* زر القائمة الفرعية (شيفرون) */
.abohagr-mmenu__subtoggle {
	position: absolute;
	top: 3px;
	inset-inline-end: 6px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
}

.abohagr-mmenu__subtoggle i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--text-color);
	border-bottom: 2px solid var(--text-color);
	transform: translate(-50%, -70%) rotate(45deg);
	transition: transform 0.3s;
}

.abohagr-mmenu__list li.is-expanded > .abohagr-mmenu__subtoggle i {
	transform: translate(-50%, -30%) rotate(-135deg);
}

.abohagr-mmenu__list ul {
	max-height: 0;
	overflow: hidden;
	background: var(--secondary-color);
	transition: max-height 0.35s ease;
}

.abohagr-mmenu__list li.is-expanded > ul {
	max-height: 600px;
}

.abohagr-mmenu__list ul a {
	padding-inline-start: 42px;
	font-size: 15px;
	font-weight: 500;
}

/* التذييل — زر التواصل */
.abohagr-mmenu__foot {
	padding: 20px 22px;
	border-top: 1px solid rgba(36, 35, 66, 0.08);
}

.abohagr-mmenu__foot .header-btn {
	margin: 0;
}

.abohagr-mmenu__foot .btn-default {
	display: block;
	width: 100%;
	text-align: center;
}

/* لا تظهر قائمة الموبايل على الديسكتوب */
@media (min-width: 992px) {
	.abohagr-mmenu {
		display: none;
	}
}

/* ============================================================
 * لوجو الفوتر: الخلفية داكنة واللوجو كحلي غامق ⇒ نقلبه أبيض ليظهر.
 * ============================================================ */
.main-footer .footer-logo img {
	filter: brightness(0) invert(1);
}

/* ============================================================
 * تقييمات المرضى: سلايدر صور المراجعات (سكرين شوت) — منظّم واحترافي.
 * ============================================================ */
.reviews-slider .swiper {
	padding: 10px 4px 12px;
}

.review-card {
	background: #fff;
	border-radius: 22px;
	padding: 12px;
	border: 1px solid rgba(36, 35, 66, 0.08);
	box-shadow:
		0 4px 14px rgba(36, 35, 66, 0.06),
		0 18px 40px rgba(36, 35, 66, 0.10);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
	height: 100%;
}

.review-card:hover {
	transform: translateY(-6px);
	box-shadow:
		0 8px 20px rgba(36, 35, 66, 0.10),
		0 28px 60px rgba(76, 71, 209, 0.16);
}

.review-card img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
}

.reviews-slider .swiper-slide {
	height: auto;
	display: flex;
}

/* ============================================================
 * المؤشر المخصص المميّز (نقطة + حلقة) — بلون العلامة.
 * يظهر فقط على أجهزة الماوس؛ على اللمس يبقى المؤشر الأصلي.
 * ============================================================ */
@media (hover: hover) and (pointer: fine) {
	html.abohagr-has-cursor,
	html.abohagr-has-cursor * {
		cursor: none !important;
	}
}

.abohagr-cursor-dot,
.abohagr-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	pointer-events: none;
	border-radius: 50%;
	will-change: transform;
}

.abohagr-cursor-dot {
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: var(--accent-color, #4c47d1);
	transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.abohagr-cursor-ring {
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border: 2px solid var(--accent-color, #4c47d1);
	transition: width 0.28s ease, height 0.28s ease, margin 0.28s ease, background-color 0.28s ease, opacity 0.28s ease;
}

/* على العناصر التفاعلية: الحلقة تكبر وتُملأ خفيفاً، والنقطة تختفي. */
html.is-cursor-hover .abohagr-cursor-ring {
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	background-color: rgba(76, 71, 209, 0.12);
}

html.is-cursor-hover .abohagr-cursor-dot {
	opacity: 0;
}

/* عند الضغط: الحلقة تنكمش قليلاً. */
html.is-cursor-down .abohagr-cursor-ring {
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
}

/* خارج النافذة: يختفي. */
html.is-cursor-out .abohagr-cursor-dot,
html.is-cursor-out .abohagr-cursor-ring {
	opacity: 0;
}

/* حارس عام: احترام تفضيل تقليل الحركة في النظام أو خيار التخصيص. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}

/* ============================================================
 * M1 — الكشف عند التمرير ([data-reveal])
 * الحالة الأولية مخفية (CSS في الهيدر) فلا يوجد وميض، وتُكشف عبر reveal.js.
 * ============================================================ */
[data-reveal] {
	opacity: 0;
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	/* will-change يُدار ديناميكياً من reveal.js (يُضاف عند الرصد ويُزال بعد الانتقال). */
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* أنواع الحركة */
[data-reveal="slide-up"] {
	transform: translateY(34px);
}

[data-reveal="scale"] {
	transform: scale(0.92);
}

/* slide-in: قدوم من الطرف المنطقي — متغيّر يُقلب تحت RTL فيبقى JS محايداً. */
[data-reveal="slide-in"] {
	transform: translateX(var(--reveal-x, 40px));
}

[dir="rtl"] [data-reveal="slide-in"] {
	--reveal-x: -40px;
}

/* تحييد كامل عند تقليل الحركة (نظام أو خيار التخصيص). */
@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

.abohagr-reduce-motion [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ============================================================
 * M2 — العمق ثلاثي الأبعاد + الإمالة + الزجاجية + الميش + القص
 * كله RTL-first (خصائص منطقية + تجاوزات [dir="rtl"]) — لا يحتاج rtl.css.
 * ============================================================ */

/* --- الإمالة: تُطبّق على عنصر [data-tilt] نفسه (بلا wow) لتفادي تعارض animate.css. --- */
[data-tilt] {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-tilt].is-tilting {
	transition: transform 0.08s linear;
	will-change: transform;
}

/* --- أدوات العمق (قابلة لإعادة الاستخدام في M4/M5). --- */
.abohagr-depth {
	box-shadow:
		0 2px 6px rgba(11, 16, 48, 0.05),
		0 12px 28px rgba(11, 16, 48, 0.08),
		0 28px 60px rgba(11, 16, 48, 0.10);
}

/* --- الزجاجية (glassmorphism) مع بديل عند غياب backdrop-filter. --- */
.abohagr-glass {
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

@supports not ( ( -webkit-backdrop-filter: blur(1px) ) or ( backdrop-filter: blur(1px) ) ) {
	.abohagr-glass {
		background: rgba(255, 255, 255, 0.94);
	}
}

/* --- خلفية gradient-mesh ناعمة بألوان الباليت (طبقة خلفية بلا تفاعل). --- */
.abohagr-mesh {
	position: relative;
	isolation: isolate;
}

.abohagr-mesh::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(42% 55% at 15% 18%, rgba(71, 83, 191, 0.10), transparent 70%),
		radial-gradient(38% 50% at 85% 12%, rgba(80, 108, 215, 0.10), transparent 70%),
		radial-gradient(52% 60% at 82% 92%, rgba(71, 83, 191, 0.07), transparent 72%);
}

/* عكس الميش أفقياً في RTL ليتوافق الاتجاه البصري. */
[dir="rtl"] .abohagr-mesh::before {
	transform: scaleX(-1);
}

/* --- فواصل أقسام قطرية (clip-path) — الاتجاه يُعكس تحت RTL. --- */
.abohagr-clip-top {
	clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}

.abohagr-clip-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

[dir="rtl"] .abohagr-clip-top {
	clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
}

[dir="rtl"] .abohagr-clip-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%);
}

/* --- عمق أنعم على البطاقات (الخدمات في الهوم والأرشيف) + رفعه أثناء الإمالة. --- */
.service-item,
.post-item {
	box-shadow:
		0 2px 6px rgba(11, 16, 48, 0.05),
		0 14px 30px rgba(11, 16, 48, 0.08);
	transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-tilt].is-tilting .service-item,
[data-tilt].is-tilting .post-item {
	box-shadow:
		0 8px 18px rgba(11, 16, 48, 0.10),
		0 26px 52px rgba(71, 83, 191, 0.18),
		0 44px 90px rgba(11, 16, 48, 0.16);
}

/* --- تحييد الإمالة عند تقليل الحركة (نظام أو خيار التخصيص). --- */
@media (prefers-reduced-motion: reduce) {
	[data-tilt] {
		transform: none !important;
		transition: none !important;
	}
}

.abohagr-reduce-motion [data-tilt] {
	transform: none !important;
	transition: none !important;
}

/* ============================================================
 * M3 — طبقة كانفس الهيرو ثلاثي الأبعاد (WebGL)
 * الكانفس خلف المحتوى؛ بديل CSS ثابت يبقى ظاهراً لو تعذّر WebGL.
 * ============================================================ */
.hero {
	position: relative;
}

.hero-canvas-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	/* بديل ثابت: بقع إنديجو ناعمة منحازة لليسار (تحت النص العربي على اليمين تبقى خفيفة). */
	background:
		radial-gradient(38% 48% at 18% 30%, rgba(71, 83, 191, 0.14), transparent 70%),
		radial-gradient(32% 42% at 30% 74%, rgba(80, 108, 215, 0.12), transparent 72%);
}

.hero-canvas-wrap canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* المحتوى فوق الكانفس. */
.hero > .container {
	position: relative;
	z-index: 1;
}

/* إخفاء طبقة الكانفس تماماً عند تقليل الحركة (خيار التخصيص) — يبقى بديل الـCSS. */
.abohagr-reduce-motion .hero-canvas-wrap canvas {
	display: none;
}

/* ============================================================
 * M4 — تخطيطات متكيّفة مع حجم الداتا (has-{count})
 * الشبكات تتوازن حسب عدد العناصر بدل الشدّ أو الفراغ.
 * col-lg-* الافتراضي يبقى fallback؛ نتدخّل فقط عند القلة.
 * ============================================================ */

/* --- الخدمات: توسيط عند عنصر أو عنصرين. --- */
.our-services .row.has-1,
.our-services .row.has-2 {
	justify-content: center;
}

@media (min-width: 992px) {
	.our-services .row.has-1 > .col-lg-4 {
		flex: 0 0 auto;
		width: 100%;
		max-width: 460px;
	}

	.our-services .row.has-2 > .col-lg-4 {
		flex: 0 0 46%;
		max-width: 46%;
	}
}

/* --- الفريق: توسيط حتى ثلاثة أعضاء (الافتراضي 4-up). --- */
.our-team .row.has-1,
.our-team .row.has-2,
.our-team .row.has-3 {
	justify-content: center;
}

@media (min-width: 992px) {
	.our-team .row.has-1 > .col-lg-3 {
		flex: 0 0 auto;
		width: 100%;
		max-width: 360px;
	}

	.our-team .row.has-2 > .col-lg-3 {
		flex: 0 0 40%;
		max-width: 40%;
	}

	.our-team .row.has-3 > .col-lg-3 {
		flex: 0 0 31%;
		max-width: 31%;
	}
}

/* --- الأرقام: توسيط بفجوة بدل الشدّ عند قلة الإحصائيات. --- */
.our-excellence .excellence-counter-boxes.has-1,
.our-excellence .excellence-counter-boxes.has-2,
.our-excellence .excellence-counter-boxes.has-3 {
	justify-content: center;
	gap: clamp(2rem, 6vw, 5rem);
}

/* ============================================================
 * M5 — الصفحات الداخلية (نفس نظام العمق/التكيّف/الزجاجية)
 * ============================================================ */

/* --- تكيّف شبكات الأرشيف والمدونة مع العدد (نفس منطق الخدمات). --- */
.page-service .row.has-1,
.page-service .row.has-2,
.page-blog .row.has-1,
.page-blog .row.has-2 {
	justify-content: center;
}

@media (min-width: 992px) {
	.page-service .row.has-1 > .col-lg-4,
	.page-blog .row.has-1 > .col-lg-4 {
		flex: 0 0 auto;
		width: 100%;
		max-width: 460px;
	}

	.page-service .row.has-2 > .col-lg-4,
	.page-blog .row.has-2 > .col-lg-4 {
		flex: 0 0 46%;
		max-width: 46%;
	}
}

/* --- عمق على بطاقات وصناديق الصفحات الداخلية. --- */
.sidebar-cta-box {
	box-shadow:
		0 2px 6px rgba(11, 16, 48, 0.05),
		0 16px 34px rgba(11, 16, 48, 0.09);
}

/* --- حاويات النماذج: عمق + حافة خفيفة (اتصل بنا / العضوية / التسجيل). --- */
.contact-us-form,
.our-appointment-box {
	box-shadow:
		0 4px 10px rgba(11, 16, 48, 0.05),
		0 22px 48px rgba(11, 16, 48, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

/* --- خلفية ميش خفيفة لصفحة 404. --- */
.error-page.abohagr-mesh::before {
	background:
		radial-gradient(40% 50% at 20% 25%, rgba(71, 83, 191, 0.10), transparent 70%),
		radial-gradient(36% 46% at 82% 78%, rgba(80, 108, 215, 0.09), transparent 72%);
}

/* ============================================================
 * F1 — كشف العناوين بتدرّج على مستوى الكلمة (Arabic-safe)
 * يستعيد كشف SplitText في الأصل بدون تقسيم الحروف. تُدار عبر heading-reveal.js.
 * الحالة الأولية تُطبَّق فقط بعد إضافة .hr-ready بالـJS ⇒ لا وميض ولا إخفاء دائم.
 * ============================================================ */
.hr-word {
	display: inline-block;
}

.hr-ready .hr-word {
	opacity: 0;
	transform: translateY(0.42em);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--hr-i, 0) * 55ms);
	will-change: opacity, transform;
}

.hr-ready.hr-in .hr-word {
	opacity: 1;
	transform: none;
}

/* تحييد كامل عند تقليل الحركة. */
@media (prefers-reduced-motion: reduce) {
	.hr-ready .hr-word {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

.abohagr-reduce-motion .hr-ready .hr-word {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ============================================================
 * F2 — حالة focus متاحة لحقول النماذج
 * حلقة accent عبر box-shadow تناسب التصميم الأصلي (حقول بلا حدود)،
 * ولا تغيّر المظهر الساكن — تحسين إمكانية وصول فقط.
 * ============================================================ */
.form-control:focus,
.form-control:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(71, 83, 191, 0.30);
}

/* ============================================================
 * إصلاح فاصل الـbreadcrumb:
 * (1) القالب الأصلي ترك رابط المؤلف كقيمة احتياطية للفاصل ⇒ نضبطه لفاصل نظيف.
 * (2) Bootstrap يستخدم float:left للفاصل ولم يُعكَس في RTL ⇒ يظهر بعيداً يساراً.
 *     نعكس float والحشو ليقع الفاصل صحيحاً بين العناصر.
 * ============================================================ */
.breadcrumb {
	--bs-breadcrumb-divider: "/";
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
	padding-left: 0;
	padding-right: var(--bs-breadcrumb-item-padding-x, 0.5rem);
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
	float: right;
	padding-right: 0;
	padding-left: var(--bs-breadcrumb-item-padding-x, 0.5rem);
}

/* ============================================================
 * F3 — منع تشوّه نسب الصور المتجاوبة
 * ووردبريس يضيف width/height كسمات؛ والقاعدة العامة img{max-width:100%}
 * بلا height:auto ⇒ تتشوّه الصور على الشاشات الأصغر. القواعد الخاصة
 * (.reveal img{height:100%} إلخ) تفوز بالتحديد فلا تتأثّر.
 * ============================================================ */
img {
	height: auto;
}

/* صور المحتوى (محرر ووردبريس) داخل مناطق النص — متجاوبة بلا فيض. */
.post-entry img,
.page-entry img,
.abohagr-prose img {
	max-width: 100%;
}

/* تحجيم شعار الهيدر: الثيم لا يحدّد حجم .custom-logo إطلاقاً، فأي شعار كبير
   يُرفع يظهر ضخماً. نقيّده لارتفاع مناسب مع عرض تلقائي. */
.main-header .custom-logo {
	max-height: 60px;
	width: auto;
	height: auto;
}

@media (max-width: 991px) {
	.main-header .custom-logo {
		max-height: 48px;
	}
}

/* ============================================================
 * قسم "من نحن": صورة واحدة كبيرة مميزة (أُزيلت الصور المتعددة ومواعيد العمل).
 * صورة رئيسية كبيرة برُكن تدرّج مميّز خلفها + عمق — متجاوبة بالكامل.
 * ============================================================ */
.about-us .about-single {
	position: relative;
	padding: 0;
}

.about-us .about-feature-image {
	position: relative;
	z-index: 1;
	border-radius: 32px;
	overflow: hidden;
	box-shadow:
		0 10px 30px rgba(36, 35, 66, 0.12),
		0 30px 70px rgba(36, 35, 66, 0.16);
}

.about-us .about-feature-image figure {
	margin: 0;
	display: block;
}

.about-us .about-feature-image img {
	width: 100%;
	height: 100%;
	min-height: 520px;
	max-height: 640px;
	object-fit: cover;
	border-radius: 32px;
	display: block;
}

/* لمسة مميّزة: شكل تدرّج ناعم خلف الصورة (زاوية علوية داخلية). */
.about-us .about-single::before {
	content: "";
	position: absolute;
	inset-block-start: -20px;
	inset-inline-end: -20px;
	width: 58%;
	height: 55%;
	background: var(--brand-gradient);
	border-radius: 32px;
	opacity: 0.14;
	z-index: 0;
}

@media (max-width: 991px) {
	.about-us .about-feature-image img {
		min-height: 420px;
	}
}

@media (max-width: 575.98px) {
	.about-us .about-feature-image img {
		min-height: 320px;
		max-height: 460px;
	}

	.about-us .about-single::before {
		display: none;
	}
}

/* ============================================================
 * F4 — توكن التدرّج الموحّد + إيقاع تايبوغرافي المحتوى الطويل
 * ملاحظة: تجاوزات theme.css للعربية (letter-spacing:normal + line-height أرخى)
 * مقصودة لتشكيل الحروف العربية الصحيح — تُترك كما هي.
 * ============================================================ */

/* توكن موحّد لتدرّج العلامة (كان مكرّراً inline في custom.css). للعناصر الجديدة. */
:root {
	--brand-gradient: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color-two) 100%);
}

/* تايبوغرافي المحتوى الطويل (page.php / single.php) — قابلية قراءة وإيقاع منضبط. */
.page-entry,
.post-entry {
	max-width: 820px;
	margin-inline: auto;
	color: var(--text-color);
	font-size: 17px;
	line-height: 1.9;
}

.page-entry > :first-child,
.post-entry > :first-child {
	margin-top: 0;
}

.page-entry h2, .post-entry h2 { font-size: clamp(26px, 3vw, 34px); }
.page-entry h3, .post-entry h3 { font-size: clamp(22px, 2.4vw, 26px); }
.page-entry h4, .post-entry h4 { font-size: 20px; }

.page-entry h2, .post-entry h2,
.page-entry h3, .post-entry h3,
.page-entry h4, .post-entry h4 {
	color: var(--primary-color);
	line-height: 1.4;
	font-weight: 700;
	margin: 1.7em 0 0.6em;
}

.page-entry p, .post-entry p {
	margin: 0 0 1.35em;
}

.page-entry ul, .page-entry ol,
.post-entry ul, .post-entry ol {
	margin: 0 0 1.4em;
	padding-inline-start: 1.4em;
}

.page-entry li, .post-entry li {
	margin-bottom: 0.5em;
}

.page-entry a, .post-entry a {
	color: var(--accent-color);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-entry img, .post-entry img {
	border-radius: 20px;
	margin: 1.2em 0;
}

.page-entry blockquote, .post-entry blockquote {
	margin: 1.7em 0;
	padding: 20px 26px;
	border-inline-start: 4px solid var(--accent-color);
	background: var(--secondary-color);
	border-radius: 16px;
	color: var(--primary-color);
}

/* ============================================================
 * F5 — ترويسة الصفحة: صورة اختيارية لكل صفحة (الافتراضي = خلفية الأصل)
 * تُفعّل فقط عند وضع صورة بارزة للصفحة؛ عندها طبقة تدرّج داكنة للمقروئية.
 * ============================================================ */
.page-header.page-header--has-image {
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}

.page-header.page-header--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(11, 16, 48, 0.55), rgba(11, 16, 48, 0.78));
}

.page-header.page-header--has-image .page-header-box {
	position: relative;
	z-index: 1;
}

.page-header.page-header--has-image .page-header-box h1 {
	color: var(--white-color);
}

/* ============================================================
 * F6 — حلقة focus-visible موحّدة لإمكانية الوصول (لوحة المفاتيح)
 * ============================================================ */
a:focus-visible,
button:focus-visible,
.btn-default:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 3px;
}

/* ============================================================
 * F6 — تجربة موبايل: منع قصّ محتوى الهيرو على الشاشات الضيقة جداً
 * صفّا الأزرار والتقييم لا يلتفّان فيفرضان عرضاً أكبر من الشاشة ⇒ قصّ.
 * نسمح لهما بالالتفاف ونضمن كسر الكلمات الطويلة.
 * ============================================================ */
@media (max-width: 575.98px) {
	/* حُرّاس آمنة للشاشات الضيقة جداً (تحسين طفيف؛ سمة قصّ الحافة موروثة من القالب الأصلي). */
	.hero-content .hero-btn {
		flex-wrap: wrap;
	}

	.hero-content .google-rating ul {
		flex-wrap: wrap;
	}

	.hero-content .section-title h1 {
		overflow-wrap: anywhere;
	}
}
