/* ==========================================================================
   Header — fixed, glass overlay, mobile-first
   Matches WPRig production: transparent dark with backdrop blur,
   scroll-state classes applied by header.js.
   Replaced automatically by Elementor Theme Builder when a Header
   template is published with display condition: Entire Site.
   ========================================================================== */

.jl-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(2px);
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), rgba(255, 255, 255, 0.1);
	transition: background 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Scrolled: slightly more transparent */
.jl-header.is-scrolled {
	background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), rgba(255, 255, 255, 0.1);
	opacity: 0.5;
}

/* Scrolling up or hovering while scrolled: come back fully */
.jl-header.is-scrolled.is-scrolling-up,
.jl-header.is-scrolled:hover {
	opacity: 1;
	background: linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.49)), rgba(255, 255, 255, 0.1);
}

.jl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	max-width: 1400px;
	margin-inline: auto;
}

/* Logo */
.jl-header__logo img {
	display: block;
	height: 60px;
	width: auto;
	transition: height 0.3s ease;
}

.jl-header.is-scrolled .jl-header__logo img {
	height: 36px;
}

.jl-header__site-name {
	color: #fff;
	font-family: 'Gotham Office', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
}

/* Hamburger toggle */
.jl-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	background: none !important;
	border: none !important;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	color: #fff !important;
	box-shadow: none !important;
	outline: none;
}

.jl-header__toggle-bar {
	display: block;
	height: 2px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.jl-header__toggle[aria-expanded="true"] .jl-header__toggle-bar:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.jl-header__toggle[aria-expanded="true"] .jl-header__toggle-bar:nth-child(2) {
	opacity: 0;
}
.jl-header__toggle[aria-expanded="true"] .jl-header__toggle-bar:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Nav — hidden on mobile until toggled */
.jl-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(11, 31, 47, 0.97);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0 1.5rem 1.5rem;
}

.jl-nav.is-open {
	display: block;
}

.jl-nav__list,
.jl-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Top-level items — flex row so chevron sits inline with link */
.jl-nav__list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jl-nav__list > li:last-child {
	border-bottom: none;
}

.jl-nav__list > li > a {
	flex: 1;
	display: block;
	padding: 1rem 0;
	color: #fff !important;
	text-decoration: none !important;
	font-family: 'Gotham Office', sans-serif;
	font-size: 1.0625rem;       /* 17px */
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.25;
}

.jl-nav__list a:hover,
.jl-nav__list a:focus {
	color: rgba(255, 255, 255, 0.7) !important;
}

/* Chevron button — inline right of link text */
.jl-nav__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	color: #fff !important;
	flex-shrink: 0;
	border-radius: 0 !important;
}

.jl-chevron-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

/* Rotate chevron when submenu is open */
.jl-nav__chevron[aria-expanded="true"] .jl-chevron-icon {
	transform: rotate(180deg);
}

/* Submenu — hidden by default on mobile, shown with .is-open */
.jl-nav__list ul {
	display: none;
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.jl-nav__list ul.is-open {
	display: block;
}

.jl-nav__list ul li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jl-nav__list ul li:last-child {
	border-bottom: none;
}

.jl-nav__list ul a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	font-family: 'Gotham Office', sans-serif;
	font-size: 1rem;        /* bumped from 14px */
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9) !important;
	letter-spacing: 0.01em;
}

/* ==========================================================================
   Tablet (768px+) — hamburger still active, just tighten scrolled states
   ========================================================================== */
@media (min-width: 768px) {
	.jl-header.is-scrolled .jl-header__inner {
		padding-top: 0.625rem;
		padding-bottom: 0.625rem;
	}

	.jl-header.is-scrolled .jl-header__logo img {
		height: 51px;
	}
}

/* ==========================================================================
   Desktop nav (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
	.jl-header__inner {
		padding: 1.25rem 3rem;
	}

	.jl-header__toggle {
		display: none;
	}

	.jl-nav {
		display: flex !important;
		position: static;
		background: none;
		border: none;
		padding: 0;
		min-height: 0;
		overflow: visible;
	}

	.jl-nav__list {
		display: flex;
		align-items: center;
		gap: 16px;
	}

	.jl-nav__list > li {
		border-bottom: none;
		position: relative;
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.jl-nav__list > li > a {
		padding: 6px 12px;
		white-space: nowrap;
	}

	.jl-nav__list > li > a:hover,
	.jl-nav__list > li > a:focus {
		color: rgba(255, 255, 255, 0.7) !important;
	}

	/* Chevron button */
	.jl-nav__chevron {
		width: 20px;
		height: 20px;
	}

	.jl-nav__chevron:hover,
	.jl-nav__chevron:focus {
		color: #fff !important;
		background: none !important;
		outline: none;
	}

	/* Rotate chevron up on hover/focus-within */
	.jl-nav__list > li:hover .jl-chevron-icon,
	.jl-nav__list > li:focus-within .jl-chevron-icon {
		transform: rotate(180deg);
	}

	/* Dropdown — absolute positioned, glass style */
	.jl-nav__list ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 0;
		width: auto;
		background-color: rgba(255, 255, 255, 0.1);
		background-image: linear-gradient(rgba(133, 133, 133, 0.84), rgba(142, 142, 142, 0.89));
		backdrop-filter: blur(2px);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 8px;
		padding: 0;
		box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px 0px;
		margin-top: 8px;
		margin-bottom: 0;
	}

	/* Bridge: extend the li's hover area down to cover the gap to the dropdown */
	.jl-nav__list > li::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: 16px;
	}

	.jl-nav__list li:hover > ul,
	.jl-nav__list li:focus-within > ul {
		display: block;
	}

	/* Submenu background darkens on hover */
	.jl-nav__list ul:hover {
		background-image: linear-gradient(rgba(123, 123, 123, 0.88), rgba(130, 130, 130, 0.93));
	}

	.jl-nav__list ul li {
		border: none;
		position: relative;
		overflow: hidden;
	}

	.jl-nav__list ul li:first-child {
		border-radius: 7px 7px 0 0;
	}

	.jl-nav__list ul li:last-child {
		border-radius: 0 0 7px 7px;
	}

	/* Slide-in dark overlay from left on li hover */
	.jl-nav__list ul li::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.4s, opacity 0.4s;
		opacity: 0;
		z-index: 0;
	}

	.jl-nav__list ul li:hover::before,
	.jl-nav__list ul li:focus-within::before {
		opacity: 1;
		transform: scaleX(1);
	}

	.jl-nav__list ul a {
		padding: 14px 16px 8px;
		font-size: 1rem;
		color: #fff !important;
		white-space: nowrap;
		position: relative;
		z-index: 1;
		min-height: 0;
	}

	.jl-nav__list ul a:hover,
	.jl-nav__list ul a:focus {
		color: #fff !important;
		background: none;
	}
}
