/*
 * Professional header for the Neve header builder. Loaded site-wide only when
 * "Professional header" is enabled in Appearance → Vatsa Homepage; every rule is
 * scoped to body.vh-pro-header and works by overriding Neve's own CSS variables.
 */

body.vh-pro-header .hfg_header .header-main {
	--bgimage: none;
	--overlaycolor: transparent;
	--bgoverlayopacity: 0;
	--bgcolor: #fff;
	--color: #292521;
	--rowbcolor: #eae2d8;
	background: #fff;
	border-top: 3px solid #681c2b;
	border-bottom: 1px solid #eae2d8;
}

body.vh-pro-header .hfg_header .header-main .header--row-inner {
	background: #fff;
	background-image: none;
}

body.vh-pro-header .hfg_header .header-main .header--row-inner::before,
body.vh-pro-header .hfg_header .header-main .header--row-inner::after {
	display: none;
}

body.vh-pro-header .hfg_header .header-main .row--wrapper {
	min-height: 76px;
	align-items: center;
}

/* Logo and optional site title */

body.vh-pro-header .hfg_header .builder-item--logo {
	--maxwidth: 60px;
	--padding: 8px 0;
	--color: #681c2b;
}

body.vh-pro-header .hfg_header .builder-item--logo img {
	border-radius: 50%;
}

/* When the site title is shown with the logo: logo first, title on one line, tagline hidden. */
body.vh-pro-header .hfg_header .builder-item--logo .title-with-logo {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	text-align: left;
}

body.vh-pro-header .hfg_header .builder-item--logo .nv-title-tagline-wrap {
	white-space: nowrap;
	text-align: left;
}

body.vh-pro-header .hfg_header .builder-item--logo .nv-title-tagline-wrap small {
	display: none;
}

body.vh-pro-header .hfg_header .builder-item--logo .site-title {
	margin: 0;
	white-space: nowrap;
	font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #681c2b;
}

body.vh-pro-header .hfg_header .builder-item--logo .site-description {
	font-size: .8125rem;
	color: #746c65;
}

/* Primary menu */

body.vh-pro-header .hfg_header .builder-item--primary-menu {
	--color: #292521;
	--hovercolor: #681c2b;
	--hovertextcolor: #681c2b;
	--activecolor: #681c2b;
	--spacing: 24px;
	--fontsize: 15.5px;
	--fontweight: 600;
	--lineheight: 1.6;
	--height: 76px;
}

body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li > .wrap > a {
	position: relative;
	font-family: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
	color: #292521;
	transition: color .2s ease;
}

body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li > .wrap > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: #d97724;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li:hover > .wrap > a,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li:focus-within > .wrap > a,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li.nv-active > .wrap > a,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li.current-menu-ancestor > .wrap > a {
	color: #681c2b;
}

body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li:hover > .wrap > a::after,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li:focus-within > .wrap > a::after,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li.nv-active > .wrap > a::after,
body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li.current-menu-ancestor > .wrap > a::after {
	transform: scaleX(1);
}

body.vh-pro-header .hfg_header .nav-menu-primary a:focus-visible {
	outline: 2px solid #681c2b;
	outline-offset: 4px;
	border-radius: 4px;
}

/* Dropdowns */

body.vh-pro-header .hfg_header .nav-menu-primary .sub-menu {
	min-width: 220px;
	padding: 8px;
	border: 1px solid #eae2d8;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px -12px rgba(41, 37, 33, .22);
}

body.vh-pro-header .hfg_header .nav-menu-primary .sub-menu li > .wrap > a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	color: #292521;
}

body.vh-pro-header .hfg_header .nav-menu-primary .sub-menu li > .wrap > a:hover,
body.vh-pro-header .hfg_header .nav-menu-primary .sub-menu li > .wrap > a:focus-visible {
	background: #fff9f0;
	color: #681c2b;
}

/* Desktop search */

body.vh-pro-header .hfg_header .builder-item--header_search {
	--height: 42px;
	--formfieldborderwidth: 1px;
	--formfieldborderradius: 8px;
	--formfieldbordercolor: #eae2d8;
	--formfieldbgcolor: #fff9f0;
	--formfieldcolor: #292521;
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-form {
	max-width: 260px;
	margin-left: auto;
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-field {
	border: 1px solid #eae2d8;
	border-radius: 8px;
	background: #fff9f0;
	color: #292521;
	transition: border-color .2s ease, background-color .2s ease;
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-field:focus {
	border-color: #681c2b;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(104, 28, 43, .12);
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-field::placeholder {
	color: #746c65;
	opacity: 1;
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-submit {
	border: 0;
	background: transparent;
}

body.vh-pro-header .hfg_header .builder-item--header_search .search-submit .nv-icon svg {
	fill: #681c2b;
}

/* Mobile row: logo left, search + menu toggle right */

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .row--wrapper {
	min-height: 64px;
}

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .builder-item--logo {
	--maxwidth: 48px;
}

/* Neve puts the logo and the toggle in the same slot; flatten the slots so the
   row reads: logo · · · search, toggle. */
body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .hfg-slot {
	display: contents;
}

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .row--wrapper {
	display: flex;
	gap: 8px;
}

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .builder-item:has(.builder-item--logo) {
	order: 0;
	margin-right: auto;
}

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .builder-item:has(.builder-item--header_search_responsive) {
	order: 1;
}

body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .builder-item:has(.builder-item--nav-icon) {
	order: 2;
}

body.vh-pro-header .hfg_header .builder-item--nav-icon {
	--padding: 0;
}

body.vh-pro-header .hfg_header .navbar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid #eae2d8 !important;
	border-radius: 8px;
	background: #fff;
}

body.vh-pro-header .hfg_header .navbar-toggle .icon-bar {
	background-color: #681c2b;
}

body.vh-pro-header .hfg_header .builder-item--header_search_responsive .nv-icon svg {
	fill: #681c2b;
}

/* Slide-out mobile menu */

body.vh-pro-header .header-menu-sidebar-bg {
	--color: #292521;
	--bgcolor: #fff;
}

body.vh-pro-header .header-menu-sidebar .primary-menu-ul > li > .wrap > a {
	padding-block: 12px;
	font-size: 17px;
	font-weight: 600;
}

body.vh-pro-header .header-menu-sidebar .primary-menu-ul > li {
	border-bottom: 1px solid #eae2d8;
}

body.vh-pro-header .header-menu-sidebar .nv-active > .wrap > a {
	color: #681c2b;
}

/* Laptops: keep logo, title, menu and search on one line. */
@media (min-width: 960px) and (max-width: 1279px) {
	body.vh-pro-header .hfg_header .builder-item--primary-menu {
		--spacing: 14px;
		--fontsize: 14.5px;
	}

	body.vh-pro-header .hfg_header .builder-item--logo .site-title {
		font-size: 1.1875rem;
	}

	body.vh-pro-header .hfg_header .builder-item--header_search .search-form {
		max-width: 190px;
	}
}

/* Narrow laptops: logo only, so all menu items fit (the logo still names the site). */
@media (min-width: 960px) and (max-width: 1099px) {
	body.vh-pro-header .hfg_header .builder-item--logo .nv-title-tagline-wrap {
		display: none;
	}
}

/* Phones: one row, title shrinks instead of pushing the menu button down. */
@media (max-width: 959px) {
	body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .row--wrapper {
		flex-wrap: nowrap;
	}

	body.vh-pro-header .hfg_header .header-main[data-show-on="mobile"] .builder-item:has(.builder-item--logo) {
		min-width: 0;
		flex: 1 1 auto;
	}

	body.vh-pro-header .hfg_header .builder-item--logo .title-with-logo {
		gap: 10px;
	}

	body.vh-pro-header .hfg_header .builder-item--logo .site-title {
		font-size: 1.125rem;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.vh-pro-header .hfg_header .builder-item--logo .nv-title-tagline-wrap {
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li > .wrap > a,
	body.vh-pro-header .hfg_header .nav-menu-primary .primary-menu-ul > li > .wrap > a::after {
		transition: none;
	}
}
