/**
 * Header navigation styles.
 *
 * @package Myde
 */

.header {
	--header-height: 68px;

	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	width: 100%;
	color: #e7e7e7;
}

.admin-bar .header {
	top: 32px;
}

.header__top {
	position: relative;
	z-index: 2;
	min-height: var(--header-height);
	overflow: visible;
	background-color: rgba(30, 30, 30, 0.38);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
	backdrop-filter: blur(5px) saturate(142%);
	-webkit-backdrop-filter: blur(2px) saturate(142%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.18),
		inset 0 -1px 0 rgba(0, 0, 0, 0.16),
		0 14px 34px rgba(0, 0, 0, 0.18);
	isolation: isolate;
	transition:
		background-color .45s cubic-bezier(.22, 1, .36, 1),
		background-image .45s cubic-bezier(.22, 1, .36, 1),
		backdrop-filter .45s cubic-bezier(.22, 1, .36, 1),
		-webkit-backdrop-filter .45s cubic-bezier(.22, 1, .36, 1),
		box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}

.header__top:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	padding: 1px;
	background:
		radial-gradient(120% 180% at 0 0, rgba(255, 255, 255, 0.38), transparent 35%),
		radial-gradient(120% 180% at 100% 100%, rgba(255, 255, 255, 0.16), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.055) 52%, rgba(242, 206, 181, 0.2));
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

.header__top:after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(242, 206, 181, 0.38) 18%, rgba(255, 255, 255, 0.24) 50%, rgba(242, 206, 181, 0.38) 82%, transparent);
	opacity: 0.8;
	pointer-events: none;
}

.header[data-scrolled="true"] .header__top,
.header:has(.header__submenu.is-open) .header__top {
	background-color: #1e1e1e;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
	backdrop-filter: blur(8px) saturate(116%);
	-webkit-backdrop-filter: blur(8px) saturate(116%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		inset 0 -1px 0 rgba(0, 0, 0, 0.24),
		0 14px 34px rgba(0, 0, 0, 0.22);
}

.header__container {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1440px;
	min-height: var(--header-height);
	margin: 0 auto;
	padding: 14px 40px;
	gap: 44px;
}

.header__logo {
	display: inline-flex;
	flex: 0 0 68px;
	width: 68px;
	height: 20px;
	text-decoration: none;
}

.header__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.header__nav[data-nav="desktop"] {
	display: flex;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

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

.header__menu-item {
	position: static;
	margin: 0;
}

.header__menu-link {
	display: inline-flex;
	align-items: center;
	color: #ffffff;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease, font-weight .2s ease;
}

.header__menu-link:hover,
.header__menu-item[data-expanded="true"] .header__menu-link,
.header__menu-item--active .header__menu-link {
	font-weight: 500;
}

.header__cta {
	flex: 0 0 auto;
	height: 40px;
	border-radius: 5px;
	text-decoration: none;
}

.header__cta.glass-button--text {
	--glass-radius: 5px;
	--glass-background: rgba(242, 206, 181, 0.05);
	--glass-background-active: rgba(242, 206, 181, 0.15);

	min-height: 40px;
	padding: 0 20px;
}

.header__cta .glass-button__content {
	min-height: 40px;
	padding: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	letter-spacing: 0;
	color: #e7e7e7;
}

.header__submenu {
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	width: 100vw;
	max-height: calc(100vh - var(--header-height));
	max-height: calc(100dvh - var(--header-height));
	overflow-y: auto;
	background: #1e1e1e;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.admin-bar .header__submenu {
	top: calc(var(--header-height));
	max-height: calc(100vh - var(--header-height) - 32px);
	max-height: calc(100dvh - var(--header-height) - 32px);
}

@media (max-width: 782px) {
	.admin-bar .header {
		top: 46px;
	}

	.admin-bar .header__submenu {
		top: calc(var(--header-height) + 46px);
		max-height: calc(100vh - var(--header-height) - 46px);
		max-height: calc(100dvh - var(--header-height) - 46px);
	}
}

.header__submenu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

@media (min-width: 1024px) {
	.header__menu-item[data-expanded="true"] > .header__submenu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
}

.header__submenu-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px;
}

.header__submenu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.header__submenu-title {
	margin: 0;
	color: #f2ceb5;
	font-weight: 300;
	font-size: 36px;
	line-height: normal;
	text-transform: uppercase;
}

.header__submenu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border: 0;
	padding: 0;
	color: #e7e7e7;
	background: transparent;
	cursor: pointer;
}

.header__submenu-close img {
	display: block;
	width: 32px;
	height: 32px;
}

.header__submenu-layout {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.header__submenu-sections {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex: 1 1 auto;
	max-width: 1200px;
	gap: 32px;
}

@media screen and (min-width: 1441px) {
	.header__submenu-sections {
		max-width: 1100px;
	}
}

.header__submenu-section {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.header__submenu-section-title {
	display: block;
	color: #f2ceb5;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}

.header__submenu-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__submenu-item {
	margin: 0;
}

.header__submenu-link {
	display: block;
	color: #e7e7e7;
	font-weight: 300;
	font-size: 14px;
	line-height: normal;
	text-decoration: none;
	transition: color .2s ease, font-weight .2s ease;
}

.header__submenu-section-title:hover,
.header__submenu-link:hover {
	color: #f2ceb5;
}

.header__submenu-link:hover {
	font-weight: 400;
}

.header__submenu-perks {
	display: flex;
	flex: 0 0 414px;
	flex-direction: column;
	gap: 16px;
	width: 414px;
}

.header__perk {
	--glass-radius: 10px;
	--glass-background: rgba(242, 206, 181, 0.05);
	--glass-background-active: rgba(242, 206, 181, 0.05);
	--glass-light: 0.55;
	--glass-refraction: 0.62;
	--glass-depth: 0.28;
	--glass-dispersion: 0.28;
	--glass-frost: 0.04;

	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	padding: 20px;
}

.header__perk-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

.header__perk-title {
	margin: 0;
	color: #f2ceb5;
	font-weight: 300;
	font-size: 20px;
	line-height: normal;
	text-transform: uppercase;
}

.header__perk-desc {
	margin: 0;
	color: #e7e7e7;
	font-weight: 300;
	font-size: 14px;
	line-height: normal;
}

.header__submenu-footer {
	display: flex;
	align-items: center;
	gap: 50px;
}

.header__social-icons {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header__social-link {
	--glass-size: 40px;
	--glass-radius: 26px;
	--glass-background: rgba(242, 206, 181, 0.05);
	--glass-background-active: rgba(242, 206, 181, 0.15);
	--glass-depth: 0.12;
	--glass-frost: 0.04;

	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
}

.header__social-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.header__contact-info {
	display: flex;
	align-items: center;
	gap: 50px;
}

.header__contact-item {
	margin: 0;
	color: #e7e7e7;
	font-style: normal;
	font-weight: 300;
	font-size: 14px;
	line-height: normal;
	text-decoration: none;
	white-space: nowrap;
}

a.header__contact-item:hover {
	font-weight: 400;
}

.header__mobile-toggle {
	display: none;
	flex: 0 0 28px;
	position: relative;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 4px;
	width: 30px;
	height: 31px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.header__mobile-toggle-icon {
	display: block;
	width: 30px;
	height: 31px;
	object-fit: contain;
	transition: opacity .2s ease;
}

.header__mobile-toggle-icon--close {
	position: absolute;
	top: 50%;
	left: 50%;
	opacity: 0;
	transform: translate(-50%, -50%);
}

.header__mobile-toggle[data-open="true"] .header__mobile-toggle-icon--open {
	opacity: 0;
}

.header__mobile-toggle[data-open="true"] .header__mobile-toggle-icon--close {
	opacity: 1;
}

.header__mobile-nav {
	display: none;
	background: #1e1e1e;
}

.header__mobile-content {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--header-height));
	min-height: calc(100dvh - var(--header-height));
	padding: 20px;
}

.header__mobile-menu,
.header__mobile-submenu {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__mobile-menu {
	gap: 0;
}

.header__mobile-submenu {
	display: none;
	width: 100%;
}

.header__mobile-item[data-expanded="true"] > .header__mobile-submenu {
	display: flex;
}

.header__mobile-row,
.header__mobile-link--tertiary {
	min-height: 34px;
	border-bottom: 0.3px solid rgba(231, 231, 231, 0.45);
}

.header__mobile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.header__mobile-link {
	display: flex;
	align-items: center;
	flex-grow: 1;
	min-width: 0;
	min-height: 34px;
	color: #e7e7e7;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	text-decoration: none;
	transition: color .2s ease;
}

.header__mobile-link--primary {
	text-transform: uppercase;
}

.header__mobile-link--secondary,
.header__mobile-link--tertiary {
	font-weight: 300;
	text-transform: none;
}

.header__mobile-link--tertiary {
	width: calc(100% - 31px);
	margin-left: 31px;
}

.header__mobile-item--secondary {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.header__mobile-row--secondary {
	width: calc(100% - 20px);
}

.header__mobile-submenu--tertiary {
	align-items: flex-end;
	padding: 0 0 0 20px;
}

.header__mobile-submenu--tertiary .header__mobile-item {
	width: 100%;
}

.header__mobile-expand {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 32px;
	width: 32px;
	height: 34px;
	border: 0;
	padding: 0;
	color: #e7e7e7;
	background: transparent;
	cursor: pointer;
}

@media (min-width: 1441px) {
	.header__container,
	.header__submenu-inner {
		max-width: none;
	}
}

.header__mobile-arrow {
	position: relative;
	display: block;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease, color .2s ease;
}

.header__mobile-item[data-expanded="true"] > .header__mobile-row .header__mobile-link,
.header__mobile-item[data-expanded="true"] > .header__mobile-row .header__mobile-expand {
	color: #f2ceb5;
}

.header__mobile-item[data-expanded="true"] > .header__mobile-row .header__mobile-arrow {
	transform: rotate(135deg);
}

.header__mobile-footer {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-top: 42px;
}

.header__mobile-contact-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.header__mobile-contact-item {
	margin: 0;
	color: #f2ceb5;
	font-style: normal;
	font-weight: 300;
	font-size: 14px;
	line-height: normal;
	text-decoration: none;
	white-space: nowrap;
}

.header__mobile-social-icons {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 0;
}

.header__mobile-cta {
	width: 100%;
	margin-top: 38px;
	text-decoration: none;
}

.header__mobile-cta.glass-button--text {
	--glass-radius: 5px;
	--glass-background: rgba(242, 206, 181, 0.05);
	--glass-background-active: rgba(242, 206, 181, 0.15);

	min-height: 40px;
	padding: 0 20px;
}

.header__mobile-cta .glass-button__content {
	width: 100%;
	min-height: 40px;
	padding: 0;
	color: #e7e7e7;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
}

.header__menu-link:focus-visible,
.header__submenu-link:focus-visible,
.header__submenu-section-title:focus-visible,
.header__cta:focus-visible,
.header__social-link:focus-visible,
.header__mobile-link:focus-visible,
.header__mobile-expand:focus-visible,
.header__mobile-cta:focus-visible,
.header__mobile-toggle:focus-visible {
	outline: 2px solid #f2ceb5;
	outline-offset: 3px;
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.header__container {
		gap: 28px;
	}

	.header__menu {
		gap: 26px;
	}

	.header__submenu-layout {
		flex-direction: column;
	}

	.header__submenu-sections {
		max-width: none;
		width: 100%;
	}

	.header__submenu-perks {
		flex-basis: auto;
		width: 100%;
		max-width: 680px;
	}
}

@media (min-width: 1024px) and (max-width: 1439px) {
	.header {
		--header-height: 68px;
	}

	.header__top {
		background-color: rgba(30, 30, 30, 0.3);
		background-image: none;
		backdrop-filter: blur(4px) saturate(132%);
		-webkit-backdrop-filter: blur(4px) saturate(132%);
		box-shadow: none;
	}

	.header__top:before,
	.header__top:after {
		display: none;
	}

	.header[data-scrolled="true"] .header__top,
	.header:has(.header__submenu.is-open) .header__top {
		background-color: #1e1e1e;
		background-image: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		box-shadow: inset 0 -0.3px 0 rgba(231, 231, 231, 0.75);
	}

	.header__cta.glass-button--text {
		min-height: 40px;
		padding: 0 20px;
	}

	.header__mobile-toggle,
	.header__mobile-nav {
		display: none;
	}

	.header__submenu {
		border-top: 0.3px solid rgba(231, 231, 231, 0.75);
		background: #1e1e1e;
	}

	.header__submenu-inner {
		max-width: 1024px;
		padding: 40px;
	}

	.header__submenu-title {
		font-size: 32px;
	}

	.header__submenu-layout {
		flex-direction: row;
		gap: 54px;
		width: 100%;
	}

	.header__submenu-sections {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
		flex: 1 1 auto;
		max-width: none;
		gap: 40px 28px;
	}

	.header__submenu-perks {
		flex: 0 0 305px;
		width: 305px;
		max-width: 305px;
	}

	.header__perk-title,
	.header__perk-desc {
		font-size: 14px;
		line-height: normal;
	}

	.header__submenu-footer {
		gap: 50px;
	}

	.header__contact-info {
		gap: 50px;
	}
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.header__container {
		padding-right: 24px;
		padding-left: 24px;
		gap: 12px;
	}

	.header__menu {
		gap: 12px;
	}

	.header__cta.glass-button--text {
		padding-right: 14px;
		padding-left: 14px;
	}

	.header__submenu-inner {
		padding: 32px 24px;
	}

	.header__submenu-layout {
		gap: 28px;
	}

	.header__submenu-sections {
		gap: 32px 20px;
	}

	.header__submenu-perks {
		flex-basis: 260px;
		width: 260px;
		max-width: 260px;
	}

	.header__submenu-footer,
	.header__contact-info {
		gap: 24px;
	}
}

@media (max-width: 1023px) {
	.header {
		--header-height: 50px;
	}

	.header__top {
		min-height: var(--header-height);
		background-color: rgba(30, 30, 30, 0.3);
		background-image: none;
		backdrop-filter: blur(4px) saturate(132%);
		-webkit-backdrop-filter: blur(4px) saturate(132%);
		box-shadow: inset 0 -0.3px 0 rgba(231, 231, 231, 0.38);
	}

	.header__top:before,
	.header__top:after {
		display: none;
	}

	.header[data-mobile-open="true"] .header__top {
		background-color: #1e1e1e;
		background-image: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.header__container {
		min-height: var(--header-height);
		padding: 10px 20px;
	}

	.header__logo {
		flex-basis: 68px;
		width: 68px;
		height: 20px;
	}

	.header__nav[data-nav="desktop"],
	.header__cta {
		display: none;
	}

	.header__mobile-toggle {
		display: flex;
	}

	.header__mobile-nav {
		position: absolute;
		top: var(--header-height);
		left: 0;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}

	.header__mobile-nav[data-open="true"] {
		display: block;
		max-height: calc(100vh - var(--header-height));
		max-height: calc(100dvh - var(--header-height));
		overflow-y: auto;
	}
}
