/* Smart Health Hints — clean site header */

:root {
	--shh-blue: #1e4d8c;
	--shh-blue-dark: #163a6b;
	--shh-green: #3cb54a;
	--shh-text: #1a2b4a;
	--shh-muted: #5b6b7c;
	--shh-line: #e4ebf3;
	--shh-white: #ffffff;
	--shh-header-h: 84px;
	--shh-font: "Manrope", "Plus Jakarta Sans", sans-serif;
}

/* BeBuilder header is the primary editable header — light brand polish only */
#mfn-header-template {
	font-family: var(--shh-font);
}

#mfn-header-template a {
	text-decoration: none;
}

.shh-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10050;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
	font-family: var(--shh-font);
}

.shh-header.is-scrolled {
	border-bottom-color: var(--shh-line);
	box-shadow: 0 8px 28px rgba(22, 58, 107, 0.08);
}

.shh-header-spacer {
	height: var(--shh-header-h);
}

.shh-header__inner {
	width: min(100% - 2rem, 1200px);
	margin: 0 auto;
	min-height: var(--shh-header-h);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.25rem;
}

.shh-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none !important;
	line-height: 0;
}

.shh-header__logo img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 230px;
	object-fit: contain;
}

.shh-header__nav {
	display: flex;
	justify-content: center;
}

.shh-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.05rem;
}

.shh-header__menu li {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

/* Regular */
body.shh-child .shh-header__menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.4rem 0.85rem;
	border-radius: 0;
	color: #5b6b7c !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	white-space: nowrap;
	position: relative;
	transition: color 0.2s ease;
}

body.shh-child .shh-header__menu a::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	bottom: 0.15rem;
	height: 2px;
	border-radius: 2px;
	background: var(--shh-green);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover */
body.shh-child .shh-header__menu a:hover,
body.shh-child .shh-header__menu a:focus-visible {
	color: var(--shh-blue) !important;
	background: transparent !important;
}

body.shh-child .shh-header__menu a:hover::after,
body.shh-child .shh-header__menu a:focus-visible::after {
	transform: scaleX(1);
	background: var(--shh-blue);
}

/* Active / current page */
body.shh-child .shh-header__menu .current-menu-item > a,
body.shh-child .shh-header__menu .current_page_item > a,
body.shh-child .shh-header__menu .current-menu-ancestor > a,
body.shh-child .shh-header__menu .current_page_parent > a,
body.shh-child .shh-header__menu .current-menu-parent > a,
body.shh-child .shh-header__menu a[aria-current="page"] {
	color: var(--shh-blue-dark) !important;
	font-weight: 700;
	background: transparent !important;
}

body.shh-child .shh-header__menu .current-menu-item > a::after,
body.shh-child .shh-header__menu .current_page_item > a::after,
body.shh-child .shh-header__menu .current-menu-ancestor > a::after,
body.shh-child .shh-header__menu .current_page_parent > a::after,
body.shh-child .shh-header__menu .current-menu-parent > a::after,
body.shh-child .shh-header__menu a[aria-current="page"]::after {
	transform: scaleX(1);
	background: var(--shh-green);
}

/* Active + hover keeps green underline / navy text */
body.shh-child .shh-header__menu .current-menu-item > a:hover,
body.shh-child .shh-header__menu .current_page_item > a:hover,
body.shh-child .shh-header__menu .current-menu-ancestor > a:hover,
body.shh-child .shh-header__menu .current_page_parent > a:hover,
body.shh-child .shh-header__menu .current-menu-parent > a:hover,
body.shh-child .shh-header__menu a[aria-current="page"]:hover {
	color: var(--shh-blue-dark) !important;
}

body.shh-child .shh-header__menu .current-menu-item > a:hover::after,
body.shh-child .shh-header__menu .current_page_item > a:hover::after,
body.shh-child .shh-header__menu .current-menu-ancestor > a:hover::after,
body.shh-child .shh-header__menu .current_page_parent > a:hover::after,
body.shh-child .shh-header__menu .current-menu-parent > a:hover::after,
body.shh-child .shh-header__menu a[aria-current="page"]:hover::after {
	background: var(--shh-green);
}

.shh-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-content: flex-end;
}

.shh-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	background: var(--shh-blue);
	color: #fff !important;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(30, 77, 140, 0.22);
	transition: background 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.shh-header__cta:hover {
	background: var(--shh-blue-dark);
	transform: translateY(-1px);
	color: #fff !important;
}

.shh-header__cta--block {
	width: 100%;
	margin-top: 0.75rem;
}

.shh-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--shh-line);
	border-radius: 12px;
	background: #fff;
	padding: 0;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.shh-header__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--shh-blue);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.shh-header.is-open .shh-header__toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.shh-header.is-open .shh-header__toggle span:nth-child(2) {
	opacity: 0;
}

.shh-header.is-open .shh-header__toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.shh-header__drawer {
	display: none;
	border-top: 1px solid var(--shh-line);
	background: #fff;
	padding: 1rem 1.25rem 1.25rem;
}

.shh-header__drawer[hidden] {
	display: none !important;
}

.shh-header__drawer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

/* Mobile drawer — regular */
body.shh-child .shh-header__drawer-menu a {
	display: block;
	padding: 0.85rem 0.9rem;
	border-radius: 12px;
	color: #5b6b7c !important;
	font-weight: 600;
	text-decoration: none !important;
	background: transparent !important;
	border-left: 3px solid transparent;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Mobile drawer — hover */
body.shh-child .shh-header__drawer-menu a:hover,
body.shh-child .shh-header__drawer-menu a:focus-visible {
	background: #eef4fb !important;
	color: var(--shh-blue) !important;
	border-left-color: var(--shh-blue);
}

/* Mobile drawer — active */
body.shh-child .shh-header__drawer-menu .current-menu-item > a,
body.shh-child .shh-header__drawer-menu .current_page_item > a,
body.shh-child .shh-header__drawer-menu .current-menu-ancestor > a,
body.shh-child .shh-header__drawer-menu .current_page_parent > a,
body.shh-child .shh-header__drawer-menu .current-menu-parent > a,
body.shh-child .shh-header__drawer-menu a[aria-current="page"] {
	background: #e8f8ec !important;
	color: var(--shh-blue-dark) !important;
	font-weight: 700;
	border-left-color: var(--shh-green);
}

/* Homepage content shouldn't sit under fixed header oddly */
body.shh-child #Content {
	padding-top: 0;
}

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

@media screen and (max-width: 782px) {
	body.admin-bar .shh-header {
		top: 46px;
	}
}

@media (max-width: 1024px) {
	.shh-header__nav {
		display: none;
	}

	.shh-header__cta:not(.shh-header__cta--block) {
		display: none;
	}

	.shh-header__toggle {
		display: inline-flex;
	}

	.shh-header__inner {
		grid-template-columns: 1fr auto;
	}

	.shh-header.is-open .shh-header__drawer {
		display: block;
	}

	.shh-header.is-open .shh-header__drawer[hidden] {
		display: block !important;
	}

	.shh-header__logo img {
		height: 44px;
	}
}

@media (max-width: 480px) {
	:root {
		--shh-header-h: 72px;
	}

	.shh-header__logo img {
		height: 40px;
		max-width: 180px;
	}
}
