.agrilita-header-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

.agrilita-header-nav__toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	background: transparent;
	color: var( --wp--preset--color--dark-blue );
	cursor: pointer;
	padding: 0;
	margin-left: auto;
}

.agrilita-header-nav__toggle-line {
	display: block;
	width: 20px;
	height: 1.5px;
	background-color: currentColor;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.agrilita-header-nav__toggle[ aria-expanded="true" ] .agrilita-header-nav__toggle-line:nth-child( 1 ) {
	transform: translateY( 5.5px ) rotate( 45deg );
}

.agrilita-header-nav__toggle[ aria-expanded="true" ] .agrilita-header-nav__toggle-line:nth-child( 2 ) {
	opacity: 0;
}

.agrilita-header-nav__toggle[ aria-expanded="true" ] .agrilita-header-nav__toggle-line:nth-child( 3 ) {
	transform: translateY( -5.5px ) rotate( -45deg );
}

.agrilita-header-nav__panel {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 2rem;
	width: 100%;
}

.agrilita-header-nav__close,
.agrilita-header-nav__backdrop {
	display: none;
}

.agrilita-header-nav__links .wp-block-navigation {
	flex-wrap: wrap;
}

.agrilita-header-nav__links .wp-block-navigation-item__content {
	font-size: 13px;
}

.agrilita-header-nav__links .wp-block-navigation__container {
	gap: 2rem;
}

.agrilita-header-nav__actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Search toggle */
.agrilita-search-toggle {
	position: relative;
	display: inline-flex;
}

.agrilita-search-overlay__close {
	display: none;
}

.agrilita-search-toggle__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.626rem;
	height: 2.626rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--lighter-neutral-grey);
	background: transparent;
	color: var( --wp--preset--color--dark-blue );
	cursor: pointer;
	padding: 0;
}

.agrilita-search-toggle__button:hover {
	background: var(--wp--preset--color--lighter-neutral-grey);
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.agrilita-search-toggle__button svg {
	width: 1.125rem;
	height: 1.125rem;
}

.agrilita-search-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.agrilita-search-toggle__icon--close {
	display: none;
}

.agrilita-search-toggle__button[ aria-expanded="true" ] .agrilita-search-toggle__icon--search {
	display: none;
}

.agrilita-search-toggle__button[ aria-expanded="true" ] .agrilita-search-toggle__icon--close {
	display: inline-flex;
}

/* Desktop: search overlay drops down below the header, full viewport size */
.agrilita-search-overlay {
	position: fixed;
	top: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background-color: var( --wp--preset--color--white );
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.08 );
	transform: translateY( -10px );
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 9999;
	overflow-y: auto;
}

.agrilita-search-overlay.is-open {
	transform: translateY( 0 );
	opacity: 1;
	visibility: visible;
}

/* Logo — decorative, positioned at the top-right corner of the overlay */
.agrilita-search-overlay__logo {
	position: absolute;
	top: -340px;
	right: 0;
	width: 510px;
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* Caps the search overlay's content to the same grid used elsewhere on the
   site — the close button stays outside this (positioned relative to the
   full overlay), everything else, including the decorative logo, lives in
   here. position:relative makes this the containing block for the logo's
   absolute positioning, so its "right:0" resolves against the 1440px cap's
   own edge instead of the true viewport edge (same pattern as
   .gallery-single__logo / .gallery-single). */
.agrilita-search-overlay__container {
	position: relative;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 60px 30px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.agrilita-search-overlay__heading {
	width: 100%;
	margin: 0 0 140px;
	font-size: var( --wp--preset--font-size--heading-1, 2.5rem );
	font-weight: 700;
	color: var( --wp--preset--color--dark-blue );
	line-height: 1.2;
}

.agrilita-search-overlay__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	max-width: 51.25rem;
	box-sizing: border-box;
}

.agrilita-search-overlay__form {
	display: flex;
	align-items: center;
	flex: 1;
	border: 1px solid var(--wp--preset--color--lighter-neutral-grey);
	border-radius: 50px;
  	padding: 0px 24px;
}

.agrilita-search-overlay__input {
	flex: 1;
	border: none;
	background: transparent;
	font-family: var( --wp--preset--font-family--primary );
	font-size: 1.25rem;
	padding: 0.5rem 0.3rem;
	outline: none;
}

/* Safari/Chrome add their own built-in clear ("x") button inside
   type="search" inputs — disable it so only our own
   .agrilita-search-overlay__clear button shows. */
.agrilita-search-overlay__input::-webkit-search-decoration,
.agrilita-search-overlay__input::-webkit-search-cancel-button,
.agrilita-search-overlay__input::-webkit-search-results-button,
.agrilita-search-overlay__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.agrilita-search-overlay__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var( --wp--preset--color--dark-blue );
	padding: 0.5rem;
}

.agrilita-search-overlay__icon svg,
.agrilita-search-overlay__close svg {
	width: 1.25rem;
	height: 1.25rem;
}

.agrilita-search-overlay__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var( --wp--preset--color--dark-blue );
	padding: 0.5rem;
	opacity: 0.5;
	transition: opacity 0.15s;
}

.agrilita-search-overlay__clear:hover {
	opacity: 1;
}

.agrilita-search-overlay__clear svg {
	width: 0.75rem;
	height: 0.75rem;
}

body.agrilita-search-open {
	overflow: hidden;
}

/* ─── Live search results ─────────────────────────────────────────────────── */
.agrilita-search-results {
	width: calc( 100% - 60px );
	max-width: 51.25rem;
	box-sizing: border-box;
	margin-top: 12px;
	border-radius: 16px;
	border: 1px solid var( --wp--preset--color--lighter-neutral-grey );
	background: rgba( 230, 231, 235, 0.2 );
	padding: 16px 20px;
	max-height: 420px;
	overflow-y: auto;
}

.agrilita-search-results__group + .agrilita-search-results__group {
	margin-top: 16px;
}

.agrilita-search-results__label {
	margin: 0 0 8px;
	font-family: var( --wp--preset--font-family--primary );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --wp--preset--color--neutral-grey );
}

.agrilita-search-results__item {
	display: block;
	padding: 6px 0;
	font-family: var( --wp--preset--font-family--primary );
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var( --wp--preset--color--dark-blue );
	text-decoration: none;
	transition: color 0.15s;
}

.agrilita-search-results__item:hover {
	color: var( --wp--preset--color--teal );
}

.agrilita-search-highlight {
	background: rgba( 0, 147, 166, 0.15 );
	color: var( --wp--preset--color--teal );
	border-radius: 3px;
	padding: 0 2px;
	font-style: normal;
}

.agrilita-search-results__empty {
	margin: 0;
	font-family: var( --wp--preset--font-family--primary );
	font-size: 16px;
	color: var( --wp--preset--color--neutral-grey );
}

/* Language switcher */
.agrilita-lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-family: var( --wp--preset--font-family--primary );
	font-size: var( --wp--preset--font-size--button );
	font-weight: var( --wp--custom--font-weight--medium );
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --wp--preset--color--dark-blue );
	justify-content: center;
	width: 2.626rem;
	height: 2.626rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--lighter-neutral-grey);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.agrilita-lang-switcher:hover {
	background-color: var( --wp--preset--color--lighter-neutral-grey );
}

/* [gtranslate] shortcode markup — strip it down to a single two-letter
   toggle link. display:contents removes the wrapper divs from the box
   model (only the visible glink actually participates in layout, centered
   by .agrilita-lang-switcher's own flex centering) without needing to
   touch GTranslate's own markup. #google_translate_element{N}'s numeric
   suffix is GTranslate's own instance counter, hence the attribute-prefix
   selector instead of a plain ID match. */
.agrilita-lang-switcher__label,
.agrilita-lang-switcher__label .gtranslate_wrapper {
	display: contents;
}

.agrilita-lang-switcher__label [id^="google_translate_element"] {
	display: none;
}

.agrilita-lang-switcher__label a.glink {
	display: none;
	color: inherit;
	text-decoration: none;
}

/* GTranslate moves .gt-current-lang onto whichever language becomes active
   after a click, so hiding the current one and showing the other flips
   which link is visible each time — by default that's "LT" (Lithuanian is
   the site's native language), leaving "EN" as the one shown. */
.agrilita-lang-switcher__label a.glink:not(.gt-current-lang) {
	display: inline;
}

.agrilita-lang-switcher__chevron {
	width: 0.625rem;
	height: 0.375rem;
}

/* Phone button */
.agrilita-phone-btn__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Mobile hamburger menu — kicks in below 1250px rather than the usual 768px
 * since the nav has six links plus search/lang/phone actions; that's too
 * much content to ever fit gracefully in a shrinking single row, so the
 * off-canvas panel takes over earlier instead of letting it wrap awkwardly.
 * Keep in sync with the matching breakpoint in header.css. */
@media ( max-width: 1280px ) {
	.agrilita-header-nav__toggle {
		display: flex;
	}

	.agrilita-header-nav__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 2rem;
		width: 80%;
		max-width: 320px;
		background-color: var( --wp--preset--color--white );
		padding: 2rem;
		box-shadow: -10px 0 30px rgba( 0, 0, 0, 0.08 );
		transform: translateX( 100% );
		transition: none;
		z-index: 1000;
	}

	.agrilita-header-nav.is-ready .agrilita-header-nav__panel {
		transition: transform 0.3s ease;
	}

	.agrilita-header-nav__panel.is-open {
		transform: translateX( 0 );
	}

	.agrilita-header-nav__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 1rem;
		right: 1rem;
		width: 2.5rem;
		height: 2.5rem;
		border: none;
		background: transparent;
		color: var( --wp--preset--color--dark-blue );
		cursor: pointer;
		padding: 0;
	}

	.agrilita-header-nav__close svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.agrilita-header-nav__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background-color: rgba( 0, 0, 0, 0.4 );
		opacity: 0;
		visibility: hidden;
		transition: none;
		z-index: 999;
	}

	.agrilita-header-nav.is-ready .agrilita-header-nav__backdrop {
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.agrilita-header-nav__backdrop.is-open {
		opacity: 1;
		visibility: visible;
	}

	.agrilita-header-nav__links,
	.agrilita-header-nav__actions {
		width: 100%;
	}

	.agrilita-header-nav__links .wp-block-navigation,
	.agrilita-header-nav__links .wp-block-navigation__container {
		width: 100%;
		justify-content: center;
	}

	.agrilita-header-nav__links .wp-block-navigation__container {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.agrilita-header-nav__actions {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	/* Mobile: search overlay covers the full screen */
	.agrilita-search-overlay {
		position: fixed;
		top: 0 !important;
		left: 0;
		right: 0;
		height: 100%;
		transform: translateY( -100% );
	}

	.agrilita-search-overlay__close {
		display: inline-flex;
		align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var( --wp--preset--color--dark-blue );
	padding: 0.5rem;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 1;
	}

	.agrilita-search-overlay.is-open {
		transform: translateY( 0 );
	}

	.agrilita-search-overlay__logo {
		display: none;
	}
}

/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-duration:initial;--tw-content:""}}}.home header{border-bottom-style:var(--tw-border-style);border-bottom-width:0}header{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--wp--preset--color--teal)}.agrilita-header-container{max-width:1440px;margin:0 auto;padding:10px 30px}.agrilita-header-container .wp-block-image.agrilita-logo{flex:none;width:auto;max-width:none;margin:0}.site-header--transparent{z-index:100;background-color:#0000;position:absolute;top:0;left:0;right:0}.site-header--transparent .agrilita-header-container{border-bottom:none}.site-header--transparent .wp-block-navigation a{color:#fff!important}.site-header--transparent .agrilita-search-toggle__button,.site-header--transparent .agrilita-lang-switcher{color:#fff;border-color:#fff6}.site-header--transparent .agrilita-search-toggle__button:hover,.site-header--transparent .agrilita-lang-switcher:hover{color:var(--wp--preset--color--dark-blue);border-color:var(--wp--preset--color--lighter-neutral-grey)}.site-header--transparent .agrilita-header-nav__links .wp-block-navigation-item__content:after{background-color:#fff}@media (max-width:1250px){.site-header--transparent .wp-block-navigation a{color:var(--wp--preset--color--dark-blue)!important}.site-header--transparent .agrilita-search-toggle__button,.site-header--transparent .agrilita-lang-switcher{color:var(--wp--preset--color--dark-blue);border-color:var(--wp--preset--color--lighter-neutral-grey)}}.agrilita-header-nav__links .wp-block-navigation-item__content{position:relative}.agrilita-header-nav__links .wp-block-navigation-item__content:after{height:calc(var(--spacing,.25rem) * .5);--tw-scale-x:0%;scale:var(--tw-scale-x) var(--tw-scale-y);background-color:var(--wp--preset--color--dark-blue);opacity:0;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.3s;--tw-content:"";content:var(--tw-content);transition-duration:.3s;position:absolute;bottom:0;left:0;right:0}@media (min-width:80rem){.agrilita-header-nav__links .wp-block-navigation-item__content:after{bottom:calc(var(--spacing,.25rem) * -6.5)}}.agrilita-header-nav__links .wp-block-navigation-item__content:hover:after,.agrilita-header-nav__links .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content:after,.agrilita-header-nav__links .wp-block-navigation-item__content[aria-current=page]:after{--tw-scale-x:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}

