/* header.css — clean shared site header (no Elementor). Used on every page. */

/* Offset in-page anchor jumps by the sticky header height (~97px) so targets
   (glossary A–Z letters, blog-post TOC headings, etc.) aren't hidden underneath
   it. Applies site-wide since the header is sticky everywhere. */
html {
	scroll-padding-top: 110px;
}

/* Base font — set here because header.css loads on EVERY page (legacy + Markdown),
   so Poppins applies to <body> uniformly regardless of the per-template stylesheets.
   font-smoothing matches the legacy hello-elementor reset (antialiased): without it,
   macOS subpixel rendering makes weight-400 text look ~500/600 (heavier). */
body {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #16306e;
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}

.skip-link:focus {
	left: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #eef0f4;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	height: 96px;
	display: flex;
	align-items: center;
	gap: 28px;
}

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

.site-header__logo img {
	display: block;
	width: 140px;
	height: 21px;
}

/* The menu wrapper holds nav (left) + actions (right) and fills the bar. */
.site-header__menu {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 48px;
}

.site-nav__item {
	position: relative;
}

.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1b2a4a;
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	padding: 28px 0;
}

.site-nav__link:hover {
	color: #2e57d6;
}

.site-nav__caret {
	transition: transform .2s ease;
}

.has-submenu:hover .site-nav__caret {
	transform: rotate(180deg);
}

/* Features dropdown */
.site-nav__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 248px;
	background: #fff;
	border: 1px solid #eceef3;
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(20, 30, 60, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
	transition-delay: .35s;
}

.has-submenu:hover>.site-nav__submenu,
.has-submenu:focus-within>.site-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

.site-nav__submenu li {
	border-bottom: 1px solid #DEE8F2;
	margin: 0;
}

.site-nav__submenu li:last-child {
	border-bottom: none;
}

.site-nav__submenu a {
	display: block;
	padding: 20px;
	border-radius: 8px;
	color: #1b2a4a;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__submenu a:hover {
	background: #f2f4f9;
	color: #2e57d6;
}

/* Right-side actions */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.site-header__lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1b2a4a;
	font-size: 16px;
	font-weight: 400;
	margin: 0 18px;
	text-decoration: none;
}

.site-header__lang:hover {
	color: #2e57d6;
}

.site-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.site-header__btn--ghost {
	background: #eef0f8;
	color: #1b2a4a;
}

.site-header__btn--ghost:hover {
	background: #e2e5f2;
}

.site-header__btn--primary {
	background: #16306e;
	color: #fff;
}

.site-header__btn--primary:hover {
	background: #112759;
}

/* Hamburger (mobile only) */
.site-header__burger {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 10px;
}

.site-header__burger span {
	display: block;
	height: 2px;
	background: #16306e;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-open .site-header__burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .site-header__burger span:nth-child(2) {
	opacity: 0;
}

.site-header.is-open .site-header__burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile / tablet ---- */
@media (max-width: 1024px) {
	.site-header__burger {
		display: flex;
	}

	.site-header__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid #eef0f4;
		box-shadow: 0 16px 32px rgba(20, 30, 60, .1);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 24px 24px;
		display: none;
	}

	.site-header.is-open .site-header__menu {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__link {
		padding: 12px 0;
		justify-content: space-between;
	}

	/* On mobile the submenu is always expanded (indented), no hover needed */
	.site-nav__submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
		box-shadow: none;
		border: none;
		padding: 0 0 8px 14px;
		min-width: 0;
	}

	.site-nav__caret {
		display: none;
	}

	.site-header__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 12px;
	}

	.site-header__btn {
		width: 100%;
	}
}