/* =========================================================
   DR VIVEK - HEADER
========================================================= */

:root {
	--header-height: 92px;
	--header-brand: #a9003d;
	--header-brand-dark: #850030;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
	position: fixed;
	top: 0;
	left: 0;

	z-index: 9999;

	width: 100%;
	height: var(--header-height);

	background: transparent;

	border: 0;
	box-shadow: none;

	transition:
		background-color 0.3s ease,
		box-shadow 0.3s ease,
		backdrop-filter 0.3s ease;
}


/* White header only after scroll */

.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.96);

	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);

	box-shadow:
		0 7px 28px rgba(0, 0, 0, 0.07);
}


/* WordPress admin bar */

body.admin-bar .site-header {
	top: 32px;
}


/* =========================================================
   INNER CONTAINER
========================================================= */

.site-header__inner {
	width: min(
		calc(100% - 110px),
		1290px
	);

	height: 100%;

	margin-inline: auto;

	display: grid;

	grid-template-columns:
		310px
		1fr
		280px;

	align-items: center;

	gap: 25px;
}


/* =========================================================
   LOGO
========================================================= */

.site-header__brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}


.site-header__logo-link {
	display: inline-flex;
	align-items: center;

	line-height: 0;

	text-decoration: none;
}


.site-header__logo {
	display: block;

	width: auto;
	height: 61px;

	max-width: 300px;

	object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-navigation {
	height: 100%;

	display: flex;
	align-items: center;
	justify-content: center;
}


.primary-menu {
	height: 100%;

	display: flex;
	align-items: center;
	justify-content: center;

	gap: 38px;

	margin: 0;
	padding: 0;

	list-style: none;
}


.primary-menu > li {
	position: relative;

	height: 100%;

	display: flex;
	align-items: center;
}


.primary-menu > li > a {
	position: relative;

	height: 100%;

	display: flex;
	align-items: center;

	padding-inline: 1px;

	color: #252525;

	font-size: 15px;
	font-weight: 500;
	line-height: 1;

	text-decoration: none;

	white-space: nowrap;

	transition:
		color 0.22s ease;
}


.primary-menu > li > a:hover {
	color: var(--header-brand);
}


.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-ancestor > a {
	color: var(--header-brand);
}


/* Active underline */

.primary-menu > .current-menu-item > a::after,
.primary-menu > .current_page_item > a::after,
.primary-menu > .current-menu-ancestor > a::after {
	content: "";

	position: absolute;

	left: 50%;
	bottom: 17px;

	width: calc(100% + 10px);
	height: 2px;

	background: var(--header-brand);

	transform: translateX(-50%);
}


/* =========================================================
   SERVICES DROPDOWN ARROW
========================================================= */

.primary-menu .menu-item-has-children > a {
	gap: 8px;
}


.primary-menu .menu-item-has-children > a::before {
	content: "";

	order: 2;

	width: 6px;
	height: 6px;

	margin-top: -4px;

	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;

	transform: rotate(45deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.primary-menu .sub-menu {
	position: absolute;

	top: calc(100% - 6px);
	left: 50%;

	min-width: 230px;

	margin: 0;
	padding: 10px;

	list-style: none;

	background: #ffffff;

	border-radius: 7px;

	box-shadow:
		0 18px 45px rgba(0, 0, 0, 0.12);

	opacity: 0;
	visibility: hidden;

	transform:
		translateX(-50%)
		translateY(9px);

	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease;
}


.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;

	transform:
		translateX(-50%)
		translateY(0);
}


.primary-menu .sub-menu a {
	display: block;

	padding: 11px 14px;

	border-radius: 5px;

	color: #242424;

	font-size: 14px;

	text-decoration: none;

	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}


.primary-menu .sub-menu a:hover {
	color: var(--header-brand);

	background: #f7f7f5;
}


/* =========================================================
   HEADER CTA
========================================================= */

.site-header__cta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}


.header-appointment {
	position: relative;

	min-height: 49px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 11px;

	padding:
		13px
		23px;

	overflow: hidden;

	background: var(--header-brand);

	border-radius: 5px;

	color: #ffffff;

	font-size: 15px;
	font-weight: 600;

	text-decoration: none;

	box-shadow:
		0 9px 25px
		rgba(169, 0, 61, 0.14);

	transition:
		transform 0.3s ease,
		background-color 0.3s ease,
		box-shadow 0.3s ease;
}


/* Shine hover */

.header-appointment::before {
	content: "";

	position: absolute;

	top: -140%;
	left: -50%;

	width: 35%;
	height: 380%;

	background:
		linear-gradient(
			90deg,
			transparent,
			rgba(255, 255, 255, 0.23),
			transparent
		);

	transform:
		rotate(25deg)
		translateX(-200%);

	transition:
		transform 0.7s ease;
}


.header-appointment:hover::before {
	transform:
		rotate(25deg)
		translateX(590%);
}


.header-appointment:hover {
	color: #ffffff;

	background: var(--header-brand-dark);

	transform: translateY(-2px);

	box-shadow:
		0 14px 30px
		rgba(169, 0, 61, 0.22);
}


.header-appointment > span {
	position: relative;
	z-index: 2;
}


.header-appointment__icon {
	display: inline-flex;
	align-items: center;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.mobile-menu-toggle {
	display: none;

	width: 44px;
	height: 44px;

	padding: 8px;

	border: 0;

	background: transparent;

	cursor: pointer;

	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 5px;
}


.mobile-menu-toggle span {
	display: block;

	width: 24px;
	height: 2px;

	background: #242424;

	transition:
		transform 0.25s ease,
		opacity 0.25s ease;
}


.mobile-menu-toggle.is-active span:nth-child(1) {
	transform:
		translateY(7px)
		rotate(45deg);
}


.mobile-menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}


.mobile-menu-toggle.is-active span:nth-child(3) {
	transform:
		translateY(-7px)
		rotate(-45deg);
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

	.site-header__inner {
		width: calc(100% - 60px);

		grid-template-columns:
			260px
			1fr
			230px;

		gap: 20px;
	}


	.site-header__logo {
		height: 53px;

		max-width: 255px;
	}


	.primary-menu {
		gap: 25px;
	}


	.header-appointment {
		padding-inline: 18px;
	}

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

	:root {
		--header-height: 72px;
	}


	body.admin-bar .site-header {
		top: 46px;
	}


	.site-header__inner {
		width: calc(100% - 30px);

		display: flex;
		align-items: center;
		justify-content: space-between;

		gap: 15px;
	}


	.site-header__logo {
		height: 45px;

		max-width: 215px;
	}


	.site-header__cta {
		display: none;
	}


	.mobile-menu-toggle {
		display: flex;

		margin-left: auto;
	}


	.site-navigation {
		position: absolute;

		top: 100%;
		left: 0;

		width: 100%;
		height: auto;

		display: block;

		padding: 0 20px;

		background:
			rgba(255, 255, 255, 0.98);

		-webkit-backdrop-filter:
			blur(15px);

		backdrop-filter:
			blur(15px);

		box-shadow:
			0 18px 35px
			rgba(0, 0, 0, 0.08);

		opacity: 0;
		visibility: hidden;

		pointer-events: none;

		transform:
			translateY(-8px);

		transition:
			opacity 0.25s ease,
			visibility 0.25s ease,
			transform 0.25s ease;
	}


	.site-navigation.is-open {
		opacity: 1;
		visibility: visible;

		pointer-events: auto;

		transform:
			translateY(0);
	}


	.primary-menu {
		display: block;

		height: auto;

		padding:
			12px
			0
			20px;
	}


	.primary-menu > li {
		display: block;

		height: auto;

		border-bottom:
			1px solid #ededed;
	}


	.primary-menu > li:last-child {
		border-bottom: 0;
	}


	.primary-menu > li > a {
		width: 100%;
		height: auto;

		padding:
			15px
			5px;
	}


	.primary-menu > li > a::after {
		display: none !important;
	}


	.primary-menu .sub-menu {
		position: static;

		width: 100%;

		padding:
			0
			0
			10px
			15px;

		background: transparent;

		box-shadow: none;

		opacity: 1;
		visibility: visible;

		transform: none;
	}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

	.site-header__inner {
		width: calc(100% - 24px);
	}


	.site-header__logo {
		height: 42px;

		max-width: 195px;
	}

}