/* ==============================================================
     # Header logo (img/vetswise): one height for every header state
=================================================================== */

nav.navbar .navbar-brand img.logo {
	width: auto;
	height: 44px;
	max-width: none;
}

nav.navbar.sticked .navbar-brand img.logo {
	height: 40px;
}

#navbar-menu-responsive > img {
	width: auto;
	height: 36px;
}

/* Room between the logo and the menu. The Bulgarian bar is full at every desktop width,
   so the space comes out of the menu links' side padding */

/* Below 1200px the theme's 960px container can't hold the Bulgarian menu, and the
   language switch and CTA wrapped to a second row: a full-width, more compact bar */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
	nav.navbar .container {
		max-width: none;
		padding-left: 20px;
		padding-right: 20px;
	}

	nav.navbar .navbar-brand img.logo,
	nav.navbar.sticked .navbar-brand img.logo {
		height: 36px;
	}

	nav.navbar .navbar-header {
		margin-right: 16px;
	}

	nav.navbar.validnavs.navbar-default .navbar-nav > li > a {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.navbar .attr-right .vw-lang--bar {
		margin-right: 10px;
	}

	.navbar .attr-right .attr-nav li.button a,
	.navbar .attr-right .attr-nav li.button.secondary a {
		height: 44px;
		padding: 0 18px !important;
	}

	.navbar .attr-right .attr-nav li.button a::after {
		display: none;
	}
}

@media only screen and (min-width: 1024px) and (max-width: 1099px) {
	nav.navbar.validnavs.navbar-default .navbar-nav > li > a {
		padding-left: 5px !important;
		padding-right: 5px !important;
		font-size: 13px;
	}
}

@media only screen and (min-width: 1200px) {
	nav.navbar .navbar-header {
		margin-right: 24px;
	}
}

@media only screen and (min-width: 1200px) and (max-width: 1350px) {
	nav.navbar.validnavs.navbar-default .navbar-nav > li > a {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}

@media only screen and (min-width: 1351px) {
	nav.navbar.validnavs ul.nav > li > a {
		padding-left: 11px;
		padding-right: 11px;
	}
}

@media only screen and (max-width: 991px) {
	nav.navbar .navbar-brand img.logo,
	nav.navbar.sticked .navbar-brand img.logo {
		height: 38px;
	}
}

/* ==============================================================
     # Header CTA: gradient button on the white bar, white button over the hero
=================================================================== */

.navbar .attr-right .attr-nav li.button a,
.navbar .attr-right .attr-nav li.button.secondary a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 48px;
	padding: 0 24px !important;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(90deg, #5153ff 0%, #7b3df0 50%, #a60599 100%) 0 0 / 200% 100% !important;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 12px 24px -12px rgba(81, 83, 255, 0.85);
	transition: background-position 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

/* The theme's hover sweep is replaced by an arrow */
.navbar .attr-right .attr-nav li.button a::after {
	content: "\f061";
	position: static;
	width: auto;
	height: auto;
	background: none;
	font-family: "Font Awesome 5 Pro";
	font-size: 13px;
	font-weight: 900;
	transform: none;
	transition: transform 0.25s ease;
}

.navbar .attr-right .attr-nav li.button a:hover,
.navbar .attr-right .attr-nav li.button a:focus-visible {
	background-position: 100% 0 !important;
	color: #fff;
	box-shadow: 0 16px 30px -12px rgba(166, 5, 153, 0.75);
	transform: translateY(-1px);
}

.navbar .attr-right .attr-nav li.button a:hover::after,
.navbar .attr-right .attr-nav li.button a:focus-visible::after {
	transform: translateX(3px);
}

/* Over the hero (transparent header); the theme styles this state as an outlined border button */
nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a,
nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button.border-btn > a {
	border: 0;
	background: #fff !important;
	color: #5153ff;
	box-shadow: 0 12px 24px -12px rgba(20, 10, 80, 0.6);
}

nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button.border-btn > a::after {
	background: none;
}

nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a:hover,
nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a:focus-visible {
	background: #fff !important;
	color: #a60599;
}

/* "Как се прави?" opens the YouTube channel: a YouTube icon after it, white over the hero */

nav.navbar.validnavs ul.nav > li > a[href*="youtube.com"]::after {
	content: "\f167";
	margin-left: 7px;
	color: #ff0000;
	font-family: "Font Awesome 5 Brands";
	font-weight: 400;
}

nav.navbar.validnavs.no-background:not(.sticked) ul.nav > li > a[href*="youtube.com"]::after {
	color: inherit;
}

/* ==============================================================
     # Language switcher (template-parts/vw-lang-switch.php): the codes in a pill,
     the current one raised. Beside the CTA on desktop, in the menu drawer on phones
=================================================================== */

.vw-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(81, 83, 255, 0.08);
	vertical-align: middle;
}

.vw-lang a {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 34px;
	padding: 0 8px;
	border-radius: 9px;
	color: #55576e;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vw-lang a:hover,
.vw-lang a:focus-visible {
	color: #5153ff;
}

.vw-lang a.is-current {
	background: #fff;
	color: #5153ff;
	box-shadow: 0 4px 12px -6px rgba(41, 37, 140, 0.45);
}

.navbar .attr-right .vw-lang--bar {
	margin-right: 14px;
}

.navbar .attr-right {
	display: flex;
	align-items: center;
}

/* Over the hero (transparent header) */
nav.navbar.validnavs.no-background:not(.sticked) .vw-lang--bar {
	background: rgba(255, 255, 255, 0.16);
}

nav.navbar.validnavs.no-background:not(.sticked) .vw-lang--bar a {
	color: rgba(255, 255, 255, 0.86);
}

nav.navbar.validnavs.no-background:not(.sticked) .vw-lang--bar a:hover,
nav.navbar.validnavs.no-background:not(.sticked) .vw-lang--bar a:focus-visible {
	color: #fff;
}

nav.navbar.validnavs.no-background:not(.sticked) .vw-lang--bar a.is-current {
	background: #fff;
	color: #5153ff;
}

/* ==============================================================
     # Mobile header (up to 1023px): a sticky bar with the logo, the CTA and the
     menu button, and the menu drawer with the CTA and contacts at the bottom.
     js/vw-header.js adds the bar shadow on scroll and locks the page while the drawer is open
=================================================================== */

.vw-drawer-foot {
	display: none;
}

@media only screen and (max-width: 1023px) {
	/* The theme gives the wrapper the viewport height; sticky needs it as tall as the page */
	.wrapper {
		height: auto;
		min-height: 100%;
	}

	header {
		position: sticky;
		top: 0;
		z-index: 1000;
		background: #fff;
		transition: box-shadow 0.25s ease;
	}

	header.vw-scrolled {
		box-shadow: 0 12px 30px -20px rgba(41, 37, 140, 0.5);
	}

	html.vw-menu-open {
		overflow: hidden;
	}

	/* Bar: logo on the left, the CTA and the menu button on the right */
	nav.navbar.validnavs > .container {
		flex-wrap: nowrap;
		gap: 10px;
		min-height: 68px;
	}

	nav.navbar.validnavs .navbar-header {
		display: contents;
	}

	nav.navbar.validnavs a.navbar-brand {
		position: static;
		order: 1;
		margin-right: auto;
		padding: 0;
		transform: none;
	}

	nav.navbar .navbar-brand img.logo,
	nav.navbar.sticked .navbar-brand img.logo {
		height: 34px;
	}

	nav.navbar.validnavs .attr-right {
		display: flex !important;
		flex: none;
		order: 2;
		align-items: center;
		margin: 0;
	}

	nav.navbar.validnavs .attr-right .attr-nav {
		display: block;
		margin: 0;
	}

	/* The bar has no room for the language switcher: it is in the drawer */
	nav.navbar.validnavs .attr-right .vw-lang--bar {
		display: none;
	}

	.vw-drawer-foot .vw-lang--drawer {
		align-self: flex-start;
		margin-bottom: 14px;
	}

	nav.navbar.validnavs .attr-right .attr-nav > ul {
		display: flex;
		margin: 0;
		padding: 0;
	}

	nav.navbar.validnavs .attr-right .attr-nav > ul > li.button {
		display: block;
		margin: 0;
		padding: 0;
	}

	nav.navbar.validnavs .attr-right .attr-nav > ul > li.button > a,
	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a,
	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button.border-btn > a {
		height: 44px;
		padding: 0 16px !important;
		border-radius: 12px;
		background: linear-gradient(90deg, #5153ff 0%, #7b3df0 50%, #a60599 100%) 0 0 / 200% 100% !important;
		color: #fff;
		font-size: 14px;
		box-shadow: 0 10px 20px -12px rgba(81, 83, 255, 0.85);
	}

	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a:hover,
	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a:focus-visible {
		background-position: 100% 0 !important;
		color: #fff;
	}

	nav.navbar.validnavs .attr-right .attr-nav li.button a::after {
		display: none;
	}

	nav.navbar.validnavs .navbar-header > .navbar-toggle {
		display: grid;
		flex: none;
		place-items: center;
		order: 3;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: rgba(81, 83, 255, 0.08);
		color: #5153ff;
		font-size: 18px;
		line-height: 1;
	}

	nav.navbar.validnavs .navbar-header > .navbar-toggle i {
		margin: 0;
		color: inherit;
	}

	/* Drawer: slides in from the right, the side of the menu button */
	nav.navbar.validnavs.mobile-sidenav .navbar-collapse.collapse.collapse-mobile {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		right: 0;
		left: auto;
		width: min(86vw, 380px);
		height: 100%;
		min-height: 0;
		max-height: none;
		padding: 20px 20px 28px;
		overflow-y: auto !important;
		background: #fff;
		box-shadow: -24px 0 60px -24px rgba(18, 8, 70, 0.45);
		transform: translateX(104%);
		visibility: hidden;
		animation: none;
		transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
		z-index: 9999;
	}

	nav.navbar.validnavs.mobile-sidenav .navbar-collapse.collapse.collapse-mobile.show {
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		margin: 0;
		border: 0;
		transform: none;
		visibility: visible;
		transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	}

	nav.navbar.validnavs #navbar-menu-responsive > img {
		display: block;
		flex: none;
		align-self: flex-start;
		width: auto;
		height: 34px;
		margin: 5px 0 30px 2px;
	}

	nav.navbar.validnavs #navbar-menu-responsive > .navbar-toggle {
		display: grid;
		place-items: center;
		top: 16px;
		right: 16px;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 12px;
		background: #f3f3fb;
		color: var(--color-heading);
		line-height: 1;
	}

	nav.navbar.validnavs #navbar-menu-responsive > .navbar-toggle i {
		font-size: 17px;
		font-weight: 400;
	}

	/* Menu: rounded rows, the current page tinted */
	nav.navbar.validnavs #navbar-menu-responsive ul.nav {
		display: flex;
		flex-direction: column;
		gap: 2px;
		margin: 0;
		padding: 0 !important;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px !important;
		border: 0 !important;
		border-radius: 12px;
		color: var(--color-heading) !important;
		font-size: 17px;
		font-weight: 600;
		line-height: 1.3;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li > a:hover,
	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li > a:focus-visible {
		background: #f6f7fc;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li.current-menu-item > a,
	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li.current-menu-ancestor > a {
		background: rgba(81, 83, 255, 0.08);
		color: #5153ff !important;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav > li > a[href*="youtube.com"]::after {
		margin: 0;
		color: #ff0000;
		font-size: 20px;
	}

	/* Submenu: a chevron that turns over, the items indented on a thin line */
	nav.navbar.validnavs #navbar-menu-responsive li.dropdown > a.dropdown-toggle::before,
	nav.navbar.validnavs #navbar-menu-responsive li.dropdown.on > a.dropdown-toggle::before {
		order: 2;
		float: none;
		margin: 0;
		color: #85879c;
		content: "\f107";
		font-size: 18px;
		transition: transform 0.25s ease;
	}

	nav.navbar.validnavs #navbar-menu-responsive li.dropdown.on > a.dropdown-toggle::before {
		transform: rotate(180deg);
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav li.dropdown > ul.dropdown-menu {
		position: static !important;
		top: auto !important;
		float: none;
		width: auto;
		min-width: 0;
		margin: 4px 0 8px 16px !important;
		padding: 2px 0 2px 12px;
		border: 0;
		border-left: 2px solid rgba(81, 83, 255, 0.15);
		border-radius: 0;
		background: none;
		box-shadow: none !important;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav li.dropdown > ul.dropdown-menu li > a {
		display: block;
		padding: 10px 12px !important;
		border: 0 !important;
		border-radius: 10px;
		color: #55576e !important;
		font-size: 15px;
		font-weight: 500;
		line-height: 1.35;
	}

	nav.navbar.validnavs #navbar-menu-responsive ul.nav li.dropdown > ul.dropdown-menu li.current-menu-item > a {
		background: rgba(81, 83, 255, 0.08) !important;
		color: #5153ff !important;
	}

	/* Bottom: the CTA and the contacts */
	.vw-drawer-foot {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-top: auto;
		padding-top: 28px;
	}

	.vw-drawer-foot .vw-drawer-foot__cta {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		height: 52px;
		margin-bottom: 12px;
		border-radius: 14px;
		background: linear-gradient(90deg, #5153ff 0%, #7b3df0 50%, #a60599 100%);
		color: #fff;
		font-size: 16px;
		font-weight: 600;
		box-shadow: 0 14px 28px -14px rgba(81, 83, 255, 0.85);
	}

	.vw-drawer-foot .vw-drawer-foot__cta:hover,
	.vw-drawer-foot .vw-drawer-foot__cta:focus-visible {
		color: #fff;
	}

	.vw-drawer-foot .vw-drawer-foot__cta i {
		font-size: 14px;
	}

	.vw-drawer-foot .vw-drawer-foot__link {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 6px 2px;
		color: var(--color-heading);
		font-size: 15px;
		font-weight: 500;
		text-transform: none;
	}

	.vw-drawer-foot .vw-drawer-foot__link span {
		display: grid;
		place-items: center;
		flex: none;
		width: 38px;
		height: 38px;
		border-radius: 10px;
		background: rgba(81, 83, 255, 0.08);
		color: #5153ff;
		font-size: 14px;
	}

	.overlay-screen.opened {
		z-index: 9998;
		background: rgba(14, 10, 46, 0.55);
		opacity: 1;
		-webkit-backdrop-filter: blur(3px);
		backdrop-filter: blur(3px);
	}
}

/* Logged in: below the admin bar, which scrolls away on phones */
@media only screen and (min-width: 601px) and (max-width: 1023px) {
	.admin-bar header {
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

/* Narrow phones: a smaller logo and CTA so the bar fits */
@media only screen and (max-width: 374px) {
	nav.navbar.validnavs > .container {
		gap: 8px;
	}

	nav.navbar .navbar-brand img.logo,
	nav.navbar.sticked .navbar-brand img.logo {
		height: 30px;
	}

	nav.navbar.validnavs .attr-right .attr-nav > ul > li.button > a,
	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button > a,
	nav.navbar.validnavs.no-background .attr-right .attr-nav > ul > li.button.border-btn > a {
		padding: 0 12px !important;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	nav.navbar.validnavs.mobile-sidenav .navbar-collapse.collapse.collapse-mobile,
	nav.navbar.validnavs.mobile-sidenav .navbar-collapse.collapse.collapse-mobile.show {
		transition: none;
	}
}
