/* =============================================================================
   HEADER
   ============================================================================= */

/* Skip Link */
.skip-link.screen-reader-text {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 9999;
	padding: 10px 20px;
	background-color: var(--dark-blue);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s ease;
}
.skip-link.screen-reader-text:focus {
	top: 0;
}

.common-cta-btn{
	background-color: var(--blue);
	color: var(--white);
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	min-width: 120px;
	padding: 6px 12px;
	gap: 10px;
}

.white-btn{
    background-color: var(--white);
    color: var(--main-brand);
}

/* Header Base */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1040;
	background-color: var(--white);
	box-shadow: 0px 2px 20px 0px #0000000D;
}

/* Header Inner Wrapper */
.header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 auto;
	gap: 16px;
	min-height: 105px;
	padding: 10px 0;
}

/* Logo Wrap */
.header-logo-wrap {
	flex-shrink: 0;
	display: flex;
	min-width: 240px;
}
.header-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.header-logo-img{
	max-width: 235px;
}

/* Mobile Controls (hamburger + icon CTA) */
.header-mobile-controls {
	display: none;
	align-items: center;
	gap: 16px;
}

/* Hamburger Button */
.header-toggler {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 50px;
	height: 50px;
	padding: 0;
	background: transparent;
	border: 1.5px solid rgba(3, 42, 78, 0.18);
	border-radius: 0px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.header-toggler:hover {
	border-color: var(--blue);
	background-color: rgba(24, 99, 165, 0.05);
}
.header-toggler:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}
.header-toggler-bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--dark-blue);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile icon-only Contact Us button */
.header-contact-icon {
	display: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
    padding: 5px;
	background-color: var(--blue);
	color: var(--white);
	border: none;
	border-radius: 0px;
	font-size: 24px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.header-contact-icon:hover {
	background-color: var(--dark-blue);
	color: var(--white);
}
.header-contact-icon:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* =============================================================================
   OFFCANVAS — desktop resets
   On desktop (≥992px): offcanvas behaves as a normal flex row
   ============================================================================= */
.header-offcanvas {
	/* Reset Bootstrap offcanvas positioning on desktop */
	position: static !important;
	display: flex !important;
	flex: 1;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	visibility: visible !important;
	transform: none !important;
	width: auto !important;
	height: auto !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	z-index: auto !important;
	transition: none !important;
	padding: 0 !important;
}

/* Hide offcanvas header (logo + close btn) on desktop */
.offcanvas-header.header-offcanvas-head {
	display: none;
}


/* Offcanvas body as flex row on desktop */
.header-offcanvas-body {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	padding: 0 !important;
	overflow: visible !important;
}

/* =============================================================================
   NAVIGATION — desktop
   ============================================================================= */
.header-nav {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

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

/* Nav items */
.nav-item-wp {
	position: relative;
}

/* Nav links */
.header-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 20px;
	font-size: 16px;
	font-weight: 400;
	color: var(--dark-blue);
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	background: none;
	border: none;
}
.header-nav-link:hover,
.header-nav-link:focus-visible {
	color: var(--blue);
	outline: none;
	font-weight: 500;
}
.nav-item-wp.active > .header-nav-link,
.nav-item-wp.current-menu-item > .header-nav-link,
.nav-item-wp.current-menu-parent > .header-nav-link,
.nav-item-wp.current-menu-ancestor > .header-nav-link {
	color: var(--blue);
	font-weight: 500;
}

/* Dropdown caret icon */
.header-dropdown-caret {
	font-size: 11px;
	transition: transform 0.22s ease;
	color: currentColor;
}
.header-dropdown-toggle[aria-expanded="true"] .header-dropdown-caret {
	transform: rotate(180deg);
}

/* =============================================================================
   DROPDOWN MENU — desktop
   ============================================================================= */
.header-has-dropdown {
	position: relative;
}

.header-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1050;
	min-width: 560px;
	padding: 0;
	margin: 0;
	list-style: none;
	background-color: var(--white);
	border-radius: 16px;
	box-shadow: 0px 4px 20px 0px #0000001A;
	animation: header-dropdown-in 0.18s ease forwards;
	overflow: hidden;
}
.header-has-dropdown:hover > .header-dropdown-menu,
.header-has-dropdown:focus-within > .header-dropdown-menu {
	display: block;
}

@keyframes header-dropdown-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.header-dropdown-item {
	display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 25px;
    min-height: 60px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}
.header-dropdown-menu .menu-item:first-child .header-dropdown-item:hover{
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
}
.header-dropdown-menu .menu-item:last-child .header-dropdown-item:hover{
	border-bottom-left-radius: 16px;
	border-bottom-right-radius: 16px;
}
.header-dropdown-item:hover,
.header-dropdown-item:focus {
	color: var(--blue);
	background-color: rgba(24, 99, 165, 0.05);
	outline: none;
}
.header-dropdown-item.active {
	color: var(--blue);
	font-weight: 500;
	background-color: rgba(24, 99, 165, 0.07);
}

/* =============================================================================
   CTA BUTTON
   ============================================================================= */
.header-cta-wrap {
	flex-shrink: 0;
	min-width: 240px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.header-cta-btn:hover {
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
	color: var(--white);
	box-shadow: 0 4px 14px rgba(3, 42, 78, 0.22);
	transform: translateY(-1px);
}
.header-cta-btn:focus-visible {
	outline: 3px solid rgba(24, 99, 165, 0.35);
	outline-offset: 3px;
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
	color: var(--white);
}
.header-cta-btn:active {
	transform: translateY(0);
	box-shadow: none;
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
}

/* =============================================================================
   RESPONSIVE — header wrap adjustments
   ============================================================================= */

/* 1600px+ */
@media (min-width: 1601px) {
	.container{
		max-width: 1640px;
	}
}

/* 1366px */
@media (max-width: 1366px) {
	.container{
		max-width: 1200px;
	}

	.header-dropdown-menu{
		min-width: 450px;
	}

	.header-logo-img {
		max-width: 200px;
	}
}

/* 1200px */
@media (max-width: 1199px) {
	.header-nav-link {
		padding: 8px 16px;
		font-size: 14px;
	}
}

/* =============================================================================
   OFFCANVAS — mobile (<992px)
   Bootstrap takes over; we layer our visual styles on top
   ============================================================================= */
@media (max-width: 991px) {

	/* Show mobile controls */
	.header-mobile-controls {
		display: flex;
	}
	.header-contact-icon {
		display: inline-flex;
	}

	.offcanvas-header.header-offcanvas-head {
		display: flex;
		width: 100%;
	}

	/* Restore Bootstrap offcanvas behaviour */
	.header-offcanvas {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		width: 450px !important;
		height: 100vh !important;
		max-height: 100vh;
		flex-direction: column !important;
		justify-content: flex-start !important;
		background-color: var(--white) !important;
		border-left: 1px solid rgba(3, 42, 78, 0.1) !important;
		box-shadow: -4px 0 24px rgba(3, 42, 78, 0.12) !important;
		z-index: 1050 !important;
		visibility: hidden !important;
		transform: translateX(100%) !important;
		transition: transform 0.3s ease, visibility 0.3s ease !important;
		display: flex !important;
		padding: 0 !important;
		overflow: hidden !important;
	}
	.header-offcanvas.show {
		visibility: visible !important;
		transform: translateX(0) !important;
	}

	/* Show offcanvas header on mobile */
	.header-offcanvas-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 20px;
		border-bottom: 1px solid rgba(3, 42, 78, 0.08);
		flex-shrink: 0;
	}
	.header-offcanvas-logo-link {
		display: inline-flex;
		align-items: center;
		text-decoration: none;
	}
	.header-offcanvas-logo {
		height: 38px;
		width: auto;
		object-fit: contain;
	}
	.header-offcanvas-logo-link .custom-logo {
		height: 38px;
		width: auto;
	}
	.header-offcanvas-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		padding: 0;
		background: transparent;
		border: 1.5px solid rgba(3, 42, 78, 0.15);
		border-radius: 6px;
		color: var(--dark-blue);
		font-size: 15px;
		cursor: pointer;
		transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}
	.header-offcanvas-close:hover {
		background-color: rgba(24, 99, 165, 0.06);
		border-color: var(--blue);
		color: var(--blue);
	}

	/* Offcanvas body: vertical scroll */
	.header-offcanvas-body {
		width: 100%;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		overflow-y: auto !important;
		padding: 20px 0 !important;
		flex: 1;
	}

	/* Nav: vertical */
	.header-nav {
		display: block;
		width: 100%;
		justify-content: flex-start;
	}
	.header-nav-list {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}
	.nav-item-wp {
		border-bottom: 1px solid rgba(3, 42, 78, 0.06);
	}
	.header-nav-link {
		display: flex;
		justify-content: space-between;
		padding: 10px 24px;
		border-radius: 0;
		font-size: 16px;
		width: 100%;
		min-height: 54px;
	}

	/* Dropdown on mobile: static, no absolute */
	.header-dropdown-menu {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 0 0px 0;
		margin: 0;
		/* background-color: rgba(3, 42, 78, 0.02); */
		animation: none;
		min-width: auto;
	}
	.header-has-dropdown:hover > .header-dropdown-menu,
	.header-has-dropdown:focus-within > .header-dropdown-menu {
		display: none;
	}
	/* Mobile: toggle via aria-expanded on the link */
	.header-has-dropdown.is-open > .header-dropdown-menu {
		display: block;
	}
	.header-dropdown-toggle[aria-expanded="true"] + .header-dropdown-menu {
		display: block;
	}
	.header-dropdown-menu{
		padding: 6px 20px;
	}
	.header-dropdown-menu .nav-item-wp:not(:last-child){
		border-bottom: 1px solid rgba(3, 42, 78, 0.04);
	}
	.header-dropdown-menu .nav-item-wp{
		border-bottom: 0;
	}
	.header-dropdown-item {
		font-size: 16px;
	}

	.header-dropdown-menu .menu-item:first-child .header-dropdown-item:hover,
	.header-dropdown-menu .menu-item:last-child .header-dropdown-item:hover{
		border-radius: 0;
	}

	/* CTA on mobile: full-width below menu */
	.header-cta-wrap {
		display: none;	
	}
}


/* 767px */
@media (max-width: 767px) {

	.header-logo-img {
        max-width: 180px;
    }

	.header-logo-wrap {
		min-width: auto;
	}

	.header-wrap {
		min-height: 90px;
	}

	.common-cta-btn{
		font-size: 14px;
		line-height: 22px;
		min-height: 45px;	
	}
}

/* 575px */
@media (max-width: 575px) {
	.header-contact-icon{
        width: 40px;
        height: 40px;
        font-size: 18px;
	}

	.header-toggler{
		width: 40px;
        height: 40px;
	}

	.header-offcanvas{
		width: 100% !important;
	}
}

/* 400px */
@media (max-width: 400px) {
	.header-logo-img {
        max-width: 160px;
    }

	.header-mobile-controls{
		gap: 8px;
	}

	.header-contact-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
	
	.header-toggler {
        width: 36px;
        height: 36px;
    }
}