/* ==========================================================================
   ومضة إبداع — هيدر M3 (باني الهيدر)
   كل الألوان من رموز --wj-* الصادرة من موديول الهوية. لا أكواد ألوان هنا
   إلا الأخضر الرسمي لواتساب وبدائل رمادية محايدة عند غياب الرموز.
   ========================================================================== */

.wj-header-root {
	--wj-h-height: 72px;
	--wj-h-height-mob: 62px;
	--wj-h-logo: 40px;
	--wj-h-logo-mob: 34px;
	--wj-h-nav-size: 15px;
	--wj-h-nav-gap: 22px;
	--wj-h-ico: 40px;
	--wj-h-top-size: 13px;
	--wj-h-bg: var(--wj-surface, #fff);
	--wj-h-ink: var(--wj-text, #1a1a1a);
	--wj-h-line: var(--wj-border, #e7e7e7);
	font-family: var(--wj-font-body, inherit);
	position: relative;
	z-index: 90;
}

body.wj-hide-theme-header #masthead,
body.wj-hide-theme-header .site-header,
body.wj-hide-theme-header .ast-mobile-header-wrap {
	display: none !important;
}

.wj-ico {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.wj-ico--sm {
	width: 16px;
	height: 16px;
}

.wj-h-inner {
	max-width: var(--wj-container, 1200px);
	margin-inline: auto;
	padding-inline: var(--wj-space-md, 20px);
	display: flex;
	align-items: center;
	gap: var(--wj-space-md, 20px);
	width: 100%;
}

.wj-h-inner--full {
	max-width: none;
}

/* ============================ الشريط الإخباري ============================ */

.wj-htop {
	font-size: var(--wj-h-top-size);
	line-height: 1.5;
	background: var(--wj-primary, #a51e23);
	color: var(--wj-on-primary, #fff);
	position: relative;
}

.wj-htop--dark {
	background: var(--wj-primary-dark, #81171b);
	color: var(--wj-on-primary, #fff);
}

.wj-htop--ink {
	background: var(--wj-ink, #111);
	color: var(--wj-surface, #fff);
}

.wj-htop--soft {
	background: var(--wj-primary-soft, #f4e4e5);
	color: var(--wj-heading, #1a1a1a);
}

.wj-htop--accent {
	background: var(--wj-accent, #111);
	color: var(--wj-surface, #fff);
}

.wj-htop--surface {
	background: var(--wj-surface-alt, #f5f5f5);
	color: var(--wj-heading, #1a1a1a);
	border-bottom: 1px solid var(--wj-h-line);
}

.wj-htop .wj-h-inner {
	min-height: 40px;
	padding-block: 8px;
	gap: var(--wj-space-sm, 12px);
}

.wj-htop__news {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.wj-htop--align-between .wj-htop__news {
	justify-content: center;
}

.wj-htop--align-center .wj-h-inner {
	justify-content: center;
}

.wj-htop--align-start .wj-htop__news {
	justify-content: flex-start;
}

.wj-htop__icon {
	display: inline-flex;
	opacity: 0.95;
}

.wj-htop__badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: var(--wj-weight-bold, 700);
	background: var(--wj-primary, #a51e23);
	color: var(--wj-on-primary, #fff);
	flex: 0 0 auto;
}

.wj-htop__badge--ink {
	background: var(--wj-ink, #111);
	color: var(--wj-surface, #fff);
}

.wj-htop__badge--accent {
	background: var(--wj-accent, #111);
	color: var(--wj-surface, #fff);
}

.wj-htop__badge--surface {
	background: var(--wj-surface, #fff);
	color: var(--wj-heading, #111);
}

.wj-htop__rotate {
	position: relative;
	display: inline-block;
	min-width: 0;
}

.wj-htop__msg {
	display: none;
}

.wj-htop__msg.is-active {
	display: inline;
}

.wj-htop__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	font-weight: var(--wj-weight-bold, 700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wj-htop__side {
	display: flex;
	align-items: center;
	gap: var(--wj-space-sm, 12px);
	flex: 0 0 auto;
}

.wj-htop__contact,
.wj-htop__login {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	text-decoration: none;
}

.wj-htop__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wj-htop__social a {
	color: inherit;
	display: inline-flex;
}

.wj-htop__close {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	opacity: 0.8;
	flex: 0 0 auto;
}

.wj-htop__close:hover {
	opacity: 1;
}

/* ================================ الهيدر ================================ */

.wj-header {
	background: var(--wj-h-bg);
	color: var(--wj-h-ink);
}

.wj-header--bg-header {
	--wj-h-bg: var(--wj-header-bg, #fff);
}

.wj-header--bg-surface {
	--wj-h-bg: var(--wj-surface, #fff);
}

.wj-header--bg-alt {
	--wj-h-bg: var(--wj-surface-alt, #fafafa);
}

.wj-header--bg-primary {
	--wj-h-bg: var(--wj-primary, #a51e23);
	--wj-h-ink: var(--wj-on-primary, #fff);
	--wj-h-line: rgba(255, 255, 255, 0.25);
}

.wj-header--bg-ink {
	--wj-h-bg: var(--wj-ink, #111);
	--wj-h-ink: var(--wj-surface, #fff);
	--wj-h-line: rgba(255, 255, 255, 0.18);
}

.wj-header--bg-transparent {
	--wj-h-bg: transparent;
}

.wj-header--shadow {
	box-shadow: var(--wj-shadow, 0 2px 14px rgba(0, 0, 0, 0.07));
}

.wj-header--border {
	border-bottom: 1px solid var(--wj-h-line);
}

.wj-header--sticky {
	position: sticky;
	top: 0;
	z-index: 95;
}

.wj-header > .wj-h-inner {
	min-height: var(--wj-h-height);
	justify-content: space-between;
}

.wj-header__start,
.wj-header__end {
	display: flex;
	align-items: center;
	gap: var(--wj-space-sm, 12px);
}

.wj-header--logo-center > .wj-h-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
}

.wj-header--logo-center .wj-header__start {
	justify-content: flex-start;
}

.wj-header--logo-center .wj-header__end {
	justify-content: flex-end;
}

/* ================================= اللوجو ================================= */

.wj-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.wj-logo__img {
	display: block;
	height: var(--wj-h-logo);
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.wj-logo__img--mob {
	display: none;
}

.wj-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.wj-logo__text strong {
	font-family: var(--wj-font-heading, inherit);
	font-size: 1.15rem;
	color: inherit;
}

.wj-logo__text small {
	font-size: 0.72rem;
	opacity: 0.7;
}

/* ============================ القائمة الأفقية ============================ */

.wj-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.wj-nav__list {
	display: flex;
	align-items: center;
	gap: var(--wj-h-nav-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wj-nav__list li {
	position: relative;
	margin: 0;
}

.wj-nav__list a {
	display: inline-block;
	padding: 6px 2px;
	font-size: var(--wj-h-nav-size);
	font-weight: var(--wj-weight-body, 500);
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.wj-nav__list a:hover {
	color: var(--wj-primary, #a51e23);
}

.wj-nav--underline .current-menu-item > a,
.wj-nav--underline .current_page_item > a {
	color: var(--wj-primary, #a51e23);
	border-bottom-color: var(--wj-primary, #a51e23);
}

.wj-nav--color .current-menu-item > a,
.wj-nav--color .current_page_item > a {
	color: var(--wj-primary, #a51e23);
	font-weight: var(--wj-weight-bold, 700);
}

.wj-nav--pill .current-menu-item > a,
.wj-nav--pill .current_page_item > a {
	background: var(--wj-primary-soft, #f4e4e5);
	color: var(--wj-primary-dark, #81171b);
	border-radius: 999px;
	padding-inline: 14px;
}

.wj-nav--caret .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 6px;
	border-inline-end: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.7;
}

.wj-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 210px;
	background: var(--wj-surface, #fff);
	border: 1px solid var(--wj-border, #e7e7e7);
	border-radius: var(--wj-radius-sm, 8px);
	box-shadow: var(--wj-shadow, 0 8px 24px rgba(0, 0, 0, 0.1));
	padding: 8px;
	list-style: none;
	margin: 0;
	display: none;
	z-index: 5;
}

.wj-nav__list li:hover > .sub-menu,
.wj-nav__list li:focus-within > .sub-menu {
	display: block;
}

.wj-nav__list .sub-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: var(--wj-radius-sm, 8px);
	border-bottom: 0;
	color: var(--wj-text, #1a1a1a);
}

.wj-nav__list .sub-menu a:hover {
	background: var(--wj-surface-alt, #f5f5f5);
}

/* ============================== الأيقونات ============================== */

.wj-hicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wj-h-ico);
	height: var(--wj-h-ico);
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease;
}

.wj-hicon--box {
	background: var(--wj-surface-alt, #f5f5f5);
	border-radius: var(--wj-radius-sm, 8px);
}

.wj-hicon--circle {
	background: var(--wj-surface-alt, #f5f5f5);
	border-radius: 999px;
}

.wj-hicon--outline {
	border: 1px solid var(--wj-h-line);
	border-radius: var(--wj-radius-sm, 8px);
}

.wj-hicon:hover {
	color: var(--wj-primary, #a51e23);
}

.wj-hicon--mob {
	display: none;
}

/* ============================== الزر المميز ============================== */

.wj-hbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--wj-font-heading, inherit);
	font-weight: var(--wj-weight-bold, 700);
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wj-hbtn--s-sm {
	padding: 9px 16px;
	font-size: 0.85rem;
}

.wj-hbtn--s-md {
	padding: 12px 22px;
	font-size: 0.94rem;
}

.wj-hbtn--s-lg {
	padding: 15px 28px;
	font-size: 1rem;
}

.wj-hbtn--r-pill {
	border-radius: 999px;
}

.wj-hbtn--r-round {
	border-radius: var(--wj-radius, 12px);
}

.wj-hbtn--r-square {
	border-radius: 4px;
}

.wj-hbtn--primary {
	background: var(--wj-primary, #a51e23);
	color: var(--wj-on-primary, #fff);
}

.wj-hbtn--dark {
	background: var(--wj-primary-dark, #81171b);
	color: var(--wj-on-primary, #fff);
}

.wj-hbtn--secondary {
	background: var(--wj-secondary, #111);
	color: var(--wj-surface, #fff);
}

.wj-hbtn--ink {
	background: var(--wj-ink, #111);
	color: var(--wj-surface, #fff);
}

.wj-hbtn--accent {
	background: var(--wj-accent, #111);
	color: var(--wj-surface, #fff);
}

.wj-hbtn--soft {
	background: var(--wj-primary-soft, #f4e4e5);
	color: var(--wj-primary-dark, #81171b);
}

.wj-hbtn--outline {
	background: transparent;
	color: var(--wj-primary, #a51e23);
	border-color: currentColor;
}

.wj-hbtn--whatsapp {
	background: #25d366;
	color: #fff;
}

.wj-hbtn:hover {
	filter: brightness(0.94);
}

.wj-hbtn--block {
	width: 100%;
}

/* ======================== شريط الزر العرضي للجوال ======================== */

.wj-hcta {
	display: none;
	padding: 10px var(--wj-space-md, 20px) 12px;
	background: var(--wj-h-bg, #fff);
	border-bottom: 1px solid var(--wj-h-line);
}

/* =========================== البحث داخل الهيدر =========================== */

.wj-hsearch {
	border-top: 1px solid var(--wj-h-line);
	background: var(--wj-surface, #fff);
	padding-block: var(--wj-space-sm, 12px);
}

.wj-hsearch form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.wj-hsearch input[type="search"] {
	flex: 1 1 auto;
	padding: 11px 14px;
	border: 1px solid var(--wj-border, #e7e7e7);
	border-radius: var(--wj-radius-sm, 8px);
	font-family: inherit;
}

/* ============================= زر القائمة ============================= */

.wj-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: var(--wj-h-ico);
	height: var(--wj-h-ico);
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	flex: 0 0 auto;
}

.wj-burger--always {
	display: inline-flex;
}

.wj-burger__box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 9px;
	box-sizing: border-box;
}

.wj-burger__box i {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
}

.wj-burger--1 .wj-burger__box {
	background: var(--wj-surface, #fff);
	border-radius: var(--wj-radius-sm, 8px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wj-burger--2 .wj-burger__box {
	border: 1px solid var(--wj-h-line);
	border-radius: var(--wj-radius-sm, 8px);
}

.wj-burger--3 .wj-burger__box i:nth-child(2) {
	width: 72%;
}

.wj-burger--3 .wj-burger__box i:nth-child(3) {
	width: 45%;
}

.wj-burger--4 .wj-burger__box {
	border: 1px solid var(--wj-h-line);
	border-radius: 6px;
}

.wj-burger--4 .wj-burger__box i:nth-child(2) {
	width: 70%;
}

.wj-burger--4 .wj-burger__box i:nth-child(3) {
	width: 45%;
}

.wj-burger--5 .wj-burger__box {
	border: 1px solid var(--wj-h-line);
	border-radius: 999px;
	align-items: center;
	padding: 11px;
}

.wj-burger--5 .wj-burger__box i:nth-child(2) {
	width: 78%;
}

.wj-burger--5 .wj-burger__box i:nth-child(3) {
	width: 55%;
}

/* ====================== شريط التبويبات أسفل الجوال ====================== */

.wj-hbar {
	display: none;
	align-items: stretch;
	justify-content: space-around;
	gap: 4px;
	padding: 8px 10px;
	background: var(--wj-surface, #fff);
	border-top: 1px solid var(--wj-h-line);
}

.wj-hbar__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 4px;
	font-size: 0.72rem;
	font-weight: var(--wj-weight-body, 500);
	color: var(--wj-muted, #6b6b6b);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	border-radius: var(--wj-radius-sm, 8px);
}

.wj-hbar__item .wj-ico {
	width: 22px;
	height: 22px;
}

.wj-hbar--boxed .wj-hbar__item {
	background: var(--wj-surface-alt, #f5f5f5);
	border: 1px solid var(--wj-h-line);
}

.wj-hbar--mark .wj-hbar__item.is-active {
	color: var(--wj-primary, #a51e23);
}

.wj-hbar--mark.wj-hbar--boxed .wj-hbar__item.is-active {
	background: var(--wj-primary-soft, #f4e4e5);
	border-color: var(--wj-primary, #a51e23);
}

/* ============================ القائمة الجانبية ============================ */

.wj-panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 99998;
}

.wj-panel-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.wj-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(86vw, 340px);
	background: var(--wj-surface, #fff);
	color: var(--wj-text, #1a1a1a);
	padding: var(--wj-space-md, 20px);
	overflow-y: auto;
	z-index: 99999;
	transition: transform 0.25s ease;
	box-shadow: var(--wj-shadow, 0 0 30px rgba(0, 0, 0, 0.2));
}

.wj-panel--start {
	inset-inline-start: 0;
	transform: translateX(var(--wj-panel-hidden, 105%));
}

.wj-panel--end {
	inset-inline-end: 0;
	transform: translateX(var(--wj-panel-hidden-end, -105%));
}

.wj-panel.is-open {
	transform: none;
}

.wj-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: var(--wj-space-sm, 12px);
	border-bottom: 1px solid var(--wj-border, #e7e7e7);
	margin-bottom: var(--wj-space-sm, 12px);
}

.wj-panel__title {
	font-family: var(--wj-font-heading, inherit);
	font-weight: var(--wj-weight-bold, 700);
}

.wj-panel__close {
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	display: inline-flex;
	padding: 4px;
}

.wj-panel__list {
	list-style: none;
	margin: 0 0 var(--wj-space-md, 20px);
	padding: 0;
}

.wj-panel__list li {
	margin: 0;
}

.wj-panel__list a {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--wj-border, #eee);
	color: inherit;
	text-decoration: none;
	font-size: 1rem;
}

.wj-panel__list .sub-menu {
	list-style: none;
	margin: 0;
	padding-inline-start: 14px;
}

.wj-panel__empty {
	color: var(--wj-muted, #6b6b6b);
	font-size: 0.9rem;
}

.wj-panel__icons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: var(--wj-space-md, 20px);
}

.wj-panel__icon {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--wj-border, #e7e7e7);
	border-radius: var(--wj-radius-sm, 8px);
	background: var(--wj-surface-alt, #fafafa);
	color: inherit;
	text-decoration: none;
	font-size: 0.85rem;
	cursor: pointer;
}

.wj-panel__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: var(--wj-space-md, 20px);
	font-size: 0.9rem;
}

.wj-panel__contact a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.wj-panel__social {
	display: flex;
	gap: 10px;
	margin-top: var(--wj-space-md, 20px);
}

.wj-panel__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--wj-surface-alt, #f5f5f5);
	color: inherit;
}

body.wj-panel-open {
	overflow: hidden;
}

/* ============================== الاستجابة ============================== */

@media (max-width: 1024px) {
	.wj-nav {
		display: none;
	}

	.wj-burger {
		display: inline-flex;
	}

	.wj-header--logo-center > .wj-h-inner {
		display: flex;
	}
}

@media (max-width: 767px) {
	.wj-h-inner {
		padding-inline: var(--wj-space-sm, 14px);
		gap: 10px;
	}

	.wj-header > .wj-h-inner {
		min-height: var(--wj-h-height-mob);
	}

	.wj-logo__img--desk {
		display: none;
	}

	.wj-logo__img--mob {
		display: block;
		height: var(--wj-h-logo-mob);
		max-width: 170px;
	}

	.wj-logo__text strong {
		font-size: 1rem;
	}

	.wj-header--center-mob > .wj-h-inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
	}

	.wj-header--center-mob .wj-header__start {
		grid-column: 1;
	}

	.wj-header--center-mob .wj-logo {
		position: absolute;
		inset-inline: 0;
		justify-content: center;
		pointer-events: auto;
	}

	.wj-header--center-mob > .wj-h-inner {
		position: relative;
	}

	.wj-header--center-mob .wj-header__end {
		grid-column: 3;
		justify-content: flex-end;
		z-index: 2;
	}

	.wj-header--center-mob .wj-header__start {
		z-index: 2;
	}

	.wj-hicon--desk,
	.wj-hbtn--desk,
	.wj-htop--desk,
	.wj-htop__contact--desk {
		display: none !important;
	}

	.wj-hicon--mob {
		display: inline-flex;
	}

	.wj-hcta {
		display: block;
	}

	.wj-hbar {
		display: flex;
	}

	.wj-htop .wj-h-inner {
		font-size: calc(var(--wj-h-top-size) - 1px);
	}

	.wj-panel__icons {
		grid-template-columns: 1fr 1fr;
	}
}

/* معاينة داخل لوحة التحكم: بلا تثبيت ولا قفل تمرير */
.wj-header-root--demo .wj-header--sticky {
	position: static;
}
