/* Webs Insights Glass Header Widget */
.wigh {
	/* Defaults - Elementor panel inhe override karta hai */
	--wigh-bg: rgba(255,255,255,.12);
	--wigh-border: rgba(255,255,255,.25);
	--wigh-bw: 1px;
	--wigh-blur: 16px;
	--wigh-sat: 160%;
	--wigh-radius: 999px;
	--wigh-gap: 28px;
	--wigh-top: 16px;

	position: fixed;
	top: var(--wigh-top);
	left: 0;
	right: 0;
	z-index: 9990;
	padding: 0 16px;
	box-sizing: border-box;
	pointer-events: none; /* sirf bar clickable, side ka gap nahi */
	text-align: left;
}
.wigh *, .wigh *::before, .wigh *::after { box-sizing: border-box; }
.admin-bar .wigh { top: calc(var(--wigh-top) + 32px); }
@media (max-width: 782px) { .admin-bar .wigh { top: calc(var(--wigh-top) + 46px); } }

/* Smart hide: niche scroll par header upar slide hoke chhup jata hai */
.wigh[data-wigh-smart] { transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease; will-change: transform; }
.wigh[data-wigh-smart].is-hidden { transform: translateY(calc(-100% - var(--wigh-top) - 90px)); opacity: 0; }
.wigh[data-wigh-smart].is-hidden .wigh__bar { pointer-events: none; }

/* Elementor editor mein overlap se bachne ke liye normal flow */
.elementor-editor-active .wigh { position: relative !important; top: 0 !important; }

.wigh__bar {
	pointer-events: auto;
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	min-height: 64px;
	margin: 0 auto;
	padding: 0 24px;
	background: var(--wigh-bg);
	-webkit-backdrop-filter: blur(var(--wigh-blur)) saturate(var(--wigh-sat));
	backdrop-filter: blur(var(--wigh-blur)) saturate(var(--wigh-sat));
	border: var(--wigh-bw) solid var(--wigh-border);
	border-radius: var(--wigh-radius);
	font-size: 15px;
	line-height: 1.2;
}

/* Logo (left) */
.wigh__logo {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.wigh__logo-img {
	display: block;
	width: 140px;
	max-width: 100%;
	height: auto;
	max-height: 80px;
	object-fit: contain;
}
.wigh__logo-text { font-weight: 700; font-size: 20px; letter-spacing: .02em; color: #fff; }

/* Menu (center) */
.wigh__nav { justify-self: center; }
.wigh__menu, .wigh__menu ul { list-style: none; margin: 0; padding: 0; }
.wigh__menu { display: flex; align-items: center; gap: var(--wigh-gap); }
.wigh__menu li { position: relative; margin: 0; padding: 0; }
.wigh__menu a {
	display: block;
	padding: 8px 2px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	transition: color .2s ease, opacity .2s ease;
}
.wigh__menu a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

/* Dropdown (WordPress menu ke sub-items) */
.wigh__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 190px;
	padding: 8px;
	margin-top: 10px;
	transform: translate(-50%, 8px);
	opacity: 0;
	visibility: hidden;
	background: var(--wigh-bg);
	-webkit-backdrop-filter: blur(var(--wigh-blur)) saturate(var(--wigh-sat));
	backdrop-filter: blur(var(--wigh-blur)) saturate(var(--wigh-sat));
	border: var(--wigh-bw) solid var(--wigh-border);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wigh__menu li:hover > .sub-menu,
.wigh__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.wigh__menu .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.wigh__menu .sub-menu a:hover { background: rgba(255,255,255,.1); }

/* Right side: button + hamburger */
.wigh__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.wigh__cta {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	color: #111;
	background: #fff;
	padding: 10px 20px;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}

/* Hamburger: show/hide breakpoint widget ke inline CSS se aata hai */
.wigh__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	margin: 0;
	background: transparent !important;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wigh__toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: #fff;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.wigh.is-open .wigh__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wigh.is-open .wigh__toggle span:nth-child(2) { opacity: 0; }
.wigh.is-open .wigh__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.wigh__bar, .wigh__menu .sub-menu { background: rgba(20, 20, 30, .85); }
}
@media (prefers-reduced-motion: reduce) {
	.wigh, .wigh * { transition: none !important; }
}
