/* ==========================================================================
   PINHOLEIR HEADER
   ========================================================================== */

.ph-site-header {
	--header-blue: #075cf4;
	--header-navy: #062760;
	--header-topbar: #031e54;
	--header-text: #09295f;

	position: relative;
	z-index: 1000;

	width: 100%;
}


/* ==========================================================================
   TOP BAR
   ========================================================================== */

.ph-topbar {
	position: relative;
	z-index: 10;

	width: 100%;
	height: 64px;

	background:
		linear-gradient(
			90deg,
			#031d50 0%,
			#06245f 52%,
			#031b4c 100%
		);

	color:
		rgba(
			255,
			255,
			255,
			0.88
		);
}


.ph-topbar__inner {
	display: flex;

	align-items: center;
	justify-content: space-between;

	width:
		min(
			100% - 100px,
			1320px
		);

	height: 100%;

	margin-inline: auto;
}


/* ==========================================================================
   TOP INFORMATION
   ========================================================================== */

.ph-topbar__info {
	display: flex;
	align-items: center;

	height: 100%;
}


.ph-topbar__item {
	position: relative;

	display: inline-flex;
	align-items: center;

	gap: 9px;

	min-height: 30px;

	padding:
		0
		19px;

	color:
		rgba(
			255,
			255,
			255,
			0.86
		);

	font-size: 13px;
	font-weight: 500;
	line-height: 1;

	white-space: nowrap;

	text-decoration: none;

	transition:
		color
		0.3s
		ease,
		opacity
		0.3s
		ease;
}


.ph-topbar__item:first-child {
	padding-left: 0;
}


.ph-topbar__item:not(:last-child)::after {
	position: absolute;

	top: 50%;
	right: 0;

	width: 1px;
	height: 22px;

	background:
		rgba(
			255,
			255,
			255,
			0.19
		);

	content: "";

	transform:
		translateY(
			-50%
		);
}


.ph-topbar__item:hover {
	color: #ffffff;
}


.ph-topbar__icon {
	display: grid;

	width: 22px;
	height: 22px;

	flex:
		0
		0
		22px;

	place-items: center;

	color: #3482ff;
}


.ph-topbar__icon svg {
	width: 20px;
	height: 20px;

	fill: none;
	stroke: currentColor;

	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* ==========================================================================
   SOCIAL
   ========================================================================== */

.ph-topbar__social {
	position: relative;

	display: flex;
	align-items: center;

	gap: 3px;

	padding-left: 17px;
}


.ph-topbar__social::before {
	position: absolute;

	top: 50%;
	left: 0;

	width: 1px;
	height: 22px;

	background:
		rgba(
			255,
			255,
			255,
			0.20
		);

	content: "";

	transform:
		translateY(
			-50%
		);
}


.ph-topbar__social a {
	display: grid;

	width: 39px;
	height: 39px;

	place-items: center;

	color:
		rgba(
			255,
			255,
			255,
			0.85
		);

	transition:
		color
		0.25s
		ease,
		transform
		0.25s
		ease;
}


.ph-topbar__social svg {
	width: 17px;
	height: 17px;

	fill: none;
	stroke: currentColor;

	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}


.ph-topbar__social a:first-child svg {
	fill: currentColor;
	stroke: none;
}


.ph-topbar__social a:hover {
	color: #4c8cff;

	transform:
		translateY(
			-2px
		);
}


/* ==========================================================================
   MAIN HEADER
   ========================================================================== */

.ph-main-header {
	position: absolute;

	top: 73px;
	right: 0;
	left: 0;

	z-index: 100;

	width: 100%;

	padding-inline: 3.2%;

	transition:
		transform
		0.4s
		cubic-bezier(
			0.22,
			1,
			0.36,
			1
		),
		opacity
		0.3s
		ease,
		padding
		0.3s
		ease;
}


/* ==========================================================================
   HEADER SHELL
   ========================================================================== */

.ph-main-header__shell {
	position: relative;

	display: flex;
	align-items: center;

	width:
		min(
			100%,
			1360px
		);

	height: 108px;

	margin-inline: auto;

	padding:
		0
		24px
		0
		34px;

	border:
		1px
		solid
		rgba(
			18,
			57,
			117,
			0.06
		);

	border-radius: 27px;

	background:
		rgba(
			255,
			255,
			255,
			0.98
		);

	box-shadow:
		0
		17px
		45px
		rgba(
			23,
			55,
			105,
			0.08
		),
		0
		3px
		10px
		rgba(
			23,
			55,
			105,
			0.025
		);

	backdrop-filter:
		blur(
			14px
		);

	-webkit-backdrop-filter:
		blur(
			14px
		);

	transition:
		height
		0.35s
		ease,
		border-radius
		0.35s
		ease,
		box-shadow
		0.35s
		ease;
}


/* ==========================================================================
   LOGO
   ========================================================================== */

.ph-main-header__brand {
	display: flex;
	align-items: center;

	flex: 0 0 auto;

	width: 245px;
}


.ph-main-header__brand
.custom-logo-link {
	display: inline-flex;
	align-items: center;
}


.ph-main-header__brand
.custom-logo {
	display: block;

	width: auto;
	height: auto;

	max-width: 205px;
	max-height: 70px;
}


.ph-main-header__logo-text {
	color:
		var(
			--header-navy
		);

	font-size: 30px;
	font-weight: 700;

	text-decoration: none;
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.ph-main-nav {
	display: flex;
	align-items: stretch;
	justify-content: center;

	flex: 1;

	height: 100%;
}


.ph-main-nav__menu {
	display: flex;
	align-items: stretch;
	justify-content: center;

	gap: 34px;

	height: 100%;

	margin: 0;
	padding: 0;

	list-style: none;
}


.ph-main-nav__menu > li {
	position: relative;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;
}


.ph-main-nav__menu >
li >
a {
	position: relative;

	display: flex;
	align-items: center;

	height: 100%;

	padding:
		0
		1px;

	color: #0b295e;

	font-size: 13px;
	font-weight: 700;
	line-height: 1;

	text-decoration: none;

	text-transform: uppercase;

	transition:
		color
		0.3s
		ease;
}


/* ==========================================================================
   ACTIVE UNDERLINE
   ========================================================================== */

.ph-main-nav__menu >
li >
a::after {
	position: absolute;

	right: 50%;
	bottom: 27px;
	left: 50%;

	height: 2px;

	border-radius: 10px;

	background:
		var(
			--header-blue
		);

	content: "";

	opacity: 0;

	transition:
		right
		0.3s
		ease,
		left
		0.3s
		ease,
		opacity
		0.3s
		ease;
}


.ph-main-nav__menu >
li:hover >
a,

.ph-main-nav__menu >
li.current-menu-item >
a,

.ph-main-nav__menu >
li.current-menu-ancestor >
a {
	color:
		var(
			--header-blue
		);
}


.ph-main-nav__menu >
li:hover >
a::after,

.ph-main-nav__menu >
li.current-menu-item >
a::after,

.ph-main-nav__menu >
li.current-menu-ancestor >
a::after {
	right: 0;
	left: 0;

	opacity: 1;
}


/* ==========================================================================
   MENU ARROW
   ========================================================================== */

.ph-main-nav__menu
.menu-item-has-children >
a {
	gap: 8px;
}


.ph-main-nav__menu
.menu-item-has-children >
a::before {
	order: 2;

	width: 7px;
	height: 7px;

	margin-top: -4px;

	border-right:
		1.5px
		solid
		currentColor;

	border-bottom:
		1.5px
		solid
		currentColor;

	content: "";

	transform:
		rotate(
			45deg
		);

	transition:
		transform
		0.3s
		ease,
		margin
		0.3s
		ease;
}


.ph-main-nav__menu
.menu-item-has-children:hover >
a::before,

.ph-main-nav__menu
.ph-has-mega-menu.is-mega-open >
a::before {
	margin-top: 4px;

	transform:
		rotate(
			225deg
		);
}


/* ==========================================================================
   NORMAL WORDPRESS SUBMENU
   ========================================================================== */

.ph-main-nav__menu
.sub-menu {
	position: absolute;

	top:
		calc(
			100% - 19px
		);

	left: -24px;

	min-width: 235px;

	margin: 0;
	padding: 12px;

	border:
		1px
		solid
		rgba(
			19,
			60,
			125,
			0.08
		);

	border-radius: 15px;

	background:
		rgba(
			255,
			255,
			255,
			0.99
		);

	box-shadow:
		0
		18px
		45px
		rgba(
			14,
			46,
			99,
			0.14
		);

	list-style: none;

	visibility: hidden;
	opacity: 0;

	transform:
		translateY(
			10px
		);

	transition:
		opacity
		0.25s
		ease,
		transform
		0.25s
		ease,
		visibility
		0.25s
		ease;
}


.ph-main-nav__menu
li:hover >
.sub-menu,

.ph-main-nav__menu
li:focus-within >
.sub-menu {
	visibility: visible;
	opacity: 1;

	transform:
		translateY(
			0
		);
}


.ph-main-nav__menu
.sub-menu
li {
	display: block;
}


.ph-main-nav__menu
.sub-menu
a {
	display: block;

	padding:
		12px
		14px;

	border-radius: 9px;

	color:
		var(
			--header-text
		);

	font-size: 13px;
	font-weight: 600;

	text-decoration: none;

	transition:
		background-color
		0.25s
		ease,
		color
		0.25s
		ease,
		transform
		0.25s
		ease;
}


.ph-main-nav__menu
.sub-menu
a:hover {
	background: #f0f5ff;

	color:
		var(
			--header-blue
		);

	transform:
		translateX(
			3px
		);
}


/* ==========================================================================
   MEGA MENU PARENT
   ========================================================================== */

.ph-main-nav__menu >
.ph-has-mega-menu {
	position: static;
}

/* Department CPT items replace manually-added submenu children. */
.ph-main-nav__menu >
.ph-has-mega-menu >
.sub-menu {
	display: none !important;
}


/* ==========================================================================
   PREMIUM COMPACT MEGA MENU - BUILT FOR 20+ SERVICES
   ========================================================================== */

.ph-mega-menu {
	position: absolute;
	top: calc(100% - 4px);
	left: 50%;
	z-index: 500;

	width: min(1360px, calc(100vw - 72px));
	padding-top: 18px;

	visibility: hidden;
	opacity: 0;
	pointer-events: none;

	transform: translate3d(-50%, 13px, 0) scale(0.988);
	transform-origin: top center;

	transition:
		opacity 0.24s ease,
		transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.24s ease;
}

/* Hover bridge so the menu does not close while the pointer crosses the gap. */
.ph-mega-menu::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 25px;
	content: "";
}

.ph-has-mega-menu:hover > .ph-mega-menu,
.ph-has-mega-menu:focus-within > .ph-mega-menu,
.ph-has-mega-menu.is-mega-open > .ph-mega-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translate3d(-50%, 0, 0) scale(1);
}


/* ==========================================================================
   MEGA PANEL
   ========================================================================== */

.ph-mega-menu__panel {
	position: relative;
	isolation: isolate;
	width: 100%;
	padding: 22px 24px 24px;
	overflow: hidden;

	border: 1px solid rgba(17, 62, 128, 0.10);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.99);

	box-shadow:
		0 30px 80px rgba(7, 35, 85, 0.16),
		0 8px 24px rgba(13, 56, 123, 0.07);

	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.ph-mega-menu__panel::before {
	position: absolute;
	top: -240px;
	left: 13%;
	z-index: -1;
	width: 620px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(42, 116, 255, 0.12), transparent 68%);
	content: "";
	pointer-events: none;
}

.ph-mega-menu__panel::after {
	position: absolute;
	right: -170px;
	bottom: -210px;
	z-index: -1;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(8, 92, 244, 0.07), transparent 70%);
	content: "";
	pointer-events: none;
}


/* ==========================================================================
   MEGA TOP
   ========================================================================== */

.ph-mega-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	padding: 0 2px 15px;
	border-bottom: 1px solid #e8eef8;
}

.ph-mega-menu__heading {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ph-mega-menu__heading-icon {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	border: 1px solid #d8e5f8;
	border-radius: 13px;
	background: linear-gradient(145deg, #f6f9ff, #eaf2ff);
	color: #1264ec;
}

.ph-mega-menu__heading-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ph-mega-menu__small-title {
	display: block;
	margin-bottom: 3px;
	color: #7790b8;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.ph-mega-menu__top h3 {
	margin: 0;
	color: #082966;
	font-size: 22px;
	font-weight: 780;
	line-height: 1.1;
	letter-spacing: -0.4px;
}

.ph-mega-menu__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 13px;
	border: 1px solid #dce6f5;
	border-radius: 999px;
	background: #f5f8ff;
	color: #496d9f;
	font-size: 9px;
	font-weight: 750;
	white-space: nowrap;
}


/* ==========================================================================
   SERVICES GRID - SMALL HORIZONTAL CARDS
   ========================================================================== */

.ph-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-height: min(450px, calc(100vh - 235px));
	padding: 1px 6px 4px 1px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #c4d4ee transparent;
}

.ph-mega-menu__grid::-webkit-scrollbar {
	width: 5px;
}

.ph-mega-menu__grid::-webkit-scrollbar-track {
	background: transparent;
}

.ph-mega-menu__grid::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: #c4d4ee;
}


/* ==========================================================================
   SERVICE CARD - IMAGE LEFT / TITLE RIGHT
   ========================================================================== */

.ph-mega-service {
	position: relative;
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	align-items: center;
	min-width: 0;
	min-height: 70px;
	overflow: hidden;

	border: 1px solid #dfe8f5;
	border-radius: 14px;
	background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
	color: #0b2d68;
	text-decoration: none;

	box-shadow: 0 5px 14px rgba(21, 54, 112, 0.035);
	transition:
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s ease,
		box-shadow 0.28s ease,
		background 0.28s ease;
}

.ph-mega-service::after {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #b8cdf2;
	content: "";
	transform: translateY(-50%);
	transition: background 0.25s ease, transform 0.25s ease;
}

.ph-mega-service__media {
	position: relative;
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-right: 1px solid #e4ecf7;
	background: linear-gradient(145deg, #edf4ff, #dce9fd);
}

.ph-mega-service__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ph-mega-service__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(145deg, #eef5ff, #dce9ff);
	color: #2672ed;
}

.ph-mega-service__placeholder svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ph-mega-service__body {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 70px;
	padding: 10px 26px 10px 13px;
}

.ph-mega-service h4 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #11346e;
	font-size: 11.5px;
	font-weight: 730;
	line-height: 1.35;
	letter-spacing: -0.08px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
	.ph-mega-service:hover {
		border-color: rgba(15, 96, 236, 0.30);
		background: linear-gradient(145deg, #ffffff, #f2f7ff);
		box-shadow: 0 12px 25px rgba(16, 70, 165, 0.10);
		transform: translateY(-2px);
	}

	.ph-mega-service:hover .ph-mega-service__media img {
		transform: scale(1.07);
	}

	.ph-mega-service:hover h4 {
		color: #075cf4;
	}

	.ph-mega-service:hover::after {
		background: #075cf4;
		transform: translateY(-50%) scale(1.35);
	}
}


/* ==========================================================================
   SMALLER LAPTOP
   ========================================================================== */

@media (max-width: 1366px) {
	.ph-mega-menu {
		width: calc(100vw - 48px);
	}

	.ph-mega-menu__panel {
		padding: 18px;
	}

	.ph-mega-menu__grid {
		gap: 8px;
		max-height: min(420px, calc(100vh - 215px));
	}

	.ph-mega-service {
		grid-template-columns: 61px minmax(0, 1fr);
		min-height: 61px;
	}

	.ph-mega-service__media {
		width: 61px;
		height: 61px;
	}

	.ph-mega-service__body {
		min-height: 61px;
		padding: 8px 22px 8px 10px;
	}

	.ph-mega-service h4 {
		font-size: 10.5px;
	}
}

@media (min-width: 1025px) and (max-width: 1180px) {
	.ph-mega-menu__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   TABLET / MOBILE MEGA MENU
   ========================================================================== */

@media (max-width: 1024px) {
	.ph-main-nav__menu > .ph-has-mega-menu {
		position: relative;
	}

	.ph-mega-menu {
		position: static;
		display: none;
		width: 100%;
		padding: 5px 0 10px;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.ph-has-mega-menu.is-mega-open > .ph-mega-menu {
		display: block;
	}

	.ph-has-mega-menu:not(.is-mega-open) > .ph-mega-menu {
		display: none;
	}

	.ph-mega-menu__panel {
		width: 100%;
		padding: 11px;
		overflow: visible;
		border: 0;
		border-radius: 15px;
		background: #f5f8ff;
		box-shadow: none;
	}

	.ph-mega-menu__panel::before,
	.ph-mega-menu__panel::after {
		display: none;
	}

	.ph-mega-menu__top {
		margin-bottom: 10px;
		padding: 4px 2px 10px;
	}

	.ph-mega-menu__heading-icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		border-radius: 11px;
	}

	.ph-mega-menu__top h3 {
		font-size: 17px;
	}

	.ph-mega-menu__small-title {
		font-size: 7px;
	}

	.ph-mega-menu__count {
		display: none;
	}

	.ph-mega-menu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		max-height: 400px;
		padding: 1px 4px 3px 1px;
		overflow-y: auto;
	}

	.ph-mega-service {
		grid-template-columns: 58px minmax(0, 1fr);
		min-height: 58px;
		border-radius: 11px;
	}

	.ph-mega-service__media {
		width: 58px;
		height: 58px;
	}

	.ph-mega-service__body {
		min-height: 58px;
		padding: 8px 20px 8px 10px;
	}

	.ph-mega-service h4 {
		font-size: 10px;
	}
}

@media (max-width: 600px) {
	.ph-mega-menu__grid {
		grid-template-columns: 1fr;
		max-height: 380px;
	}

	.ph-mega-service {
		grid-template-columns: 64px minmax(0, 1fr);
		min-height: 64px;
	}

	.ph-mega-service__media {
		width: 64px;
		height: 64px;
	}

	.ph-mega-service__body {
		min-height: 64px;
	}

	.ph-mega-service h4 {
		font-size: 11.5px;
	}
}

/* ==========================================================================
   RIGHT ACTION
   ========================================================================== */

.ph-main-header__actions {
	display: flex;
	align-items: center;

	flex: 0 0 auto;

	margin-left: 35px;
}


/* ==========================================================================
   APPOINTMENT CTA
   ========================================================================== */

.ph-appointment {
	position: relative;

	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 12px;

	min-width: 276px;
	height: 61px;

	padding:
		0
		24px;

	border-radius: 999px;

	background:
		linear-gradient(
			135deg,
			#075cf4
			0%,
			#0549db
			100%
		);

	box-shadow:
		0
		11px
		27px
		rgba(
			7,
			92,
			244,
			0.18
		);

	color: #ffffff;

	font-size: 13px;
	font-weight: 800;
	line-height: 1;

	text-decoration: none;

	text-transform: uppercase;

	overflow: hidden;

	transition:
		transform
		0.3s
		cubic-bezier(
			0.22,
			1,
			0.36,
			1
		),
		box-shadow
		0.3s
		ease;
}


.ph-appointment::before {
	position: absolute;

	top: -100%;
	left: -50%;

	width: 35%;
	height: 300%;

	background:
		linear-gradient(
			90deg,
			transparent,
			rgba(
				255,
				255,
				255,
				0.34
			),
			transparent
		);

	content: "";

	transform:
		rotate(
			22deg
		);

	transition:
		left
		0.65s
		ease;
}


.ph-appointment > * {
	position: relative;
	z-index: 2;
}


.ph-appointment__calendar {
	display: grid;

	width: 26px;
	height: 26px;

	flex:
		0
		0
		26px;

	place-items: center;
}


.ph-appointment__calendar svg {
	width: 25px;
	height: 25px;

	fill: none;
	stroke: currentColor;

	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


.ph-appointment__arrow {
	width: 16px;
	height: 16px;

	fill: none;
	stroke: currentColor;

	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;

	transition:
		transform
		0.3s
		ease;
}


.ph-appointment:hover {
	box-shadow:
		0
		17px
		34px
		rgba(
			7,
			92,
			244,
			0.28
		);

	color: #ffffff;

	transform:
		translateY(
			-3px
		);
}


.ph-appointment:hover::before {
	left: 130%;
}


.ph-appointment:hover
.ph-appointment__arrow {
	transform:
		translate(
			3px,
			-3px
		);
}


/* ==========================================================================
   STICKY HEADER
   ========================================================================== */

.ph-main-header.is-sticky {
	position: fixed;

	top: 0;
	right: 0;
	left: 0;

	z-index: 9999;

	padding:
		10px
		3.2%;

	animation:
		phHeaderSlideDown
		0.42s
		cubic-bezier(
			0.22,
			1,
			0.36,
			1
		)
		both;
}


.ph-main-header.is-sticky
.ph-main-header__shell {
	height: 78px;

	border-radius: 18px;

	box-shadow:
		0
		10px
		35px
		rgba(
			10,
			38,
			86,
			0.14
		),
		0
		2px
		8px
		rgba(
			10,
			38,
			86,
			0.05
		);
}


.ph-main-header.is-sticky
.ph-main-header__brand
.custom-logo {
	max-height: 54px;
}


.ph-main-header.is-sticky
.ph-main-nav__menu >
li >
a::after {
	bottom: 18px;
}


.ph-main-header.is-sticky
.ph-appointment {
	height: 52px;

	min-width: 245px;
}


.ph-main-header.is-sticky
.ph-mega-menu {
	top:
		calc(
			100% - 2px
		);
}


@keyframes phHeaderSlideDown {

	from {

		opacity: 0;

		transform:
			translateY(
				-100%
			);
	}

	to {

		opacity: 1;

		transform:
			translateY(
				0
			);
	}
}


/* ==========================================================================
   WORDPRESS ADMIN BAR
   ========================================================================== */

.admin-bar
.ph-main-header.is-sticky {
	top: 32px;
}


/* ==========================================================================
   MOBILE MENU BUTTON
   ========================================================================== */

.ph-menu-toggle {
	display: none;

	width: 48px;
	height: 48px;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #f0f5ff;

	cursor: pointer;

	place-items: center;
}


.ph-menu-toggle span {
	display: block;

	width: 21px;
	height: 2px;

	margin:
		4px
		auto;

	border-radius: 10px;

	background:
		var(
			--header-navy
		);

	transition:
		transform
		0.3s
		ease,
		opacity
		0.3s
		ease;
}


.ph-menu-toggle.is-active
span:nth-child(1) {
	transform:
		translateY(
			6px
		)
		rotate(
			45deg
		);
}


.ph-menu-toggle.is-active
span:nth-child(2) {
	opacity: 0;
}


.ph-menu-toggle.is-active
span:nth-child(3) {
	transform:
		translateY(
			-6px
		)
		rotate(
			-45deg
		);
}


/* ==========================================================================
   LAPTOP
   ========================================================================== */

@media (max-width: 1280px) {

	.ph-topbar__inner {
		width:
			min(
				100% - 60px,
				1180px
			);
	}


	.ph-main-header {
		padding-inline: 2.5%;
	}


	.ph-main-header__shell {
		padding-left: 26px;
	}


	.ph-main-header__brand {
		width: 205px;
	}


	.ph-main-header__brand
	.custom-logo {
		max-width: 180px;
	}


	.ph-main-nav__menu {
		gap: 24px;
	}


	.ph-main-header__actions {
		margin-left: 22px;
	}


	.ph-appointment {
		min-width: 235px;

		padding-inline: 18px;

		font-size: 12px;
	}


	.ph-mega-menu {
		width:
			calc(
				100vw - 60px
			);
	}


	.ph-mega-menu__panel {
		grid-template-columns:
			250px
			minmax(
				0,
				1fr
			);

		gap: 19px;

		padding: 19px;
	}


	.ph-mega-menu__grid {
		gap: 10px;
	}


	.ph-mega-service__media {
		height: 100px;
	}


	.ph-mega-menu__intro {
		padding:
			23px
			20px;
	}


	.ph-mega-menu__intro h2 {
		font-size: 25px;
	}
}


/* ==========================================================================
   TABLET / MOBILE NAV
   ========================================================================== */

@media (max-width: 1024px) {

	.ph-topbar {
		height: auto;

		min-height: 48px;
	}


	.ph-topbar__inner {
		width:
			calc(
				100% - 40px
			);

		min-height: 48px;
	}


	.ph-topbar__item {
		padding-inline: 11px;

		font-size: 11px;
	}


	.ph-topbar__social {
		display: none;
	}


	.ph-main-header {
		top: 58px;

		padding-inline: 20px;
	}


	.ph-main-header__shell {
		position: relative;

		height: 82px;

		padding:
			0
			17px
			0
			23px;

		border-radius: 21px;
	}


	.ph-main-header__brand {
		width: auto;

		margin-right: auto;
	}


	.ph-main-header__brand
	.custom-logo {
		max-width: 170px;
		max-height: 57px;
	}


	.ph-main-header__actions {
		margin-left: 15px;
	}


	.ph-appointment {
		min-width: 205px;
		height: 52px;

		font-size: 11px;
	}


	.ph-menu-toggle {
		display: block;

		margin-left: 10px;
	}


	/* ==============================================================
	   MOBILE NAV PANEL
	   ============================================================== */

	.ph-main-nav {
		position: absolute;

		top:
			calc(
				100% + 12px
			);

		right: 0;
		left: 0;

		display: block;

		width: 100%;
		height: auto;

		padding: 12px;

		border:
			1px
			solid
			rgba(
				20,
				61,
				121,
				0.08
			);

		border-radius: 18px;

		background: #ffffff;

		box-shadow:
			0
			18px
			45px
			rgba(
				12,
				42,
				92,
				0.14
			);

		visibility: hidden;
		opacity: 0;

		transform:
			translateY(
				-8px
			);

		transition:
			opacity
			0.3s
			ease,
			transform
			0.3s
			ease,
			visibility
			0.3s
			ease;
	}


	.ph-main-nav.is-open {
		visibility: visible;
		opacity: 1;

		transform:
			translateY(
				0
			);
	}


	.ph-main-nav__menu {
		display: block;

		height: auto;
	}


	.ph-main-nav__menu >
	li {
		display: block;

		width: 100%;
	}


	.ph-main-nav__menu >
	li >
	a {
		width: 100%;
		height: auto;

		padding:
			14px
			15px;

		border-radius: 10px;
	}


	.ph-main-nav__menu >
	li >
	a::after {
		display: none;
	}


	.ph-main-nav__menu >
	li:hover >
	a {
		background: #f2f6fd;
	}


	/* ==============================================================
	   NORMAL MOBILE SUBMENU
	   ============================================================== */

	.ph-main-nav__menu
	.sub-menu {
		position: static;

		display: none;

		min-width: 0;

		margin:
			0
			0
			5px
			13px;

		padding: 5px;

		border: 0;

		box-shadow: none;

		visibility: visible;
		opacity: 1;

		transform: none;
	}


	.ph-main-nav__menu
	.menu-item-has-children:hover >
	.sub-menu {
		display: block;
	}


	/* ==============================================================
	   MOBILE MEGA MENU
	   ============================================================== */

	.ph-main-nav__menu >
	.ph-has-mega-menu {
		position: relative;
	}


	.ph-mega-menu {
		position: static;

		display: none;

		width: 100%;

		padding:
			6px
			0
			10px;

		visibility: visible;
		opacity: 1;

		pointer-events: auto;

		transform: none;
	}


	.ph-has-mega-menu.is-mega-open >
	.ph-mega-menu {
		display: block;
	}


	.ph-has-mega-menu:not(.is-mega-open) >
	.ph-mega-menu {
		display: none;
	}


	.ph-mega-menu__panel {
		display: block;

		width: 100%;

		max-height: none;

		padding: 10px;

		overflow: visible;

		border: 0;

		border-radius: 15px;

		background: #f7f9ff;

		box-shadow: none;
	}


	.ph-mega-menu__panel::before {
		display: none;
	}


	.ph-mega-menu__intro {
		min-height: 0;

		margin-bottom: 10px;

		padding:
			17px
			17px;

		border-radius: 14px;
	}


	.ph-mega-menu__eyebrow {
		margin-bottom: 10px;
	}


	.ph-mega-menu__intro h2 {
		max-width: none;

		margin-bottom: 7px;

		font-size: 20px;
	}


	.ph-mega-menu__intro p {
		margin-bottom: 14px;

		font-size: 11px;
	}


	.ph-mega-menu__view-all {
		padding:
			10px
			12px;
	}


	.ph-mega-menu__content {
		max-height: none;

		padding: 0;

		overflow: visible;
	}


	.ph-mega-menu__top {
		padding:
			6px
			3px;

		margin-bottom: 8px;
	}


	.ph-mega-menu__top h3 {
		font-size: 17px;
	}


	.ph-mega-menu__count {
		display: none;
	}


	.ph-mega-menu__grid {
		grid-template-columns:
			repeat(
				2,
				minmax(
					0,
					1fr
				)
			);

		gap: 9px;
	}


	.ph-mega-service__media {
		height: 88px;
	}


	.ph-mega-service__body {
		min-height: 62px;

		padding: 10px;
	}


	.ph-mega-service h4 {
		font-size: 11px;
	}


	.ph-mega-service__category {
		font-size: 7px;
	}


	.ph-mega-service__arrow {
		width: 30px;
		height: 30px;

		flex-basis: 30px;
	}


	.ph-main-header.is-sticky {
		padding:
			8px
			15px;
	}


	.ph-main-header.is-sticky
	.ph-main-header__shell {
		height: 70px;
	}


	.ph-main-header.is-sticky
	.ph-main-header__brand
	.custom-logo {
		max-height: 48px;
	}
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

	.ph-topbar {
		display: none;
	}


	.ph-main-header {
		top: 15px;

		padding-inline: 14px;
	}


	.ph-main-header__shell {
		height: 72px;

		padding:
			0
			11px
			0
			18px;

		border-radius: 18px;
	}


	.ph-main-header__brand
	.custom-logo {
		max-width: 145px;
		max-height: 50px;
	}


	.ph-appointment {
		display: none;
	}


	.ph-main-header__actions {
		margin-left: auto;
	}


	.ph-menu-toggle {
		display: block;

		width: 46px;
		height: 46px;
	}


	.ph-main-nav {
		top:
			calc(
				100% + 8px
			);

		max-height:
			calc(
				100vh - 110px
			);

		overflow-y: auto;
	}


	.ph-main-header.is-sticky {
		top: 0;

		padding:
			7px
			10px;
	}


	.ph-main-header.is-sticky
	.ph-main-header__shell {
		height: 64px;

		border-radius: 15px;
	}
}


/* ==========================================================================
   SMALL MOBILE MEGA MENU
   ========================================================================== */

@media (max-width: 600px) {

	.ph-mega-menu__grid {
		grid-template-columns: 1fr;
	}


	.ph-mega-service {
		display: grid;

		grid-template-columns:
			95px
			minmax(
				0,
				1fr
			);
	}


	.ph-mega-service__media {
		height: 78px;
	}


	.ph-mega-service__body {
		min-height: 78px;
	}


	.ph-mega-service__category {
		display: none;
	}


	.ph-mega-service h4 {
		font-size: 12px;
	}
}


/* ==========================================================================
   WORDPRESS ADMIN BAR
   ========================================================================== */

@media (max-width: 782px) {

	.admin-bar
	.ph-main-header.is-sticky {
		top: 46px;
	}
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.ph-site-header
a:focus-visible,

.ph-site-header
button:focus-visible {
	outline:
		3px
		solid
		rgba(
			7,
			92,
			244,
			0.40
		);

	outline-offset: 3px;
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.ph-site-header *,
	.ph-site-header *::before,
	.ph-site-header *::after {
		animation-duration:
			0.01ms !important;

		transition-duration:
			0.01ms !important;
	}
}
/* ==========================================================================\n   FINAL PREMIUM COMPACT DEPARTMENT MEGA MENU\n   This block intentionally overrides legacy mega-menu rules above.\n   Cards contain only: thumbnail + department title.\n   ========================================================================== */

@media (min-width: 1025px) {
	.ph-main-nav__menu > .ph-has-mega-menu {
		position: static !important;
	}

	.ph-main-nav__menu > .ph-has-mega-menu > .sub-menu {
		display: none !important;
	}

	.ph-mega-menu {
		position: absolute !important;
		top: calc(100% - 3px) !important;
		left: 50% !important;
		z-index: 500 !important;
		width: min(1480px, calc(100vw - 72px)) !important;
		padding-top: 18px !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		transform: translate3d(-50%, 12px, 0) scale(.992) !important;
		transform-origin: top center !important;
		transition: opacity .22s ease, transform .32s cubic-bezier(.22,1,.36,1), visibility .22s ease !important;
	}

	.ph-mega-menu::before {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		height: 24px !important;
		content: "" !important;
	}

	.ph-has-mega-menu:hover > .ph-mega-menu,
	.ph-has-mega-menu:focus-within > .ph-mega-menu,
	.ph-has-mega-menu.is-mega-open > .ph-mega-menu {
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: translate3d(-50%, 0, 0) scale(1) !important;
	}

	.ph-mega-menu__panel {
		position: relative !important;
		display: block !important;
		width: 100% !important;
		max-height: none !important;
		padding: 18px !important;
		overflow: hidden !important;
		border: 1px solid rgba(18, 61, 128, .10) !important;
		border-radius: 24px !important;
		background: rgba(255,255,255,.99) !important;
		box-shadow: 0 30px 78px rgba(7,35,85,.16), 0 8px 24px rgba(13,56,123,.07) !important;
		backdrop-filter: blur(22px) !important;
		-webkit-backdrop-filter: blur(22px) !important;
		isolation: isolate !important;
	}

	.ph-mega-menu__panel::before {
		position: absolute !important;
		top: -230px !important;
		left: 12% !important;
		z-index: -1 !important;
		width: 620px !important;
		height: 470px !important;
		border-radius: 50% !important;
		background: radial-gradient(circle, rgba(42,116,255,.10), transparent 68%) !important;
		content: "" !important;
		pointer-events: none !important;
	}

	.ph-mega-menu__panel::after {
		position: absolute !important;
		right: -150px !important;
		bottom: -190px !important;
		z-index: -1 !important;
		width: 420px !important;
		height: 420px !important;
		border-radius: 50% !important;
		background: radial-gradient(circle, rgba(7,91,244,.06), transparent 70%) !important;
		content: "" !important;
		pointer-events: none !important;
	}

	.ph-mega-menu__top,
	.ph-mega-menu__intro,
	.ph-mega-menu__eyebrow,
	.ph-mega-menu__view-all,
	.ph-mega-menu__count {
		display: none !important;
	}

	.ph-mega-menu__grid {
		display: grid !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 9px !important;
		max-height: min(390px, calc(100vh - 225px)) !important;
		padding: 1px 5px 3px 1px !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain !important;
		scrollbar-width: thin !important;
		scrollbar-color: #c7d7ee transparent !important;
	}

	.ph-mega-menu__grid::-webkit-scrollbar {
		width: 5px !important;
	}

	.ph-mega-menu__grid::-webkit-scrollbar-track {
		background: transparent !important;
	}

	.ph-mega-menu__grid::-webkit-scrollbar-thumb {
		border-radius: 999px !important;
		background: #c7d7ee !important;
	}

	.ph-mega-service {
		position: relative !important;
		display: grid !important;
		grid-template-columns: 58px minmax(0, 1fr) !important;
		align-items: center !important;
		min-width: 0 !important;
		min-height: 58px !important;
		overflow: hidden !important;
		border: 1px solid #e0e8f5 !important;
		border-radius: 13px !important;
		background: linear-gradient(145deg, #fff 0%, #fbfdff 100%) !important;
		box-shadow: 0 4px 12px rgba(21,54,112,.035) !important;
		color: #0b2d68 !important;
		text-decoration: none !important;
		transition: transform .26s cubic-bezier(.22,1,.36,1), border-color .24s ease, box-shadow .26s ease, background .26s ease !important;
	}

	.ph-mega-service::after {
		display: none !important;
	}

	.ph-mega-service__media {
		position: relative !important;
		width: 58px !important;
		height: 58px !important;
		min-height: 58px !important;
		overflow: hidden !important;
		border-right: 1px solid #e4ecf7 !important;
		background: linear-gradient(145deg, #edf4ff, #dce9fd) !important;
	}

	.ph-mega-service__media img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		transition: transform .46s cubic-bezier(.22,1,.36,1) !important;
	}

	.ph-mega-service__placeholder {
		display: grid !important;
		width: 100% !important;
		height: 100% !important;
		place-items: center !important;
		background: linear-gradient(145deg, #eef5ff, #dce9ff) !important;
		color: #2672ed !important;
	}

	.ph-mega-service__placeholder svg {
		width: 25px !important;
		height: 25px !important;
		fill: none !important;
		stroke: currentColor !important;
		stroke-width: 1.45 !important;
	}

	.ph-mega-service__body {
		display: flex !important;
		align-items: center !important;
		min-width: 0 !important;
		min-height: 58px !important;
		padding: 8px 10px 8px 11px !important;
	}

	.ph-mega-service h4 {
		display: -webkit-box !important;
		margin: 0 !important;
		overflow: hidden !important;
		color: #11346e !important;
		font-size: 10.5px !important;
		font-weight: 730 !important;
		line-height: 1.28 !important;
		letter-spacing: -.06px !important;
		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 2 !important;
		transition: color .24s ease !important;
	}

	.ph-mega-service:hover {
		border-color: rgba(15,96,236,.28) !important;
		background: linear-gradient(145deg, #fff, #f3f7ff) !important;
		box-shadow: 0 10px 22px rgba(16,70,165,.10) !important;
		transform: translateY(-2px) !important;
	}

	.ph-mega-service:hover .ph-mega-service__media img {
		transform: scale(1.07) !important;
	}

	.ph-mega-service:hover h4 {
		color: #075cf4 !important;
	}
}

@media (min-width: 1025px) and (max-width: 1440px) {
	.ph-mega-menu {
		width: calc(100vw - 48px) !important;
	}

	.ph-mega-menu__panel {
		padding: 15px !important;
	}

	.ph-mega-menu__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		max-height: min(410px, calc(100vh - 215px)) !important;
	}
}

@media (min-width: 1025px) and (max-width: 1180px) {
	.ph-mega-menu__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1024px) {
	.ph-main-nav__menu > .ph-has-mega-menu {
		position: relative !important;
	}

	.ph-mega-menu {
		position: static !important;
		display: none !important;
		width: 100% !important;
		padding: 5px 0 10px !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: none !important;
	}

	.ph-has-mega-menu.is-mega-open > .ph-mega-menu {
		display: block !important;
	}

	.ph-has-mega-menu:not(.is-mega-open) > .ph-mega-menu {
		display: none !important;
	}

	.ph-mega-menu__panel {
		display: block !important;
		width: 100% !important;
		max-height: none !important;
		padding: 9px !important;
		overflow: visible !important;
		border: 0 !important;
		border-radius: 14px !important;
		background: #f5f8ff !important;
		box-shadow: none !important;
	}

	.ph-mega-menu__panel::before,
	.ph-mega-menu__panel::after,
	.ph-mega-menu__top,
	.ph-mega-menu__intro,
	.ph-mega-menu__eyebrow,
	.ph-mega-menu__view-all,
	.ph-mega-menu__count {
		display: none !important;
	}

	.ph-mega-menu__grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 7px !important;
		max-height: 380px !important;
		padding: 1px 4px 2px 1px !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}

	.ph-mega-service {
		display: grid !important;
		grid-template-columns: 54px minmax(0, 1fr) !important;
		align-items: center !important;
		min-height: 54px !important;
		overflow: hidden !important;
		border: 1px solid #dfe8f5 !important;
		border-radius: 11px !important;
		background: #fff !important;
		text-decoration: none !important;
	}

	.ph-mega-service::after {
		display: none !important;
	}

	.ph-mega-service__media {
		width: 54px !important;
		height: 54px !important;
		min-height: 54px !important;
		overflow: hidden !important;
		border-right: 1px solid #e4ecf7 !important;
	}

	.ph-mega-service__media img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}

	.ph-mega-service__body {
		display: flex !important;
		align-items: center !important;
		min-height: 54px !important;
		padding: 7px 9px !important;
	}

	.ph-mega-service h4 {
		margin: 0 !important;
		font-size: 10px !important;
		line-height: 1.25 !important;
		color: #11346e !important;
	}
}

@media (max-width: 600px) {
	.ph-mega-menu__grid {
		grid-template-columns: 1fr !important;
		max-height: 360px !important;
	}

	.ph-mega-service {
		grid-template-columns: 58px minmax(0, 1fr) !important;
		min-height: 58px !important;
	}

	.ph-mega-service__media {
		width: 58px !important;
		height: 58px !important;
		min-height: 58px !important;
	}

	.ph-mega-service__body {
		min-height: 58px !important;
	}

	.ph-mega-service h4 {
		font-size: 11px !important;
	}
}
