/* ==========================================================================
   بساتين المملكة — نظام التصميم
   العنصر المميز: الشُّرفات النجدية (فواصل وختم "منذ 2011") وإطارات العقد.
   ========================================================================== */

:root {
	--bs-ink: #1F2B22;        /* زيتوني فحمي: الخلفيات الداكنة والنصوص القوية */
	--bs-olive: #33432F;      /* زيتوني */
	--bs-moss: #5B6B4C;       /* نصوص ثانوية على الفاتح */
	--bs-bronze: #9C7A4D;     /* برونزي: الخطوط والإطارات والأزرار الثانوية */
	--bs-bronze-2: #C2A16F;   /* برونزي فاتح على الداكن */
	--bs-ivory: #F5F0E4;      /* عاجي: خلفية الموقع */
	--bs-paper: #EAE1CC;      /* ورقي: أقسام متبادلة */
	--bs-text: #2A2C25;
	--bs-line: rgba(156, 122, 77, .38);
	--bs-radius: 3px;
	--bs-wrap: 1180px;
	--bs-head: "Amiri", "Noto Naskh Arabic", serif;
	--bs-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--bs-crenel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 2 L9 2 L9 0 L19 0 L19 2 L21 2 L28 14 Z' fill='%239C7A4D'/%3E%3C/svg%3E");
	--bs-crenel-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 2 L9 2 L9 0 L19 0 L19 2 L21 2 L28 14 Z' fill='%231F2B22'/%3E%3C/svg%3E");
	--bs-crenel-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 2 L9 2 L9 0 L19 0 L19 2 L21 2 L28 14 Z' fill='%23EAE1CC'/%3E%3C/svg%3E");
	--bs-crenel-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 L7 2 L9 2 L9 0 L19 0 L19 2 L21 2 L28 14 Z' fill='%23C2A16F'/%3E%3C/svg%3E");
}

/* ---------- الأساس ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	background: var(--bs-ivory);
	color: var(--bs-text);
	font-family: var(--bs-body);
	font-size: 17px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--bs-head);
	color: var(--bs-ink);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }

a { color: var(--bs-olive); text-underline-offset: 3px; }
a:hover { color: var(--bs-bronze); }
:focus-visible { outline: 2px solid var(--bs-bronze); outline-offset: 3px; }

img { max-width: 100%; height: auto; }
bdi { unicode-bidi: isolate; direction: ltr; }

.bs-wrap { width: min(var(--bs-wrap), 100% - 32px); margin-inline: auto; }

.screen-reader-text:focus {
	position: fixed; top: 8px; right: 8px; z-index: 10000;
	background: var(--bs-ink); color: #fff; padding: 10px 16px; clip: auto; width: auto; height: auto;
}

/* ---------- الأزرار ---------- */
.bs-btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .78em 1.4em;
	font: 600 1rem/1.2 var(--bs-body);
	border-radius: var(--bs-radius);
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
	white-space: nowrap;
}
.bs-btn--solid { background: var(--bs-ink); color: var(--bs-ivory); }
.bs-btn--solid:hover { background: var(--bs-olive); color: #fff; }
.bs-btn--line { border-color: var(--bs-bronze); color: var(--bs-ink); background: transparent; }
.bs-btn--line:hover { background: var(--bs-bronze); color: #fff; }
.bs-btn--bronze { background: var(--bs-bronze); color: #fff; }
.bs-btn--bronze:hover { background: var(--bs-bronze-2); color: var(--bs-ink); }
.bs-ico { flex: none; }

/* أزرار المنتور تأخذ الطابع نفسه */
.elementor-button {
	font-family: var(--bs-body) !important;
	font-weight: 600;
	border-radius: var(--bs-radius);
}

/* ---------- الشريط العلوي ---------- */
.bs-topbar { background: var(--bs-ink); color: #DCD3BF; font-size: .88rem; }
.bs-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.bs-topbar__note { margin: 0; }
.bs-topbar__phone { color: var(--bs-bronze-2); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.bs-topbar__phone:hover { color: #fff; }
@media (max-width: 640px) { .bs-topbar__note { font-size: .8rem; } }

/* ---------- الهيدر ---------- */
.bs-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(245, 240, 228, .97);
	border-bottom: 1px solid var(--bs-line);
	transition: box-shadow .25s, background-color .25s;
}
.bs-header.is-scrolled { background: var(--bs-ivory); box-shadow: 0 6px 18px -12px rgba(31, 43, 34, .45); }
.bs-header__in { display: flex; align-items: center; gap: 24px; min-height: 84px; transition: min-height .25s; }
.bs-header.is-scrolled .bs-header__in { min-height: 66px; }

.bs-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bs-ink); flex: none; }
.bs-brand__mark { width: 54px; height: 54px; object-fit: contain; }
.bs-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.bs-brand__name { font: 700 1.55rem/1.1 var(--bs-head); }
.bs-brand__sub { font-size: .8rem; color: var(--bs-bronze); margin-top: 4px; }

.bs-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.bs-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bs-menu > li { position: relative; }
.bs-menu a {
	display: block; padding: 10px 12px; text-decoration: none; color: var(--bs-ink);
	font-weight: 500; font-size: .98rem;
}
.bs-menu > li > a { border-bottom: 2px solid transparent; }
.bs-menu > li.current-menu-item > a,
.bs-menu > li.current-menu-ancestor > a,
.bs-menu > li > a:hover { border-bottom-color: var(--bs-bronze); color: var(--bs-ink); }
.bs-menu .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 260px;
	list-style: none; margin: 0; padding: 10px 0;
	background: var(--bs-ivory); border: 1px solid var(--bs-line); border-top: 2px solid var(--bs-bronze);
	box-shadow: 0 16px 30px -18px rgba(31, 43, 34, .5);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
	columns: 1;
}
.bs-menu .sub-menu a { padding: 8px 20px; font-size: .95rem; }
.bs-menu .sub-menu a:hover { background: var(--bs-paper); }
.bs-menu li:hover > .sub-menu,
.bs-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bs-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(-45deg); }
.bs-nav__cta { display: flex; gap: 8px; }
.bs-nav__cta .bs-btn { padding: .65em 1.05em; font-size: .93rem; }

.bs-nav-toggle { display: none; }

@media (max-width: 1180px) {
	.bs-nav__cta .bs-btn--line { display: none; }
}
@media (max-width: 1024px) {
	.bs-header__in { min-height: 70px; }
	.bs-nav-toggle {
		display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto;
		background: none; border: 1px solid var(--bs-line); color: var(--bs-ink);
		padding: 8px 12px; border-radius: var(--bs-radius); font: 500 .95rem var(--bs-body);
	}
	.bs-nav {
		position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bs-ivory); padding: 84px 22px 120px;
		transform: translateX(100%); transition: transform .28s ease;
		overflow-y: auto; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35); z-index: 950;
	}
	.bs-nav.is-open { transform: none; }
	.bs-menu { flex-direction: column; }
	.bs-menu > li { border-bottom: 1px solid var(--bs-line); }
	.bs-menu a { padding: 13px 4px; font-size: 1.05rem; }
	.bs-menu > li > a { border: 0; }
	.bs-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 10px; display: none; background: transparent; }
	.bs-menu li.is-open > .sub-menu { display: block; }
	.bs-nav__cta { flex-direction: column; margin-top: 22px; }
	.bs-nav__cta .bs-btn, .bs-nav__cta .bs-btn--line { display: flex; justify-content: center; }
	body.bs-nav-open { overflow: hidden; }
	body.bs-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(31, 43, 34, .45); z-index: 940; }
	.bs-brand__name { font-size: 1.3rem; }
	.bs-brand__mark { width: 44px; height: 44px; }
}

/* ---------- مسار التنقل ---------- */
.bs-crumbs { background: var(--bs-paper); border-bottom: 1px solid var(--bs-line); font-size: .9rem; }
.bs-crumbs .bs-wrap { padding: 10px 0; }
.bs-crumbs p, .bs-crumbs nav { margin: 0; }
.bs-crumbs a { color: var(--bs-moss); text-decoration: none; }
.bs-crumbs a:hover { color: var(--bs-bronze); }
.bs-crumbs .separator { color: var(--bs-bronze); margin: 0 6px; }

/* ---------- فاصل الشرفات النجدية ---------- */
.bs-crenel {
	height: 14px;
	background: var(--bs-crenel) repeat-x center bottom / 28px 14px;
	opacity: .9;
}
.bs-crenel--footer { background-image: var(--bs-crenel-ink); background-color: var(--bs-ivory); opacity: 1; }
/* يُستخدم على حاوية في المنتور: أضف الكلاس bs-crenel-top لتظهر الشرفات أعلى القسم */
.bs-crenel-top { position: relative; }
.bs-crenel-top { overflow: visible !important; }
.bs-crenel-top::after {
	content: ""; position: absolute; inset: -13px 0 auto 0; height: 14px; z-index: 3;
	background: var(--bs-crenel-paper) repeat-x center bottom / 28px 14px; pointer-events: none;
}
.bs-crenel-top.bs-ink::after { background-image: var(--bs-crenel-ink); }

/* ---------- الختم ---------- */
.bs-seal { color: var(--bs-bronze); display: block; }
.bs-seal-wrap { display: flex; justify-content: center; }
.bs-ink .bs-seal, .bs-footer .bs-seal { color: var(--bs-bronze-2); }

/* ---------- كلاسات جاهزة للاستخدام داخل المنتور (تبويب متقدم ← CSS Classes) ---------- */

/* قسم داكن */
.bs-ink { background-color: var(--bs-ink); color: #E5DDCB; }
.bs-ink h1, .bs-ink h2, .bs-ink h3, .bs-ink h4,
.bs-ink .elementor-heading-title { color: var(--bs-ivory) !important; }
.bs-ink a:not(.bs-btn):not(.elementor-button) { color: var(--bs-bronze-2); }
.bs-paper { background-color: var(--bs-paper); }

/* إطار العقد النجدي للصور: أضف bs-arch على ويدجت الصورة */
.bs-arch img, img.bs-arch {
	border-radius: 48% 48% var(--bs-radius) var(--bs-radius) / 26% 26% var(--bs-radius) var(--bs-radius);
	object-fit: cover;
}
/* إطار مزدوج برونزي: أضف bs-frame على ويدجت الصورة أو على حاوية */
.bs-frame { position: relative; }
.bs-frame::after {
	content: ""; position: absolute; inset: 12px; border: 1px solid rgba(245, 240, 228, .75);
	pointer-events: none; border-radius: inherit;
}
.bs-frame.bs-arch::after { border-radius: 48% 48% 2px 2px / 26% 26% 2px 2px; }
.bs-frame--out { outline: 1px solid var(--bs-line); outline-offset: 10px; }

/* عنوان بخط برونزي أسفله */
.bs-title-rule .elementor-heading-title::after {
	content: ""; display: block; width: 72px; height: 14px; margin-top: 14px;
	background: var(--bs-crenel) repeat-x left bottom / 28px 14px;
}
.bs-center.bs-title-rule .elementor-heading-title::after,
.elementor-widget-heading.bs-title-rule .elementor-heading-title[style*="center"]::after { margin-inline: auto; }
.bs-center .elementor-heading-title { text-align: center; }

/* نص تمهيدي تحت العناوين */
.bs-lead { font-size: 1.12rem; color: var(--bs-moss); max-width: 62ch; }
.bs-ink .bs-lead { color: #CFC6B2; }

/* بطاقة خدمة (تُطبَّق على حاوية تضم صورة وعنوانًا ونصًا وزرًا) */
.bs-card {
	background: #FBF8F1; border: 1px solid var(--bs-line);
	transition: border-color .2s, transform .25s;
	overflow: hidden;
}
.bs-card:hover { border-color: var(--bs-bronze); transform: translateY(-3px); }
.bs-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.bs-card:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .bs-card, .bs-card img { transition: none; } .bs-card:hover, .bs-card:hover img { transform: none; } }

/* أرقام الثقة */
.bs-stat .elementor-counter-number-wrapper { font-family: var(--bs-head); font-weight: 700; color: var(--bs-ink); }
.bs-ink .bs-stat .elementor-counter-number-wrapper { color: var(--bs-bronze-2); }
.bs-stat .elementor-counter-title { font-family: var(--bs-body); color: var(--bs-moss); font-size: 1rem; }
.bs-ink .bs-stat .elementor-counter-title { color: #CFC6B2; }

/* قوائم النقاط */
.bs-ticks ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.bs-ticks li { position: relative; padding-inline-start: 1.8em; margin-bottom: .55em; }
.bs-ticks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 11px; height: 11px;
	border: 1.5px solid var(--bs-bronze); transform: rotate(45deg);
}

/* جداول المقارنة داخل محرر النصوص والمقالات */
.bs-main table, .entry-content table {
	width: 100%; border-collapse: collapse; margin: 1.2em 0 1.8em; font-size: .97rem; background: #FBF8F1;
}
.bs-main th, .entry-content th { background: var(--bs-olive); color: var(--bs-ivory); font-weight: 600; text-align: right; }
.bs-main th, .bs-main td, .entry-content th, .entry-content td { border: 1px solid var(--bs-line); padding: 10px 12px; vertical-align: top; }
.bs-main tr:nth-child(even) td { background: rgba(234, 225, 204, .45); }
@media (max-width: 640px) {
	.bs-main table, .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* خطوات التنفيذ (تسلسل حقيقي) */
.bs-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.bs-steps li { counter-increment: s; position: relative; padding: 0 64px 26px 0; border-right: 1px solid var(--bs-line); margin-right: 22px; }
.bs-steps li:last-child { border-right-color: transparent; padding-bottom: 0; }
.bs-steps li::before {
	content: counter(s, arabic-indic); position: absolute; right: -22px; top: -4px;
	width: 44px; height: 44px; display: grid; place-items: center;
	font: 700 1.25rem/1 var(--bs-head); color: var(--bs-ivory); background: var(--bs-olive);
	border-radius: 50% 50% var(--bs-radius) var(--bs-radius) / 40% 40% var(--bs-radius) var(--bs-radius);
}
.bs-steps h3 { margin: 0 0 .25em; font-size: 1.2rem; }
.bs-steps p { margin: 0; color: var(--bs-moss); }

/* الخط الزمني (صفحة من نحن) */
.bs-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.bs-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 92px; width: 1px; background: var(--bs-line); }
.bs-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding-bottom: 30px; position: relative; }
.bs-timeline li::after { content: ""; position: absolute; right: 87px; top: 12px; width: 11px; height: 11px; background: var(--bs-ivory); border: 1.5px solid var(--bs-bronze); transform: rotate(45deg); }
.bs-timeline .bs-tl__year { font: 700 1.35rem/1.4 var(--bs-head); color: var(--bs-bronze); text-align: left; }
.bs-timeline h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.bs-timeline p { margin: 0; color: var(--bs-moss); }
@media (max-width: 560px) {
	.bs-timeline::before { right: 6px; }
	.bs-timeline li { grid-template-columns: 1fr; gap: 2px; padding-right: 30px; }
	.bs-timeline li::after { right: 1px; }
	.bs-timeline .bs-tl__year { text-align: right; }
}

/* الأسئلة الشائعة (ويدجت الأكورديون/التبديل في المنتور مع كلاس bs-faq) */
.bs-faq .elementor-accordion-item, .bs-faq .elementor-toggle-item, .bs-faq details {
	border: 0 !important; border-bottom: 1px solid var(--bs-line) !important; background: transparent;
}
.bs-faq .elementor-tab-title, .bs-faq summary {
	font-family: var(--bs-head) !important; font-size: 1.18rem !important; font-weight: 700; color: var(--bs-ink) !important;
	padding: 18px 4px !important;
}
.bs-faq .elementor-tab-content { padding: 0 4px 18px !important; border: 0 !important; color: var(--bs-text); }

/* ---------- صندوق الدعوة ---------- */
.bs-cta {
	display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
	background: var(--bs-ink); color: #E5DDCB; padding: 30px 32px; margin: 2.4em 0;
	border-radius: var(--bs-radius); position: relative;
}
.bs-cta::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(194, 161, 111, .35); pointer-events: none; }
.bs-cta__seal .bs-seal { color: var(--bs-bronze-2); }
.bs-cta__title { font: 700 1.5rem/1.3 var(--bs-head); color: var(--bs-ivory); margin: 0 0 .3em; }
.bs-cta__text { margin: 0 0 1em; }
.bs-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.bs-cta .bs-btn--solid { background: var(--bs-bronze); }
.bs-cta .bs-btn--solid:hover { background: var(--bs-bronze-2); color: var(--bs-ink); }
.bs-cta .bs-btn--line { color: var(--bs-ivory); border-color: var(--bs-bronze-2); }
@media (max-width: 600px) { .bs-cta { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; } .bs-cta__seal .bs-seal { margin: auto; } .bs-cta__actions { justify-content: center; } }

/* ---------- النموذج ---------- */
.bs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bs-form__row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.bs-form__row--half { grid-column: auto; }
.bs-form label { font-weight: 600; font-size: .95rem; color: var(--bs-ink); }
.bs-ink .bs-form label { color: var(--bs-ivory); }
.bs-form input, .bs-form select {
	font: 1rem var(--bs-body); padding: 12px 14px; border: 1px solid var(--bs-line);
	background: #FFFDF8; color: var(--bs-text); border-radius: var(--bs-radius); width: 100%;
}
.bs-form input:focus, .bs-form select:focus { border-color: var(--bs-bronze); outline: none; box-shadow: 0 0 0 3px rgba(156, 122, 77, .2); }
.bs-form [aria-invalid="true"] { border-color: #A3412E; }
.bs-form__error { grid-column: 1 / -1; color: #A3412E; margin: 0; font-weight: 500; }
.bs-ink .bs-form__error { color: #F0B9A8; }
.bs-form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.bs-form__note { grid-column: 1 / -1; font-size: .85rem; color: var(--bs-moss); margin: 0; }
.bs-ink .bs-form__note { color: #BDB4A0; }
.bs-ink .bs-form .bs-btn--solid { background: var(--bs-bronze); }
.bs-ink .bs-form .bs-btn--line { color: var(--bs-ivory); border-color: var(--bs-bronze-2); }
@media (max-width: 560px) { .bs-form { grid-template-columns: 1fr; } .bs-form__row--half { grid-column: 1 / -1; } .bs-form__actions .bs-btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- معرض الأعمال ---------- */
.bs-gal__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bs-gal__filter button {
	background: transparent; border: 1px solid var(--bs-line); color: var(--bs-ink);
	padding: 8px 16px; border-radius: 999px; font: 500 .95rem var(--bs-body); cursor: pointer;
}
.bs-gal__filter button:hover { border-color: var(--bs-bronze); }
.bs-gal__filter button.is-active { background: var(--bs-ink); color: var(--bs-ivory); border-color: var(--bs-ink); }
.bs-gal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bs-gal__item { margin: 0; position: relative; overflow: hidden; background: var(--bs-paper); }
.bs-gal__item a { display: block; }
.bs-gal__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease, filter .3s; }
.bs-gal__item:hover img { transform: scale(1.04); }
.bs-gal__item figcaption {
	position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; font-size: .88rem; color: #fff;
	background: linear-gradient(to top, rgba(31, 43, 34, .85), transparent);
	opacity: 0; transition: opacity .25s;
}
.bs-gal__item:hover figcaption, .bs-gal__item a:focus-visible + figcaption { opacity: 1; }
.bs-gal__item.is-more, .bs-gal__item.is-hidden { display: none; }
.bs-gal__more { text-align: center; margin-top: 24px; }
.bs-gal--tall .bs-gal__grid { grid-template-columns: repeat(4, 1fr); }
.bs-gal--tall .bs-gal__item:nth-child(5n+1) { grid-row: span 2; }
.bs-gal--tall .bs-gal__item:nth-child(5n+1) img { aspect-ratio: auto; height: 100%; }
@media (max-width: 1024px) { .bs-gal__grid, .bs-gal--tall .bs-gal__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .bs-gal__grid { gap: 8px; } }
@media (hover: none) { .bs-gal__item figcaption { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bs-gal__item img { transition: none; } .bs-gal__item:hover img { transform: none; } }

/* ---------- روابط الخدمات والمدن ---------- */
.bs-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bs-links a {
	display: inline-block; padding: 7px 14px; border: 1px solid var(--bs-line); border-radius: 999px;
	text-decoration: none; color: var(--bs-ink); font-size: .95rem; background: #FBF8F1;
}
.bs-links a:hover { border-color: var(--bs-bronze); color: var(--bs-bronze); }
.bs-ink .bs-links a { background: transparent; color: var(--bs-ivory); border-color: rgba(194, 161, 111, .45); }

/* ---------- المقالات (قالب Hello) ---------- */
body.single-post .site-main, body.blog .site-main, body.archive .site-main, body.search .site-main, body.error404 .site-main {
	width: min(820px, 100% - 32px); margin: 40px auto 60px; padding: 0;
}
body.single-post .page-header .entry-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 .6em; }
.entry-content h2 { margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--bs-line); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--bs-radius); }
body.blog article.post, body.archive article.post { padding: 22px 0; border-bottom: 1px solid var(--bs-line); }
body.blog .entry-title a, body.archive .entry-title a { text-decoration: none; color: var(--bs-ink); }

/* ---------- الفوتر ---------- */
.bs-footer { background: var(--bs-ink); color: #CFC6B2; margin-top: 0; font-size: .96rem; }
.bs-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.bs-footer__title { font: 700 1.3rem/1.3 var(--bs-head); color: var(--bs-ivory); margin: 0 0 16px; }
.bs-footer__seal { margin-bottom: 12px; }
.bs-footer__list { list-style: none; padding: 0; margin: 0; }
.bs-footer__list li { margin-bottom: 7px; }
.bs-footer__list a, .bs-footer__bottom a { color: #CFC6B2; text-decoration: none; }
.bs-footer__list a:hover, .bs-footer__bottom a:hover { color: var(--bs-bronze-2); }
.bs-footer__list--pages { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(194, 161, 111, .25); }
.bs-footer__phone { display: inline-flex; align-items: center; gap: 10px; font: 700 1.7rem/1.2 var(--bs-head); color: var(--bs-bronze-2); text-decoration: none; }
.bs-footer__phone:hover { color: #fff; }
.bs-footer__actions { margin-top: 10px; }
.bs-footer__bottom { border-top: 1px solid rgba(194, 161, 111, .2); font-size: .88rem; }
.bs-footer__bottom-in { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.bs-footer__bottom p { margin: 0; }
@media (max-width: 1024px) { .bs-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bs-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 46px; } }

/* ---------- أزرار التواصل الثابتة ---------- */
.bs-float-wa {
	position: fixed; left: 22px; bottom: 22px; z-index: 880;
	display: inline-flex; align-items: center; gap: 8px;
	background: #1F7A4A; color: #fff; text-decoration: none;
	padding: 12px 18px 12px 16px; border-radius: 999px; font-weight: 600;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
.bs-float-wa:hover { background: #17633B; color: #fff; }
.bs-mbar { display: none; }
@media (max-width: 767px) {
	.bs-float-wa { display: none; }
	.bs-mbar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 890;
		box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .45);
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--bs-ink);
	}
	.bs-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; }
	.bs-mbar__call { background: var(--bs-ink); }
	.bs-mbar__wa { background: #1F7A4A; }
	body { padding-bottom: 58px; }
}

/* إخفاء شريط الاتصال القديم إن بقي من إضافة أخرى */
.bkseo-sticky, #bkseo-sticky-bar { display: none !important; }

/* ---------- حركة الظهور (هيرو الصفحة الرئيسية فقط) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.bs-hero-reveal > * { animation: bs-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
	.bs-hero-reveal > *:nth-child(2) { animation-delay: .12s; }
	.bs-hero-reveal > *:nth-child(3) { animation-delay: .24s; }
	.bs-hero-reveal > *:nth-child(4) { animation-delay: .36s; }
	@keyframes bs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- تفوق على لون روابط المنتور العام (.elementor-kit-* a) ---------- */
body a.bs-btn--solid, body a.bs-btn--solid:hover, body .bs-mbar a, body .bs-mbar a:hover,
body a.bs-float-wa, body a.bs-float-wa:hover, body a.bs-btn--bronze { color: #fff; }
body a.bs-btn--solid { color: var(--bs-ivory); }
body a.bs-btn--line { color: var(--bs-ink); }
body a.bs-btn--line:hover { color: #fff; }
body .bs-cta a.bs-btn--line, body .bs-ink a.bs-btn--line { color: var(--bs-ivory); }
body a.bs-topbar__phone { color: var(--bs-bronze-2); }
body a.bs-topbar__phone:hover { color: #fff; }
body .bs-menu a { color: var(--bs-ink); }
body .bs-brand { color: var(--bs-ink); }
body .bs-footer__list a, body .bs-footer__bottom a { color: #CFC6B2; }
body .bs-footer__list a:hover, body .bs-footer__bottom a:hover { color: var(--bs-bronze-2); }
body a.bs-footer__phone { color: var(--bs-bronze-2); }
body a.bs-footer__phone:hover { color: #fff; }
body .bs-crumbs a { color: var(--bs-moss); }
body .bs-links a { color: var(--bs-ink); }
body .bs-ink .bs-links a { color: var(--bs-ivory); }
body .bs-ink a:not(.bs-btn):not(.elementor-button) { color: var(--bs-bronze-2); }

/* رابط "تفاصيل الخدمة" داخل البطاقات يلتصق بأسفل البطاقة */
.bs-card > .elementor-widget:last-child { margin-top: auto; }
body .bs-card .elementor-widget-text-editor:last-child a { color: var(--bs-bronze); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
body .bs-card h3 a { color: var(--bs-ink); text-decoration: none; }

/* رقم الهاتف الكبير */
.bs-big-phone a.bs-phone, body .bs-big-phone a.bs-phone {
	font: 700 clamp(2rem, 4vw, 2.8rem)/1.2 var(--bs-head); color: var(--bs-bronze-2); text-decoration: none;
}
body .bs-phone { color: inherit; }

/* ---------- سطر حقوق التصميم والأرشفة (آخر سطر في الفوتر) ---------- */
.bs-credit { padding: 0 0 18px; }
.bs-credit__line {
	margin: 0; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px;
	font-size: .76rem; line-height: 1.6; color: #CFC6B2; opacity: .62;
	transition: opacity .2s;
}
.bs-credit__line:hover, .bs-credit__line:focus-within { opacity: .9; }
body a.bs-credit__link {
	display: inline-flex; align-items: center; gap: 5px;
	color: #CFC6B2; text-decoration: none;
	transition: color .2s;
}
body a.bs-credit__link:hover, body a.bs-credit__link:focus-visible { color: var(--bs-bronze-2); }
.bs-credit__link .bs-ico { width: 14px; height: 14px; transition: transform .2s; }
.bs-credit__link:hover .bs-ico { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .bs-credit__link .bs-ico { transition: none; } .bs-credit__link:hover .bs-ico { transform: none; } }
@media (max-width: 767px) {
	.bs-footer__bottom-in { justify-content: center; text-align: center; }
	.bs-credit__line { justify-content: center; text-align: center; }
	/* مسافة إضافية حتى لا يغطي شريط الاتصال الثابت آخر سطر */
	.bs-credit { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* ---------- إصلاح قائمة الجوال: القائمة فوق الطبقة الداكنة لا تحتها ---------- */
.bs-nav__head { display: none; }
@media (max-width: 1024px) {
	/* الهيدر (الذي يحتوي القائمة) يرتفع فوق الطبقة الداكنة عند فتح القائمة */
	body.bs-nav-open .bs-header { z-index: 1000; }
	body.bs-nav-open::after { z-index: 940; }
	body.bs-nav-open .bs-mbar, body.bs-nav-open .bs-float-wa { visibility: hidden; }

	.bs-nav { padding: 0 22px 40px; z-index: 1001; }
	.admin-bar .bs-nav { top: 46px; }
	.bs-nav__head {
		display: flex; align-items: center; justify-content: space-between;
		position: sticky; top: 0; z-index: 2;
		margin: 0 -22px 8px; padding: 16px 22px;
		background: var(--bs-ink); color: var(--bs-ivory);
	}
	.bs-nav__title { font: 700 1.35rem/1.2 var(--bs-head); }
	.bs-nav-close {
		display: inline-grid; place-items: center; width: 40px; height: 40px;
		background: transparent; border: 1px solid rgba(194, 161, 111, .55); border-radius: var(--bs-radius);
		color: var(--bs-ivory); cursor: pointer;
	}
	.bs-nav-close:hover, .bs-nav-close:focus-visible { background: var(--bs-bronze); border-color: var(--bs-bronze); }

	.bs-menu > li > a { font-weight: 600; }
	.bs-menu .sub-menu { padding: 0 0 10px; margin-inline-start: 6px; border-inline-start: 2px solid var(--bs-line); }
	.bs-menu .sub-menu a { padding: 9px 14px; font-size: .97rem; color: var(--bs-moss); }
	.bs-menu li.is-open > a::after { transform: translateY(1px) rotate(135deg); }
	.bs-nav__cta { margin-top: 24px; }
}
@media (max-width: 782px) { .admin-bar .bs-nav { top: 46px; } }
@media (min-width: 783px) and (max-width: 1024px) { .admin-bar .bs-nav { top: 32px; } }
