/* ===== إتقان — الأنماط الأساسية (RTL أولًا) ===== */
:root {
	/* تُستبدل القيم التالية من لوحة التخصيص */
	--c-dark: #1c1d21;
	--c-gold: #b8975a;
	--c-call: #c9a35a;
	--c-wa: #17773f;
	--font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	--font-head: 'El Messiri', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;

	--c-bg: #ffffff;
	--c-ivory: #faf8f4;
	--c-text: #2a2c31;
	--c-muted: #666b75;
	--c-line: #e8e3d9;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 8px 28px rgba(28, 29, 33, .08);
	--shadow-hover: 0 14px 36px rgba(28, 29, 33, .14);
	--container: 1280px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.9;
	color: var(--c-text); background: var(--c-bg); direction: rtl; text-align: right;
	overflow-x: hidden;
}
body.has-mobile-bar { padding-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-dark); text-decoration-color: var(--c-gold); text-underline-offset: 4px; }
a:hover { color: #000; }
h1, h2, h3, h4 { color: var(--c-dark); line-height: 1.45; margin: 0 0 .55em; font-weight: 700; font-family: var(--font-head, var(--font)); }
.site-title, .footer-brand, .step-no, .badge { font-family: var(--font-head, var(--font)); }
button, input, select, textarea { font-family: inherit; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3rem; }

.container { width: min(100% - 2.2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--c-ivory); }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .35em; }
.section-desc, .lead { color: var(--c-muted); font-size: 1.08rem; margin: 0; }
.section-more { margin-top: 2rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999; }
.skip-link:focus { top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 999; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }

/* ===== الأزرار ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
	padding: .65rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer;
	text-decoration: none; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-call { background: var(--c-call); color: #1c1d21; }
.btn-call:hover { background: #d6b06a; color: #1c1d21; }
.btn-wa { background: var(--c-wa); color: #fff; }
.btn-wa:hover { background: #12622f; color: #fff; }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--c-dark); border-color: var(--c-dark); }
.btn-sm { min-height: 42px; padding: .45rem 1.1rem; font-size: .95rem; }

/* ===== الهيدر والقائمة ===== */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--c-line); backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); width: min(100% - 2.2rem, 1320px); margin-inline: auto; }
.site-branding { flex: none; display: flex; align-items: center; }
.site-branding img, .custom-logo {
	max-height: var(--logo-h, 56px);
	width: auto;
	height: auto;
	max-width: 280px;
	object-fit: contain;
	display: block;
}
.site-title { font-size: 1.25rem; font-weight: 700; color: var(--c-dark); text-decoration: none; line-height: 1.3; }
.footer-logo-link { display: inline-block; margin-bottom: 1rem; }
.footer-logo-img {
	max-height: calc(var(--logo-h, 56px) * 0.95);
	width: auto;
	height: auto;
	max-width: 260px;
	object-fit: contain;
	display: block;
}

.primary-nav { margin-inline-start: auto; }
.primary-nav .menu { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: flex; align-items: center; gap: .45rem; padding: .55rem .65rem; border-radius: 12px;
	color: var(--c-dark); font-weight: 500; font-size: .94rem; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.primary-nav .menu a:hover { background: var(--c-ivory); color: #000; }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-menu-parent > a { background: var(--c-ivory); box-shadow: inset 0 -2px 0 var(--c-gold); }
.mi { display: inline-flex; color: var(--c-gold); flex: none; }
.mi .ic { width: 18px; height: 18px; }
.primary-nav .menu-item-has-children > a::after {
	content: ''; width: 6px; height: 6px; margin-inline-start: .1rem; flex: none;
	border-right: 2px solid var(--c-gold); border-bottom: 2px solid var(--c-gold); transform: rotate(45deg) translateY(-3px);
}
/* جسر صغير حتى لا تختفي القائمة المنسدلة عند تحريك الماوس */
.primary-nav .menu > .menu-item-has-children::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: 10px; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .55rem; position: absolute; inset-inline-start: 0; top: calc(100% + 6px);
	min-width: 300px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
	box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s; z-index: 5;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: .5rem .6rem; font-size: .93rem; white-space: normal; }
.primary-nav .sub-menu .mi {
	width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--c-ivory); border-radius: 10px;
}
.primary-nav .sub-menu .menu-all { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--c-line); }
.primary-nav .sub-menu .menu-all a { font-weight: 700; }

/* أزرار الهيدر: دائرتان بسيطتان */
.header-actions { display: flex; gap: .5rem; flex: none; }
.hbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
	text-decoration: none; transition: transform .2s, background-color .2s;
}
.hbtn .ic { width: 20px; height: 20px; }
.hbtn:hover { transform: translateY(-1px); }
.hbtn-call { background: var(--c-dark); color: var(--c-call); }
.hbtn-call:hover { background: #000; color: #e2bd78; }
.hbtn-wa { background: var(--c-wa); color: #fff; }
.hbtn-wa:hover { background: #12622f; color: #fff; }

.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-line); border-radius: 12px; padding: 0; width: 44px; height: 44px; cursor: pointer; flex: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--c-dark); position: relative; content: ''; border-radius: 2px; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* قائمة الهامبرغر حتى 1300px: عندها لا يتسع الهيدر للقائمة كاملة */
@media (max-width: 1300px) {
	.nav-toggle { display: inline-flex; }
	.header-actions { margin-inline-start: auto; }
	.primary-nav {
		display: none; position: absolute; inset-inline: 0; top: 100%; margin: 0; background: #fff;
		border-bottom: 1px solid var(--c-line); padding: .6rem 1rem 1rem;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: .1rem; }
	.primary-nav .menu a { padding: .75rem .6rem; min-height: 48px; white-space: normal; }
	.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a { box-shadow: none; }
	.primary-nav .menu-item-has-children > a::after, .primary-nav .menu > .menu-item-has-children::after { display: none; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		min-width: 0; padding: 0 1.4rem 0 0; background: transparent;
	}
	.primary-nav .sub-menu .mi { width: 30px; height: 30px; }
}
@media (max-width: 720px) {
	.header-actions { display: flex; gap: .4rem; }
	.hbtn { width: 38px; height: 38px; }
	.hbtn .ic { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
	.site-title { font-size: 1.02rem; }
	.hbtn { width: 40px; height: 40px; }
}


/* ===== الواجهة الرئيسية ===== */
.hero { background: var(--c-ivory); padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.badge {
	display: inline-block; margin: 0 0 1rem; padding: .3rem 1rem; border: 1px solid var(--c-gold);
	border-radius: 999px; color: var(--c-dark); font-size: .92rem; background: #fff;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.3; margin-bottom: .45em; }
.hero-text { font-size: 1.15rem; color: var(--c-muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.hero-frame, .service-hero-media .hero-frame {
	position: relative; aspect-ratio: 4 / 3; border-radius: 28px; background: #ece7dc; isolation: isolate;
}
.hero-frame::before {
	content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--c-gold);
	border-radius: 28px; z-index: -1;
}
.hero-frame img, .hero-frame .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* ===== الصور المحجوزة ===== */
.ph {
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
	background: #efeadf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8975a' stroke-opacity='.6' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / 46px no-repeat;
	color: var(--c-muted); font-size: .85rem;
}

/* ===== الشبكات والبطاقات ===== */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(28,29,33,.04); transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece7dc; }
.card-thumb img, .card-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.2rem; margin-bottom: .4em; }
.card-title a { text-decoration: none; }
.card-body p { color: var(--c-muted); font-size: .98rem; }
.card-tag { font-size: .85rem; color: var(--c-gold); margin: 0 0 .3rem; font-weight: 600; }
.card-tag a { color: inherit; text-decoration: none; }
.card-link { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--c-gold); padding-bottom: 2px; }
.service-card.is-large .card-title { font-size: 1.3rem; }
.service-card.is-compact { flex-direction: row; }
.service-card.is-compact .card-thumb { aspect-ratio: auto; width: 38%; flex: none; }
.entry-meta { color: var(--c-muted); font-size: .9rem; margin-bottom: .5rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.tick-list li { position: relative; padding-inline-start: 1.5rem; margin-bottom: .35rem; font-size: .97rem; }
.tick-list li::before {
	content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 9px; height: 9px;
	background: var(--c-gold); border-radius: 50%;
}

/* ===== المميزات (القسم الداكن) ===== */
.section-dark { background: var(--c-dark); color: #e9e5dc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-desc { color: #b9b5ab; }
.features-grid { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.features.has-image .features-grid { grid-template-columns: 1fr 1.2fr; }
.features-media img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.feature-list li { padding: 1.2rem 0; border-top: 1px solid rgba(184,151,90,.55); }
.feature-list h3 { font-size: 1.1rem; margin-bottom: .25em; }
.feature-list p { margin: 0; color: #c9c5bb; font-size: .97rem; }

/* ===== معرض الأقفال ===== */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: .9rem; }
.gallery .g-item { overflow: hidden; border-radius: var(--radius-sm); background: #ece7dc; }
.gallery .g-item a { display: block; width: 100%; height: 100%; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .g-item a:hover img { transform: scale(1.05); }
.gallery .g-1 { grid-column: span 2; grid-row: span 2; }
.gallery .g-4 { grid-row: span 2; }
.gallery-flat { grid-auto-rows: auto; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery-flat .g-item { aspect-ratio: 16 / 11; }
.admin-hint { background: #fff8e6; border: 1px dashed var(--c-gold); padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }

/* ===== لماذا نحن / الخطوات ===== */
.why-item { padding: 1.6rem; background: #fff; border-radius: var(--radius); border-top: 3px solid var(--c-gold); box-shadow: var(--shadow); }
.why-item h3 { font-size: 1.15rem; }
.why-item p { margin: 0; color: var(--c-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: none; }
.step { position: relative; padding: 1.4rem 1.3rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.step-no {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: .8rem;
	border-radius: 50%; background: var(--c-dark); color: var(--c-call); font-weight: 700;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ===== الأسئلة الشائعة ===== */
.faq { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--c-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--c-gold); font-size: 1.5rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 1.2rem 1.1rem; color: var(--c-muted); }
.faq-a p { margin: 0; }

/* ===== بلوك التواصل ===== */
.cta-block { background: var(--c-dark); color: #fff; padding-block: clamp(2.4rem, 6vw, 4rem); }
.cta-block h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .3em; }
.cta-block p { color: #c9c5bb; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== رؤوس الصفحات الداخلية ===== */
.page-hero { background: var(--c-ivory); padding-block: clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--c-line); }
.page-title { font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: .3em; }
.breadcrumbs { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; color: var(--c-muted); }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: .3rem; color: var(--c-gold); }
.service-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.service-hero.no-media { display: block; max-width: 900px; }
.service-hero-copy .page-title { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.35; margin-bottom: .45em; }
.service-hero-copy .lead { font-size: 1.18rem; line-height: 1.85; color: var(--c-muted); max-width: 64ch; }
.service-hero-media .hero-frame {
	position: relative; aspect-ratio: 16 / 11; min-height: 320px; border-radius: 28px; background: #ece7dc; isolation: isolate;
}
.chips a { display: block; padding: .3rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; }
.group-block + .group-block { margin-top: 3.5rem; }
.group-block .section-title a { text-decoration: none; }

/* ===== المحتوى ===== */
.service-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.feature-box { background: var(--c-ivory); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.feature-box h2 { font-size: 1.15rem; }
.single-wrap .feature-box { position: static; margin-top: 2rem; }
.entry-content { max-width: 72ch; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: .6rem .9rem; text-align: right; }
.entry-content th { background: var(--c-ivory); }
.entry-content blockquote { margin: 1.5rem 0; padding: .5rem 1.2rem; border-inline-start: 4px solid var(--c-gold); background: var(--c-ivory); }
.entry-thumb { margin-bottom: 2rem; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.before-after img { border-radius: var(--radius-sm); }
.before-after figcaption { text-align: center; color: var(--c-muted); font-size: .9rem; margin-top: .3rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.contact-card { padding: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.contact-list span { display: block; font-size: .85rem; color: var(--c-muted); }
.stack { display: grid; gap: .6rem; }
.no-results, .not-found { max-width: 56ch; }

/* ===== النماذج والترقيم ===== */
.search-form { display: flex; gap: .5rem; max-width: 440px; }
input[type=search], input[type=text], input[type=email], input[type=tel], textarea {
	width: 100%; padding: .75rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font: inherit; background: #fff;
}
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .45rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }

/* ===== الفوتر ===== */
.site-footer { background: #121316; color: #c9c5bb; padding-top: 3.5rem; }
.site-footer a { color: #e6e1d6; text-decoration: none; }
.site-footer a:hover { color: var(--c-call); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.2rem; }
.footer-brand { display: block; color: #fff; font-size: 1.2rem; margin-bottom: .6rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; font-size: .96rem; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; margin: 1rem 0 0; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-block: 1.2rem; font-size: .9rem; }
.credit-link { color: #c9c5bb; text-decoration: none; transition: color .3s ease; }
a.credit-link:hover { color: var(--c-call); }

/* ===== شريط الاتصال للجوال ===== */
.mobile-bar { display: none; }

/* ===== العرض المكبّر ===== */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.92); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lb.is-open { display: flex; }
.lb img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== ووردبريس الأساسي ===== */
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--c-muted); }

/* ===== الاستجابة ===== */
@media (max-width: 1000px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.service-body, .contact-grid { grid-template-columns: 1fr; }
	.feature-box { position: static; }
}
@media (max-width: 900px) {
	.hero-grid, .service-hero, .features.has-image .features-grid { grid-template-columns: 1fr; }
	.hero-media, .service-hero-media { order: -1; padding-inline-end: 14px; }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.gallery .g-1 { grid-column: span 2; }
	.gallery .g-7 { grid-column: span 1; }
}
@media (max-width: 720px) {
	body { font-size: 16.5px; }
	.grid-3, .grid-2, .steps, .feature-list, .gallery-flat { grid-template-columns: 1fr; }
	.gallery-flat { grid-template-columns: 1fr 1fr; }
	.service-card.is-compact { flex-direction: column; }
	.service-card.is-compact .card-thumb { width: 100%; aspect-ratio: 4 / 3; }
	.footer-grid { grid-template-columns: 1fr; }
	.before-after { grid-template-columns: 1fr; }
	.cta-actions, .hero-actions { width: 100%; }
	.cta-actions .btn, .hero-actions .btn { flex: 1 1 100%; }
	.mobile-bar {
		display: flex; gap: .5rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
		padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97);
		border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(28,29,33,.08);
	}
	.mobile-bar .btn { flex: 1; }
	body.has-mobile-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ===================== v2.1 ===================== */

/* ----- الأزرار بأيقونات ----- */
.btn { gap: .6rem; box-shadow: 0 1px 2px rgba(28,29,33,.12); }
.btn-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.btn-ic .ic { width: 18px; height: 18px; }
.btn-call .btn-ic { background: var(--c-dark); color: var(--c-call); }
.btn-wa .btn-ic { background: rgba(255,255,255,.2); color: #fff; }
.btn-block { width: 100%; }

/* ----- تصنيفات المقالات (فلتر) ----- */
.chips-filter { margin: 0 0 1.8rem; }
.chips a.is-active, .chips a:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.chips-sm { margin: 0 0 .8rem; }
.chips-sm a { padding: .15rem .8rem; font-size: .85rem; }
.filter-item[hidden] { display: none; }
.filter-item { display: contents; }

/* ----- شريط التقدم ----- */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 90; background: transparent; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .read-progress { top: 46px; } }
.read-progress span { display: block; height: 100%; background: linear-gradient(to left, var(--c-gold), var(--c-call)); transform-origin: right center; transform: scaleX(0); }

/* ----- اللوحات (Panels) ----- */
.panel {
	background: #fff; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: 0 6px 24px rgba(28,29,33,.05);
	padding: clamp(1.5rem, 3.5vw, 2.8rem);
}
.panel-title { font-size: 1.55rem; margin-bottom: 1.2rem; }
.panel .entry-content { max-width: none; font-size: 1.12rem; line-height: 2; }
.panel .entry-content > p:first-child { font-size: 1.2rem; color: #2a2c31; line-height: 1.95; }
.panel .entry-content h2 {
	position: relative; padding-inline-start: 1.2rem; font-size: 1.6rem; margin-top: 2.4rem; margin-bottom: .8rem;
}
.panel .entry-content h2::before {
	content: ''; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 5px; border-radius: 4px; background: var(--c-gold);
}
.panel .entry-content h3 { font-size: 1.35rem; margin-top: 1.8rem; margin-bottom: .6rem; }
.panel .entry-content ul { padding-inline-start: 0; list-style: none; display: grid; gap: .75rem; font-size: 1.08rem; }
.panel .entry-content ul li { position: relative; padding-inline-start: 1.6rem; line-height: 1.85; }
.panel .entry-content ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--c-gold); }
.tick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }
.tick-list li { font-size: 1.05rem; line-height: 1.8; }

/* ----- صفحة المقال ----- */
.post-head { background: var(--c-ivory); padding-block: 1.6rem 2.4rem; border-bottom: 1px solid var(--c-line); }
.title-card {
	background: #fff; border: 1px solid var(--c-line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.4rem);
	box-shadow: 0 14px 40px rgba(28,29,33,.08); border-top: 4px solid var(--c-gold);
}
.title-card .page-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .4em; }
.title-card .lead { margin-bottom: 1rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.blog-layout, .post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.8rem; padding-block: 2rem 3.5rem; align-items: start; }
.post-layout .entry { margin: 0; }
.blog-layout .grid-3 { grid-template-columns: repeat(2, 1fr); }
.blog-main { min-width: 0; }

/* ----- أقسام المقال في البداية (Inline TOC) ----- */
.post-toc-inline {
	background: var(--c-ivory);
	border: 1px solid var(--c-line);
	border-inline-start: 4px solid var(--c-gold);
	border-radius: 16px;
	padding: 1.2rem 1.4rem;
	margin-bottom: 2rem;
}
.post-toc-inline .toc-inline-title {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.15rem;
	color: var(--c-dark);
	margin-bottom: .8rem;
}
.post-toc-inline .toc-inline-title .ic {
	width: 20px;
	height: 20px;
	color: var(--c-gold);
}
.post-toc-inline ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: .35rem;
}
.post-toc-inline li a {
	display: inline-flex;
	align-items: center;
	padding: .35rem .6rem;
	color: var(--c-muted);
	text-decoration: none;
	font-size: .98rem;
	line-height: 1.6;
	border-radius: 8px;
	transition: color .2s, background-color .2s;
}
.post-toc-inline li a:hover {
	color: var(--c-dark);
	background: rgba(184, 151, 90, .14);
}
.post-toc-inline li.l3 {
	padding-inline-start: 1.4rem;
}
.post-toc-inline li.l3 a {
	font-size: .92rem;
}
.post-toc-inline li a.is-active {
	color: var(--c-dark);
	font-weight: 700;
	background: rgba(184, 151, 90, .18);
}

/* ----- السايد بار (نحيف) ----- */
.post-sidebar, .service-side { display: grid; gap: 1.2rem; align-self: start; }
.post-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; }
.service-side { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.side-box { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 1.4rem 1.4rem; box-shadow: 0 4px 18px rgba(28,29,33,.04); }
.side-box h2 { font-size: 1.22rem; margin-bottom: .8rem; }
.side-box p { font-size: .98rem; color: var(--c-muted); margin-bottom: 1rem; line-height: 1.7; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--c-line); font-size: .98rem; line-height: 1.6; }
.side-links li:last-child { border-bottom: 0; }
.side-links a { text-decoration: none; }
.side-links a:hover { color: #000; text-decoration: underline; }
.side-links span { color: var(--c-muted); font-size: .85rem; }
.side-contact { background: var(--c-dark); border-color: var(--c-dark); }
.side-contact h2 { color: #fff; }
.side-contact p { color: #c9c5bb; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: .3rem .6rem; border-inline-start: 2px solid var(--c-line); color: var(--c-muted); text-decoration: none; font-size: .9rem; line-height: 1.6; }
.toc a:hover { color: #000; }
.toc a.is-active { border-color: var(--c-gold); color: var(--c-dark); font-weight: 600; }
.toc li.l3 a { padding-inline-start: 1.4rem; font-size: .86rem; }
.side-head, .side-fab, .side-backdrop { display: none; }

/* ----- صفحة الخدمة ----- */
.service-top { padding-block: 2rem clamp(2.4rem, 6vw, 4.2rem); }
.service-top .badge a { text-decoration: none; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.2rem; padding-block: 2.5rem 4.5rem; align-items: start; }
.service-main { display: grid; gap: 1.8rem; min-width: 0; }
.feature-box { position: static; }
.service-main .steps { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

/* ----- أرشيف الخدمات ----- */
.group-block + .group-block { margin-top: 4rem; }

/* ===== الجوال والتابلت ===== */
@media (max-width: 900px) {
	.blog-layout, .post-layout, .service-layout { grid-template-columns: 1fr; }
	.blog-layout .grid-3 { grid-template-columns: 1fr 1fr; }
	.post-sidebar:not(.is-sheet) { position: static; max-height: none; overflow: visible; }
	.service-side { position: static; }
	.tick-grid { grid-template-columns: 1fr; }

	/* مكونات المقال تتحول إلى لوحة سفلية تُفتح بزر عائم */
	.side-fab {
		display: inline-flex; align-items: center; gap: .5rem; position: fixed; z-index: 70; inset-inline-start: .9rem;
		bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: .5rem 1.1rem;
		background: var(--c-dark); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
		box-shadow: 0 8px 24px rgba(0,0,0,.28);
	}
	.side-fab .ic { color: var(--c-call); }
	body.has-mobile-bar .side-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.post-sidebar.is-sheet {
		position: fixed; inset-inline: 0; top: auto; bottom: 0; z-index: 120; max-height: 78vh; overflow-y: auto;
		background: #f7f5f0; border-radius: 22px 22px 0 0; padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
		transform: translateY(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; box-shadow: 0 -12px 40px rgba(0,0,0,.28);
	}
	.post-sidebar.is-sheet.is-open { transform: none; visibility: visible; }
	.side-head { display: flex; align-items: center; justify-content: space-between; }
	.side-close { background: #fff; border: 1px solid var(--c-line); border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-dark); }
	.side-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.45); }
	.side-backdrop:not([hidden]) { display: block; }
}
@media (max-width: 720px) {
	.container { width: min(100% - 1.4rem, var(--container)); }
	.service-top { padding-block: 1.5rem 2.2rem; }
	.service-layout { padding-block: 1.5rem 3rem; gap: 1.5rem; }
	.service-hero-copy .page-title { font-size: 1.85rem; }
	.service-hero-copy .lead { font-size: 1.02rem; }
	.service-hero-media .hero-frame { min-height: 220px; aspect-ratio: 16 / 10; border-radius: 18px; }
	.service-hero-media .hero-frame::before { inset: 8px -8px -8px 8px; border-radius: 18px; }
	.hero-frame::before { inset: 8px -8px -8px 8px; }
	.panel { padding: 1.25rem 1rem; border-radius: 16px; }
	.panel-title { font-size: 1.3rem; }
	.panel .entry-content { font-size: 1.02rem; }
	.panel .entry-content h2 { font-size: 1.35rem; }
	.service-main .steps { grid-template-columns: 1fr; }
	.blog-layout .grid-3 { grid-template-columns: 1fr; }
	.mobile-bar .btn { flex: 1; padding: .3rem .8rem .3rem .4rem; }
	.mobile-bar .btn-label { font-size: .95rem; }
}
@media (max-width: 480px) {
	.breadcrumbs ol { font-size: .82rem; }
	.service-hero-copy .page-title { font-size: 1.65rem; }
	.gallery-flat { grid-template-columns: 1fr; }
	.panel { padding: 1.1rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
	.post-sidebar { transition: none; }
}
