/* =========================================================
   Modern Overlay Header – v1.2.0
   Layout: logo left | menu right | sep | social | cta
   ========================================================= */

/* =========================================================
   Base header – domyślnie przezroczyste, logo box białe
   ========================================================= */

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

.moh-header-inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 32px;
}

/* =========================================================
   Main row
   ========================================================= */

.moh-header-main-row {
	display: flex;
	align-items: stretch;
	min-height: 70px;
	position: relative;
}

/* =========================================================
   Nav – logo po lewej + main po prawej
   ========================================================= */

.moh-nav {
	display: flex;
	align-items: stretch;
	width: 100%;
}

/* Logo – lewa strona, własne białe tło */

.moh-nav-logo {
	display: flex;
	align-items: center;
	align-self: stretch;
	flex-shrink: 0;
	background-color: #ffffff;
	padding: 0 28px;
	margin-right: 24px;
}

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

.moh-logo {
	max-height: 72px;
	width: auto;
	display: block;
	transition: max-height 0.3s ease, opacity 0.2s ease;
}

.moh-logo-link:hover .moh-logo {
	opacity: 0.85;
}

.moh-header.moh--sticky-active .moh-logo {
	max-height: 48px;
}

/* Overlay logo / sticky logo switching */
.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;
}

/* Main – wszystkie elementy po prawej */

.moh-nav-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

/* =========================================================
   Desktop menu – wszystkie pozycje w jednym rzędzie
   ========================================================= */

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

.moh-menu-item > a,
.moh-menu-item > .moh-menu-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: var(--moh-overlay-text-color, #ffffff) !important;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 0 16px;
	height: 70px;
	border: none;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.moh-menu-item > a:hover,
.moh-menu-item > .moh-menu-button:hover {
	color: var(--moh-accent-color, #c1a044);
}

.moh-menu-item > a::after,
.moh-menu-item > .moh-menu-button::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 12px;
	height: 2px;
	background-color: var(--moh-accent-color, #c1a044);
	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 var(--moh-accent-color, #c1a044);
	outline-offset: -2px;
}

/* WP nav_menu overrides */
.moh-menu--wp > li > a {
	color: var(--moh-overlay-text-color, #ffffff) !important;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 0 16px;
	height: 70px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: color 0.2s ease;
}

.moh-menu--wp > li > a:hover {
	color: var(--moh-accent-color, #c1a044) !important;
}

/* 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: #333;
	border-radius: 4px;
	padding: 8px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-top: 2px solid var(--moh-accent-color, #c1a044);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	z-index: 999;
}

.moh-menu-item--has-submenu:hover > .moh-submenu,
.moh-menu-item--has-submenu:focus-within > .moh-submenu {
	opacity: 1;
	visibility: visible;
}

.moh-submenu-item > a,
.moh-submenu-item > span {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.moh-submenu-item > a:hover {
	background-color: rgba(0, 0, 0, 0.04);
	color: var(--moh-accent-color, #c1a044);
}

/* =========================================================
   Nav actions: separator | social icons | CTA
   ========================================================= */

.moh-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 8px;
}

/* Separator | */

.moh-nav-sep {
	color: rgba(255, 255, 255, 0.4);
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	margin: 0 4px;
	user-select: none;
}

/* Social icons */

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

.moh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	text-decoration: none;
	color: #ffffff !important;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
	flex-shrink: 0;
}

.moh-icon svg {
	display: block;
	pointer-events: none;
}

.moh-icon:hover,
.moh-icon:focus-visible {
	border-color: var(--moh-accent-color, #c1a044);
	color: var(--moh-accent-color, #c1a044);
	background-color: rgba(0, 0, 0, 0.03);
	outline: none;
}

/* CTA button – prostokątny */

.moh-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 20px;
	border-radius: 3px;
	background-color: var(--moh-accent-color, #c1a044);
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s ease;
	margin-left: 6px;
}

.moh-cta-button:hover,
.moh-cta-button:focus-visible {
	opacity: 0.85;
	outline: none;
}

/* =========================================================
   Hamburger (mobile only)
   ========================================================= */

.moh-hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 32px;
	height: 22px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	align-self: center;
	margin-left: auto;
	flex-shrink: 0;
}

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

/* =========================================================
   Sticky – pełne białe tło + shadow
   ========================================================= */

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

/* Sticky: wymuszenie koloru linków menu */
.moh-header.moh--sticky-active .moh-menu-item > a,
.moh-header.moh--sticky-active .moh-menu-item > .moh-menu-button,
.moh-header.moh--sticky-active .moh-menu--wp > li > a {
	color: var(--moh-sticky-text-color, #333333) !important;
}

/* Sticky: separator i ikony — ciemne na białym tle */
.moh-header.moh--sticky-active .moh-nav-sep {
	color: rgba(0, 0, 0, 0.2);
}
.moh-header.moh--sticky-active .moh-icon {
	border-color: rgba(0, 0, 0, 0.2);
	color: #333333 !important;
}

/* =========================================================
   Always-solid — strony bez hero, header zawsze biały
   ========================================================= */

.moh-header.moh--always-solid {
	position: fixed;
	background-color: #ffffff;
	color: var(--moh-sticky-text-color, #333333);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.moh-header.moh--always-solid .moh-menu-item > a,
.moh-header.moh--always-solid .moh-menu-item > .moh-menu-button,
.moh-header.moh--always-solid .moh-menu--wp > li > a {
	color: var(--moh-sticky-text-color, #333333) !important;
}

.moh-header.moh--always-solid .moh-nav-sep {
	color: rgba(0, 0, 0, 0.2);
}

.moh-header.moh--always-solid .moh-icon {
	border-color: rgba(0, 0, 0, 0.2);
	color: #333333 !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(-8px);
	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: 640px;
	margin: 0 auto;
	padding: 20px 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;
	color: #333;
}

.moh-mobile-logo {
	margin-top: 12px;
	margin-bottom: 20px;
}

.moh-mobile-logo .moh-logo {
	max-height: 48px;
}

.moh-mobile-nav {
	flex: 1;
	overflow-y: auto;
}

.moh-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.moh-mobile-menu-item > a,
.moh-mobile-menu-item > span {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	letter-spacing: 0.04em;
}

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

.moh-mobile-menu-label {
	font-size: 15px;
	letter-spacing: 0.04em;
}

.moh-mobile-menu-icon {
	font-size: 18px;
	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: 400px;
}

.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: 8px 0 8px 16px;
	font-size: 14px;
	color: #555;
	text-decoration: none;
}

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

.moh-mobile-social .moh-icon {
	color: var(--moh-accent-color, #c1a044);
	border-color: var(--moh-accent-color, #c1a044);
}

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

/* Body scroll lock */
.moh-body-no-scroll {
	overflow: hidden;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
	.moh-menu-item > a,
	.moh-menu-item > .moh-menu-button,
	.moh-menu--wp > li > a {
		padding: 0 12px;
		font-size: 11px;
	}
}

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

	.moh-header {
		position: fixed;
	}

	.moh-nav--desktop .moh-menu,
	.moh-nav--desktop .moh-nav-main {
		display: none;
	}

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

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

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

	.moh-hamburger {
		display: flex;
	}
}

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