/* Site header menu, footer link columns and the mobile "बायोडाटा बनवा" bar (class-site-nav.php).
   Loaded in <head> on every public page (small, so WordPress prints it inline). Panels open when their button has
   aria-expanded="true" (nav.js flips it); on desktop also on hover, and on focus while nav.js has not run. */

.lb-nav { --lb-nav-text: #2A1A14; --lb-nav-accent: #7B1E2E; --lb-nav-gold: #B8862B; --lb-nav-line: #EADFD3; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-family: Mukta, system-ui, sans-serif; font-size: 16px; line-height: 1.4; }
.lb-nav ul { list-style: none; margin: 0; padding: 0; }
.lb-nav a { text-decoration: none; -webkit-tap-highlight-color: transparent; }
.lb-nav button { -webkit-tap-highlight-color: transparent; }
.lb-nav__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb-nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: stronger than the theme's bare button / button:hover reset. */
.lb-nav .lb-nav__toggle,
.lb-nav .lb-nav__burger { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--lb-nav-text); font: inherit; font-weight: 600; cursor: pointer; }
.lb-nav .lb-nav__toggle:hover,
.lb-nav .lb-nav__toggle:focus,
.lb-nav .lb-nav__burger:hover,
.lb-nav .lb-nav__burger:focus { background: #FFF7EC; color: var(--lb-nav-accent); }
.lb-nav .lb-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lb-nav .lb-nav__burger svg { width: 24px; height: 24px; }
.lb-nav a:focus-visible,
.lb-nav button:focus-visible { outline: 2px solid var(--lb-nav-accent); outline-offset: 2px; }

.lb-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--lb-nav-text); font-weight: 600; }
.lb-nav__link:hover, .lb-nav__link[aria-current="page"] { color: var(--lb-nav-accent); }
.lb-nav .lb-nav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--lb-nav-accent); color: #FFFDF9; font-weight: 600; white-space: nowrap; }
.lb-nav .lb-nav__cta:hover, .lb-nav .lb-nav__cta:focus { background: #64172A; color: #FFFDF9; }

.lb-nav__panel { display: none; background: #FFFDF9; }
.lb-nav__toggle[aria-expanded="true"] + .lb-nav__panel { display: block; }
.lb-nav__head { margin: 0 0 4px; padding: 0 10px; color: #6B5A50; font-size: 14px; font-weight: 600; }
.lb-nav__panel a { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 10px; border-radius: 8px; color: var(--lb-nav-text); }
.lb-nav__panel a:hover, .lb-nav__panel a[aria-current="page"] { background: #FFF7EC; color: var(--lb-nav-accent); }
.lb-nav__panel .lb-nav__all { margin-top: 6px; color: var(--lb-nav-accent); font-weight: 600; }
.lb-nav__desc { display: block; color: #6B5A50; font-size: 14px; }

/* Phones and tablets: CTA + menu button in the bar, the menu opens as a panel under the header. */
@media (max-width: 1024px) {
	.lb-header-bar { position: relative; }
	.elementor-widget-lagnacha_site_nav { position: static; }
	.lb-nav .lb-nav__cta { order: 1; padding: 8px 14px; }
	.lb-nav .lb-nav__burger { order: 2; padding: 10px; }
		.lb-header-bar.e-con { --gap: 8px; --column-gap: 8px; }
	.lb-nav .lb-nav__menu { display: none; position: absolute; z-index: 100; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 16px 16px; border-bottom: 1px solid var(--lb-nav-line); background: #FFFDF9; box-shadow: 0 8px 16px rgba(42, 26, 20, .08); }
	.lb-nav__burger[aria-expanded="true"] + .lb-nav__menu { display: block; }
	html:not(.lb-nav-js) .lb-nav:focus-within .lb-nav__menu { display: block; }
	.lb-nav__item { border-bottom: 1px solid var(--lb-nav-line); }
	.lb-nav__item:last-child { border-bottom: 0; }
	.lb-nav .lb-nav__toggle, .lb-nav__link { justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 4px; }
	.lb-nav .lb-nav__toggle:hover, .lb-nav .lb-nav__toggle:focus { background: transparent; }
	.lb-nav__panel { padding: 0 0 12px; }
	.lb-nav__col + .lb-nav__col { margin-top: 10px; }
	.lb-nav__panel a { min-height: 44px; }
}
@media (max-width: 767px) {
	.lb-header-bar .lb-logo--header .lb-logo__img { width: clamp(150px, calc(100vw - 215px), 261px); height: auto; }
	/* Site Logo widget: max-width beats the widget's fixed Elementor width, so the logo shrinks instead of sliding
	   under the CTA. 215px = side padding + gap + CTA + menu button. */
	.lb-header-bar .lb-logo-eager .hfe-site-logo-img { max-width: clamp(120px, calc(100vw - 215px), 261px); height: auto; }
}
@media (max-width: 400px) {
	.lb-nav { gap: 4px; }
	.lb-nav .lb-nav__cta { padding: 8px 10px; font-size: 15px; }
	/* Smaller CTA here: 190px keeps the logo ≥ 28px tall at 375px. */
	.lb-header-bar .lb-logo-eager .hfe-site-logo-img { max-width: max(110px, calc(100vw - 190px)); }
}

/* Desktop: one row; panels drop down under their button. */
@media (min-width: 1025px) {
	.lb-nav .lb-nav__burger { display: none; }
	.lb-nav__menu { display: flex; align-items: center; gap: 4px; }
	.lb-nav__item { position: relative; }
	.lb-nav__item--mega { position: static; }
	.lb-nav__panel { position: absolute; z-index: 100; top: calc(100% + 8px); left: 0; width: 320px; padding: 14px; border: 1px solid var(--lb-nav-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(42, 26, 20, .08); }
	.lb-nav__item--mega > .lb-nav__panel { left: auto; right: 0; width: min(900px, calc(100vw - 32px)); padding: 18px; }
	.lb-nav__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.lb-nav__item--mega .lb-nav__all { justify-content: flex-end; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--lb-nav-line); border-radius: 0; }
	.lb-nav__item:not(.is-closed):hover > .lb-nav__panel { display: block; }
	html:not(.lb-nav-js) .lb-nav__item:focus-within > .lb-nav__panel { display: block; }
	/* Hover gap between button and panel. */
	.lb-nav__item:not(.lb-nav__item--mega) > .lb-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
/* The mega panel hangs from the widget; the widget box is the hover bridge. */
@media (min-width: 1025px) {
	.elementor-widget-lagnacha_site_nav { position: relative; }
	.lb-nav__item--mega > .lb-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}

/* ---- Footer link columns (Site_Nav::render_footer_links) on the dark footer ---- */
.lb-foot { font-family: Mukta, system-ui, sans-serif; }
.lb-foot__title { margin: 0 0 6px; color: #FFFDF9; font-size: 1.0625rem; font-weight: 600; }
.lb-foot ul { list-style: none; margin: 0; padding: 0; }
.lb-foot a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; color: #EADFD3; text-decoration: none; }
.lb-foot a:hover, .lb-foot a:focus-visible { color: #FFFDF9; text-decoration: underline; text-underline-offset: .15em; }
.lb-foot a:focus-visible { outline: 2px solid #FFFDF9; outline-offset: 2px; }

/* ---- Mobile "बायोडाटा बनवा" bar on guides and landing pages ---- */
.lb-stickycta { display: none; }
@media (max-width: 767px) {
	.lb-stickycta { display: block; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #EADFD3; background: #FFFDF9; transform: translateY(110%); transition: transform .2s ease; }
	.lb-stickycta.is-shown { transform: none; }
	.lb-stickycta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: #7B1E2E; color: #FFFDF9; font: 600 17px/1.3 Mukta, system-ui, sans-serif; text-decoration: none; }
	.lb-stickycta a:focus-visible { outline: 2px solid #2A1A14; outline-offset: 2px; }
	body.lb-has-stickycta { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
	.lb-stickycta { transition: none; }
}
