/* ================================================
   HEADER & NAVIGATION STYLES
   ================================================ */

/* Main Header Container */
.white-bg-menu {
	width: 100%;
	background-color: white;
	z-index: 9998;
}

/* Navigation Base */
nav {
	display: flex;
	position: relative;
	background-color: white;
	align-items: center;
	z-index: 9999;
	justify-content: space-between;
	left: 0%;
	right: 0%;
	margin: auto;
}

nav.pc.nav-menu {
	max-width: 1680px;
}

/* Logo & Left Header */
.left-header {
	display: flex;
	align-items: center;
}

a.custom-logo-link {
	display: inline-block;
	height: 0 !important;
}

nav img.custom-logo {
	height: 60px !important;
	width: auto !important;
}

nav .section-padding {
	padding-top: 0.8em;
	padding-bottom: 0.8em;
}

section.logoo.section-padding {
	padding: 0.5em !important;
	padding-left: 2em !important;
}

/* Desktop Navigation */
nav.pc-nav ul li {
	margin: 0 !important;
}

.right-menu ul#menu-sub-menu li {
	border-bottom: 1px solid #8d8d8d;
	width: 100%;
	padding-bottom: 0.5em !important;
	margin-top: 0.5em !important;
	text-align: center;
	display: inline-block;
}

.pc-nav {
	padding-right: 2em;
}

/* Navigation Links */
nav ul a {
	color: var(--black-color);
	position: relative;
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	text-transform: uppercase;
}

nav ul a:hover {
	color: var(--primary-color);
}

.menu-toggle-only > a {
	cursor: default;
}

.pc-nav ul {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	align-items: center;
}

.pc-nav ul a {
	margin: 0;
}

/* Submenu Base */
ul.sub-menu {
	display: none;
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu-toggle-only {
	position: relative;
}

/* Desktop Submenu Dropdown */
@media only screen and (min-width: 1056px) {
	.menu-toggle-only:hover > .sub-menu,
	.menu-toggle-only:focus-within > .sub-menu {
		display: grid;
		grid-template-columns: 1fr;
		justify-items: stretch;
		align-items: center;
		row-gap: 0;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		background: white;
		padding: 0 1em;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
		z-index: 10;
		width: max-content;
		min-width: 12rem;
	}

	.menu-toggle-only .sub-menu li {
		list-style: none;
		padding: 0.5rem 0;
		width: 100%;
	}

	.menu-toggle-only .sub-menu li + li {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}

	.menu-toggle-only .sub-menu a {
		display: block;
		font-weight: 400;
		margin: 0;
		width: 100%;
		padding: 0.4rem 1.25rem;
		text-align: center;
	}
}

/* Navigation Lists */
nav ul {
	display: flex;
	align-items: center;
}

/* Mobile Navigation */
.m-nav {
	display: none;
	top: 100px;
	width: 100%;
	padding: 1em;
	min-height: 100vh;
	top: 0;
	z-index: 3;
}

.m-nav ul {
	display: block;
}

.m-nav ul a {
	color: var(--black-color);
	font-size: 1.5rem;
	margin-bottom: 1em;
}

.m-nav hr {
	background: var(--black-color);
	padding: 0;
	margin: 0;
	height: 1px;
	border: 0;
	margin-top: 2em;
	margin-bottom: 2em;
}

.m-nav.on {
	display: flex;
	justify-content: start;
	flex-direction: column;
	text-align: center;
	position: fixed;
	align-items: center;
	top: 0;
	padding-top: 6em;
	bottom: 0;
	overflow-y: scroll;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.m-nav.on::-webkit-scrollbar {
	display: none;
}

/* Mobile Menu Toggle Button */
.tog {
	display: none;
	padding-left: 1rem;
}

.tog p {
	margin: 0 !important;
}

.toggle {
	cursor: pointer;
	overflow: hidden;
	width: 50px;
	height: 27px;
	background: transparent;
	z-index: 9;
	border-radius: 10px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.line-toggle {
	position: absolute;
	display: block;
	width: 30px;
	height: 2px;
	background: black;
	border-radius: 5px;
	transition: all 0.6s;
}

.line-toggle:first-child {
	transform: translateY(-5px) translateX(-2px);
	width: 50px;
	transition-delay: 0s;
}

.toggle .line-toggle:nth-child(2) {
	transition-delay: 0.12s;
}

.line-toggle:last-child {
	transform: translateY(5px) translateX(-2px);
	width: 50px;
	transition-delay: 0s;
}

.toggle.activate .line-toggle:first-child {
	background: black;
	transform: translateY(0) translateX(0) rotate(45deg);
	width: 40px;
	height: 2px;
	transition-delay: 0.1s;
}

.toggle.activate .line-toggle:nth-child(2) {
	transform: translateX(110px);
	transition-delay: 0s;
}

.toggle.activate .line-toggle:last-child {
	background: black;
	transform: translateY(0) translateX(0) rotate(314deg);
	width: 40px;
	height: 2px;
	transition-delay: 0.1s;
}

/* Right Menu Layout */
nav.m-nav ul li {
	padding-left: 0 !important;
}

.m-nav ul#menu-menu-1 {
	display: flex;
	gap: 0.8em;
	column-gap: 3em;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.right-menu {
	align-items: center;
	display: flex;
	padding-right: 2em;
}

section.pc-nav * {
	padding: 0;
}

section.kontakt a.white-btn {
	margin-top: 0;
}

section.kontakt {
	padding-right: 1em;
}

/* Additional Menu Styles */
section.pc-nav.section-padding li:last-child,
section.pc-nav.section-padding li:last-child a {
	margin: 0 !important;
}

ul li.co-robime-primary {
	position: relative;
}

.co-robime-primary:hover .menu-sub-menu-container ul {
	display: flex !important;
}

.menu-sub-menu-container ul {
	flex-direction: column;
	position: absolute;
	top: 1.4em;
	left: 38%;
	transform: translateX(-38%);
	display: none;
	padding: 1em;
	background: white;
}

.menu-sub-menu-container ul li a {
	padding-right: 1.65em;
}

/* Language Flags */
img.trp-flag-image {
	width: auto;
	height: 40px;
}

#menu-preklad span {
	display: flex;
}

/* Language switcher (SK / EN text toggle) */
.lang-switcher {
	display: flex;
	align-items: center;
	margin-left: 1.5em;
}

.lang-switcher ul {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lang-switcher li.lang-item + li.lang-item::before {
	content: "/";
	margin: 0 0.5em;
	font-weight: 400;
	color: #b3b3b3;
}

.lang-switcher a,
.lang-switcher span {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

/* Inactive language: muted resting state, brand red on interaction */
.lang-switcher a {
	color: var(--black-color);
	opacity: 0.6;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.lang-switcher a:hover,
.lang-switcher a:focus {
	color: var(--primary-color);
	opacity: 1;
}

/* Active language: brand red, full opacity */
.lang-switcher li.is-active span {
	color: var(--primary-color);
	opacity: 1;
}

.lang-switcher--mobile {
	margin-top: 1rem;
}

/* Donate Button */
a.button-primary.button-darujme {
	padding: 0.5em !important;
	padding-left: 1em !important;
	padding-right: 1em !important;
	cursor: pointer;
}

/* ================================================
   MOBILE RESPONSIVE STYLES
   ================================================ */
@media only screen and (max-width: 1055px) {
	/* Ensure the top nav bar never overflows the viewport */
	nav.pc.nav-menu {
		flex-wrap: nowrap;
	}

	/* Logo side can shrink so donate + toggle always stay visible */
	.left-header {
		flex-shrink: 1;
		min-width: 0;
		overflow: hidden;
	}

	section.logoo.section-padding {
		padding-left: 0.75em !important;
		padding-right: 0 !important;
	}

	nav img.custom-logo {
		height: 40px !important;
		max-width: 100%;
		object-fit: contain;
		object-position: left center;
	}

	/* Right side must never shrink or wrap */
	.right-menu {
		flex-shrink: 0;
		padding-right: 0.75em;
		gap: 0.5em;
	}

	.right-menu > nav,
	.right-menu > .tog {
		flex-shrink: 0;
	}

	a.button-primary.button-darujme {
		font-size: 0.85rem !important;
		padding: 0.4em 0.7em !important;
		white-space: nowrap;
	}

	.tog {
		display: block;
		padding-left: 0.5rem;
	}

	/* Hide the desktop switcher; only the in-menu mobile switcher shows */
	.right-menu > .lang-switcher {
		display: none;
	}

	/* In-menu mobile switcher: prominent, centred, touch-friendly */
	.lang-switcher--mobile {
		margin: 0 0 1.5rem;
		justify-content: center;
	}

	.m-nav .lang-switcher--mobile a,
	.m-nav .lang-switcher--mobile span {
		font-size: 1.25rem;
		margin-bottom: 0;
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 0.25em;
	}

	.m-nav.on {
		display: flex;
		justify-content: start;
		text-align: left;
		position: fixed;
		top: 0;
		bottom: 0;
		flex-direction: column;
		overflow-y: scroll;
		align-items: center;
		padding-top: 9em;
		padding-bottom: 4em;
		padding-left: 0;
		padding-right: 0;
	}

	ul.programy-top-menu li a {
		text-transform: capitalize;
	}

	.menu-sub-menu-container ul {
		position: inherit;
		top: auto;
		left: auto;
		transform: none;
		display: block;
		padding: 1em;
		padding-left: 2em !important;
	}

	.menu-toggle-only .sub-menu {
		position: static;
		transform: none;
		width: 100%;
		min-width: 0;
		box-shadow: none;
		padding: 0;
		display: block;
	}

	.menu-toggle-only .sub-menu li {
		padding: 0;
	}

	.menu-toggle-only .sub-menu a {
		font-weight: 400;
		padding-left: 2rem;
	}

	.menu-sub-menu-container ul li a {
		font-weight: 400 !important;
	}

	.m-wrap,
	.programy-menu-wrapper-mobile.bg-contrast.section-padding {
		width: 100%;
		padding: 2em !important;
	}

	.pc-menu.on {
		position: fixed;
	}

	.pc-nav {
		display: none;
	}

	nav.pc {
		justify-content: space-between;
	}

	.m-nav ul {
		padding-left: 0;
	}

	.m-nav ul li {
		padding-left: 0;
	}

	.m-nav.on a {
		display: inline-block;
	}

	nav ul {
		display: flex;
		align-items: center;
	}

	nav ul li {
		padding-left: 0.2em;
		list-style: none;
	}

	a.cart-icon.woocommerce-cart-icon {
		display: flex;
	}

	.m-nav ul#menu-menu-1 {
		flex-direction: column;
	}
}
