/* SX-Plugin — site header with mega menu */

.sxh {
	--sxh-max: 1280px;
	--sxh-logo: 32px;
	--sxh-bg: #fff;
	--sxh-blur: 0px;
	--sxh-border: rgba(15, 23, 42, 0.1);
	--sxh-link: rgba(15, 23, 42, 0.65);
	--sxh-link-hover: #0a0a0a;
	--sxh-link-bg-hover: rgba(15, 23, 42, 0.06);
	--sxh-link-gap: 4px;
	--sxh-panel-bg: #fff;
	--sxh-panel-border: rgba(15, 23, 42, 0.1);
	--sxh-panel-radius: 14px;
	--sxh-panel-link: #0a0a0a;
	--sxh-panel-desc: rgba(15, 23, 42, 0.55);
	--sxh-panel-hover: rgba(15, 23, 42, 0.05);
	--sxh-coltitle: rgba(15, 23, 42, 0.55);
	--sxh-cols: 4;
	--sxh-cta-bg: #0a0a0a;
	--sxh-cta-ink: #fff;
	--sxh-cta-border: transparent;
	--sxh-cta2-bg: transparent;
	--sxh-cta2-ink: #0a0a0a;
	--sxh-cta2-border: rgba(15, 23, 42, 0.2);
	--sxh-cta-radius: 8px;

	position: relative;
	z-index: 100;
	width: 100%;
	background: var(--sxh-bg);
	border-bottom: 1px solid var(--sxh-border);
}

.sxh--sticky { position: sticky; top: 0; }
.sxh--fixed  { position: fixed; top: 0; left: 0; right: 0; }

/* Overlay floats above the first section without taking up space. */
.sxh--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
}

.sxh[style*="--sxh-blur"],
.sxh {
	-webkit-backdrop-filter: blur(var(--sxh-blur));
	backdrop-filter: blur(var(--sxh-blur));
}

.sxh__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: var(--sxh-max);
	margin-inline: auto;
	padding: 14px 24px;
}

.sxh--full .sxh__inner { max-width: none; }

/* Breaks out of a boxed Elementor container. Fixed and overlay headers already
   span the viewport through their own offsets, so they are left alone. */
.sxh--stretch.sxh--static,
.sxh--stretch.sxh--sticky {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* A 100vw box is wider than the content area when a scrollbar is present; clip
   the page rather than let those few pixels create a horizontal scrollbar. */
body:has(.sxh--stretch) { overflow-x: clip; }

.sxh__brand { flex: 0 0 auto; line-height: 0; }

/* Centring the links inside the middle column only centres them between the
   logo and the buttons. Giving those two equal, equally-growing widths puts the
   menu on the bar's true centre instead. */
.sxh--balanced .sxh__brand,
.sxh--balanced .sxh__actions {
	flex: 1 1 0;
	min-width: 0;
}

.sxh--balanced .sxh__actions { justify-content: flex-end; }
.sxh--balanced .sxh__nav { flex: 0 1 auto; }

/* Scoped through .sxh so Elementor's `.elementor img { height: auto }` cannot
   flatten the logo back to its natural size. */
.sxh .sxh__brand img {
	display: block;
	width: auto;
	height: var(--sxh-logo);
	max-width: none;
	object-fit: contain;
}

.sxh__nav { flex: 1 1 auto; }

.sxh__list {
	display: flex;
	align-items: center;
	gap: var(--sxh-link-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sxh__item { position: relative; }

/* Both a <button> and an <a> are used for top-level entries, so the reset has
   to cover buttons too — themes skin bare buttons site-wide. */
.sxh .sxh__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--sxh-link);
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.sxh .sxh__link:hover,
.sxh .sxh__link:focus,
.sxh .sxh__item.is-open > .sxh__link {
	color: var(--sxh-link-hover);
	background: var(--sxh-link-bg-hover);
	text-decoration: none;
}

.sxh .sxh__link:focus-visible {
	outline: 2px solid var(--sxh-link-hover);
	outline-offset: 2px;
}

.sxh__chev {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.sxh__item.is-open > .sxh__link .sxh__chev,
.sxh__mitem.is-open > .sxh__mlink .sxh__chev {
	transform: rotate(180deg);
}

/* ------------------------------------------------------------------- panel */

.sxh__panel {
	position: absolute;
	top: calc(100% + 10px);
	z-index: 20;
	background: var(--sxh-panel-bg);
	border: 1px solid var(--sxh-panel-border);
	border-radius: var(--sxh-panel-radius);
	padding: 24px;
}

.sxh__panel[hidden] { display: none; }

.sxh__panel--plain {
	inset-inline-start: 0;
	min-width: 240px;
}

/* Anchored to the header, not to the link, so wide panels stay on screen. */
.sxh--panel-container .sxh__panel--mega,
.sxh--panel-full .sxh__panel--mega {
	inset-inline: 0;
	position: absolute;
}

.sxh--panel-auto .sxh__panel--mega { inset-inline-start: 0; }

.sxh__cols {
	display: grid;
	grid-template-columns: repeat(var(--sxh-cols), minmax(0, 1fr));
	gap: 24px 32px;
}

.sxh__coltitle {
	margin-bottom: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sxh-coltitle);
}

.sxh__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sxh .sxh__sublink {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--sxh-panel-link);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.sxh .sxh__sublink:hover,
.sxh .sxh__sublink:focus {
	background: var(--sxh-panel-hover);
	color: var(--sxh-panel-link);
	text-decoration: none;
}

.sxh__subtitle { display: block; font-size: 15px; line-height: 1.35; }

.sxh__subdesc {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--sxh-panel-desc);
}

/* ----------------------------------------------------------------- actions */

.sxh__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sxh .sxh__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: var(--sxh-cta-radius);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.18s ease, background-color 0.18s ease;
}

/* Both buttons carry a border even when it is invisible: one without it would
   be 2px shorter than the other and the pair would sit off each other's line. */
.sxh .sxh__cta--primary {
	background: var(--sxh-cta-bg);
	color: var(--sxh-cta-ink);
	border: 1px solid var(--sxh-cta-border);
}

.sxh .sxh__cta--ghost {
	background: var(--sxh-cta2-bg);
	color: var(--sxh-cta2-ink);
	border: 1px solid var(--sxh-cta2-border);
}

.sxh a.sxh__cta:hover,
.sxh a.sxh__cta:focus { opacity: 0.88; text-decoration: none; }

.sxh .sxh__cta--primary:hover { color: var(--sxh-cta-ink); }
.sxh .sxh__cta--ghost:hover { color: var(--sxh-cta2-ink); }

.sxh__ctaicon { display: inline-flex; font-size: 1em; }
.sxh__ctaicon svg { width: 1em; height: 1em; fill: currentColor; }

/* ------------------------------------------------------------------ burger */

.sxh .sxh__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.sxh .sxh__burger span {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--sxh-link-hover);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.sxh.is-mobile-open .sxh__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sxh.is-mobile-open .sxh__burger span:nth-child(2) { opacity: 0; }
.sxh.is-mobile-open .sxh__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sxh__mobile {
	max-width: var(--sxh-max);
	margin-inline: auto;
	padding: 8px 24px 20px;
	border-top: 1px solid var(--sxh-border);
}

.sxh__mobile[hidden] { display: none; }

.sxh__mlist { list-style: none; margin: 0; padding: 0; }

.sxh__mobile-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding-top: 16px;
}

.sxh .sxh__mobile-actions .sxh__cta {
	justify-content: center;
	min-width: 0;
	white-space: normal;
	text-align: center;
}

.sxh__mitem { border-bottom: 1px solid var(--sxh-border); }

.sxh .sxh__mlink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 4px;
	border: 0;
	background: none;
	color: var(--sxh-link-hover);
	font: inherit;
	font-size: 16px;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.sxh__msub { padding: 0 4px 12px; }
.sxh__msub[hidden] { display: none; }
.sxh__msub .sxh__coltitle { margin-top: 10px; }

.sxh__notice {
	padding: 16px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	opacity: 0.7;
	text-align: center;
	font-size: 13px;
}

/* --------------------------------------------------------------- responsive
   The breakpoint is a data attribute rather than a media query, because the
   value is per-widget; the script sets .sxh--collapsed to match. */

.sxh--collapsed .sxh__nav { display: none; }
.sxh--collapsed .sxh__burger { display: flex; }
.sxh--collapsed .sxh__inner {
	justify-content: space-between;
	gap: 12px;
}
.sxh--collapsed .sxh__brand {
	flex: 0 1 auto;
	min-width: 0;
}
.sxh--collapsed .sxh__actions {
	flex: 0 0 auto;
	min-width: max-content;
}
.sxh--collapsed .sxh__nav + .sxh__actions { margin-inline-start: 0; }
.sxh--collapsed .sxh__actions > .sxh__cta { display: none; }

/* Keep the language control compact beside the burger. The full accessible
   name remains in the link; only its visual label is shortened on mobile. */
.sxh--collapsed .sx-langs__item {
	font-size: 0;
}

.sxh--collapsed .sx-langs__item[lang="en"]::after {
	content: "En";
	font-size: 13px;
}

.sxh--collapsed .sx-langs__item[lang="ar"]::after {
	content: "Ar";
	font-size: 13px;
}

.sxh:not(.sxh--collapsed) .sxh__mobile { display: none; }

@media (max-width: 640px) {
	.sxh__cols { grid-template-columns: minmax(0, 1fr); }
	.sxh .sxh__cta { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.sxh .sxh__link,
	.sxh__chev,
	.sxh .sxh__sublink,
	.sxh .sxh__cta { transition: none; }
}
