.sw-global-header,
.sw-global-header * {
	box-sizing: border-box;
}

.sw-global-header {
	--sw-header-height: 72px;
	--sw-header-underline-color: #d8c28f;
	position: fixed;
	z-index: 9990;
	top: 0;
	right: 0;
	left: 0;
	height: var(--sw-header-height);
	background: transparent;
	color: #fff;
	font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/*
 * Hostinger's AOS animation applies transform and opacity to Elementor's
 * outer header container. A transformed ancestor traps this fixed header in
 * a lower stacking context, allowing a full-screen hero to paint over it.
 */
header.elementor-location-header {
	position: relative !important;
	z-index: 9990 !important;
	overflow: visible !important;
}

header.elementor-location-header > .hostinger-elementor-aos,
header.elementor-location-header > [data-aos] {
	opacity: 1 !important;
	transform: none !important;
}
.admin-bar .sw-global-header {
	top: 32px;
}

.sw-global-header.is-scrolled,
.sw-global-header.is-menu-open {
	border-bottom: 1px solid rgba(222, 219, 211, 0.78);
	background: rgba(247, 246, 242, 0.94);
	box-shadow: 0 8px 28px rgba(29, 47, 43, 0.08);
	color: #333;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.sw-global-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% - 48px);
	height: 100%;
	max-width: 1280px;
	margin-inline: auto;
}

.sw-global-header__logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.sw-global-header__logo-images {
	position: relative;
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.sw-global-header__logo-image {
	display: block;
	width: 150px !important;
	max-width: 150px !important;
	height: auto !important;
	max-height: calc(var(--sw-header-height) - 22px);
	object-fit: contain;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sw-global-header__logo-image--light {
	opacity: 1;
	visibility: visible;
}

.sw-global-header__logo-image--dark {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
}

.sw-global-header.is-scrolled .sw-global-header__logo-image--light,
.sw-global-header.is-menu-open .sw-global-header__logo-image--light {
	opacity: 0;
	visibility: hidden;
}

.sw-global-header.is-scrolled .sw-global-header__logo-image--dark,
.sw-global-header.is-menu-open .sw-global-header__logo-image--dark {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 1180px) {
	.sw-global-header__logo-image {
		width: 132px !important;
		max-width: 132px !important;
	}
}

@media (max-width: 767px) {
	.sw-global-header__logo-image {
		width: 116px !important;
		max-width: 116px !important;
	}
}

.sw-global-header__logo-mark {
	display: grid;
	width: 34px;
	height: 34px;
	border: 1px solid currentColor;
	border-radius: 50%;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.sw-global-header__desktop-nav {
	display: flex;
	align-items: center;
	height: 100%;
}

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

.sw-global-header__menu li {
	position: relative;
	margin: 0;
	padding: 0;
}

.sw-global-header__menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sw-global-header__menu > li > a::after {
	position: absolute;
	right: 0;
	bottom: 6px;
	left: 0;
	height: 1px;
	background: var(--sw-header-underline-color);
	content: "";
	opacity: 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.sw-global-header__menu > li > a:hover::after,
.sw-global-header__menu > li > a:focus-visible::after,
.sw-global-header__menu > .current-menu-item > a::after,
.sw-global-header__menu > .current_page_item > a::after {
	opacity: 0.65;
	transform: scaleX(1);
}

/* When another item is hovered, show only that item's underline instead of
 * keeping the current-page underline visible at the same time. */
.sw-global-header__menu:has(> li > a:hover) > .current-menu-item:not(:hover) > a::after,
.sw-global-header__menu:has(> li > a:hover) > .current_page_item:not(:hover) > a::after {
	opacity: 0;
	transform: scaleX(0);
}

.sw-global-header:not(.is-scrolled):not(.is-menu-open) .sw-global-header__logo,
.sw-global-header:not(.is-scrolled):not(.is-menu-open) .sw-global-header__menu > li > a,
.sw-global-header:not(.is-scrolled):not(.is-menu-open) .sw-global-header__toggle {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.sw-global-header.is-scrolled .sw-global-header__logo,
.sw-global-header.is-scrolled .sw-global-header__menu > li > a,
.sw-global-header.is-scrolled .sw-global-header__toggle,
.sw-global-header.is-menu-open .sw-global-header__logo,
.sw-global-header.is-menu-open .sw-global-header__toggle {
	color: #333;
	text-shadow: none;
}

.sw-global-header .current-menu-item > a,
.sw-global-header .current_page_item > a,
.sw-global-header__menu a:hover,
.sw-global-header__menu a:focus-visible {
	color: #2f8f8c !important;
}

.sw-global-header__menu a:focus-visible,
.sw-global-header__logo:focus-visible,
.sw-global-header__toggle:focus-visible,
.sw-global-header__close:focus-visible {
	border-radius: 4px;
	outline: 2px solid #c39160;
	outline-offset: 4px;
}

.sw-global-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.sw-global-header__toggle-lines {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
}

.sw-global-header__toggle-lines i {
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.sw-global-header.is-menu-open .sw-global-header__toggle-lines i:first-child {
	transform: translateY(6.5px) rotate(45deg);
}

.sw-global-header.is-menu-open .sw-global-header__toggle-lines i:nth-child(2) {
	opacity: 0;
}

.sw-global-header.is-menu-open .sw-global-header__toggle-lines i:last-child {
	transform: translateY(-6.5px) rotate(-45deg);
}

.sw-global-header__drawer,
.sw-global-header__backdrop {
	display: none;
}

@media (max-width: 1180px) {
	.sw-global-header__inner {
		width: calc(100% - 32px);
	}

	.sw-global-header__desktop-nav {
		display: none;
	}

	.sw-global-header__toggle {
		display: inline-flex;
		border-radius: 50%;
		background: rgba(12, 33, 29, 0.18);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.sw-global-header.is-scrolled .sw-global-header__toggle,
	.sw-global-header.is-menu-open .sw-global-header__toggle {
		background: rgba(47, 143, 140, 0.08);
	}

	.sw-global-header.is-menu-open .sw-global-header__toggle {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.sw-global-header__backdrop {
		position: fixed;
		z-index: 1;
		inset: var(--sw-header-height) 0 0;
		display: block;
		width: 100%;
		height: calc(100vh - var(--sw-header-height));
		padding: 0;
		border: 0;
		background: rgba(8, 20, 18, 0.44);
		cursor: pointer;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	.sw-global-header__drawer {
		position: fixed;
		z-index: 2;
		top: var(--sw-header-height);
		right: 0;
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		height: calc(100dvh - var(--sw-header-height));
		padding: 22px 24px 36px;
		overflow-y: auto;
		background: #f7f6f2;
		box-shadow: -16px 20px 50px rgba(10, 24, 21, 0.18);
		color: #333;
		opacity: 0;
		pointer-events: none;
		transform: translateX(100%);
		transition: opacity 0.3s ease, transform 0.35s ease-out;
	}

	.admin-bar .sw-global-header__drawer,
	.admin-bar .sw-global-header__backdrop {
		margin-top: 32px;
	}

	.sw-global-header.is-menu-open .sw-global-header__backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.sw-global-header.is-menu-open .sw-global-header__drawer {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(0);
	}

	.sw-global-header__drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 20px;
		border-bottom: 1px solid #dedbd3;
	}

	.sw-global-header__drawer-brand {
		font-size: 18px;
		font-weight: 750;
	}

	.sw-global-header__close {
		display: inline-grid;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #333;
		cursor: pointer;
		place-items: center;
	}

	.sw-global-header__mobile-nav {
		padding-top: 24px;
	}

	.sw-global-header__mobile-nav .sw-global-header__menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sw-global-header__mobile-nav .sw-global-header__menu a {
		display: flex;
		justify-content: space-between;
		min-height: 58px;
		border-bottom: 1px solid rgba(222, 219, 211, 0.84);
		color: #242927 !important;
		font-size: 17px !important;
		font-weight: 600;
		line-height: 1.3;
		text-shadow: none !important;
	}

	.sw-global-header__mobile-nav .sw-global-header__menu a:hover,
	.sw-global-header__mobile-nav .sw-global-header__menu a:focus-visible,
	.sw-global-header__mobile-nav .sw-global-header__menu .current-menu-item > a,
	.sw-global-header__mobile-nav .sw-global-header__menu .current_page_item > a {
		color: #242927 !important;
	}

	.sw-global-header__mobile-nav .sw-global-header__menu > li > a::after {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1180px) {
	.sw-global-header__drawer {
		width: min(42vw, 360px);
		padding: 22px 28px 36px;
	}

	.sw-global-header__mobile-nav .sw-global-header__menu a {
		min-height: 64px;
		font-size: 16px !important;
	}
}

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

	.admin-bar .sw-global-header__drawer,
	.admin-bar .sw-global-header__backdrop {
		margin-top: 46px;
	}
}

body.sw-menu-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.sw-global-header,
	.sw-global-header__drawer,
	.sw-global-header__backdrop,
	.sw-global-header__toggle-lines i,
	.sw-global-header__menu a,
	.sw-global-header__menu > li > a::after {
		transition: none;
	}
}
