/* ==========================================================================
   Header Layout & Navigation (On-Demand Loading)
   ========================================================================== */

/* Site Header */
.site-header {
	background-color: #ffffff;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	border-bottom: 1px solid #f1f5f9;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* 1440px Container */
.site-header-container {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 90px;
	box-sizing: border-box;
}

/* Logo Casing */
.site-title {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.logo-link,
.custom-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo-img,
.custom-logo-link img.custom-logo {
	height: 48px;
	width: auto;
	display: block;
}

.logo-text-link {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
	letter-spacing: -0.5px;
	transition: color 0.25s ease;
}

.logo-text-link:hover {
	color: #00ABF4;
}

/* Navigation List */
.site-navigation {
	display: flex;
	align-items: center;
}

.menu-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
	align-items: center;
}

.menu-list .menu-item {
	position: relative;
}

.menu-list .menu-item a {
	font-family: "Manrope", Sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	padding: 8px 0;
	display: inline-flex;
	align-items: center;
	transition: color 0.25s ease;
}

.menu-list .menu-item a:hover {
	color: #00ABF4;
}

/* Dropdown Caret (CSS Pseudo-Element) */
.menu-list .menu-item-has-children>a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 8px;
	margin-top: -2px;
	transition: transform 0.25s ease;
}

/* Dropdown Sub-menu */
.menu-list .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	background-color: #ffffff;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	padding: 0;
	list-style: none;
	min-width: max-content;
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	margin-top: 12px;
}

/* Arrow indicator for dropdown menu box */
.menu-list .sub-menu::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 30px;
	width: 10px;
	height: 10px;
	background: #ffffff;
	border-left: 1px solid #f1f5f9;
	border-top: 1px solid #f1f5f9;
	transform: rotate(45deg);
}

.menu-list .menu-item-has-children.is-open .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	overflow: hidden;
}

.menu-list .menu-item-has-children.is-open>a::after {
	transform: rotate(225deg);
	margin-top: 2px;
}

.menu-list .sub-menu .menu-item a {
	display: block;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #334155;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-list .sub-menu .menu-item a:hover {
	background-color: #E6F2FF;
	color: #00ABF4;
}

/* Menu-integrated CTA Button (Class: menu-cta) */
.menu-list .menu-cta a {
	background-color: #00ABF4;
	color: #ffffff !important;
	padding: 14px 26px !important;
	font-size: 18px;
	font-weight: 600;
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	display: inline-block;
	box-shadow: 0 4px 14px rgba(0, 162, 245, 0.15);
	line-height: 1.2;
}

.menu-list .menu-cta a:hover {
	background-color: #0089d1;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 162, 245, 0.25);
	color: #ffffff !important;
}

.menu-list .menu-cta a:active {
	transform: translateY(1px);
}

/* Mobile Toggle Hamburger (SVG Wrapper) */
.menu-toggle {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1002;
	outline: none;
}

.menu-toggle:hover {
	background-color: unset;
}

.menu-toggle svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Default state: Hamburger active, Close hidden */
.menu-toggle .icon-hamburger {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

.menu-toggle .icon-close {
	opacity: 0;
	transform: scale(0.6) rotate(-90deg);
}

/* Expanded state: Hamburger morphs out, Close morphs in */
.menu-toggle.is-active .icon-hamburger {
	opacity: 0;
	transform: scale(0.6) rotate(90deg);
}

.menu-toggle.is-active .icon-close {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

/* Mobile Navigation Drawer Base */
.mobile-cta-container {
	display: none;
}

/* Mobile Extra Menu (hidden on desktop) */
.mobile-header-extra-menu-container {
	display: none;
}

/* Header Responsive Styles */
@media (max-width: 1024px) {
	.site-header-container {
		padding: 0 16px;
		height: 80px;
	}

	.logo-img,
	.custom-logo-link img.custom-logo {
		height: 35px;
	}

	.menu-toggle {
		display: flex;
	}

	.site-navigation {
		position: fixed;
		top: 81px;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #ffffff;
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 16px 24px 16px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-20px);
		transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
		z-index: 999;
		overflow-y: auto;
		display: flex;
	}

	.site-navigation.is-active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* Mobile Extra Menu Header Bar Styling */
	.mobile-header-extra-menu-container {
		display: block;
		margin-left: auto;
		margin-right: 16px;
		z-index: 1001;
	}

	.mobile-header-menu-list {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: row;
		gap: 16px;
		align-items: center;
	}

	.mobile-header-menu-list .menu-item a {
		font-size: 14px;
		font-weight: 700;
		color: #0f172a;
		text-decoration: none;
		transition: color 0.2s ease;
	}

	.mobile-header-menu-list .menu-item a:hover {
		color: #00ABF4;
	}

	/* Mobile Extra Menu CTA Button Styling */
	.mobile-header-menu-list .menu-cta a {
		background-color: #00ABF4 !important;
		color: #ffffff !important;
		padding: 8px 16px !important;
		font-size: 12px !important;
		font-weight: 700 !important;
		border-radius: 8px !important;
		text-decoration: none !important;
		box-shadow: 0 4px 10px rgba(0, 171, 244, 0.15) !important;
		transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
		display: inline-block !important;
		line-height: 1.2 !important;
	}

	.mobile-header-menu-list .menu-cta a:hover {
		background-color: #0089d1 !important;
		box-shadow: 0 6px 14px rgba(0, 171, 244, 0.25) !important;
		transform: translateY(-1px);
	}

	.menu-list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 0;
		flex-grow: 1;
	}

	/* Main Parent List Items */
	.menu-list>.menu-item {
		width: 100%;
		border-bottom: 1px solid #f1f5f9;
		padding: 12px 0;
		position: relative;
	}

	.menu-list>.menu-item>a {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 16px;
		font-weight: 700;
		color: #0f172a;
		padding: 4px 0;
		padding-left: 0;
		border-left: 4px solid transparent;
		transition: color 0.3s ease, padding-left 0.3s ease, border-color 0.3s ease;
		box-sizing: border-box;
	}

	/* Right chevrons for normal items */
	.menu-list>.menu-item:not(.menu-item-has-children):not(.menu-cta)>a::after {
		content: '';
		display: inline-block;
		width: 8px;
		height: 8px;
		border-right: 2px solid #94a3b8;
		border-bottom: 2px solid #94a3b8;
		transform: rotate(-45deg);
		transition: transform 0.25s ease;
	}

	/* Dropdown parent items */
	.menu-list>.menu-item-has-children>a::after {
		content: '';
		display: inline-block;
		width: 8px;
		height: 8px;
		border-right: 2px solid #0f172a;
		border-bottom: 2px solid #0f172a;
		transform: rotate(45deg);
		transition: transform 0.25s ease, border-color 0.25s ease;
	}

	/* Parent item open state */
	.menu-list>.menu-item.is-open>a {
		color: #00ABF4 !important;
		padding-left: 12px;
		border-left-color: #F99E03;
		border-radius: 4px;
	}

	.menu-list>.menu-item.is-open>a::after {
		transform: rotate(225deg);
		border-color: #00ABF4;
	}

	/* Submenu container */
	.menu-list .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 !important;
		margin: 0 !important;
		width: 100%;
		background: transparent;
		display: block;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
	}

	.menu-list .sub-menu::before {
		display: none;
	}

	.menu-item-has-children.is-open .sub-menu {
		max-height: 500px;
		padding: 8px 0 0 0 !important;
	}

	/* Submenu List Items */
	.menu-list .sub-menu .menu-item {
		border-bottom: none !important;
		margin: 0 !important;
	}

	.menu-list .sub-menu .menu-item a {
		font-size: 16px;
		font-weight: 500;
		color: #475569 !important;
		width: 100%;
		display: block;
		padding-left: 5px !important;
	}

	.menu-list .sub-menu .menu-item a::after {
		display: none !important;
	}

	.menu-list .sub-menu .menu-item a:hover {
		color: #00ABF4 !important;
	}

	/* Mobile CTA Button styling inside the list */
	.menu-list>.menu-item.menu-cta {
		border-bottom: none !important;
		padding: 0 !important;
		margin-top: auto !important;
		padding-top: 36px !important;
		width: 100%;
	}

	.menu-list>.menu-item.menu-cta a {
		display: block;
		text-align: center;
		width: 100%;
		box-sizing: border-box;
		background-color: #00ABF4;
		color: #ffffff !important;
		padding: 16px 28px !important;
		font-size: 18px;
		font-weight: 700;
		border-radius: 12px;
		box-shadow: 0 4px 14px rgba(0, 162, 245, 0.2);
	}

	.menu-list>.menu-item.menu-cta a::after {
		display: none !important;
	}
}