/**
 * Mozaikod Site Menu — custom WP meni u Elementor headeru.
 * Bez !important: Elementor Kit ne sme biti pregazan osim unutar .mozaikod-site-menu.
 */

:root {
	--mozaikod-menu-ink: #050505;
	--mozaikod-menu-accent: #fab905;
}

.mozaikod-site-menu {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	font-family: var(--mozaikod-font-display, "Space Grotesk", "Manrope", system-ui, sans-serif);
}

.mozaikod-site-menu__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mozaikod-site-menu__list > li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 0 0 auto;
}

.mozaikod-site-menu__list > li.menu-item-has-children::before {
	content: "";
	position: absolute;
	top: 100%;
	left: -12px;
	right: -12px;
	z-index: 99;
	display: none;
	height: 12px;
}

.mozaikod-site-menu__list > li.menu-item-has-children:hover::before,
.mozaikod-site-menu__list > li.menu-item-has-children:focus-within::before {
	display: block;
}

.mozaikod-site-menu__list > li > a,
.mozaikod-site-menu__list > li > a span {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 2px;
	color: var(--mozaikod-menu-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.18s ease;
}

.mozaikod-site-menu__list > li > a span {
	min-height: 0;
	padding: 0;
}

.mozaikod-site-menu__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: transparent;
	transform: scaleX(0.42);
	transform-origin: center;
	transition: background 0.18s ease, transform 0.18s ease;
}

.mozaikod-site-menu__list > li > a:hover,
.mozaikod-site-menu__list > li > a:focus,
.mozaikod-site-menu__list > li > a:hover span,
.mozaikod-site-menu__list > li > a:focus span,
.mozaikod-site-menu__list > .current-menu-item > a,
.mozaikod-site-menu__list > .current-menu-item > a span,
.mozaikod-site-menu__list > .current-menu-ancestor > a,
.mozaikod-site-menu__list > .current-menu-ancestor > a span {
	color: var(--mozaikod-menu-accent);
}

.mozaikod-site-menu__list > .current-menu-item > a::after,
.mozaikod-site-menu__list > .current-menu-ancestor > a::after,
.mozaikod-site-menu__list > li > a:hover::after,
.mozaikod-site-menu__list > li > a:focus::after {
	background: var(--mozaikod-menu-accent);
	transform: scaleX(1);
}

.mozaikod-site-menu__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 100;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	border: 1px solid #e3e0d8;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 16px 40px rgba(17, 17, 17, 0.1);
	transform: translateX(-50%);
}

.mozaikod-site-menu__list > li:hover > .sub-menu,
.mozaikod-site-menu__list > li:focus-within > .sub-menu {
	display: block;
}

.mozaikod-site-menu__list .sub-menu li {
	margin: 0;
	padding: 0;
}

.mozaikod-site-menu__list .sub-menu a,
.mozaikod-site-menu__list .sub-menu a span {
	display: block;
	padding: 10px 18px;
	color: var(--mozaikod-menu-ink);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	white-space: nowrap;
	text-decoration: none;
}

.mozaikod-site-menu__list .sub-menu a::after {
	display: none;
	content: none;
}

.mozaikod-site-menu__list .sub-menu a:hover,
.mozaikod-site-menu__list .sub-menu a:focus,
.mozaikod-site-menu__list .sub-menu a:hover span,
.mozaikod-site-menu__list .sub-menu a:focus span {
	color: var(--mozaikod-menu-accent);
	background: #faf8f2;
}

.mozaikod-site-menu__toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	border: 1px solid #e3e0d8;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
}

.mozaikod-site-menu__toggle span:not(.screen-reader-text) {
	display: block;
	width: 20px;
	height: 2px;
	background: #111111;
}

.mozaikod-site-menu__cta-item {
	display: none;
}

.mozaikod-site-menu__empty {
	margin: 0;
	font-size: 14px;
	color: var(--mozaikod-menu-ink);
}

.mozaikod-free-header__nav .mozaikod-site-menu {
	width: 100%;
}

.mozaikod-free-header__nav > .elementor-widget-wrap {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

.mozaikod-free-header__nav .elementor-widget-mozaikod-menu {
	width: 100%;
	max-width: 100%;
}

@media (min-width: 1025px) {
	.mozaikod-free-header > .elementor-container {
		display: grid !important;
		grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) auto !important;
		align-items: center !important;
		column-gap: clamp(28px, 3.2vw, 44px) !important;
		width: min(1220px, calc(100% - 64px)) !important;
		margin-inline: auto !important;
	}

	.mozaikod-free-header .elementor-column > .elementor-widget-wrap {
		padding-inline: 0 !important;
	}

	.mozaikod-free-header .mozaikod-free-header__logo-col,
	.mozaikod-free-header .mozaikod-free-header__nav,
	.mozaikod-free-header .mozaikod-free-header__cta-col {
		width: auto !important;
		max-width: none !important;
	}

	.mozaikod-free-header .mozaikod-free-header__logo-col > .elementor-widget-wrap,
	.mozaikod-free-header .mz-free-header-logo .elementor-widget-container {
		justify-content: flex-start !important;
	}

	.mozaikod-free-header .mozaikod-free-header__nav {
		justify-self: center !important;
		min-width: 0 !important;
	}

	.mozaikod-free-header .mozaikod-site-menu__list {
		gap: clamp(20px, 2vw, 30px);
	}

	.mozaikod-free-header .mozaikod-free-header__cta-col {
		justify-self: end !important;
	}

	.mozaikod-free-header__cta-col > .elementor-widget-wrap,
	.mozaikod-free-header .mozaikod-free-header__cta .elementor-widget-container {
		justify-content: flex-end !important;
	}
}

@media (min-width: 1025px) and (max-width: 1280px) {
	.mozaikod-free-header > .elementor-container {
		width: 100% !important;
		padding-inline: 32px !important;
	}
}

/* Bar na podstranicama */
.mozaikod-site-menu-bar {
	background: #ffffff;
	border-bottom: 0;
}

.mozaikod-site-menu-bar__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	width: min(1220px, calc(100% - 40px));
	min-height: var(--mozaikod-header-height, 80px);
	margin: 0 auto;
	padding: 8px 20px;
}

.mozaikod-site-menu-bar__logo img {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.mozaikod-site-menu-bar__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 26px;
	border: 1px solid var(--mozaikod-menu-accent);
	border-radius: 5px;
	background: var(--mozaikod-menu-accent);
	color: #111111;
	font-family: var(--mozaikod-font-display, "Space Grotesk", "Manrope", system-ui, sans-serif);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mozaikod-site-menu-bar__cta:hover,
.mozaikod-site-menu-bar__cta:focus {
	background: #e0a900;
	border-color: #e0a900;
	color: #111111;
}

@media (max-width: 1024px) {
	.mozaikod-site-menu-bar__inner {
		position: relative;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 14px;
		row-gap: 12px;
		width: min(100% - 32px, 1220px);
		min-height: 72px;
		padding: 10px 16px 14px;
	}

	.mozaikod-site-menu-bar__logo {
		min-width: 0;
	}

	.mozaikod-site-menu-bar__logo img {
		width: 160px;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu--has-toggle {
		justify-content: flex-end;
		width: auto;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu--has-toggle .mozaikod-site-menu__toggle {
		display: flex;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu--has-toggle .mozaikod-site-menu__list {
		display: none;
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		left: auto;
		z-index: 200;
		width: min(320px, calc(100vw - 32px));
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 4px;
		padding: 14px;
		border: 1px solid #e3e0d8;
		border-radius: 10px;
		background: #ffffff;
		box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
		transform: none;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu--has-toggle.is-open .mozaikod-site-menu__list {
		display: flex;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu__list > li {
		width: 100%;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu__list > li.menu-item-has-children::before {
		display: none;
		content: none;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu__list > li > a {
		width: 100%;
		justify-content: flex-start;
		font-size: 13px;
		min-height: 42px;
		padding: 8px 6px;
	}

	.mozaikod-site-menu-bar .mozaikod-site-menu__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 0;
		padding: 0 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--mozaikod-menu-accent);
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.mozaikod-site-menu-bar__cta {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		white-space: normal;
	}
}

@media (max-width: 767px) {
	.mozaikod-site-menu-bar__logo img {
		width: 148px;
	}
}

@media (min-width: 1201px) {
	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__toggle {
		display: none;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__list {
		display: flex;
		position: static;
		width: auto;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.mozaikod-free-header__nav {
		position: static;
		width: auto;
		transform: none;
	}
}

@media (max-width: 1200px) {
	.mozaikod-free-header .mozaikod-site-menu--has-toggle {
		justify-content: flex-end;
		width: 100%;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__toggle {
		display: flex;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__list {
		display: none;
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		left: auto;
		z-index: 200;
		width: min(320px, calc(100vw - 32px));
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 4px;
		padding: 14px;
		border: 1px solid #e3e0d8;
		border-radius: 10px;
		background: #ffffff;
		box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
		transform: none;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle.is-open .mozaikod-site-menu__list {
		display: flex;
	}

	.mozaikod-free-header .mozaikod-site-menu__list > li {
		width: 100%;
	}

	.mozaikod-free-header .mozaikod-site-menu__list > li.menu-item-has-children::before {
		display: none;
		content: none;
	}

	.mozaikod-free-header .mozaikod-site-menu__list > li > a {
		width: 100%;
		justify-content: flex-start;
		font-size: 13px;
		min-height: 42px;
		padding: 8px 6px;
	}

	.mozaikod-free-header .mozaikod-site-menu__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 0;
		padding: 0 0 4px 12px;
		border: 0;
		border-left: 2px solid var(--mozaikod-menu-accent);
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.mozaikod-free-header__nav {
		position: absolute;
		top: 50%;
		right: 24px;
		z-index: 80;
		width: 44px;
		transform: translateY(-50%);
	}
}

@media (max-width: 1024px) {
	.mozaikod-free-header > .elementor-container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		align-items: center;
		width: min(100% - 40px, 760px);
		min-height: 72px;
		padding: 8px 0;
	}

	.mozaikod-free-header .mozaikod-free-header__logo-col {
		width: auto !important;
		min-width: 0;
	}

	.mozaikod-free-header .mozaikod-free-header__nav {
		position: static !important;
		justify-self: end;
		width: 44px !important;
		transform: none !important;
	}

	.mozaikod-free-header .mozaikod-free-header__cta-col {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.mozaikod-free-header,
	.mozaikod-free-header > .elementor-container,
	.mozaikod-free-header .elementor-column,
	.mozaikod-free-header .elementor-widget-wrap,
	.mozaikod-free-header .elementor-widget-container {
		overflow: visible !important;
	}

	.mozaikod-free-header > .elementor-container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		align-items: center;
		gap: 10px 14px;
		width: min(100% - 32px, 1220px);
		min-height: 64px;
		padding: 8px 0;
	}

	.mozaikod-free-header .elementor-column.mozaikod-free-header__logo-col,
	.mozaikod-free-header .elementor-column.mozaikod-free-header__nav,
	.mozaikod-free-header .elementor-column.mozaikod-free-header__cta-col {
		width: auto;
		max-width: 100%;
	}

	.mozaikod-free-header .mozaikod-free-header__logo-col {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.mozaikod-free-header .mozaikod-free-header__logo-col > .elementor-widget-wrap,
	.mozaikod-free-header .mz-free-header-logo .elementor-widget-container {
		display: flex;
		justify-content: flex-start;
	}

	.mozaikod-free-header .mz-free-header-logo img {
		width: min(156px, 100%);
	}

	.mozaikod-free-header .mozaikod-free-header__nav {
		position: fixed !important;
		top: 16px !important;
		right: 12px !important;
		grid-column: 2;
		grid-row: 1;
		z-index: 1002 !important;
		width: 44px !important;
		transform: none !important;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle {
		justify-content: flex-end !important;
		width: 44px !important;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__toggle {
		display: flex !important;
		border-color: var(--mozaikod-menu-accent) !important;
		background: var(--mozaikod-menu-accent) !important;
		box-shadow: 0 6px 16px rgba(250, 185, 5, 0.22) !important;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__list {
		top: calc(100% + 10px);
		right: 0;
		width: min(320px, calc(100vw - 32px));
	}

	.mozaikod-free-header .mozaikod-free-header__cta-col {
		display: none !important;
	}

	.mozaikod-free-header__cta-col > .elementor-widget-wrap,
	.mozaikod-free-header .mozaikod-free-header__cta .elementor-widget-container {
		justify-content: stretch;
	}

	.mozaikod-free-header .mozaikod-free-header__cta .elementor-button {
		width: 100%;
		min-width: 0;
		white-space: normal;
	}
}

@media (max-width: 576px) {
	.mozaikod-free-header .mozaikod-free-header__nav {
		top: 8px !important;
		right: 8px !important;
		width: 40px !important;
	}

	.mozaikod-free-header .mozaikod-site-menu--has-toggle,
	.mozaikod-free-header .mozaikod-site-menu--has-toggle .mozaikod-site-menu__toggle {
		width: 40px !important;
		height: 40px !important;
	}
}
