/* =====================================================================
   RK Custom Header — reproduction of the Elementor header + mega menus
   No Elementor dependency. Scoped under #rk-custom-header / .rkch
   ===================================================================== */

.rkch,
.rkch *,
.rkch *::before,
.rkch *::after {
	box-sizing: border-box;
}

.rkch {
	--rkch-ink: #233963;
	--rkch-ink-strong: #1e2e4c;
	--rkch-muted: #56617a;
	--rkch-teal: #6ac2b7;
	--rkch-divider: rgba(35, 57, 99, .12);
	--rkch-grad: linear-gradient(98deg, #6ac2b7 0%, #8ad6c0 50%, #9fdd5f 100%);
	--rkch-bar-h: 78px;
	--rkch-pad-x: clamp(20px, 4vw, 56px);

	position: relative;
	z-index: 9990;
	width: 100%;
	font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--rkch-ink);
	line-height: 1.4;
}

.rkch--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	transition: transform .35s ease;
	will-change: transform;
}

/* Smart-sticky: slide up out of view when scrolling down, back in when scrolling up */
.rkch--sticky.rkch--hidden {
	transform: translateY(-100%);
}

/* Spacer to reserve flow height when the header is fixed */
.rkch-spacer {
	display: none;
}

.rkch--sticky + .rkch-spacer {
	display: block;
	height: 78px;
}

@media (max-width: 1024px) {
	.rkch--sticky + .rkch-spacer {
		height: 64px;
	}
}

/* ---------- Bar (glassmorphism) ---------- */
.rkch-bar {
	position: relative;
	z-index: 2;
	width: 100%;
	background: rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: blur(10.88px);
	backdrop-filter: blur(10.88px);
	box-shadow:
		-11.15px -10.392px 48px -12px rgba(17, 54, 103, .15),
		-1.858px -1.732px 12px -8px rgba(17, 54, 103, .15),
		2.007px 1.871px 8.64px 0 rgba(255, 255, 255, .15) inset,
		1.078px 1.005px 4.32px 0 rgba(255, 255, 255, .15) inset;
}

.rkch-desktopbar,
.rkch-mobilebar {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--rkch-bar-h);
	padding: 10px var(--rkch-pad-x);
}

.rkch-desktopbar {
	justify-content: space-between;
	gap: 24px;
}

/* ---------- Logo ---------- */
.rkch-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
}

.rkch-logo img {
	display: block;
	/* 28px, not the previous 38px. The 2026/08 logo is a 372x60 vector whose ink
	   fills 91% of its box, where the old 131x28 asset only filled ~60% — so at
	   an unchanged 38px the visible mark became ~50% taller and ~37% wider.
	   28px restores roughly the pre-swap optical size (bar min-height is 78px,
	   so this does not change the bar or the .rkch-spacer). */
	height: 28px;
	width: auto;
	max-width: 100%;
}

/* ---------- Desktop nav ---------- */
.rkch-nav {
	flex: 0 1 auto;
}

.rkch-menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rkch-item {
	display: flex;
	align-items: center;
}

.rkch-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: none;
	border: 0;
	padding: 6px 0;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .2px;
	color: var(--rkch-ink);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
	transition: color .25s ease, font-weight .2s ease;
	-webkit-user-select: none;
	user-select: none;
}

.rkch-link:hover,
.rkch-trigger.is-open .rkch-link {
	color: var(--rkch-ink-strong);
	font-weight: 700;
}

.rkch-ico {
	display: inline-block;
	flex: 0 0 auto;
}

.rkch-ico-caret {
	color: var(--rkch-ink);
	transition: transform .3s ease;
}

.rkch-trigger.is-open .rkch-ico-caret {
	transform: rotate(180deg);
}

/* Search item: icon, label slides open on hover / when active */
.rkch-link--search {
	color: var(--rkch-ink);
}

.rkch-link--search .rkch-link-label {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	transition: max-width .3s ease, opacity .25s ease, margin .3s ease;
}

.rkch-item--search:hover .rkch-link-label,
.rkch-item--search.is-open .rkch-link-label {
	max-width: 90px;
	opacity: 1;
}

/* ---------- GET A DEMO button ---------- */
.rkch-cta {
	display: inline-flex;
}

.rkch .all-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: linear-gradient(90deg, #6ac2b7, #8ad6c0 50%, #8adbbb 75%, #86dcaf 87.5%, #84dda5 93.75%, #95e091 96.88%, #9fdd5f);
	-webkit-backdrop-filter: blur(15.16px);
	backdrop-filter: blur(15.16px);
	box-shadow:
		-1.858px -1.732px 12px -8px rgba(124, 205, 188, .15),
		2.146px 2.0px 9.24px rgba(255, 255, 255, .13) inset,
		1.217px 1.134px 4.62px rgba(255, 255, 255, .13) inset;
	/* border-radius: 4px; */
	cursor: pointer;
	transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.rkch .all-button a {
	display: block;
	text-decoration: none;
	color: #fff;
	padding: 12px 16px;
}

.rkch .all-button .text {
	font-family: "Public Sans", sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 24px;
	text-align: center;
	color: #fff;
	text-transform: uppercase;
	transition: color .3s ease;
}

/* Outlined state: on button hover OR when any mega panel is open (matches live) */
.rkch .all-button:hover,
.rkch.is-panel-open .rkch-nav .all-button {
	background: rgba(255, 255, 255, .55);
	border-color: #8ad6c0;
	box-shadow: 0 4px 18px -8px rgba(106, 194, 183, .5);
}

.rkch .all-button:hover .text,
.rkch.is-panel-open .rkch-nav .all-button .text {
	background: var(--rkch-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---------- Panels wrapper ---------- */
.rkch-panels {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1;
}

.rkch-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #f3f6fa;
	border-top: 1px solid rgba(255, 255, 255, .5);
	box-shadow: 0 24px 40px -20px rgba(17, 54, 103, .25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.rkch-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* ---------- Mega layout ---------- */
.rkch-mega {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 44px var(--rkch-pad-x) 56px;
	min-height: 340px;
}

.rkch-rail {
	flex: 0 0 34%;
	max-width: 460px;
	padding-right: 40px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.rkch-rail--wide {
	flex-basis: 42%;
	max-width: 560px;
}

.rkch-rail-item {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	color: inherit;
}

.rkch-rail-text {
	flex: 1 1 auto;
	min-width: 0;
}

.rkch-rail-title {
	display: block;
	font-size: 19px;
	font-weight: 700;
	color: var(--rkch-ink-strong);
	margin-bottom: 8px;
}

.rkch-rail-title sup {
	font-size: .55em;
	font-weight: 600;
	top: -.7em;
}

.rkch-rail-desc {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rkch-muted);
	font-weight: 400;
}

.rkch-rail-chev {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	color: var(--rkch-teal);
	transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.rkch-rail-chev .rkch-ico-chev {
	width: 18px;
	height: 18px;
}

/* Active / hovered rail item gets the gradient chevron square */
.rkch-rail-item.is-active .rkch-rail-chev,
.rkch-rail-item:hover .rkch-rail-chev {
	background: var(--rkch-grad);
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(106, 194, 183, .6);
}

.rkch-rail-item:hover .rkch-rail-title {
	background: var(--rkch-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---------- Mega content (right side) ---------- */
.rkch-mega-content {
	flex: 1 1 auto;
	position: relative;
	padding-left: 48px;
	border-left: 1px solid var(--rkch-divider);
	min-width: 0;
}

.rkch-mega-content--empty {
	border-left: 1px solid var(--rkch-divider);
}

.rkch-content-pane {
	display: none;
	animation: rkch-fade .25s ease;
}

.rkch-content-pane.is-active {
	display: block;
}

@keyframes rkch-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rkch-cols {
	display: flex;
	gap: clamp(40px, 6vw, 96px);
}

.rkch-col {
	min-width: 0;
}

.rkch-col-head {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	color: var(--rkch-ink-strong);
}

.rkch-linklist {
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 240px;
}

.rkch-linklist li {
	margin: 0;
}

.rkch-linklist a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 9px 0;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	color: var(--rkch-ink-strong);
	transition: color .2s ease;
}

.rkch-linklist a .rkch-ico-arrow {
	color: var(--rkch-teal);
	opacity: .55;
	transform: translateX(-4px);
	transition: transform .2s ease, opacity .2s ease, color .2s ease;
}

.rkch-linklist a:hover {
	color: var(--rkch-teal);
}

.rkch-linklist a:hover .rkch-ico-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* Overview card (Gladius / Swift) */
.rkch-overview-card {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border: 1px solid var(--rkch-divider);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	font-size: 17px;
	font-weight: 700;
	color: var(--rkch-ink-strong);
	box-shadow: 0 6px 18px -12px rgba(17, 54, 103, .25);
	transition: box-shadow .2s ease, transform .2s ease;
}

.rkch-overview-card .rkch-ico-arrow {
	color: var(--rkch-ink-strong);
}

.rkch-overview-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px rgba(17, 54, 103, .3);
}

/* ---------- Search panel ---------- */
.rkch-search-panel {
	padding: 40px var(--rkch-pad-x) 56px;
	min-height: 220px;
}

.rkch-search-panel #rk-search-form {
	width: min(720px, 100%);
}

/* ---------- Responsive: desktop vs mobile ---------- */
.rkch-mobilebar {
	display: none;
}

@media (max-width: 1024px) {
	.rkch {
		--rkch-bar-h: 64px;
	}

	.rkch-desktopbar {
		display: none;
	}

	.rkch-mobilebar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px clamp(14px, 4vw, 24px);
	}

	.rkch-mobile-left,
	.rkch-mobile-right {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
	}

	.rkch-logo--mobile {
		flex: 1 1 auto;
		justify-content: center;
	}

	.rkch-logo--mobile img {
		height: 26px;   /* was 32px — same wider-logo correction as desktop */
	}

	/* Mega panels are desktop-only; the mobile sidebar handles navigation */
	.rkch-panels {
		display: none;
	}

	.rkch-mobile-right .all-button a {
		padding: 9px 14px;
	}

	.rkch-mobile-right .all-button .text {
		font-size: 13px;
	}
}

/* Keep the desktop mega panels out of the way on small screens even if shown */
@media (min-width: 1025px) {
	.rkch-mobilebar {
		display: none !important;
	}
}

/* ==========================================================================
   MOBILE MENU — nested accordion fix (added 2026-08-24)

   mobile-menu.css gates sub-menus with DESCENDANT selectors:
       .rk-d-menu-item.menu-item-has-children .sub-menu      { max-height: 0 }
       .rk-d-menu-item.menu-item-has-children.open .sub-menu { max-height: 500px }
   Because the second one is a descendant selector, opening a TOP-LEVEL item
   force-expanded every nested .sub-menu underneath it at once, and a nested
   toggle could not collapse its own list again — removing .open from the child
   still left the ancestor's rule matching it.

   The 500px cap then clipped the over-expanded stack (a fully expanded branch
   runs ~700px), so the last entries were unreachable.

   Fix: re-express both as CHILD combinators so each level only controls its own
   immediate sub-menu, and lift the cap enough to fit a real branch. Scoped to
   .mobile-menu-nav and placed in the header's own stylesheet, so the vendor file
   stays untouched.
   ========================================================================== */
.mobile-menu-nav .rk-d-menu-item.menu-item-has-children > .sub-menu {
	max-height: 0;
}
.mobile-menu-nav .rk-d-menu-item.menu-item-has-children.open > .sub-menu {
	max-height: 1200px;
}
/* Neutralise the inherited descendant rule for levels that are NOT open, so an
   open ancestor can no longer hold a closed child expanded. */
.mobile-menu-nav .rk-d-menu-item.menu-item-has-children.open .rk-d-menu-item.menu-item-has-children:not(.open) > .sub-menu,
.mobile-menu-nav .rk-d-menu-item.menu-item-has-children.open .menu-item-has-children:not(.open) > .sub-menu {
	max-height: 0;
}
