.moh-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	color: var(--moh-overlay-text-color, #ffffff);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.moh-header-inner {
	max-width: 1420px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.moh-header-top-row {
	/* display: flex; */
	display: none;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}

.moh-header-top-left,
.moh-header-top-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.moh-lang-switch {
	display: flex;
	gap: 8px;
}

.moh-lang-link {
	text-decoration: none;
	color: inherit;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	font-weight: 500;
}

.moh-lang-link--active {
	opacity: 1;
}

.moh-lang-link:hover,
.moh-lang-link:focus-visible {
	opacity: 1;
	outline: none;
	text-decoration: underline;
}

.moh-social-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.moh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
	opacity: 0.85;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.moh-icon:hover,
.moh-icon:focus-visible {
	opacity: 1;
	transform: translateY(-1px);
	background-color: rgba(255, 255, 255, 0.1);
	outline: none;
}

/* Main row */

.moh-header-main-row {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-top: 4px;
}

.moh-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.moh-nav-left,
.moh-nav-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.moh-nav-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0 32px;
}

.moh-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.moh-logo {
	max-height: 52px;
	width: auto;
	display: block;
}

.moh-logo--sticky {
	display: none;
}

/* Menu */

.moh-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 60px;
}

.moh-menu-item > a,
.moh-menu-item > .moh-menu-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border: none;
	background: none;
	cursor: pointer;
}

.moh-menu-item > a::after,
.moh-menu-item > .moh-menu-button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.moh-menu-item > a:hover::after,
.moh-menu-item > a:focus-visible::after,
.moh-menu-item > .moh-menu-button:hover::after,
.moh-menu-item > .moh-menu-button:focus-visible::after {
	transform: scaleX(1);
}

.moh-menu-item > a:focus-visible,
.moh-menu-item > .moh-menu-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Submenu */

.moh-menu-item--has-submenu {
	position: relative;
}

.moh-submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	background-color: #ffffff;
	color: #222;
	border-radius: 8px;
	padding: 8px 0;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform-origin: top center;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 999;
}

.moh-submenu-item > a,
.moh-submenu-item > span {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	text-decoration: none;
	color: inherit;
}

.moh-submenu-item > a:hover,
.moh-submenu-item > a:focus-visible {
	background-color: rgba(0, 0, 0, 0.04);
	outline: none;
}

/* Hover behaviour desktop */

.moh-menu-item--has-submenu:hover > .moh-submenu,
.moh-menu-item--has-submenu:focus-within > .moh-submenu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 6px);
}

/* CTA */

.moh-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	background-color: var(--moh-accent-color, #bda47e);
	color: #ffffff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	background-color: #bda47e;
}

.moh-cta-button:hover,
.moh-cta-button:focus-visible {
	background-color: #222222;
	outline: none;
}

/* Hamburger (mobile only default hidden) */

.moh-hamburger {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 28px;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	background-color: #1b1b1b;
	border-radius: 999px;
	border: none;
	padding: 6px 8px;
	cursor: pointer;
	color: #ffffff;
}

.moh-hamburger span {
	display: block;
	height: 2px;
	background-color: currentColor;
	border-radius: 999px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Sticky state */

.moh-header.moh--sticky-active {
	position: fixed;
	background-color: #ffffff;
	color: var(--moh-sticky-text-color, #222222);
	box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.moh-header.moh--sticky-active .moh-header-inner {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Top row behaviour in sticky */

.moh-header.moh--sticky-active .moh-header-top-row {
	display: none;
}

.moh-header.moh--sticky-active.moh--show-top-row .moh-header-top-row {
	display: flex;
}

/* Logo switching */

.moh-header .moh-logo--overlay {
	display: block;
}

.moh-header .moh-logo--sticky {
	display: none;
}

.moh-header.moh--sticky-active .moh-logo--overlay {
	display: none;
}

.moh-header.moh--sticky-active .moh-logo--sticky {
	display: block;
}

/* Overlay vs sticky text color */

.moh-header.moh--overlay {
	color: var(--moh-overlay-text-color, #ffffff);
}

/*
 * Wymuszenie kolorów linków w headerze, żeby style motywu/kreatora (globalne a { color })
 * nie nadpisywały. Overlay = linki białe, sticky = linki w kolorze akcentu.
 */
.moh-header.moh--overlay .moh-nav .moh-menu-item > a,
.moh-header.moh--overlay .moh-nav .moh-menu-item > .moh-menu-button,
.moh-header.moh--overlay .moh-lang-switch .moh-lang-link,
.moh-header.moh--overlay .moh-social-icons .moh-icon {
	color: var(--moh-overlay-text-color, #ffffff) !important;
}

.moh-header.moh--overlay .moh-cta-button {
	color: #ffffff !important;
}

.moh-header.moh--sticky-active .moh-nav .moh-menu-item > a,
.moh-header.moh--sticky-active .moh-nav .moh-menu-item > .moh-menu-button,
.moh-header.moh--sticky-active .moh-lang-switch .moh-lang-link,
.moh-header.moh--sticky-active .moh-social-icons .moh-icon {
	color: var(--moh-sticky-text-color, #222222) !important;
}

.moh-header.moh--sticky-active .moh-cta-button {
	color: #ffffff !important;
}

/* Menu z WP (wp_nav_menu) – te same kolory */
.moh-header.moh--overlay .moh-nav .moh-menu a {
	color: var(--moh-overlay-text-color, #ffffff) !important;
}
.moh-header.moh--sticky-active .moh-nav .moh-menu a {
	color: var(--moh-sticky-text-color, #222222) !important;
}

/* Mobile overlay menu */

.moh-mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.98);
	z-index: 9998;
	color: #222222;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.moh-mobile-menu-overlay.moh-mobile-menu-overlay--active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.moh-mobile-menu-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 24px 32px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.moh-mobile-close {
	align-self: flex-end;
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.moh-mobile-logo {
	margin-top: 16px;
	margin-bottom: 24px;
}

.moh-mobile-nav {
	flex: 1;
	overflow-y: auto;
	padding-right: 4px;
}

.moh-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.moh-mobile-menu-item > a,
.moh-mobile-menu-item > span {
	display: block;
	padding: 10px 0;
	font-size: 16px;
	text-decoration: none;
	color: #222222;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.moh-mobile-menu-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	background: none;
	border: none;
	cursor: pointer;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.moh-mobile-menu-label {
	font-size: 16px;
}

.moh-mobile-menu-icon {
	font-size: 18px;
	transform: rotate(0deg);
	transition: transform 0.2s ease;
}

.moh-mobile-menu-toggle[aria-expanded="true"] .moh-mobile-menu-icon {
	transform: rotate(45deg);
}

.moh-mobile-submenu-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}

.moh-mobile-submenu-panel[aria-hidden="false"] {
	max-height: 500px;
}

.moh-mobile-submenu-panel ul {
	list-style: none;
	margin: 0;
	padding: 0 0 8px 0;
}

.moh-mobile-submenu-panel li a,
.moh-mobile-submenu-panel li span {
	display: block;
	padding: 6px 0 6px 16px;
	font-size: 14px;
	color: #444444;
	text-decoration: none;
}

/* Mobile social and CTA */

.moh-mobile-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.moh-mobile-social .moh-icon {
	color: var(--moh-accent-color, #bda47e);
	border-color: currentColor;
	background-color: transparent;
}

.moh-mobile-cta-wrap {
	margin-top: 20px;
	display: flex;
	justify-content: center;
}

/* Body scroll lock */

.moh-body-no-scroll {
	overflow: hidden;
}

/* Breakpoints */

@media (max-width: 1023px) {
	.moh-header-inner {
		padding: 12px 16px;
	}

	/* Mobile top bar with solid background color */
	.moh-header {
		position: fixed;
		background-color: var(--moh-mobile-header-bg, #1b1b1b);
		color: #ffffff;
	}

	.moh-header-top-row {
		display: none;
	}

	.moh-nav--desktop {
		justify-content: flex-start;
	}

	.moh-nav-left,
	.moh-nav-right {
		display: none;
	}

	.moh-hamburger {
		display: flex;
	}

	.moh-nav-logo {
		padding: 0;
		margin-right: auto;
	}

	.moh-logo {
		max-height: 40px;
	}
}

@media (max-width: 600px) {
	.moh-header-inner {
		padding: 10px 14px;
	}
}

