/* Sticky headers (all three header templates, Elementor motion effect "sticky: top"): transparent over the
   page top, #223320CC once the page is scrolled. Elementor marks the header sticky/effects already at the top,
   so the scrolled state comes from html.parko-scrolled (set in frontend.php). The spacer clone stays clear. */
html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) {
	background-color: #223320CC !important;
}

/* "Rinktis butą" header (template 712) on mobile: in the page flow (Elementor: absolute over the photo) and
   with the same solid green as the other pages' header (global text colour, like template 296); scrolled
   (sticky) it gets the common #223320CC like the rest. */
@media (max-width: 767px) {
	.elementor-location-header.elementor-712 .elementor-element.elementor-element-6e6ae27 {
		--position: static;
	}

	html:not(.parko-scrolled) .elementor-location-header.elementor-712 .elementor-element.elementor-element-6e6ae27:not(.elementor-sticky__spacer) {
		background-color: var(--e-global-color-text) !important;
	}
}

/* Header above all page content (Elementor gives it z-index 10 - the same as the footer blocks, which come later
   in the page and so were painted over it: the fixed "back to top" showed above the open off-canvas menu, which
   lives inside the header and can't rise above it). */
.elementor-location-header > .e-con {
	z-index: 100 !important;
}

/* Sticky (scrolled) header smaller: logo 20% (scale 0.8),
   top / bottom padding 24 -> 12px (desktop, tablet), 16 -> 8px (mobile). Same in all three header templates;
   one soft ease-in-out for the background, padding and logo. */
.elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) {
	transition: background-color 0.6s ease-in-out, padding 0.6s ease-in-out;
}

.elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) > .e-con-inner {
	transition: padding 0.6s ease-in-out;   /* boxed containers keep their padding on the inner box */
}

/* logo: scaled (smooth, no re-layout / pixel jitter like animating its width) from its left edge; the widget's
   negative margins (-10% of the logo height top and bottom) let the header shrink with it */
.elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo {
	transition: margin 0.6s ease-in-out;
}

.elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo img {
	transform-origin: left center;
	transition: transform 0.6s ease-in-out;
	will-change: transform;
}

html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) {
	--padding-top: 12px !important;
	--padding-bottom: 12px !important;
}

html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo img {
	transform: scale(0.8);
}

/* logo 220 x 77.7px (desktop), 160 x 56.5px (tablet), 150 x 53px (mobile) */
html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo {
	margin-top: -7.8px !important;
	margin-bottom: -7.8px !important;
}

@media (max-width: 1024px) {
	html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo {
		margin-top: -5.65px !important;
		margin-bottom: -5.65px !important;
	}
}

@media (max-width: 767px) {
	html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) {
		--padding-top: 8px !important;
		--padding-bottom: 8px !important;
	}

	html.parko-scrolled .elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo {
		margin-top: -5.3px !important;
		margin-bottom: -5.3px !important;
	}
}

/* Off-canvas (mobile) menu: the "Rinktis butą" sub-menu (floors, parking, storage) opens in the flow under its
   item - no popup box or background - in the same style as the menu (Fahkwang light, white, gold when current /
   hovered), just smaller; the filled caret becomes a thin chevron that turns up when open. All three headers. */
/* "Rinktis butą" itself (menu item 586, the same menu in all three headers) is regular, the other items stay light */
.e-off-canvas .elementor-nav-menu .menu-item-586 > a.elementor-item {
	font-weight: 400 !important;
}

.e-off-canvas .elementor-nav-menu .sub-menu {
	position: static !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 2px 0 8px !important;
	inset: auto !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.e-off-canvas .elementor-nav-menu .sub-menu a.elementor-sub-item {
	padding: 7px 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: "Fahkwang", sans-serif;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.1;
	color: var(--e-global-color-secondary) !important;
	justify-content: flex-end;
	text-align: right;
}

.e-off-canvas .elementor-nav-menu .sub-menu a.elementor-sub-item:hover,
.e-off-canvas .elementor-nav-menu .sub-menu a.elementor-sub-item:focus,
.e-off-canvas .elementor-nav-menu .sub-menu a.elementor-sub-item.elementor-item-active {
	color: #D5A85B !important;
}

.e-off-canvas .elementor-nav-menu .sub-arrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0 14px;
	padding: 0;
}

.e-off-canvas .elementor-nav-menu .sub-arrow svg {
	display: none;
}

.e-off-canvas .elementor-nav-menu .sub-arrow::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s, margin 0.25s;
}

.e-off-canvas .elementor-nav-menu a.has-submenu[aria-expanded="true"] .sub-arrow::before {
	margin-top: 4px;
	transform: rotate(-135deg);
}

/* Homepage header (597), mobile: logo 20% smaller (150 -> 120px wide) so the hero text can sit higher. When sticky it
   stays 120px - the same size the other headers' logos shrink to - instead of scaling down again. */
@media (max-width: 767px) {
	.elementor-597 .elementor-widget-theme-site-logo,
	.elementor-597 .elementor-widget-theme-site-logo a {
		text-align: left !important;
	}

	.elementor-597 .elementor-widget-theme-site-logo img {
		width: 120px !important;
	}

	/* "Meniu" + hamburger (opens the off-canvas menu) about 20% smaller, like the logo: text 17 -> 14px, icon 25 -> 20px */
	.elementor-597 .elementor-element-7de8ce9 .elementor-heading-title {
		font-size: 14px !important;
		line-height: 20px !important;
	}

	.elementor-597 .elementor-element-a58ab8e .elementor-icon {
		font-size: 20px !important;
	}

	.elementor-597 .elementor-element-a58ab8e .elementor-icon svg {
		width: 20px !important;
		height: 20px !important;
	}

	.elementor-597 .elementor-element-73ec22c {
		--gap: 16px !important;
		--column-gap: 16px !important;
	}

	/* top padding 16 -> 12px at the top of the page; the scrolled (sticky) 8px rule above is more specific and still wins */
	.elementor-597.elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) {
		--padding-top: 12px !important;
	}

	html.parko-scrolled .elementor-597.elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo img {
		transform: none;
	}

	html.parko-scrolled .elementor-597.elementor-location-header .elementor-sticky--active:not(.elementor-sticky__spacer) .elementor-widget-theme-site-logo {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}
}
