/* Prakash Hospital header — Prime Ortho inspired premium navy + orange */

body {
	font-family: var(--ph-font);
	padding-top: var(--ph-header-h);
	color: var(--ph-ink);
}

.ph-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--ph-white);
	box-shadow: 0 8px 28px rgba(17, 29, 106, 0.08);
	font-family: var(--ph-font);
}

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

.ph-container {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}

/* Top bar — deep navy like primeortho.in */
.ph-topbar {
	background: var(--ph-navy);
	color: var(--ph-white);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.ph-topbar__inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 14px 18px;
	min-height: 48px;
}

.ph-topbar a {
	color: #f9fbfd;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1.25;
	transition: color 0.2s ease;
}

.ph-topbar a:hover {
	color: var(--ph-teal);
}

.ph-topbar__emergency {
	color: var(--ph-teal) !important;
	font-weight: 600;
}

.ph-topbar__location span:last-child {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 560px;
}

.ph-topbar__phone {
	font-weight: 600;
}

.ph-topbar__cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 18px;
	background: var(--ph-accent);
	color: #fff !important;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(247, 127, 0, 0.35);
}

.ph-topbar__cta:hover {
	background: var(--ph-accent-dark) !important;
	color: #fff !important;
}

.ph-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--ph-teal);
}

/* Main bar */
.ph-mainbar {
	background: var(--ph-white);
	border-bottom: 1px solid var(--ph-line);
}

.ph-mainbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 109px;
}

.ph-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ph-logo img {
	display: block;
	width: 94px;
	height: 60px;
	object-fit: contain;
}

.ph-nav {
	flex: 1;
}

.ph-nav__list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ph-nav__list > li {
	position: relative;
}

.ph-nav__list > li > a {
	display: flex;
	align-items: center;
	min-height: 109px;
	padding: 0 11px;
	color: var(--ph-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 25px;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ph-nav__list > li > a:hover,
.ph-nav__list > li.current-menu-item > a,
.ph-nav__list > li.current-menu-ancestor > a {
	color: var(--ph-accent);
}

.ph-nav__list .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
}

.ph-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--ph-white);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 30;
}

.ph-nav__list > li:hover > .sub-menu,
.ph-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ph-header .ph-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	color: #1e293b !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-transform: none;
}

.ph-header .ph-nav__list .sub-menu a:hover {
	color: var(--ph-accent) !important;
	background: var(--ph-accent-soft);
}

.ph-mainbar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ph-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--ph-brown);
	cursor: pointer;
}

.ph-search-toggle:hover,
.ph-search-toggle[aria-expanded="true"] {
	color: var(--ph-orange);
}

.ph-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ph-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ph-text);
	margin-left: auto;
}

.ph-search {
	background: var(--ph-soft);
	border-top: 1px solid var(--ph-line);
}

.ph-search__form {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
	display: flex;
	gap: 10px;
	padding: 14px 0;
}

.ph-search__form input[type="search"] {
	flex: 1;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ph-line);
	border-radius: 999px;
	font-family: var(--ph-font);
	font-size: 14px;
}

.ph-search__form button {
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ph-accent);
	color: #fff;
	font-family: var(--ph-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ph-search[hidden] {
	display: none !important;
}

@media (max-width: 782px) {
	.admin-bar .ph-header {
		top: 46px;
	}
}

@media (max-width: 1100px) {
	:root {
		--ph-header-h: 128px;
	}

	.ph-topbar__emergency {
		display: none;
	}

	.ph-topbar__inner {
		grid-template-columns: 1fr auto auto;
	}

	.ph-topbar__cta {
		min-height: 30px;
		padding: 0 12px;
		font-size: 11px;
	}

	.ph-nav__list > li > a {
		padding: 0 8px;
		font-size: 13px;
	}
}

@media (max-width: 980px) {
	:root {
		--ph-header-h: 118px;
	}

	.ph-topbar__inner {
		min-height: 48px;
	}

	.ph-topbar__location span:last-child {
		max-width: 52vw;
		font-size: 12px;
	}

	.ph-mainbar__inner {
		min-height: 70px;
	}

	.ph-menu-toggle {
		display: inline-flex;
	}

	.ph-nav {
		position: fixed;
		top: var(--ph-header-h);
		right: 0;
		left: auto;
		width: min(320px, 86vw);
		height: calc(100vh - var(--ph-header-h));
		background: #fff;
		box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
		padding: 16px 0 40px;
		overflow-y: auto;
		transform: translateX(110%);
		transition: transform 0.25s ease;
		z-index: 10000;
	}

	.admin-bar .ph-nav {
		top: calc(var(--ph-header-h) + 46px);
		height: calc(100vh - var(--ph-header-h) - 46px);
	}

	body.ph-menu-open .ph-nav {
		transform: translateX(0);
	}

	.ph-nav__list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
	}

	.ph-nav__list > li > a {
		min-height: 0;
		padding: 14px 22px;
		border-bottom: 1px solid #f0f0f0;
	}

	.ph-nav__list .sub-menu {
		position: static;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		background: #fafafa;
		padding: 0;
	}

	.ph-nav__list > li.is-open > .sub-menu {
		display: block;
	}

	.ph-nav__list .sub-menu a {
		padding: 10px 22px 10px 36px;
	}
}

@media (max-width: 600px) {
	body {
		padding-top: 108px;
	}

	:root {
		--ph-header-h: 108px;
	}
}
