/* Header-only theme shell. Keep page and Elementor component rules out of this file. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 12px;
	inset-inline-start: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	overflow: visible;
	background: #17202a;
	color: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #d9e0e8;
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
	width: min(100%, 1180px);
	min-height: 72px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
	display: flex;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
}

.site-branding {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	max-width: 220px;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 52px;
}

.site-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-width: 0;
}

.site-header__actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.site-header,
.site-header__inner,
.site-header__actions,
.language-switcher {
	overflow: visible;
}

.language-switcher { position: relative; z-index: 10002; }

.language-switcher__toggle {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid #d9e0e8;
	border-radius: 6px;
	color: #17202a;
	background: #fff;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.language-switcher__toggle:hover,
.language-switcher__toggle:focus-visible,
.language-switcher.is-open .language-switcher__toggle {
	border-color: #635bff;
	color: #5148e5;
	background: #f7f7ff;
}

.language-switcher__icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.language-switcher__menu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	z-index: 10001;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid #d9e0e8;
	border-radius: 8px;
	box-shadow: 0 14px 35px rgba(15, 23, 42, .16);
	list-style: none;
}

.language-switcher__menu[hidden] { display: none; }

.language-switcher__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 9px 10px;
	border-radius: 6px;
	color: #17202a;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.language-switcher__item:hover,
.language-switcher__item:focus-visible,
.language-switcher__item.is-current {
	background: #f2f4f8;
	color: #5148e5;
}

.language-switcher__flag {
	position: relative;
	width: 28px;
	height: 18px;
	flex: 0 0 28px;
	overflow: hidden;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .16);
}

.language-switcher__flag--sa { background: #006c35; }

.language-switcher__flag--sa::before,
.language-switcher__flag--sa::after {
	content: "";
	position: absolute;
	left: 7px;
	right: 7px;
	background: #fff;
	border-radius: 999px;
}

.language-switcher__flag--sa::before { top: 5px; height: 2px; }
.language-switcher__flag--sa::after { bottom: 5px; height: 1.5px; }

.language-switcher__flag--us {
	background: repeating-linear-gradient(to bottom, #b22234 0, #b22234 1.4px, #fff 1.4px, #fff 2.8px);
}

.language-switcher__flag--us::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 42%;
	height: 54%;
	background: #3c3b6e;
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 820px) {
	.site-header__inner {
		min-height: 64px;
		padding-inline: 16px;
		gap: 12px;
	}

	.site-branding { flex: 1 1 0; }

	.site-branding .custom-logo {
		max-width: min(180px, 100%);
		max-height: 48px;
	}

	.site-navigation {
		flex: 0 0 44px;
		min-width: 44px;
	}
}
