/*
 * Main navigation — refined industrial gold aesthetic
 * Targets: .l-subheader.at_middle
 */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&display=swap");

:root {
	--nav-gold: #FCC900;
	--nav-gold-soft: rgba(252, 201, 0, 0.14);
	--nav-ink: #141414;
	--nav-muted: #5a5a5a;
	--nav-line: rgba(0, 0, 0, 0.07);
}

/* ── Subheader bar ── */
.header_hor .l-subheader.at_middle {
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
	border-bottom: 1px solid var(--nav-line);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.35s ease, background 0.35s ease;
}

.header_hor .l-subheader.at_middle::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--nav-gold) 18%,
		var(--nav-gold) 82%,
		transparent 100%
	);
	opacity: 0.85;
	pointer-events: none;
}

.header_hor .l-header.sticky .l-subheader.at_middle {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ── Logo ── */
.l-subheader.at_middle .ush_image_1 .w-img-h {
	display: flex;
	align-items: center;
	height: 100%;
}

.l-subheader.at_middle .ush_image_1 img {
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.no-touch .l-subheader.at_middle .ush_image_1:hover img {
	transform: scale(1.03);
	opacity: 0.92;
}

/* ── Nav list layout ── */
.l-subheader.at_middle .ush_menu_1.type_desktop .w-nav-list.level_1 {
	display: flex;
	align-items: center;
	gap: 2px;
}

.header_hor .l-subheader.at_middle .ush_menu_1.type_desktop .w-nav-list.level_1 > .menu-item > a {
	padding: 0 1.15rem;
	height: 85px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	transition: color 0.28s ease;
}

.header_hor .l-header.sticky .l-subheader.at_middle .ush_menu_1.type_desktop .w-nav-list.level_1 > .menu-item > a {
	height: 60px;
}

/* ── Nav typography ── */
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item .w-nav-title {
	font-family: "Syne", "Arial Black", sans-serif;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	position: relative;
	z-index: 1;
}

/* ── Gold underline indicator (level_1 only) ── */
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item > .w-nav-anchor .w-nav-title::after {
	content: "";
	display: block;
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--nav-gold);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.l-subheader.at_middle .w-nav-list.level_2 .w-nav-title::after,
.l-subheader.at_middle .w-nav-list.level_3 .w-nav-title::after {
	display: none !important;
}

.no-touch .l-subheader.at_middle .w-nav-list.level_1 > .menu-item:hover > .w-nav-anchor .w-nav-title::after,
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item.current-menu-item > .w-nav-anchor .w-nav-title::after,
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item.current-menu-parent > .w-nav-anchor .w-nav-title::after,
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item.current-menu-ancestor > .w-nav-anchor .w-nav-title::after {
	width: 100%;
}

/* ── Hover & active states ── */
.no-touch .l-subheader.at_middle .w-nav-item.level_1:hover > .w-nav-anchor,
.l-subheader.at_middle .w-nav-item.level_1.current-menu-item > .w-nav-anchor,
.l-subheader.at_middle .w-nav-item.level_1.current-menu-parent > .w-nav-anchor,
.l-subheader.at_middle .w-nav-item.level_1.current-menu-ancestor > .w-nav-anchor {
	background-color: transparent !important;
	color: var(--nav-ink) !important;
}

.no-touch .l-subheader.at_middle .w-nav-item.level_1:hover > .w-nav-anchor {
	color: var(--nav-ink) !important;
}

.l-subheader.at_middle .w-nav-item.level_1.current-menu-item > .w-nav-anchor .w-nav-title,
.l-subheader.at_middle .w-nav-item.level_1.current-menu-parent > .w-nav-anchor .w-nav-title,
.l-subheader.at_middle .w-nav-item.level_1.current-menu-ancestor > .w-nav-anchor .w-nav-title {
	color: var(--nav-ink);
}

/* Subtle hover pill behind link */
.no-touch .l-subheader.at_middle .w-nav-list.level_1 > .menu-item > .w-nav-anchor::before {
	content: "";
	position: absolute;
	inset: 28px 6px;
	background: var(--nav-gold-soft);
	border-radius: 4px;
	opacity: 0;
	transform: scaleY(0.6);
	transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 0;
}

.no-touch .l-subheader.at_middle .w-nav-list.level_1 > .menu-item:hover > .w-nav-anchor::before {
	opacity: 1;
	transform: scaleY(1);
}

.l-subheader.at_middle .w-nav-item.level_1.current-menu-item > .w-nav-anchor::before {
	opacity: 1;
	transform: scaleY(1);
	background: var(--nav-gold-soft);
}

/* Remove legacy gray active bg on li */
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item.current-menu-item {
	background-color: transparent !important;
	border: none !important;
}

/* ── Desktop: dropdown chevron to the right of label ── */
@media (min-width: 901px) {
	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:not(.menu-item-has-children) > .w-nav-anchor .w-nav-arrow {
		display: none !important;
	}

	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children > .w-nav-anchor.level_1 {
		gap: 0.35rem;
	}

	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children > .w-nav-anchor.level_1 .w-nav-arrow {
		display: inline-flex !important;
		position: static !important;
		width: auto !important;
		height: auto;
		margin-left: 0.2rem;
		padding: 0;
		flex-shrink: 0;
		align-items: center;
		justify-content: center;
		opacity: 0.5;
		line-height: 1;
		color: inherit;
		transition: opacity 0.25s ease, transform 0.25s ease;
	}

	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children > .w-nav-anchor.level_1 .w-nav-arrow::before {
		content: "";
		display: block;
		width: 0;
		height: 0;
		margin-top: 1px;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
		border-top: 5px solid currentColor;
		font-family: inherit;
		font-size: 0;
		vertical-align: middle;
		transform: none;
	}

	.no-touch .l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children:hover > .w-nav-anchor.level_1 .w-nav-arrow,
	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children.current-menu-item > .w-nav-anchor.level_1 .w-nav-arrow,
	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children.current-menu-parent > .w-nav-anchor.level_1 .w-nav-arrow,
	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children.current-menu-ancestor > .w-nav-anchor.level_1 .w-nav-arrow {
		opacity: 1;
	}

	.no-touch .l-subheader.at_middle .w-nav-list.level_1 > .menu-item-has-children:hover > .w-nav-anchor.level_1 .w-nav-arrow {
		transform: translateY(1px);
	}
}

/* ── Dropdown panel polish ── */
.l-subheader.at_middle .w-nav-list.level_2 {
	border-top: none !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* ── Search icon ── */
.l-subheader.at_middle .ush_search_1 .w-search-open {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--nav-line);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.no-touch .l-subheader.at_middle .ush_search_1 .w-search-open:hover {
	border-color: var(--nav-gold);
	background: var(--nav-gold-soft);
	box-shadow: 0 4px 14px rgba(252, 201, 0, 0.25);
}

/* ── Staggered entrance animation ── */
@keyframes navItemReveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.l-subheader.at_middle .w-nav-list.level_1 > .menu-item {
	animation: navItemReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(1) { animation-delay: 0.04s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(2) { animation-delay: 0.08s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(3) { animation-delay: 0.12s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(4) { animation-delay: 0.16s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(5) { animation-delay: 0.20s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(6) { animation-delay: 0.24s; }
.l-subheader.at_middle .w-nav-list.level_1 > .menu-item:nth-child(7) { animation-delay: 0.28s; }

/* ── Mobile: menu + search buttons only (do not change desktop nav) ── */
@media (max-width: 900px) {
	.header_hor .l-subheader.at_middle .ush_menu_1.type_desktop .w-nav-list.level_1 > .menu-item > a,
	.header_hor .l-subheader.at_middle .ush_menu_1 .w-nav-list.level_1 > .menu-item > a {
		height: 50px;
	}

	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item .w-nav-title {
		font-size: 14px !important;
		letter-spacing: 0.1em;
	}

	.l-subheader.at_middle .w-nav-list.level_1 > .menu-item {
		animation: none;
	}

	.l-subheader.at_middle .l-subheader-cell.at_right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
	}

	.l-subheader.at_middle .w-nav-control,
	.l-subheader.at_middle .w-search-open,
	.l-subheader.at_middle .ush_search_1 .w-search-open {
		box-sizing: border-box;
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
		margin: 0;
		padding: 0;
		border-radius: 50%;
		border: 1px solid rgba(0, 0, 0, 0.14) !important;
		background: #fff !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		position: relative;
		opacity: 1 !important;
		filter: none !important;
		-webkit-tap-highlight-color: transparent;
		transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
	}

	.l-subheader.at_middle .w-nav.type_mobile .w-nav-control {
		width: 44px;
		height: 44px;
	}

	.l-subheader.at_middle .w-nav-control::before,
	.l-subheader.at_middle .w-nav-control::after {
		content: "";
		position: absolute;
		left: 50%;
		width: 18px;
		height: 2px;
		margin-left: -9px;
		background: var(--nav-ink) !important;
		border-radius: 1px;
		box-shadow: none !important;
	}

	.l-subheader.at_middle .w-nav-control::before {
		top: 50%;
		margin-top: -7px;
		box-shadow: 0 7px 0 var(--nav-ink) !important;
	}

	.l-subheader.at_middle .w-nav-control::after {
		top: 50%;
		margin-top: 5px;
	}

	.l-subheader.at_middle .w-search-open::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 18px;
		height: 18px;
		margin-left: -9px;
		margin-top: -6px;
		background: var(--nav-ink) !important;
		opacity: 1 !important;
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
		mask-size: contain;
		-webkit-mask-size: contain;
		mask-repeat: no-repeat;
		-webkit-mask-repeat: no-repeat;
		mask-position: center;
		-webkit-mask-position: center;
	}

	.l-subheader.at_middle .w-search-open::after {
		display: none !important;
	}

	.no-touch .l-subheader.at_middle .w-nav-control:hover,
	.no-touch .l-subheader.at_middle .w-search-open:hover,
	.no-touch .l-subheader.at_middle .ush_search_1 .w-search-open:hover {
		border-color: var(--nav-gold) !important;
		background: var(--nav-gold) !important;
		box-shadow: 0 4px 16px rgba(252, 201, 0, 0.45) !important;
	}

	.no-touch .l-subheader.at_middle .w-nav-control:hover::before,
	.no-touch .l-subheader.at_middle .w-nav-control:hover::after {
		background: var(--nav-ink) !important;
	}

	.no-touch .l-subheader.at_middle .w-nav-control:hover::before {
		box-shadow: 0 7px 0 var(--nav-ink) !important;
	}

	.no-touch .l-subheader.at_middle .w-search-open:hover::before {
		background: var(--nav-ink) !important;
		opacity: 1 !important;
	}

	.l-subheader.at_middle .w-nav-control:active,
	.l-subheader.at_middle .w-search-open:active {
		background: var(--nav-gold) !important;
		border-color: var(--nav-gold) !important;
	}
}

/* ── Sync content offset with fixed header (remove gap below nav) ── */
body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_fixed ~ .l-main .l-section:first-child,
body.header_hor .l-canvas.titlebar_none.sidebar_left .l-header.pos_fixed ~ .l-main,
body.header_hor .l-canvas.titlebar_none.sidebar_right .l-header.pos_fixed ~ .l-main,
body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_static.bg_transparent ~ .l-main .l-section:first-child,
body.header_hor .l-canvas.titlebar_none.sidebar_left .l-header.pos_static.bg_transparent ~ .l-main,
body.header_hor .l-canvas.titlebar_none.sidebar_right .l-header.pos_static.bg_transparent ~ .l-main {
	padding-top: 125px !important;
}

body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_fixed.sticky ~ .l-main .l-section:first-child,
body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_fixed.sticky ~ .l-main .l-section.type_sticky:first-child {
	padding-top: 100px !important;
}

@media (max-width: 900px) {
	body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_fixed ~ .l-main .l-section:first-child,
	body.header_hor .l-canvas.titlebar_none.sidebar_left .l-header.pos_fixed ~ .l-main,
	body.header_hor .l-canvas.titlebar_none.sidebar_right .l-header.pos_fixed ~ .l-main,
	body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_static.bg_transparent ~ .l-main .l-section:first-child,
	body.header_hor .l-canvas.titlebar_none.sidebar_left .l-header.pos_static.bg_transparent ~ .l-main,
	body.header_hor .l-canvas.titlebar_none.sidebar_right .l-header.pos_static.bg_transparent ~ .l-main {
		padding-top: var(--gt-header-offset, 50px) !important;
	}

	body.header_hor .l-canvas.titlebar_none.sidebar_none .l-header.pos_fixed.sticky ~ .l-main .l-section.type_sticky:first-child {
		padding-top: var(--gt-header-offset, 50px) !important;
	}
}

/* ── Titlebar offset (sidebar / inner pages) ── */
body.header_hor .l-header.pos_fixed ~ .l-titlebar {
	padding-top: 125px !important;
}

body.header_hor .l-header.pos_fixed.sticky ~ .l-titlebar {
	padding-top: 100px !important;
}

@media (max-width: 900px) {
	body.header_hor .l-header.pos_fixed ~ .l-titlebar,
	body.header_hor .l-header.pos_fixed.sticky ~ .l-titlebar {
		padding-top: var(--gt-header-offset, 50px) !important;
	}
}
