/**
 * Header shell + top utility bar (scoped).
 * Aligns with hero/page-header (15px inset, 20px top radius). Shell wraps topbar + navbar.
 */

/* Match hero / page-header outer inset (custom.css .hero margin: 15px 15px 0) */
header.main-header {
	top: 15px;
	right: 15px;
	left: 15px;
	box-sizing: border-box;
}

/* Shell: same horizontal box as hero; unified top corners (no separate topbar radius gaps) */
header.main-header .phplus-header-shell {
	background: transparent;
	border: none;
	border-radius: 20px 20px 0 0;
	box-sizing: border-box;
	display: block;
	margin: 0 auto;
	max-width: 100%;
	overflow: visible;
	padding: 0;
	width: 100%;
}

/* Top utility bar — flush inside shell; shell owns top corner radius */
header.main-header .phplus-header-topbar,
header.main-header .phplus-header-utility-bar {
	background: var(--primary-color);
	border: none;
	border-bottom: 1px solid var(--dark-divider-color);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--white-color);
	display: block;
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	max-width: 100%;
	overflow: visible;
	padding: 7px 0;
	width: 100%;
}

/* First child fills shell top corners */
header.main-header .phplus-header-shell > .phplus-header-topbar:first-child,
header.main-header .phplus-header-shell > .phplus-header-utility-bar:first-child {
	border-radius: 20px 20px 0 0;
}

/* Main navbar — restore pre-topbar header-sticky (straight edges, bottom border only) */
header.main-header .phplus-header-shell > .header-sticky,
header.main-header .phplus-header-shell > .phplus-main-header {
	border-radius: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-bottom: 1px solid var(--dark-divider-color);
	box-sizing: border-box;
	display: block;
	left: auto !important;
	margin: 0;
	max-width: 100%;
	position: relative;
	right: auto !important;
	top: 0;
	width: 100%;
	z-index: 100;
}

header.main-header:not(.header-is-stuck) .phplus-header-shell > .header-sticky,
header.main-header:not(.header-is-stuck) .phplus-header-shell > .phplus-main-header {
	background-color: transparent !important;
}

/* Legacy .header-sticky.active — no side inset, no curved box on navbar */
header.main-header .phplus-header-shell > .header-sticky.active {
	background: transparent;
	border: none !important;
	border-bottom: 1px solid var(--dark-divider-color) !important;
	border-radius: 0 !important;
	border-top: none !important;
	left: auto !important;
	right: auto !important;
	top: auto;
	width: 100% !important;
}

header.main-header .phplus-header-shell .navbar,
header.main-header .phplus-header-shell .navbar.navbar-expand-lg,
header.main-header .phplus-header-shell .header-sticky .navbar {
	border-radius: 0 !important;
}

/* Sticky scrolled: full-width bar, square corners (theme .header-is-stuck in custom.css) */
header.main-header.header-is-stuck {
	padding-left: 0;
	padding-right: 0;
}

header.main-header.header-is-stuck .phplus-header-shell {
	border-radius: 0;
	max-width: none;
	width: 100%;
}

header.main-header.header-is-stuck .phplus-header-topbar,
header.main-header.header-is-stuck .phplus-header-utility-bar,
header.main-header.header-is-stuck .phplus-header-shell > .phplus-header-topbar:first-child,
header.main-header.header-is-stuck .phplus-header-shell > .phplus-header-utility-bar:first-child {
	border-radius: 0;
}

header.main-header.header-is-stuck .phplus-header-shell > .header-sticky,
header.main-header.header-is-stuck .phplus-header-shell > .phplus-main-header {
	border-radius: 0 !important;
}

/* Utility + navbar share the same .container width as hero content */
header.main-header .phplus-header-shell .phplus-header-container,
header.main-header .phplus-header-shell .navbar > .container {
	margin-left: auto;
	margin-right: auto;
	max-width: 1300px;
	width: 100%;
}

/* Mega menu must not be clipped on desktop */
@media only screen and (min-width: 992px) {
	header.main-header .phplus-header-shell,
	header.main-header .phplus-header-shell .header-sticky,
	header.main-header .phplus-header-shell .phplus-main-header,
	header.main-header .phplus-header-shell .navbar,
	header.main-header .phplus-header-shell .navbar > .container,
	header.main-header .phplus-header-shell .main-menu,
	header.main-header .phplus-header-shell .main-menu .nav-menu-wrapper,
	header.main-header .phplus-header-shell .main-menu .nav-menu-wrapper > ul.navbar-nav {
		overflow: visible;
	}
}

.phplus-header-utility-bar__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	justify-content: space-between;
}

.phplus-header-utility-bar__notice {
	align-items: center;
	display: flex;
	flex: 1 1 280px;
	gap: 8px;
	margin: 0;
	min-width: 0;
}

.phplus-header-utility-bar__notice-icon {
	color: var(--accent-color);
	flex-shrink: 0;
	font-size: 14px;
}

.phplus-header-utility-bar__notice-short {
	display: none;
}

.phplus-header-utility-bar__actions {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.phplus-header-utility-bar__phone,
.phplus-header-utility-bar__portal {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-family: var(--accent-font);
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	line-height: 1.2;
	padding: 6px 14px;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
	white-space: nowrap;
}

.phplus-header-utility-bar__phone {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid var(--dark-divider-color);
	color: var(--white-color);
}

.phplus-header-utility-bar__phone:hover,
.phplus-header-utility-bar__phone:focus {
	background: var(--white-color);
	color: var(--primary-color);
}

.phplus-header-utility-bar__portal {
	background: var(--accent-color);
	border: 1px solid var(--accent-color);
	color: var(--primary-color);
}

.phplus-header-utility-bar__portal:hover,
.phplus-header-utility-bar__portal:focus {
	background: var(--white-color);
	border-color: var(--white-color);
	color: var(--primary-color);
}

@media only screen and (max-width: 1199px) {
	.phplus-header-utility-bar__notice-full {
		display: none;
	}

	.phplus-header-utility-bar__notice-short {
		display: inline;
	}
}

@media only screen and (max-width: 991px) {
	/* Match custom.css: hero/header full bleed on tablet/mobile */
	header.main-header {
		top: 0;
		right: 0;
		left: 0;
	}

	header.main-header .phplus-header-shell {
		border-radius: 0;
	}

	header.main-header .phplus-header-topbar,
	header.main-header .phplus-header-utility-bar {
		padding: 8px 0 10px;
	}

	header.main-header .phplus-header-shell > .phplus-header-topbar:first-child,
	header.main-header .phplus-header-shell > .phplus-header-utility-bar:first-child {
		border-radius: 0;
	}

	header.main-header .phplus-header-shell > .header-sticky,
	header.main-header .phplus-header-shell > .phplus-main-header {
		border-radius: 0 !important;
	}

	.phplus-header-utility-bar__inner {
		align-items: center;
		flex-direction: column;
		gap: 8px;
		justify-content: center;
		text-align: center;
	}

	.phplus-header-utility-bar__notice {
		flex: 1 1 auto;
		justify-content: center;
		width: 100%;
	}

	.phplus-header-utility-bar__actions {
		justify-content: center;
		width: 100%;
	}

	.phplus-header-utility-bar__phone,
	.phplus-header-utility-bar__portal {
		font-size: 12px;
		padding: 6px 12px;
	}
}

@media only screen and (max-width: 575px) {
	.phplus-header-utility-bar__notice-full {
		display: none;
	}

	.phplus-header-utility-bar__notice-short {
		display: inline;
	}
}

/* Mobile drawer extras */
header.main-header .mega-drawer-contact-label {
	color: var(--text-color);
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 2px;
}

header.main-header .mega-drawer-patient-portal {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	margin-bottom: 10px;
	min-height: 42px;
	padding: 10px 18px;
	width: 100%;
}

header.main-header .mega-drawer-bottom-actions--with-portal {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}
