:root {
	--eco-header-admin-offset: 0px;
}

body.admin-bar {
	--eco-header-admin-offset: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--eco-header-admin-offset: 46px;
	}
}

/* === Header Base === */
.site-header {
	position: fixed;
	top: var(--eco-header-admin-offset);
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    padding: 28px 0px 0px;
    max-width: 1440px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
	border-radius: 0;
	transition: background-color 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, top 0.25s ease, width 0.25s ease, border-radius 0.25s ease;

    @media screen and (max-width: 768px) {
        padding: 16px 0px 0px;
    }

	&.is-scrolled {
		top: calc(var(--eco-header-admin-offset) + 16px);
		width: min(1408px, calc(100vw - 32px));
		max-width: none;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(14px);
		border-radius: 14px;
		box-shadow: 0 20px 44px rgba(0, 71, 53, 0.08);
		padding-top: 18px;

		@media screen and (max-width: 768px) {
			top: calc(var(--eco-header-admin-offset) + 8px);
			width: calc(100vw - 16px);
			border-radius: 16px;
			padding-top: 12px;
		}

		.header-container {
			border-bottom-color: rgba(2, 73, 52, 0.08);
			margin: 0 44px;
			padding-bottom: 18px;

			@media screen and (max-width: 768px) {
				margin: 0 16px;
				padding-bottom: 12px;
			}
		}

		.nav-menu li a {
			color: #004735;
		}

		.header-switcher {
			svg {
				path {
					fill: #004735;
				}
			}

			a,
			.header-lang-current {
				color: #004735;
			}
		}
	}

	&.menu-green {
		.header-container {
			border-bottom: 1px solid rgba(2, 73, 52, 0.1);
		}

		.nav-menu li a { 
			color: #004735;
		}

		.header-switcher {
			svg {
				path {
					fill: #004735
				}
			}

			a,
			.header-lang-current {
				color: #004735;
			}
		}
	}

	&.is-menu-open {
		top: 0;
		left: 0;
		width: 100vw;
		max-width: none;
		height: 100dvh;
		padding: 0;
		background: #004735;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}
}

.header-container {
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 60px;
	transition: border-color 0.25s ease, padding 0.25s ease;

    @media screen and (max-width: 768px) {
        margin: 0 20px;
        border-bottom: none;
        padding: 0 0px 16px;
    }
}

/* === Logo === */
.site-logo-icon {
	width: 100%;
	height: auto;
	object-fit: cover;
}


.site-logo a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #004d40;
	font-weight: 500;
}
.logo-mark {
	background: #004d40;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
}
.logo-text {
	font-size: 14px;
	line-height: 1.2;
	color: #004d40;
}

/* === Nav === */
.site-nav {
	flex: 1;
}
.nav-menu {
	align-items: center;
	display: flex;
	gap: 44px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.nav-menu,
.nav-menu ul {
	list-style: none;
}
.nav-menu > li {
	align-items: center;
	display: flex;
	position: relative;
}

.nav-menu > .menu-item-has-children {
	padding: 10px 22px 30px;
	margin: -10px -22px -30px;
}

.nav-menu li a {
	font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-decoration: none;
}

.nav-menu > li > a {
	align-items: center;
	display: inline-flex;
	padding: 10px 0;
}

.nav-menu > li:hover > a {
	text-decoration: underline;
}

.nav-menu > .menu-item-has-children > a {
	gap: 8px;
}

.nav-menu > .menu-item-has-children > a::after {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	content: "";
	display: inline-block;
	height: 7px;
	margin-top: -4px;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	width: 7px;
}

.nav-menu > .menu-item-has-children::after {
	content: "";
	height: 76px;
	left: 50%;
	position: absolute;
	top: calc(100% - 30px);
	transform: translateX(-50%);
	width: 360px;
	max-width: calc(100% + 120px);
	z-index: 1000;
}

.nav-menu > .menu-item-has-children:hover > a::after,
.nav-menu > .menu-item-has-children:focus-within > a::after {
	margin-top: 3px;
	transform: rotate(225deg);
}

.nav-menu > .menu-item-has-children > .sub-menu {
	background: #cfe2e0;
	border-radius: 26px;
	box-shadow: 0 18px 36px rgba(0, 71, 53, 0.08);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0;
	left: 50%;
	list-style: none;
	margin: 0;
	min-width: 320px;
	opacity: 0;
	padding: 24px 28px 22px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 2px);
	transform: translate(-50%, 8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	visibility: hidden;
	z-index: 1001;
}

.nav-menu > .menu-item-has-children::before {
	content: none;
	display: none;
}

.nav-menu > .menu-item-has-children:hover > .sub-menu,
.nav-menu > .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	visibility: visible;
}

.site-header .nav-menu > .menu-item-has-children > .sub-menu a {
	align-items: center;
	border-bottom: 1px solid rgba(0, 71, 53, 0.14);
	box-sizing: border-box;
	color: #004735;
	display: flex;
	font-size: 20px;
	font-weight: 400;
	justify-content: space-between;
	line-height: 1.12;
	min-height: 58px;
	padding: 0;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
	z-index: 2;
}

.site-header .nav-menu > .menu-item-has-children > .sub-menu li:last-child > a {
	border-bottom: 0;
}

.site-header .nav-menu > .menu-item-has-children > .sub-menu a:hover,
.site-header .nav-menu > .menu-item-has-children > .sub-menu a:focus {
	color: #009170;
	text-decoration: none;
}

/* .nav-menu li a:hover {
	color: #009170;
} */

/* === Actions === */
.header-actions {
	display: flex;
	align-items: center;
	gap: 30px;

	@media (max-width: 768px) {
		gap: 4px;
	}

	.header-switcher {
		display: flex;
		flex-direction: row;
		gap: 6px;
		align-items: center;

		a {
			font-family: Closer Text;
			font-weight: 400;
			font-size: 16px;
			line-height: 110%;
			letter-spacing: -0.01em;
			color: #FFFFFF;
			text-decoration: none;
			text-transform: uppercase;
		}

		.header-lang-current {
			font-family: Closer Text;
			font-weight: 400;
			font-size: 16px;
			line-height: 110%;
			color: #FFFFFF;
			text-transform: uppercase;
		}

		@media (max-width: 768px) {
			display: none;
		}
	}
}

.language-switcher {
	position: relative;
}

.site-header .language-switcher__toggle {
	color: #fff;
}

.site-header.menu-green .language-switcher__toggle,
.site-header.is-scrolled .language-switcher__toggle {
	color: #004735;
}

.language-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1;
}

.language-switcher__toggle:focus-visible {
	outline: 2px solid rgba(0, 145, 112, 0.45);
	outline-offset: 4px;
	border-radius: 8px;
}

.language-switcher__chevron {
	width: 7px;
	height: 7px;
	border-right: 1.7px solid currentColor;
	border-bottom: 1.7px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.18s ease;
}

.language-switcher.is-open .language-switcher__chevron {
	transform: translateY(2px) rotate(225deg);
}

.language-switcher .drop-block.lang {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
	min-width: 92px;
	padding: 8px;
	border: 1px solid rgba(0, 71, 53, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(0, 71, 53, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 50;
}

.language-switcher.is-open .drop-block.lang {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.language-switcher .drop-block__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 8px;
	color: #004735 !important;
	font-family: 'Closer Text', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.language-switcher .drop-block__link:hover,
.language-switcher .drop-block__link:focus {
	background: rgba(207, 226, 224, 0.9);
	color: #004735 !important;
}

@media (max-width: 768px) {
	.header-actions {
		gap: 10px;
	}

	.header-actions .header-switcher {
		display: flex;
		align-items: center;
	}

	.header-actions .header-switcher .language-switcher__toggle {
		min-height: 41px;
		padding: 0 10px;
		border-radius: 12px;
		background: #CFE2E0;
		color: #004735;
	}

	.header-actions .header-switcher .header-lang-current {
		color: #004735;
		font-size: 14px;
		font-weight: 500;
	}

	.header-actions .header-switcher svg {
		width: 16px;
		height: 16px;
	}

	.header-actions .header-switcher svg path {
		fill: #004735 !important;
	}

	.header-actions .donate-btn {
		display: none;
	}
}

.donate-btn {
	padding: 14px 26px;
	border-radius: 12px;
	background: rgba(207, 226, 224, 1);
	color: rgba(0, 71, 53, 1);
	font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.01em;
    font-family: 'Closer Text', sans-serif;
	border: none;
	cursor: pointer;
	text-decoration: none;

    @media screen and (max-width: 768px) {
        padding: 12px 18px;
    }
	/* transition: background 0.3s ease; */

	&:hover {
		background-color: rgba(0, 71, 53, 1);
		color: rgba(255, 255, 255, 1);
	}
}
/* .donate-btn:hover {
	background: #bfe5d8;
} */

.lang-placeholder {
	font-size: 14px;
	color: #004d40;
}

/* === Burger === */
.burger {
	display: none;
    background: rgba(0, 71, 53, 1);
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    width: 41px;
    height: 41px;
	cursor: pointer;
    border: none;
}

.burger svg {
    display: block;
    height: 16px;
    overflow: visible;
    width: 20px;
}

.burger svg line {
    stroke-width: 1.6;
}

.burger svg line:nth-child(1) {
    transform: translateY(-2px);
}

.burger svg line:nth-child(3) {
    transform: translateY(2px);
}

.burger span {
	width: 100%;
	height: 2px;
	background: #004d40;
	border-radius: 2px;
}

/* === Responsive === */
@media (max-width: 1200px) {
	.nav-menu {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		background: #fff;
		flex-direction: column;
		align-items: center;
		padding: 20px 0;
		border-radius: 0 0 16px 16px;
	}
	.nav-menu.active {
		display: flex;
	}
	.burger {
		display: flex;
	}
}

/* === Popup Mobile Menu === */
.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background: #004735;
	backdrop-filter: none;
	display: none;
	align-items: stretch;
	justify-content: stretch;
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
	z-index: 9999;
    padding: 0;
    box-sizing: border-box;

    @media screen and (max-width: 768px) {
        padding: 0;
    }
}
.mobile-menu-overlay.active {
	display: flex;
}

.mobile-menu-inner {
	background: transparent;
	color: #fff;
	width: 100%;
	max-width: none;
	height: 100%;
	border-radius: 0;
	display: flex;
	flex-direction: column;
    padding: 32px 42px 34px;
	position: relative;
    overflow: hidden;
    box-sizing: border-box;

    @media screen and (max-width: 768px) {
        max-width: 100%;
        border-radius: 0;
        padding: 28px 32px 30px;
    }
}

/* Header inside menu */
.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.mobile-logo a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
}
.mobile-logo img {
    width: 150px;
    height: auto;
}
.menu-close {
	font-size: 28px;
    background: rgba(207, 226, 224, 1);
    border-radius: 12px;
    width: 41px;
    height: 41px;
    color: rgba(0, 71, 53, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

/* Menu list */
.mobile-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.mobile-nav-menu {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.mobile-nav-menu > li {
    padding: 0 0 28px;
}

.mobile-nav-menu > li:last-child {
    padding-bottom: 0;
}

.mobile-nav-menu li a {
	color: #fff;
	text-decoration: none;
	font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 130%;
    letter-spacing: -0.01em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding: 0 0 16px;
}

.mobile-nav-menu > li > a {
    font-size: 22px;
    line-height: 1.2;
    padding-bottom: 20px;
}

.mobile-nav-menu li a::after {
	content: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.8" clip-path="url(%23clip0_796_2917)"><path d="M3.62586 3.32329C3.68365 3.38163 3.75251 3.42784 3.8284 3.45921C3.90429 3.49058 3.98569 3.50647 4.0678 3.50596L10.5143 3.50596L10.5143 9.95242C10.52 10.1143 10.5883 10.2676 10.7048 10.38C10.8213 10.4925 10.9769 10.5554 11.1389 10.5554C11.3008 10.5554 11.4564 10.4925 11.5729 10.38C11.6895 10.2676 11.7578 10.1143 11.7635 9.95242L11.7635 2.88135C11.7634 2.71573 11.6975 2.55691 11.5804 2.4398C11.4633 2.32268 11.3045 2.25684 11.1389 2.25674L4.0678 2.25674C3.90218 2.25684 3.74336 2.32268 3.62625 2.4398C3.50913 2.55691 3.44329 2.71573 3.44319 2.88135C3.44268 2.96347 3.45857 3.04486 3.48994 3.12075C3.52131 3.19664 3.56752 3.2655 3.62586 3.32329Z" fill="white"/><path d="M2.44803 11.5724C2.56629 11.6876 2.72487 11.7521 2.88997 11.7521C3.05508 11.7521 3.21365 11.6876 3.33192 11.5724L11.5815 3.3228C11.6987 3.20559 11.7646 3.04662 11.7646 2.88086C11.7646 2.7151 11.6987 2.55613 11.5815 2.43892C11.4643 2.32171 11.3053 2.25586 11.1396 2.25586C10.9738 2.25586 10.8148 2.32171 10.6976 2.43892L2.44803 10.6885C2.33282 10.8068 2.26835 10.9653 2.26835 11.1304C2.26835 11.2955 2.33282 11.4541 2.44803 11.5724Z" fill="white"/></g><defs><clipPath id="clip0_796_2917"><rect width="14" height="14" fill="white" transform="matrix(1 0 0 -1 0 14)"/></clipPath></defs></svg>');
	font-size: 14px;
}

.mobile-nav-menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 2px 0 0 36px;
}

.mobile-nav-menu .sub-menu li a {
	color: rgba(255, 255, 255, 0.82);
	font-size: 18px;
	font-weight: 400;
	line-height: 125%;
    min-height: 44px;
	padding: 9px 0 13px;
}

.mobile-nav-menu .sub-menu li a::after {
	display: none;
}

/* Donate button */
.mobile-donate-btn {
	background: #CFE2E0;
	color: #004735;
	font-family: Closer Text;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.01em;

	padding: 16px 0;
    width: 100%;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	text-align: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* Footer */
.mobile-footer {
	margin-top: 18px;
	display: flex;
	align-items: center;
    justify-content: center;
	padding-top: 0;
    border-top: 0;
    flex-shrink: 0;

	.mob-header-switcher {
		display: none;
		flex-direction: row;
		gap: 6px;
		align-items: center;

		a {
			font-family: Closer Text;
			font-weight: 400;
			font-size: 16px;
			line-height: 110%;
			letter-spacing: -0.01em;
			color: #FFFFFF;
			text-decoration: none;
			text-transform: uppercase;
		}

		.header-lang-current {
			font-family: Closer Text;
			font-weight: 400;
			font-size: 16px;
			line-height: 110%;
			color: #FFFFFF;
			text-transform: uppercase;
		}
	}
}

.mobile-footer .language-switcher .drop-block.lang {
	top: auto;
	right: auto;
	bottom: calc(100% + 8px);
	left: 0;
	background: rgba(207, 226, 224, 1);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.mobile-footer .language-switcher__toggle {
	color: #fff;
}

.mobile-footer .language-switcher .drop-block__link {
	color: #004735 !important;
}

.mobile-lang {
	font-size: 14px;
}
.mobile-socials {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.mobile-socials a {
    background: #CFE2E0;
    border-radius: 100px;
    padding: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.mobile-socials a:hover,
.mobile-socials a:focus {
	background: #FFFFFF;
	transform: scale(1.06);
}

.mobile-socials img {
	width: 21px;
	height: 21px;
}

.mobile-socials svg {
	width: 21px;
	height: 21px;
	display: block;
}
