/* Global header (glass pill — navbar 3c) and footer (lite). */

:root{
	--blt-navy:#051f3e;
	--blt-blue:#0e8acb;
	--blt-red:#ec1c27;
	--blt-white:#fdfeff;
	--blt-accent:#7ea3f0;
}

/* ===================================================================
   HEADER — "navbar 3c" floating glass pill
   Outer <header.belit-glassHeader> stays sticky (and is measured into
   --blt-header-h by header.php). It also carries the animated gradient
   backdrop + drifting glow orbs. The inner <nav.belit-nav> is the glass
   pill that drops in on load; links stagger + hover-lift, a sheen sweeps.
   =================================================================== */

@keyframes belit-gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes belit-orbFloat  { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-16px) scale(1.15); } 100% { transform: translate(0,0) scale(1); } }
@keyframes belit-orbFloat2 { 0% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-26px,14px) scale(1); } 100% { transform: translate(0,0) scale(1.1); } }
@keyframes belit-navDrop   { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes belit-sheen     { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(320%); } }

.belit-glassHeader{
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
	overflow: hidden;
	padding: 16px clamp(14px, 3vw, 30px);
	background: linear-gradient(120deg,#0a1320,#0f1b2d,#1a2c47,#12233b);
	background-size: 300% 300%;
	animation: belit-gradShift 14s ease infinite;
}

.belit-glassHeader,
.belit-glassHeader *{ box-sizing: border-box; }

/* Drifting glow orbs behind the pill. */
.belit-orb{
	position: absolute; top: -40px; left: 12%;
	width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(126,163,240,.35), transparent);
	filter: blur(12px);
	animation: belit-orbFloat 11s ease-in-out infinite;
	pointer-events: none;
}
.belit-orb2{
	position: absolute; bottom: -60px; right: 16%;
	width: 260px; height: 260px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(29,78,216,.3), transparent);
	filter: blur(14px);
	animation: belit-orbFloat2 13s ease-in-out infinite;
	pointer-events: none;
}

/* The glass pill. */
.belit-nav{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	padding: 10px 16px 10px 22px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	overflow: hidden;
	animation: belit-navDrop .6s cubic-bezier(.22,1,.36,1) both;
}

.belit-sheen{
	position: absolute; top: 0; bottom: 0; left: 0; width: 90px;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
	transform: translateX(-120%);
	animation: belit-sheen 6s ease-in-out 1s infinite;
	pointer-events: none;
}

.belit-glassHeader a,
.belit-glassHeader button,
.belit-glassHeader .bgh-lang,
.belit-glassHeader .bgh-lang *{
	color: #fff;
}

/* Logo. */
.belit-logo{
	position: relative; z-index: 1;
	display: flex; align-items: center;
	flex-shrink: 0;
}
.belit-logo img{ height: 30px; width: auto; display: block; }

/* Menu (desktop): links live inside the pill. */
.belit-links{
	position: relative; z-index: 1;
	display: flex;
	align-items: center;
	gap: 28px;
	flex: 1 1 auto;
	justify-content: center;
}

.belit-glassHeader .belit-links a{
	all: unset;
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: rgba(255,255,255,.72);
	padding: 4px 0;
	white-space: nowrap;
	transition: color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), text-shadow .25s ease;
}
.belit-glassHeader .belit-links a:hover{
	color: #fff;
	transform: translateY(-2px);
	text-shadow: 0 0 16px rgba(126,163,240,.6);
}

/* Sliding underline via ::after — works for both fallback <a> and wp_nav_menu <li><a>. */
.belit-glassHeader .belit-links a::after{
	content: "";
	position: absolute;
	left: 0; bottom: -4px;
	height: 2px; width: 100%;
	background: var(--blt-accent);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.belit-glassHeader .belit-links a:hover::after,
.belit-glassHeader .belit-links a.is-active::after,
.belit-glassHeader .belit-links a[aria-current="page"]::after,
.belit-glassHeader .belit-links .current-menu-item > a::after{
	transform: scaleX(1);
}
.belit-glassHeader .belit-links a.is-active,
.belit-glassHeader .belit-links a[aria-current="page"],
.belit-glassHeader .belit-links .current-menu-item > a{
	color: #fff;
}

/* If a theme location menu is used, strip default list chrome. */
.belit-glassHeader .belit-links li{ list-style: none; margin: 0; padding: 0; display: inline-flex; }

/* Desktop language switcher wrapper (holds the Polylang 1b underline switcher). */
.belit-switch{
	position: relative; z-index: 1;
	display: flex;
	align-items: center;
	background: rgba(255,255,255,.08);
	border-radius: 999px;
	padding: 8px 16px;
	flex-shrink: 0;
}

/* Crta ispod nav bara uklonjena (bez donje linije/akcenta). */
.bgh-accent{ display: none; }

/* Hamburger (mobile only). */
.bgh-toggle{
	display:none;
	position: relative; z-index: 1;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.14);
	padding: 9px 9px;
	border-radius: 12px;
	cursor:pointer;
	flex-shrink: 0;
}
.bgh-toggle span{
	display:block;
	width: 22px;
	height: 2px;
	background: rgba(255,255,255,0.92);
	margin: 5px 0;
	border-radius: 3px;
	transition: transform .18s ease, opacity .18s ease;
}
.bgh-toggle:hover{
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.22);
}

/* Mobile SR/EN pill (rendered inside the dropdown). */
.bgh-lang{
	display:flex;
	align-items:center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid rgba(255,255,255,0.14);
	background: rgba(255,255,255,0.04);
	border-radius: 999px;
}
.bgh-lang-link{
	all: unset;
	cursor: pointer;
	display:inline-flex;
	align-items:center;
	gap: 6px;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: -0.01em;
	padding: 4px 6px;
	border-radius: 999px;
	color: #fff;
	transition: background .16s ease, transform .16s ease, opacity .16s ease;
	opacity: .9;
}
.bgh-lang-link:hover{
	opacity: 1;
	transform: translateY(-1px);
	background: rgba(255,255,255,0.06);
}
.bgh-lang-link.is-active{
	opacity: 1;
	background: rgba(126,163,240,0.18);
}
.bgh-lang-sep{ opacity: .8; font-weight: 800; }
.bgh-lang-flag{ font-size: 14px; line-height: 1; transform: translateY(-.5px); }

.bgh-lang--mobile{ display:none; }
.bgh-lang--desktop{ display:flex; }

/* ===== Polylang language switcher — variant 1b (inline pair + sliding underline) =====
   Options are <a> tags wired to real Polylang URLs; active state comes from [data-lang]
   on .langsw (set server-side). The underline .bar is centered under the active option by
   a small script in the header (exact geometry, centered for BOTH sr and en). */
.belit-glassHeader .langsw{ display:inline-flex; align-items:center; line-height:1; }
.belit-glassHeader .langsw a{ text-decoration:none; }
.belit-glassHeader .langsw .ls-opt{
	all:unset; cursor:pointer;
	display:inline-flex; align-items:center; justify-content:center;
	text-align:center; white-space:nowrap;
	transition:color .3s ease, opacity .3s ease;
}
.belit-glassHeader .ls-underline{ position:relative; display:inline-flex; gap:14px; align-items:center; }
.belit-glassHeader .ls-underline .ls-opt{ padding:2px 2px; font-size:13.5px; font-weight:700; letter-spacing:.06em;
	color:#fff; opacity:.5; }
.belit-glassHeader .langsw[data-lang="sr"] .ls-underline .ls-opt[data-l="sr"],
.belit-glassHeader .langsw[data-lang="en"] .ls-underline .ls-opt[data-l="en"]{ opacity:1; }
.belit-glassHeader .ls-underline .sep{ width:1px; height:13px; background:rgba(255,255,255,.24); }
.belit-glassHeader .ls-underline .bar{ position:absolute; bottom:-6px; left:0; width:24px; height:2px;
	background:var(--blt-accent); border-radius:2px;
	transition:transform .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1); }

/* The 1b switcher must not inherit the menu-link ::after underline. */
.belit-glassHeader .belit-switch a::after{ content:none !important; display:none !important; }

/* Mobile keyframes — sheet roll-down + item stagger (navbar 3c mobile handoff). */
@keyframes belit-m-sheetIn{
	from{ opacity:0; transform:translateY(-12px) scale(.98); clip-path:inset(0 0 100% 0 round 18px); }
	to{   opacity:1; transform:translateY(0) scale(1);       clip-path:inset(0 0 0 0 round 18px); }
}
@keyframes belit-m-itemIn{
	from{ opacity:0; transform:translateX(-10px); }
	to{   opacity:1; transform:translateX(0); }
}

/* ---------- Mobile (<= 980px): hamburger → X + roll-down "sheet" dropdown ----------
   Faithful port of navbar-3c-mobile-handoff.html. The sheet is absolute under the pill;
   the pill + header normally clip (overflow:hidden for orbs/sheen), so on mobile we open
   the overflow and hide the orbs/sheen (they would otherwise spill). Behaviour reuses the
   existing .is-open toggle + active-state JS; the sheet/items replay their animations each
   time it opens because the sheet flips display:none → flex. */
@media (max-width: 980px){
	.belit-glassHeader{ overflow: visible; padding: 12px clamp(12px, 4vw, 18px); }
	.belit-nav{ overflow: visible; padding: 8px 8px 8px 16px; gap: 12px; }
	.belit-orb, .belit-orb2, .belit-sheen{ display:none; }   /* would spill with overflow:visible */
	.belit-logo img{ height: 26px; }
	.bgh-lang--desktop{ display:none; }

	/* pill softens its corners while open, echoing the sheet below it */
	.belit-glassHeader.is-open .belit-nav{ border-radius: 18px; }

	/* hamburger button (animates into an X via .is-open) */
	.bgh-toggle{
		display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
		width:42px; height:42px; padding:0; border-radius:12px;
		background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
	}
	.bgh-toggle span{
		width:18px; height:2px; margin:0; background:#fff; border-radius:2px;
		transition:transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease;
	}
	.belit-glassHeader.is-open .bgh-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
	.belit-glassHeader.is-open .bgh-toggle span:nth-child(2){ opacity: 0; }
	.belit-glassHeader.is-open .bgh-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

	/* the roll-down sheet (holds nav rows + the SR/EN switch) */
	.belit-links{
		position:absolute;
		top: calc(100% + 10px);
		left:0; right:0;
		width: min(460px, 92vw);
		margin: 0 auto;
		z-index: 50;
		display:none;
		flex-direction:column;
		align-items:stretch;
		gap:2px;
		padding:10px;
		background: rgba(16,27,45,.97);
		border:1px solid rgba(255,255,255,.12);
		border-radius:18px;
		box-shadow:0 24px 50px rgba(0,0,0,.4);
		-webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
	}
	.belit-glassHeader.is-open .belit-links{
		display:flex;
		animation: belit-m-sheetIn .32s cubic-bezier(.22,1,.36,1) both;
	}

	/* nav rows (menu links only — NOT the language links nested in the switch) */
	.belit-glassHeader .belit-links > a,
	.belit-glassHeader .belit-links > li > a{
		width:auto; margin:0;
		display:flex; align-items:center; justify-content:space-between;
		padding:14px 16px; border-radius:12px;
		font-size:15.5px; font-weight:600; color:rgba(255,255,255,.72);
		background:transparent; border:0;
		transition:color .22s ease, background .22s ease, padding-left .28s cubic-bezier(.22,1,.36,1);
		animation: belit-m-itemIn .4s cubic-bezier(.22,1,.36,1) both;
	}
	.belit-glassHeader .belit-links > a:hover,
	.belit-glassHeader .belit-links > li > a:hover{
		color:#fff; background:rgba(126,163,240,.12); padding-left:24px; transform:none;
	}

	/* staggered entrance (replays on open — sheet flips display:none → flex) */
	.belit-glassHeader .belit-links > a:nth-child(1),
	.belit-glassHeader .belit-links > li:nth-child(1) > a{ animation-delay:.05s; }
	.belit-glassHeader .belit-links > a:nth-child(2),
	.belit-glassHeader .belit-links > li:nth-child(2) > a{ animation-delay:.10s; }
	.belit-glassHeader .belit-links > a:nth-child(3),
	.belit-glassHeader .belit-links > li:nth-child(3) > a{ animation-delay:.15s; }
	.belit-glassHeader .belit-links > a:nth-child(4),
	.belit-glassHeader .belit-links > li:nth-child(4) > a{ animation-delay:.20s; }
	.belit-glassHeader .belit-links > a:nth-child(5),
	.belit-glassHeader .belit-links > li:nth-child(5) > a{ animation-delay:.25s; }

	/* accent dot on the right of each row (::after repurposed as the dot on mobile) —
	   plain circle, just larger, marks the selected page. */
	.belit-glassHeader .belit-links > a::after,
	.belit-glassHeader .belit-links > li > a::after{
		content:""; position:static;
		width:10px; height:10px; border-radius:50%;
		background:var(--blt-accent);
		transform:none; opacity:0; flex:0 0 auto; margin-right:2px;
		transition:opacity .25s ease;
	}
	.belit-glassHeader .belit-links > a.is-active,
	.belit-glassHeader .belit-links > a[aria-current="page"],
	.belit-glassHeader .belit-links > li.current-menu-item > a{
		color:#fff; background:rgba(126,163,240,.14);
	}
	.belit-glassHeader .belit-links > a.is-active::after,
	.belit-glassHeader .belit-links > a[aria-current="page"]::after,
	.belit-glassHeader .belit-links > li.current-menu-item > a::after{ opacity:1; }

	/* SR/EN switch pinned to the sheet bottom (top-border separator, no pill chrome) */
	.bgh-lang--mobile{
		display:flex; align-items:center; justify-content:center; gap:16px;
		margin-top:8px; padding:14px 16px;
		border:0; border-top:1px solid rgba(255,255,255,.1);
		background:transparent; border-radius:0;
	}
	.bgh-lang--mobile .bgh-lang-link{
		width:auto; padding:4px 2px;
		font-size:14px; font-weight:700; letter-spacing:.06em;
		white-space:nowrap; line-height:1;
	}
	.bgh-lang--mobile .bgh-lang-flag{ display:none; }
	/* vertical divider like the desktop switcher (hide the "/" glyph) */
	.bgh-lang--mobile .bgh-lang-sep{
		flex:0 0 auto; width:1px; height:15px; margin:0; padding:0;
		background:rgba(255,255,255,.24); border-radius:1px;
		font-size:0; line-height:0; color:transparent;
	}
	/* language links: kill the leaked menu-underline; active shown via brightness */
	.belit-glassHeader .bgh-lang--mobile .bgh-lang-link::after{ content:none !important; }
}

/* Respect reduced-motion: kill the ambient animations. */
@media (prefers-reduced-motion: reduce){
	.belit-glassHeader{ animation: none; }
	.belit-orb, .belit-orb2, .belit-sheen, .belit-nav{ animation: none; }
}

/* Footer */
.belit-footer-lite{
	background: linear-gradient(180deg, #0c1830 0%, #0f1f3a 100%);
	color: rgba(255,255,255,0.75);
	border-top: 1px solid rgba(255,255,255,0.10);
}

.bf-wrap{
	width: min(1300px, 92vw);
	margin: 0 auto;
	padding: 28px 0 22px;
}

.bf-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap: 20px;
}

.bf-logo img{
	height: 26px;
	width: auto;
	opacity: .95;
}

.belit-footer-lite .bf-nav a{
	all: unset;
	cursor: pointer;
	font-size: 14px;
	color: rgba(255,255,255,0.72);
	margin-left: 20px;
	transition: color .15s ease;
	white-space: nowrap;
}

.belit-footer-lite .bf-nav a:hover{
	color: rgba(255,255,255,0.95);
}

.bf-copy{
	margin-top: 14px;
	font-size: 13px;
	color: rgba(255,255,255,0.55);
}

@media (max-width: 820px){
	.bf-row{
		flex-direction: column;
		align-items:flex-start;
		gap: 14px;
	}
	.belit-footer-lite .bf-nav{
		display:flex;
		flex-wrap: wrap;
		gap: 10px 18px;
	}
	.belit-footer-lite .bf-nav a{
		margin-left: 0;
	}
}

/* Main shell */
.blt-main {
	min-height: 60vh;
}
