/* ILBakery Design v2 · sitewide layer. Loaded on every page. */

:root {
	--ilb-v2-magenta: #E1308E;
	--ilb-v2-magenta-dk: #C31270;
	--ilb-v2-ink: #212121;
	--ilb-v2-muted: #6E6E73;
	--ilb-v2-tint: #FFF4FA;
	--ilb-v2-line: #F0E3EA;
	--ilb-v2-radius: 14px;
	--ilb-v2-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ilb-v2-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 1. Content is visible at rest: no scroll-triggered entrance animations,
      so sections never show as blank space while a visitor scrolls. */
.elementor-invisible {
	visibility: visible !important;
}
.elementor-element.animated {
	animation: none !important;
}

/* 2. Compact desktop header once the visitor has scrolled (class set by site.js). */
@media (min-width: 1025px) {
	#masthead.sticky-header .site-header-inner {
		transition: padding-top 0.25s ease, padding-bottom 0.25s ease;
	}
	#masthead.sticky-header .custom-logo {
		transition: max-width 0.25s ease;
	}
	body.ilb-scrolled #masthead.sticky-header .site-header-inner {
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
	body.ilb-scrolled #masthead.sticky-header .custom-logo {
		max-width: 36px !important;
	}
	body.ilb-scrolled #masthead.sticky-header {
		box-shadow: 0 1px 0 var(--ilb-v2-line);
	}
	/* The UA / RU switcher is pinned at a fixed offset by the child theme (top: 45px);
	   move it with the header so it stays aligned with the menu. */
	.custom-lang {
		transition: top 0.25s ease;
	}
	body.ilb-scrolled .custom-lang {
		top: 24px;
	}
	body.ilb-scrolled.admin-bar .custom-lang {
		top: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#masthead .site-header-inner,
	#masthead .custom-logo,
	.custom-lang {
		transition: none !important;
	}
}
