/* Sticky header — 3-tier design (top / brand / nav) */

:root {
	--sticky-green: #006451;
	--sticky-white: #ffffff;
	--sticky-black: #1a1a1a;
	--sticky-grey: #c8c8c8;
	--sticky-nav-text: #1a1a1a;
}

.sticky-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	width: 100%;
	font-family: 'finalsix bold', sans-serif;
	font-weight: 500;
}

.sticky-site-header .sticky-inner {
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	padding-left: 55px;
	padding-right: 55px;
	box-sizing: border-box;
}

@media screen and (max-width: 992px) {
	.sticky-site-header .sticky-inner {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Max-width only on the nav bar content */
.sticky-nav-bar .sticky-inner {
	max-width: 1200px;
}

/* ---------- Tier 1: Top bar ---------- */
.sticky-header-top {
	background: var(--sticky-white);
	height: 75px;
	display: flex;
	align-items: center;
}

.sticky-header-top .sticky-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.sticky-yl-logo img {
	height: 35px;
	width: auto;
	max-width: 158px;
	object-fit: contain;
	display: block;
}

.sticky-yl-fallback {
	font-weight: 700;
	font-size: 22px;
	color: #e85d04;
	letter-spacing: -0.02em;
}

.sticky-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--sticky-black);
	font-family: 'finalsix bold', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
}

.sticky-phone:hover {
	color: var(--sticky-green);
}

.sticky-phone-number {
	font-family: Montserrat, sans-serif;
	font-weight: 600;
}

.sticky-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #000;
	flex-shrink: 0;
}

@media screen and (max-width: 1700px) {
	/* .sticky-header-top {
		height: 70px;
	} */
}

@media screen and (max-width: 768px) {
	.sticky-header-top {
		height: 60px;
	}

	.sticky-yl-logo img {
		height: 28px;
	}

	.sticky-phone-number {
		font-size: 16px;
	}

	.sticky-phone-icon {
		width: 24px;
		height: 24px;
	}

	.sticky-phone-icon svg {
		width: 14px;
		height: 14px;
	}
}

/* ---------- Tier 2: Brand bar ---------- */
.sticky-brand-bar {
	background: var(--sticky-green);
	height: 100px;
	display: flex;
	align-items: center;
	position: relative;
}

.sticky-brand-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	min-height: 100%;
}

.sticky-brand-logo {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.sticky-brand-logo img {
	width: 250px;
	height: auto;
	display: block;
}

.sticky-brand-fallback {
	color: var(--sticky-white);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
	padding-bottom: 4px;
}

.sticky-register-btn {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
}

.sticky-register-btn .btn-default-banner {
	height: 55px;
	padding: 0 28px;
	font-family: 'finalsix bold', sans-serif;
	font-size: 18px;
	font-weight: 500;
}

/* Hamburger — mobile only */
.sticky-hamburger {
	display: none;
	grid-column: 1;
	justify-self: start;
	cursor: pointer;
	z-index: 10;
	padding: 4px;
}

.sticky-hamburger .line {
	width: 28px;
	height: 0;
	border-bottom: solid 2px #fff;
	display: block;
	margin: 7px 0;
	transition: all 0.3s ease-in-out;
}

.sticky-hamburger.is-active .line:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.sticky-hamburger.is-active .line:nth-child(2) {
	opacity: 0;
}

.sticky-hamburger.is-active .line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 1700px) {
	/* .sticky-brand-bar {
		height: 90px;
	} */

	/* .sticky-brand-logo img {
		width: 180px;
	} */
}

@media screen and (max-width: 991px) {
	.sticky-hamburger {
		display: block;
	}

	.sticky-register-btn {
		display: none;
	}

	.sticky-brand-bar {
		height: 80px;
	}

	.sticky-brand-logo img {
		width: 170px;
	}

	.sticky-brand-inner {
		grid-template-columns: 40px 1fr 40px;
	}
}

/* ---------- Tier 3: Nav bar ---------- */
.sticky-nav-bar {
	background: var(--sticky-white);
	border-bottom: 1px solid #e8e8e8;
	position: relative;
	z-index: 20;
}

.sticky-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	gap: 0;
	min-height: 56px;
}

.sticky-menu > .menu-item {
	position: relative;
	margin: 0;
	padding: 0;
	flex: 1 1 0;
	width: 0; /* equal-width flex children */
	display: flex;
	align-items: stretch;
	text-align: center;
}

.sticky-menu > .menu-item > a,
.sticky-menu > .menu-item > .sticky-dropdown > a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 56px;
	padding: 0 8px;
	font-family: 'finalsix bold', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--sticky-nav-text);
	text-decoration: none;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	box-sizing: border-box;
	transition: none;
}

.sticky-menu > .menu-item.current-menu-item > a,
.sticky-menu > .menu-item.current-menu-item > .sticky-dropdown > a {
	color: var(--sticky-green);
}

/* News / Contact Us (top-level links without dropdown) */
.sticky-menu > .menu-item:not(.menu-item-has-children) > a:hover {
	color: #006451;
}

.sticky-dropdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
}

.sticky-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 11px;
	height: 7px;
	margin-top: 1px;
	flex-shrink: 0;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-chevron img {
	display: block;
	width: 11px;
	height: 7px;
	/* SVG stroke is white — tint for light nav */
	filter: brightness(0) saturate(100%) invert(70%);
}

.sticky-menu > .menu-item.is-open > .sticky-dropdown > a .sticky-chevron {
	transform: rotate(180deg);
}

@media screen and (min-width: 992px) {
	.sticky-menu > .menu-item:hover > .sticky-dropdown > a .sticky-chevron {
		transform: rotate(180deg);
	}
}

/* Dropdown — shared visibility */
.sticky-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	min-width: 0;
	background: var(--sticky-white);
	border: 1px solid #ddd;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 30;
}

/* Show open state; hover open only on large screens */
.sticky-menu > .menu-item.is-open > .sub-menu,
.sticky-menu > .menu-item.is-open > .sticky-dropdown > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media screen and (min-width: 992px) {
	.sticky-menu > .menu-item:hover > .sub-menu,
	.sticky-menu > .menu-item:hover > .sticky-dropdown > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.sticky-menu .sub-menu .menu-item a {
	display: block;
	padding: 10px 15px;
	font-family: 'finalsix bold', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--sticky-black);
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
}

.sticky-menu .sub-menu .menu-item a:hover,
.sticky-menu .sub-menu .menu-item.current-menu-item a {
	color: var(--sticky-green);
}

/* Large screens: shared panel with soft open/close */
@media screen and (min-width: 992px) {
	.sticky-menu > .menu-item:not(.menu-item-has-children) > a {
		margin-top: 5px;
		min-height: 51px;
	}

	.sticky-menu > .menu-item-has-children {
		position: relative;
		z-index: 1;
	}

	.sticky-menu > .menu-item-has-children > .sticky-dropdown {
		position: absolute;
		top: 5px;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: max-content;
		height: auto;
		background: transparent;
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
		z-index: 32;
		transition:
			background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
			box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	}

	/* Keep parent label locked — same padding/alignment open and closed */
	.sticky-menu > .menu-item-has-children > .sticky-dropdown > a {
		position: relative;
		z-index: 1;
		width: 100%;
		min-height: 51px;
		margin: 0;
		justify-content: flex-start;
		gap: 6px;
		padding-left: 20px;
		padding-right: 20px;
		color: var(--sticky-black);
		background: transparent;
		box-sizing: border-box;
	}

	.sticky-menu > .menu-item-has-children > .sticky-dropdown > a::after {
		content: '';
		position: absolute;
		left: 20px;
		bottom: 0;
		width: 40px;
		height: 1px;
		background: #c8c8c8;
		opacity: 0;
		transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.sticky-menu > .menu-item-has-children > .sticky-dropdown > a .sticky-chevron img {
		filter: brightness(0) saturate(100%) invert(70%);
		transition: filter 0.3s ease;
	}

	/*
	 * Submenu stays in-flow for width (so panel width never jumps),
	 * collapsed with max-height when closed.
	 */
	.sticky-menu > .menu-item-has-children > .sticky-dropdown > .sub-menu {
		position: static;
		top: auto;
		left: auto;
		transform: none;
		width: auto;
		min-width: 100%;
		max-height: 0;
		margin: 0;
		padding: 0 20px;
		border: none;
		box-shadow: none;
		background: transparent;
		text-align: left;
		box-sizing: border-box;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		overflow: hidden;
		transition:
			opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0.35s,
			max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
			padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.sticky-menu > .menu-item-has-children .sub-menu .menu-item a {
		padding: 12px 0;
		text-align: left;
	}

	.sticky-menu > .menu-item-has-children:hover,
	.sticky-menu > .menu-item-has-children.is-open {
		z-index: 40;
	}

	.sticky-menu > .menu-item-has-children:hover > .sticky-dropdown,
	.sticky-menu > .menu-item-has-children.is-open > .sticky-dropdown {
		background: var(--sticky-white);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.2);
		transition-duration: 0.22s;
	}

	.sticky-menu > .menu-item-has-children:hover > .sticky-dropdown > a::after,
	.sticky-menu > .menu-item-has-children.is-open > .sticky-dropdown > a::after {
		opacity: 1;
		transition-duration: 0.2s;
	}

	.sticky-menu > .menu-item-has-children:hover > .sticky-dropdown > a .sticky-chevron img,
	.sticky-menu > .menu-item-has-children.is-open > .sticky-dropdown > a .sticky-chevron img {
		filter: brightness(0);
	}

	.sticky-menu > .menu-item-has-children:hover > .sticky-dropdown > .sub-menu,
	.sticky-menu > .menu-item-has-children.is-open > .sticky-dropdown > .sub-menu {
		max-height: 240px;
		padding: 0 20px 16px;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition-duration: 0.22s;
	}
}

@media screen and (max-width: 991px) {
	.sticky-nav-bar {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		border-bottom: none;
		background: var(--sticky-white);
		box-shadow: none;
		height: calc(100vh - 136px);
		height: calc(100dvh - 136px);
		max-height: none;
		overflow-y: auto;
	}

	.sticky-nav-bar.is-open {
		display: flex;
		flex-direction: column;
	}

	.sticky-nav-bar .sticky-inner {
		max-width: none;
		height: 100%;
		flex: 1;
	}

	.sticky-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-height: 100%;
		height: 100%;
		padding: 8px 0 16px;
	}

	.sticky-menu > .menu-item {
		flex: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}

	.sticky-dropdown {
		align-items: stretch;
		height: auto;
	}

	.sticky-menu > .menu-item > a,
	.sticky-menu > .menu-item > .sticky-dropdown > a {
		padding: 16px 0;
		justify-content: space-between;
		border-bottom: 1px solid #000000;
		width: 100%;
		min-height: 0;
	}

	.sticky-menu > .menu-item.is-open > a,
	.sticky-menu > .menu-item.is-open > .sticky-dropdown > a {
		color: var(--sticky-green);
	}

	.sticky-menu .sub-menu {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		display: none;
		border: none;
		box-shadow: none;
		padding: 0;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		background: #f0f0f0;
		z-index: auto;
	}

	.sticky-menu > .menu-item.is-open > .sub-menu,
	.sticky-menu > .menu-item.is-open > .sticky-dropdown > .sub-menu {
		display: block;
	}

	.sticky-menu .sub-menu .menu-item {
		width: 100%;
	}

	.sticky-menu .sub-menu .menu-item a {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: left;
		padding: 14px 0 14px 16px;
		white-space: normal;
		color: var(--sticky-black);
	}

	.sticky-menu .sub-menu .menu-item a:hover,
	.sticky-menu .sub-menu .menu-item.current-menu-item a {
		color: var(--sticky-green);
	}
}

/* Spacer — JS (toMarginHeader) overrides with measured height */
body.sticky-nav-open {
	overflow: hidden;
}
