/**
 * Main theme styles
 * Bright Horizons Psychiatry — Rockville, MD
 *
 * Tokens live in variables.css — use var(--bhp-*) here, never hard-code brand values.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	font-family: var(--bhp-font);
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	font-family: var(--bhp-font);
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-base);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
	background-color: var(--bhp-surface);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
p, a, li, button, input, select, textarea,
.bhp-btn,
.bhp-nav,
.bhp-header {
	font-family: var(--bhp-font);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--bhp-space-4);
	font-weight: var(--bhp-fw-bold);
	line-height: var(--bhp-lh-tight);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
}

h1 { font-size: var(--bhp-fs-4xl); }
h2 { font-size: var(--bhp-fs-3xl); }
h3 { font-size: var(--bhp-fs-2xl); }
h4 { font-size: var(--bhp-fs-xl); }
h5 { font-size: var(--bhp-fs-lg); }
h6 { font-size: var(--bhp-fs-base); }

p {
	margin: 0 0 var(--bhp-space-4);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bhp-primary);
	text-decoration: none;
	transition: color var(--bhp-transition);
}

a:hover,
a:focus-visible {
	color: var(--bhp-primary-dark);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ——— Buttons ——— */
.bhp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bhp-space-2);
	padding: var(--bhp-btn-pad-y) var(--bhp-btn-pad-x);
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-tight);
	border: var(--bhp-btn-border-width) solid transparent;
	border-radius: var(--bhp-btn-radius);
	transition:
		background-color var(--bhp-transition),
		border-color var(--bhp-transition),
		color var(--bhp-transition),
		transform var(--bhp-transition);
}

/* Healen-style dual-label clip flip (same as CuraReach) */
.bhp-btn__outside {
	display: block;
	height: 1.375em;
	overflow: hidden;
}

.bhp-btn__inside {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bhp-btn__text {
	display: block;
	flex: none;
	line-height: 1.375em;
	white-space: nowrap;
	transform: translate3d(0, 0%, 0);
	transform-style: preserve-3d;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.bhp-btn:hover .bhp-btn__text,
.bhp-btn:focus-visible .bhp-btn__text {
	transform: translate3d(0, -100%, 0);
}

.bhp-btn:focus-visible {
	outline: 2px solid var(--bhp-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.bhp-btn__text {
		transition: none;
	}

	.bhp-btn:hover .bhp-btn__text,
	.bhp-btn:focus-visible .bhp-btn__text {
		transform: none;
	}
}

.bhp-btn--accent {
	background-color: var(--bhp-accent);
	color: var(--bhp-white);
	border-color: var(--bhp-accent);
}

.bhp-btn--accent:hover,
.bhp-btn--accent:focus-visible {
	background-color: var(--bhp-accent-dark);
	border-color: var(--bhp-accent-dark);
	color: var(--bhp-white);
}

.bhp-btn--primary {
	background-color: var(--bhp-primary);
	color: var(--bhp-white);
	border-color: var(--bhp-primary);
}

.bhp-btn--primary:hover,
.bhp-btn--primary:focus-visible {
	background-color: var(--bhp-primary-dark);
	border-color: var(--bhp-primary-dark);
	color: var(--bhp-white);
}

.bhp-btn--outline {
	background-color: transparent;
	color: var(--bhp-primary);
	border-color: var(--bhp-primary);
}

.bhp-btn--outline:hover,
.bhp-btn--outline:focus-visible {
	background-color: var(--bhp-primary-dark);
	border-color: var(--bhp-primary-dark);
	color: var(--bhp-white);
}

/* Outline CTA for midnight / dark surfaces (Design System — Ocean) */
.bhp-btn--on-dark {
	background-color: transparent;
	color: var(--bhp-white);
	border-color: var(--bhp-white);
}

.bhp-btn--on-dark:hover,
.bhp-btn--on-dark:focus-visible {
	background-color: var(--bhp-white);
	border-color: var(--bhp-white);
	color: var(--bhp-midnight);
}

.bhp-btn--on-dark:focus-visible {
	outline-color: var(--bhp-white);
}

.bhp-btn--sm {
	padding: var(--bhp-btn-pad-y-sm) var(--bhp-btn-pad-x-sm);
	font-size: var(--bhp-fs-sm);
}

/* ——— Closing CTA (Design System — Ocean) ——— */
.bhp-closing-cta {
	overflow: clip;
	padding-block: var(--bhp-section-y);
	background-color: var(--bhp-midnight);
	color: var(--bhp-white);
}

.bhp-closing-cta__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-6);
	max-width: 47.5rem; /* 760px — matches Figma title measure */
}

.bhp-closing-cta__title {
	margin: 0;
	max-width: 47.5rem;
	font-size: clamp(1.75rem, 4vw, 2.625rem); /* → 42px */
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-white);
	text-wrap: balance;
}

.bhp-closing-cta__text {
	margin: 0;
	max-width: 43.75rem; /* 700px */
	font-size: var(--bhp-fs-body-lg);
	font-weight: var(--bhp-fw-medium);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-relaxed);
	color: rgba(255, 255, 255, 0.95);
	text-wrap: pretty;
}

.bhp-closing-cta__btn {
	align-self: flex-start;
}

/* ——— Site Header (modular full-width) ——— */
.bhp-header {
	position: sticky;
	top: 0;
	z-index: var(--bhp-z-header);
	isolation: isolate;
	width: 100%;
	background: #fff;
}

/* Utility top bar */
.bhp-topbar {
	width: 100%;
	background: var(--bhp-primary-dark);
	color: var(--bhp-white);
}

.bhp-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bhp-space-4);
	min-height: var(--bhp-topbar-height);
	padding: 0.4rem clamp(1rem, 3vw, 2rem);
}

.bhp-topbar__message {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--bhp-fs-xs);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-wide);
	color: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bhp-topbar__track {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bhp-topbar__text--clone {
	display: none;
}

.bhp-topbar__links {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: var(--bhp-space-1);
}

.bhp-topbar__link {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	font-size: var(--bhp-fs-xs);
	font-weight: var(--bhp-fw-semibold);
	line-height: 1.3;
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-white);
	text-decoration: none;
	white-space: nowrap;
	border-radius: var(--bhp-btn-radius);
	transition:
		color var(--bhp-transition-fast),
		background-color var(--bhp-transition-fast);
}

.bhp-topbar__link + .bhp-topbar__link {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0;
	padding-left: 0.75rem;
	margin-left: 0.15rem;
}

.bhp-topbar__link:hover,
.bhp-topbar__link:focus-visible {
	color: var(--bhp-sky);
}

.bhp-topbar__link:focus-visible {
	outline: 2px solid var(--bhp-sky);
	outline-offset: 2px;
}

@keyframes bhp-topbar-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.bhp-topbar__inner {
		gap: var(--bhp-space-2);
		padding-inline: 0.75rem;
	}

	.bhp-topbar__message {
		font-size: 0.6875rem;
		line-height: 1.4;
		text-overflow: clip;
		mask-image: linear-gradient(
			90deg,
			transparent 0%,
			#000 8%,
			#000 92%,
			transparent 100%
		);
		-webkit-mask-image: linear-gradient(
			90deg,
			transparent 0%,
			#000 8%,
			#000 92%,
			transparent 100%
		);
	}

	.bhp-topbar__track {
		display: flex;
		width: max-content;
		overflow: visible;
		text-overflow: unset;
		animation: bhp-topbar-scroll 22s linear infinite;
		will-change: transform;
	}

	.bhp-topbar__text {
		flex: 0 0 auto;
		padding-right: 2.5rem;
	}

	.bhp-topbar__text--clone {
		display: inline;
	}

	.bhp-topbar__message:hover .bhp-topbar__track,
	.bhp-topbar__message:focus-within .bhp-topbar__track {
		animation-play-state: paused;
	}

	.bhp-topbar__link {
		padding: 0.2rem 0.45rem;
		font-size: 0.625rem;
	}

	.bhp-topbar__link + .bhp-topbar__link {
		padding-left: 0.55rem;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.bhp-topbar__message {
		text-overflow: ellipsis;
		mask-image: none;
		-webkit-mask-image: none;
	}

	.bhp-topbar__track {
		display: block;
		width: auto;
		overflow: hidden;
		text-overflow: ellipsis;
		animation: none;
		will-change: auto;
	}

	.bhp-topbar__text {
		padding-right: 0;
	}

	.bhp-topbar__text--clone {
		display: none;
	}
}

.bhp-header__bar {
	position: relative;
	width: 100%;
	background: #fff;
	border-bottom: none;
	box-shadow: var(--bhp-shadow-soft);
	transition: box-shadow var(--bhp-transition);
}

.bhp-header.is-scrolled .bhp-header__bar {
	box-shadow: var(--bhp-shadow-soft);
}

/* Drop header shadow while Services megamenu is open — avoids a gray seam */
.bhp-header__bar:has(.menu-item--mega:hover),
.bhp-header__bar:has(.menu-item--mega:focus-within) {
	box-shadow: none;
}

.bhp-header__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: var(--bhp-header-height);
}

@media (min-width: 992px) {
	.bhp-header__inner {
		min-height: 5.75rem;
	}
}

.bhp-header__brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: min(100%, 280px);
	min-width: 0;
	padding: 0.75rem clamp(1rem, 3vw, 2rem);
	z-index: 2;
}

.bhp-header__logo-link {
	display: inline-flex;
	align-items: center;
	color: var(--bhp-ink);
	text-decoration: none;
	transition: opacity var(--bhp-transition-fast);
}

.bhp-header__logo-link:hover,
.bhp-header__logo-link:focus-visible {
	opacity: 0.88;
}

.bhp-header__logo-img,
.bhp-header__brand .custom-logo {
	display: block;
	height: auto;
	width: auto;
	max-height: var(--bhp-logo-max-height);
	max-width: var(--bhp-logo-max-width);
	object-fit: contain;
}

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

@media (min-width: 992px) {
	.bhp-header__brand {
		max-width: 260px;
		border-right: 1px solid var(--bhp-border);
	}

	:root {
		--bhp-logo-max-height: 48px;
		--bhp-logo-max-width: 220px;
	}
}

/* Call block — "Call us" + number + icon */
.bhp-header__call {
	display: none;
	flex-direction: row;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem clamp(1rem, 2.5vw, 1.75rem);
	color: var(--bhp-primary);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--bhp-transition);
}

.bhp-header__call:hover,
.bhp-header__call:focus-visible {
	color: var(--bhp-primary-dark);
}

.bhp-header__call-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.15rem;
	text-align: right;
}

.bhp-header__call-label {
	font-size: var(--bhp-fs-xs);
	font-weight: var(--bhp-fw-regular);
	line-height: 1.2;
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink-muted);
}

.bhp-header__call-number {
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: 1.2;
	color: var(--bhp-primary);
}

.bhp-header__call-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	line-height: 1;
	font-size: 1.15rem !important;
	color: var(--bhp-primary);
	background: var(--bhp-primary-light);
	border-radius: 50%;
	box-shadow: none;
}

.bhp-header__call-icon::before {
	display: block;
	line-height: 1;
}

.bhp-header__cta-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin-left: auto;
	padding: 0.75rem clamp(1rem, 3vw, 2rem);
	z-index: 2;
}

.bhp-header__cta {
	display: none;
}

.bhp-header__mobile-actions {
	display: none;
	margin-top: var(--bhp-space-6);
	padding-top: var(--bhp-space-6);
	border-top: 1px solid var(--bhp-border);
}

.bhp-header__mobile-actions .bhp-btn {
	width: 100%;
}

.bhp-header__mobile-actions .bhp-header__call {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: var(--bhp-space-4);
	padding: 0;
}

.bhp-header__mobile-actions .bhp-header__call-text {
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	text-align: center;
}

.bhp-header__mobile-actions .bhp-header__call-label {
	font-size: var(--bhp-fs-sm);
}

.bhp-header__mobile-actions .bhp-header__call-number {
	font-size: var(--bhp-fs-md);
}

/* ——— Primary Navigation ——— */
.bhp-nav {
	display: none;
}

.bhp-nav__drawer-head,
.bhp-nav-overlay {
	display: none;
}

.bhp-nav__drawer-body {
	display: contents;
}

.bhp-nav__list {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0.15rem;
	width: auto;
}

/* Separate Mobile Menu location: hide desktop list in the drawer */
.bhp-nav__list--desktop {
	display: none;
}

.bhp-nav__list--mobile {
	display: flex;
}

.bhp-nav__list > .menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.bhp-nav__list > .menu-item > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.7rem;
	font-size: 0.9375rem;
	font-weight: var(--bhp-fw-medium);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-primary);
	border-radius: 0;
	white-space: nowrap;
	transition: color var(--bhp-transition);
}

.bhp-nav__list > .menu-item > a:hover,
.bhp-nav__list > .menu-item > a:focus-visible {
	color: var(--bhp-primary-dark);
	background: transparent;
}

.bhp-nav__list > .menu-item.current-menu-item > a,
.bhp-nav__list > .menu-item.current-menu-ancestor > a {
	color: var(--bhp-primary-dark);
	font-weight: var(--bhp-fw-semibold);
}

.bhp-nav__list > .menu-item-has-children > a::after {
	content: "\f078";
	display: inline-block;
	margin-left: 0.2rem;
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	font-size: 0.65em;
	line-height: 1;
	opacity: 0.75;
	border: none;
	transform: none;
	width: auto;
	height: auto;
	margin-top: 0;
}

/* Dropdown sub-menus */
.bhp-nav__list .sub-menu {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: var(--bhp-space-2);
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-border);
	border-top: none;
	border-radius: 0;
	box-shadow: var(--bhp-shadow-md);
	transform: translateY(-0.5rem);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: var(--bhp-z-dropdown);
	transition:
		opacity var(--bhp-duration) var(--bhp-ease-out),
		transform var(--bhp-duration) var(--bhp-ease-out),
		visibility 0s linear var(--bhp-duration);
}

.bhp-nav__list > .menu-item-has-children:hover > .sub-menu,
.bhp-nav__list > .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
		opacity var(--bhp-duration) var(--bhp-ease-out),
		transform var(--bhp-duration) var(--bhp-ease-out),
		visibility 0s linear 0s;
}

.bhp-nav__list .sub-menu .menu-item a {
	display: block;
	padding: 0.7rem 0.85rem;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	color: var(--bhp-ink);
	border-radius: var(--bhp-btn-radius);
}

.bhp-nav__list .sub-menu .menu-item a:hover,
.bhp-nav__list .sub-menu .menu-item a:focus-visible {
	color: var(--bhp-primary);
	background-color: var(--bhp-primary-light);
}

/* ——— Services megamenu (image boxes) ——— */
.bhp-nav__list > .menu-item--mega {
	position: static;
}

.bhp-nav__list > .menu-item--mega > .bhp-mega {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
	min-width: 0;
	padding: 1.25rem clamp(1rem, 3vw, 2rem);
	top: calc(100% - 1px);
	left: 0;
	right: 0;
	transform: translateY(-0.75rem);
	background: #fff;
	border: 0;
	border-top: 0;
	border-radius: 0;
	box-shadow: 0 16px 32px rgba(0, 17, 30, 0.1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: calc(var(--bhp-z-dropdown) + 1);
	transition:
		opacity var(--bhp-duration) var(--bhp-ease-out),
		transform var(--bhp-duration) var(--bhp-ease-out),
		visibility 0s linear var(--bhp-duration);
}

.bhp-nav__list > .menu-item--mega:hover > .bhp-mega,
.bhp-nav__list > .menu-item--mega:focus-within > .bhp-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
		opacity var(--bhp-duration) var(--bhp-ease-out),
		transform var(--bhp-duration) var(--bhp-ease-out),
		visibility 0s linear 0s;
}

.bhp-nav__list .bhp-mega .bhp-mega__item {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	height: 100%;
	min-height: 0;
}

.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 8.5rem;
	align-items: stretch;
	column-gap: 0.85rem;
	width: 100%;
	height: 100%;
	min-height: 11rem;
	padding: 0.85rem;
	text-align: left;
	text-decoration: none;
	color: var(--bhp-ink);
	background: var(--bhp-surface-soft);
	border: none;
	border-radius: var(--bhp-btn-radius);
	overflow: hidden;
	transition:
		background-color var(--bhp-transition),
		color var(--bhp-transition),
		box-shadow var(--bhp-transition);
}

.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:hover,
.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:focus-visible {
	background: var(--bhp-primary-light);
	border: none;
	color: var(--bhp-ink);
	box-shadow: none;
	outline: none;
}

.bhp-nav__list .bhp-mega .bhp-mega__media {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	align-self: stretch;
	justify-self: stretch;
	border-radius: var(--bhp-btn-radius);
	overflow: hidden;
	background: var(--bhp-surface-muted);
	border: none;
}

.bhp-nav__list .bhp-mega .bhp-mega__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform var(--bhp-transition);
}

.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:hover .bhp-mega__image,
.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:focus-visible .bhp-mega__image {
	transform: scale(1.04);
}

.bhp-nav__list .bhp-mega .bhp-mega__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	align-self: stretch;
	gap: 0.35rem;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0;
}

.bhp-nav__list .bhp-mega .bhp-mega__label {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	flex: 0 0 auto;
	min-height: calc(2 * 1.35em);
	margin: 0;
	padding: 0;
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
}

.bhp-nav__list .bhp-mega .bhp-mega__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	flex: 0 0 auto;
	margin: 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-regular);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-ink-muted);
}

.bhp-nav__list .bhp-mega .bhp-mega__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.35rem;
	flex: 0 0 auto;
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-semibold);
	line-height: 1.2;
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-primary);
}

.bhp-nav__list .bhp-mega .bhp-mega__cta i {
	font-size: 0.7em;
	transition: transform var(--bhp-transition-fast);
}

.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:hover .bhp-mega__cta,
.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:focus-visible .bhp-mega__cta {
	color: var(--bhp-primary-dark);
}

.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:hover .bhp-mega__cta i,
.bhp-nav__list .bhp-mega .menu-item .bhp-mega__card:focus-visible .bhp-mega__cta i {
	transform: translateX(3px);
}

/* ——— Conditions megamenu (link columns) ——— */
.bhp-nav__list > .menu-item--mega > .bhp-mega--conditions {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	min-width: 0;
	height: auto;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col > .bhp-mega-col__title,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col > a.bhp-mega-col__title {
	display: block;
	margin: 0;
	padding: 0 0 0.55rem;
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--bhp-border);
	border-radius: 0;
	background: transparent;
	transition: color var(--bhp-transition);
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col > .bhp-mega-col__title:hover,
.bhp-nav__list .bhp-mega--conditions .bhp-mega-col > .bhp-mega-col__title:focus-visible,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col > a.bhp-mega-col__title:hover,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col > a.bhp-mega-col__title:focus-visible {
	color: var(--bhp-primary);
	background: transparent;
	outline: none;
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col__list {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
	position: static;
	/* Do not force visibility/pointer-events — that re-enables closed mega
	   links over the page hero and opens the menu on hover. Parent .bhp-mega
	   already toggles those on :hover / :focus-within. */
	transform: none;
	box-shadow: none;
	border: none;
	min-width: 0;
	background: transparent;
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col__list > .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col__list > .menu-item > a,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col__list > .menu-item > a {
	display: block;
	padding: 0.4rem 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-regular);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-ink-muted);
	text-decoration: none;
	border-radius: 0;
	background: transparent;
	transition: color var(--bhp-transition);
}

.bhp-nav__list .bhp-mega--conditions .bhp-mega-col__list > .menu-item > a:hover,
.bhp-nav__list .bhp-mega--conditions .bhp-mega-col__list > .menu-item > a:focus-visible,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col__list > .menu-item > a:hover,
.bhp-nav__list .sub-menu.bhp-mega--conditions .bhp-mega-col__list > .menu-item > a:focus-visible {
	color: var(--bhp-primary);
	background: transparent;
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.bhp-nav__list .sub-menu,
	.bhp-nav__list > .menu-item--mega > .bhp-mega {
		transition: none !important;
		transform: none !important;
	}
}

/* ——— Mobile toggle ——— */
.bhp-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: var(--bhp-white);
	border: 1px solid var(--bhp-border);
	border-radius: var(--bhp-btn-radius);
	cursor: pointer;
	color: var(--bhp-ink);
	transition:
		border-color var(--bhp-transition),
		background-color var(--bhp-transition),
		color var(--bhp-transition);
}

.bhp-nav-toggle:hover,
.bhp-nav-toggle:focus-visible {
	border-color: var(--bhp-primary-light);
	background-color: var(--bhp-primary-light);
	color: var(--bhp-primary);
	outline: none;
}

.bhp-nav-toggle__icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 1.15rem;
	height: 0.8rem;
}

.bhp-nav-toggle__icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: currentColor;
	border-radius: 1px;
	transition: transform var(--bhp-transition), opacity var(--bhp-transition), width var(--bhp-transition);
}

.bhp-nav-toggle__icon span:nth-child(2) {
	width: 70%;
	margin-left: auto;
}

.bhp-nav-toggle[aria-expanded="true"] .bhp-nav-toggle__icon span:nth-child(1) {
	transform: translateY(5.5px) rotate(45deg);
}

.bhp-nav-toggle[aria-expanded="true"] .bhp-nav-toggle__icon span:nth-child(2) {
	opacity: 0;
	width: 100%;
}

.bhp-nav-toggle[aria-expanded="true"] .bhp-nav-toggle__icon span:nth-child(3) {
	transform: translateY(-5.5px) rotate(-45deg);
}

/* Keep hamburger behind the open drawer (close lives in the panel) */
.bhp-nav-toggle[aria-expanded="true"] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* ——— Mobile off-canvas (independent from desktop nav styles) ——— */
@media (max-width: 991.98px) {
	.bhp-nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: var(--bhp-z-overlay);
		background: rgba(0, 17, 30, 0.48);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		cursor: pointer;
		transition:
			opacity 0.28s var(--bhp-ease-out),
			visibility 0s linear 0.28s;
	}

	.bhp-nav-overlay.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition:
			opacity 0.28s var(--bhp-ease-out),
			visibility 0s linear 0s;
	}

	body.bhp-nav-is-open {
		overflow: hidden;
		touch-action: none;
	}

	body.bhp-nav-is-open .bhp-header__cta-wrap {
		z-index: 0;
	}

	.bhp-nav {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: calc(var(--bhp-z-overlay) + 1);
		width: min(22rem, 88vw);
		margin: 0;
		padding: 0;
		background: var(--bhp-surface);
		box-shadow: var(--bhp-shadow-lg);
		transform: translate3d(100%, 0, 0);
		visibility: hidden;
		pointer-events: none;
		overflow: hidden;
		transition:
			transform 0.32s var(--bhp-ease-out),
			visibility 0s linear 0.32s;
	}

	.bhp-nav--open {
		transform: translate3d(0, 0, 0);
		visibility: visible;
		pointer-events: auto;
		transition:
			transform 0.32s var(--bhp-ease-out),
			visibility 0s linear 0s;
	}

	.bhp-nav__drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		gap: var(--bhp-space-4);
		min-height: var(--bhp-header-height);
		padding: 0 var(--bhp-space-5);
		border-bottom: 1px solid var(--bhp-border);
		background: var(--bhp-surface);
	}

	.bhp-nav__drawer-title {
		margin: 0;
		font-size: var(--bhp-fs-lg);
		font-weight: var(--bhp-fw-semibold);
		letter-spacing: var(--bhp-ls-tight);
		color: var(--bhp-primary);
	}

	.bhp-nav__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		background: transparent;
		border: 1px solid var(--bhp-border);
		border-radius: var(--bhp-btn-radius);
		color: var(--bhp-ink);
		cursor: pointer;
		transition:
			border-color var(--bhp-transition),
			background-color var(--bhp-transition),
			color var(--bhp-transition);
	}

	.bhp-nav__close:hover,
	.bhp-nav__close:focus-visible {
		border-color: var(--bhp-primary-light);
		background-color: var(--bhp-primary-light);
		color: var(--bhp-primary);
		outline: none;
	}

	.bhp-nav__close-icon {
		position: relative;
		display: block;
		width: 0.9rem;
		height: 0.9rem;
	}

	.bhp-nav__close-icon::before,
	.bhp-nav__close-icon::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
	}

	.bhp-nav__close-icon::before {
		transform: translateY(-50%) rotate(45deg);
	}

	.bhp-nav__close-icon::after {
		transform: translateY(-50%) rotate(-45deg);
	}

	.bhp-nav__drawer-body {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: var(--bhp-space-4) var(--bhp-space-5) var(--bhp-space-8);
		background: var(--bhp-surface-soft);
	}

	/* Mobile list — simple stacked links, not desktop mega/dropdown chrome */
	.bhp-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: var(--bhp-space-1);
		width: 100%;
	}

	.bhp-nav__list > .menu-item {
		flex-direction: column;
		align-items: stretch;
		height: auto;
	}

	.bhp-nav__list > .menu-item > a {
		display: flex;
		align-items: center;
		width: 100%;
		height: auto;
		padding: var(--bhp-space-2) var(--bhp-space-3);
		font-size: var(--bhp-fs-base);
		font-weight: var(--bhp-fw-medium);
		color: var(--bhp-ink);
		white-space: normal;
		border-radius: var(--bhp-btn-radius);
		text-align: left;
	}

	.bhp-nav__list > .menu-item-has-children > a {
		position: relative;
		padding-right: 2.75rem;
	}

	.bhp-nav__list > .menu-item > a:hover,
	.bhp-nav__list > .menu-item > a:focus-visible {
		color: var(--bhp-primary);
		background: var(--bhp-primary-light);
	}

	.bhp-nav__list > .menu-item.current-menu-item > a,
	.bhp-nav__list > .menu-item.current-menu-ancestor > a {
		background: var(--bhp-primary-light);
		color: var(--bhp-primary);
	}

	/* Soft bg stays put; only the icon rotates */
	.bhp-nav__list > .menu-item-has-children > a::before {
		content: "";
		position: absolute;
		top: 50%;
		right: var(--bhp-space-3);
		left: auto;
		display: block;
		width: 1.75rem;
		height: 1.75rem;
		margin: 0;
		background: var(--bhp-primary-light);
		border-radius: var(--bhp-radius);
		transform: translateY(-50%);
		transition: background-color var(--bhp-transition);
	}

	.bhp-nav__list > .menu-item-has-children > a::after {
		position: absolute;
		top: 50%;
		right: var(--bhp-space-3);
		left: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.75rem;
		height: 1.75rem;
		margin: 0;
		font-size: 0.625rem;
		line-height: 1;
		opacity: 1;
		color: var(--bhp-primary);
		background: transparent;
		border-radius: 0;
		transform: translateY(-50%);
		transition:
			transform var(--bhp-transition),
			color var(--bhp-transition);
	}

	.bhp-nav__list > .menu-item-has-children.is-submenu-open > a::before {
		background: var(--bhp-primary);
	}

	.bhp-nav__list > .menu-item-has-children.is-submenu-open > a::after {
		transform: translateY(-50%) rotate(180deg);
		color: var(--bhp-white);
	}

	/* Accordion submenus — ignore desktop hover/focus megas */
	.bhp-nav__list .sub-menu,
	.bhp-nav__list > .menu-item--mega > .bhp-mega,
	.bhp-nav__list > .menu-item-has-children:hover > .sub-menu,
	.bhp-nav__list > .menu-item-has-children:focus-within > .sub-menu,
	.bhp-nav__list > .menu-item--mega:hover > .bhp-mega,
	.bhp-nav__list > .menu-item--mega:focus-within > .bhp-mega {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		max-height: none;
		margin: 0;
		padding: 0;
		left: auto;
		right: auto;
		top: auto;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		overflow: visible;
		z-index: auto;
		transition: none;
	}

	.bhp-nav__list > .menu-item-has-children.is-submenu-open > .sub-menu,
	.bhp-nav__list > .menu-item-has-children.is-submenu-open:hover > .sub-menu,
	.bhp-nav__list > .menu-item-has-children.is-submenu-open:focus-within > .sub-menu,
	.bhp-nav__list > .menu-item--mega.is-submenu-open > .bhp-mega,
	.bhp-nav__list > .menu-item--mega.is-submenu-open:hover > .bhp-mega,
	.bhp-nav__list > .menu-item--mega.is-submenu-open:focus-within > .bhp-mega {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.bhp-nav__list .sub-menu .menu-item {
		display: block;
		width: 100%;
	}

	.bhp-nav__list .sub-menu .menu-item a {
		display: block;
		width: 100%;
		padding: var(--bhp-space-2) var(--bhp-space-3) var(--bhp-space-2) var(--bhp-space-6);
		font-size: var(--bhp-fs-base);
		color: var(--bhp-ink-muted);
		border-radius: var(--bhp-btn-radius);
		text-align: left;
	}

	.bhp-nav__list .sub-menu .menu-item a:hover,
	.bhp-nav__list .sub-menu .menu-item a:focus-visible {
		color: var(--bhp-primary);
		background: var(--bhp-primary-light);
	}

	.bhp-nav__list .sub-menu .sub-menu {
		padding-left: var(--bhp-space-4);
		margin-top: 0;
	}

	.bhp-header__mobile-actions {
		display: block;
		margin-top: auto;
		padding-top: var(--bhp-space-6);
	}

	@media (prefers-reduced-motion: reduce) {
		.bhp-nav,
		.bhp-nav-overlay {
			transition: none !important;
		}
	}
}

/* Tablet+: keep call + CTA visible so the bar isn’t empty beside the logo */
@media (min-width: 768px) {
	.bhp-header__call--desktop {
		display: flex;
		border-right: 1px solid var(--bhp-border);
	}

	.bhp-header__cta {
		display: inline-flex;
	}

	.bhp-header__cta-wrap {
		gap: 0.75rem;
	}
}

/* Desktop: logo | nav | call | CTA  (vertical dividers) */
@media (min-width: 992px) {
	.bhp-nav-toggle {
		display: none;
	}

	.bhp-nav {
		display: flex;
		align-items: stretch;
		justify-content: flex-start;
		align-self: stretch;
		flex: 0 1 auto;
		min-width: 0;
		position: static;
		padding: 0 clamp(0.75rem, 1.5vw, 1.25rem);
		border: none;
		box-shadow: none;
		background: transparent;
	}

	.bhp-nav__list {
		align-items: stretch;
		align-self: stretch;
		height: 100%;
	}

	.bhp-nav__list--desktop {
		display: flex;
	}

	.bhp-nav__list--mobile {
		display: none;
	}

	.bhp-nav__list > .menu-item {
		height: 100%;
	}

	.bhp-nav__list > .menu-item > a {
		height: 100%;
		padding: 0 0.7rem;
	}

	.bhp-header__call--desktop {
		display: flex;
		margin-left: auto;
		border-left: 1px solid var(--bhp-border);
		border-right: 1px solid var(--bhp-border);
	}

	.bhp-header__cta-wrap {
		margin-left: 0;
		padding: 0 clamp(1rem, 2.5vw, 1.75rem);
	}

	.bhp-header__cta {
		display: inline-flex;
	}

	.bhp-header__mobile-actions {
		display: none;
	}
}

/* ——— Buttons (header polish) ——— */
.bhp-header .bhp-btn--primary {
	border-radius: var(--bhp-btn-radius);
	padding: 0.85rem 1.5rem;
	letter-spacing: var(--bhp-ls-tight);
	box-shadow: none;
	transition:
		background-color var(--bhp-transition),
		border-color var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-header .bhp-btn--primary:hover,
.bhp-header .bhp-btn--primary:focus-visible {
	transform: none;
}

/* ——— Main content shell ——— */
.bhp-main {
	min-height: 50vh;
}

.bhp-section {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
}

.bhp-section--sm {
	padding-top: var(--bhp-section-y-sm);
	padding-bottom: var(--bhp-section-y-sm);
}

/* ——— Site Footer ——— */
.bhp-footer {
	color: var(--bhp-ink);
	font-size: var(--bhp-fs-sm);
}

/* CTA band */
.bhp-footer-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100svh;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0;
	color: var(--bhp-white);
	background-color: var(--bhp-midnight);
	/* Keep page scroll working when gesture starts on this band (iOS). */
	touch-action: pan-y;
}

@media (max-width: 768px) {
	.bhp-footer-cta {
		min-height: 66vh;
		/* Avoid overflow+transform scroll trapping on touch devices. */
		overflow: visible;
	}
}

.bhp-footer-cta__bg {
	position: absolute;
	/* Oversized so translateY has room without revealing edges */
	inset: -25% 0;
	z-index: 0;
	background-color: var(--bhp-midnight);
	background-image: var(--bhp-footer-cta-image);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	will-change: transform;
	pointer-events: none;
	transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
	.bhp-footer-cta__bg {
		inset: 0;
		will-change: auto;
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhp-footer-cta__bg {
		inset: 0;
		will-change: auto;
		transform: none !important;
	}
}

.bhp-footer-cta__container {
	position: relative;
	z-index: 1;
	width: 100%;
}

.bhp-footer-cta__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--bhp-space-8);
	text-align: center;
}

/* Soft readability pool behind copy — not a full-bleed image wash */
.bhp-footer-cta__inner::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: min(52rem, 120%);
	height: min(28rem, 90%);
	transform: translate(-50%, -50%);
	background: radial-gradient(
		ellipse at center,
		rgba(0, 17, 30, 0.72) 0%,
		rgba(0, 17, 30, 0.45) 45%,
		rgba(0, 17, 30, 0) 75%
	);
	pointer-events: none;
}

.bhp-footer-cta__copy {
	max-width: 42rem;
}

.bhp-footer-cta__title {
	max-width: 30rem;
	margin: 0 auto var(--bhp-space-4);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-white);
	text-shadow:
		0 1px 2px rgba(0, 17, 30, 0.55),
		0 4px 28px rgba(0, 17, 30, 0.65);
}

.bhp-footer-cta__text {
	max-width: 22rem;
	margin: 0 auto;
	font-size: var(--bhp-fs-lg);
	line-height: var(--bhp-lh-relaxed);
	color: rgba(255, 255, 255, 0.95);
	text-shadow:
		0 1px 2px rgba(0, 17, 30, 0.5),
		0 3px 20px rgba(0, 17, 30, 0.55);
}

.bhp-footer-cta__btn {
	flex-shrink: 0;
	border-radius: var(--bhp-btn-radius);
	box-shadow: 0 8px 24px rgba(1, 58, 101, 0.28);
	transition:
		background-color var(--bhp-transition),
		border-color var(--bhp-transition),
		box-shadow var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-footer-cta__btn:hover,
.bhp-footer-cta__btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(1, 58, 101, 0.36);
}

/* FAQ accordion (shared) */
.bhp-faq-item {
	border-bottom: 1px solid var(--bhp-border);
}

.bhp-faq-item:last-child {
	border-bottom: none;
}

.bhp-faq-item__a {
	overflow: hidden;
	max-width: 40rem;
	padding: 0 0 1.25rem;
	transition:
		height var(--bhp-duration-slow) var(--bhp-ease-out),
		opacity var(--bhp-duration-slow) var(--bhp-ease-out),
		padding-bottom var(--bhp-duration-slow) var(--bhp-ease-out);
}

@media (prefers-reduced-motion: reduce) {
	.bhp-faq-item__a {
		transition: none;
	}
}

.bhp-faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bhp-space-4);
	padding: 1.15rem 0;
	list-style: none;
	cursor: pointer;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-ink);
	transition: color var(--bhp-transition);
}

.bhp-faq-item__q::-webkit-details-marker {
	display: none;
}

.bhp-faq-item__q::marker {
	content: "";
}

.bhp-faq-item__q:hover {
	color: var(--bhp-primary);
}

.bhp-faq-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--bhp-radius-full);
	background: var(--bhp-surface-soft);
	border: none;
	color: var(--bhp-ink-muted);
	font-size: 0.7rem;
	transition:
		background-color var(--bhp-transition),
		color var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-faq-item[open] .bhp-faq-item__icon {
	background: var(--bhp-primary-light);
	color: var(--bhp-primary);
	transform: rotate(45deg);
}

.bhp-faq-item[open] .bhp-faq-item__q {
	color: var(--bhp-primary);
}

.bhp-faq-item__a p {
	margin: 0;
	font-size: var(--bhp-fs-md);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
}

/* Rank Math FAQ block — match theme accordion */
.entry-content #rank-math-faq {
	margin: var(--bhp-space-8) 0;
}

.entry-content #rank-math-faq .rank-math-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content #rank-math-faq .rank-math-list-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--bhp-border);
}

.entry-content #rank-math-faq .rank-math-list-item:last-child {
	border-bottom: none;
}

.entry-content #rank-math-faq .rank-math-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bhp-space-4);
	margin: 0;
	padding: 1.15rem 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
	cursor: pointer;
	scroll-margin-top: calc(5.75rem + 1rem);
	transition: color var(--bhp-transition);
}

.entry-content #rank-math-faq .rank-math-question:hover,
.entry-content #rank-math-faq .rank-math-list-item.is-open .rank-math-question {
	color: var(--bhp-primary);
}

.entry-content #rank-math-faq .rank-math-question:focus-visible {
	outline: 2px solid var(--bhp-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.entry-content #rank-math-faq .bhp-faq-item__icon {
	pointer-events: none;
}

.entry-content #rank-math-faq .rank-math-list-item.is-open .bhp-faq-item__icon {
	background: var(--bhp-primary-light);
	color: var(--bhp-primary);
	transform: rotate(45deg);
}

.entry-content #rank-math-faq .rank-math-answer {
	overflow: hidden;
	max-width: 40rem;
	padding: 0 0 1.25rem;
	font-size: var(--bhp-fs-md);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	transition:
		height var(--bhp-duration-slow) var(--bhp-ease-out),
		opacity var(--bhp-duration-slow) var(--bhp-ease-out),
		padding-bottom var(--bhp-duration-slow) var(--bhp-ease-out);
}

.entry-content #rank-math-faq .rank-math-list-item:not(.is-open) .rank-math-answer {
	height: 0;
	opacity: 0;
	padding-bottom: 0;
}

.entry-content #rank-math-faq .rank-math-answer > *:first-child {
	margin-top: 0;
}

.entry-content #rank-math-faq .rank-math-answer > *:last-child {
	margin-bottom: 0;
}

.entry-content #rank-math-faq .rank-math-answer p {
	margin: 0 0 var(--bhp-space-3);
	font-size: var(--bhp-fs-md);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
}

.entry-content #rank-math-faq .rank-math-answer p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.entry-content #rank-math-faq .rank-math-answer {
		transition: none;
	}
}

/* Main dark footer — card + link columns */
.bhp-footer-main {
	padding: clamp(4rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2rem);
	background: var(--bhp-midnight);
	color: rgba(255, 255, 255, 0.72);
}

.bhp-footer-main__top {
	display: grid;
	gap: var(--bhp-space-10);
	align-items: stretch;
}

@media (min-width: 992px) {
	.bhp-footer-main__top {
		grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 3.5rem);
	}
}

/* CTA card */
.bhp-footer-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: rgba(255, 255, 255, 0.025);
	border: none;
	border-radius: var(--bhp-btn-radius);
}

.bhp-footer-card__logo {
	display: inline-flex;
	align-items: center;
	margin-bottom: var(--bhp-space-5);
	text-decoration: none;
}

.bhp-footer-card__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.bhp-footer-card__logo img,
.bhp-footer-card__logo .custom-logo {
	display: block;
	height: auto;
	width: auto;
	max-height: 48px;
	max-width: 200px;
	object-fit: contain;
}

.bhp-footer-card__title {
	margin: 0 0 var(--bhp-space-3);
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	font-weight: var(--bhp-fw-bold);
	line-height: var(--bhp-lh-tight);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-white);
}

.bhp-footer-card__text {
	margin: 0 0 var(--bhp-space-6);
	font-size: var(--bhp-fs-md);
	line-height: var(--bhp-lh-relaxed);
	color: rgba(255, 255, 255, 0.68);
}

.bhp-footer-card__btn {
	width: 100%;
	border-radius: var(--bhp-btn-radius);
	margin-bottom: var(--bhp-space-8);
	box-shadow: none;
	transition:
		background-color var(--bhp-transition),
		border-color var(--bhp-transition),
		color var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-footer-card__btn:hover,
.bhp-footer-card__btn:focus-visible {
	background-color: var(--bhp-white);
	border-color: var(--bhp-white);
	color: var(--bhp-midnight);
	transform: translateY(-1px);
	box-shadow: none;
}

.bhp-footer-card__social {
	display: flex;
	align-items: center;
	gap: var(--bhp-space-3);
	margin-bottom: var(--bhp-space-6);
}

.bhp-footer-card__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--bhp-radius-full);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.75);
	transition:
		background-color var(--bhp-transition),
		color var(--bhp-transition);
}

.bhp-footer-card__social a:hover,
.bhp-footer-card__social a:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: var(--bhp-white);
}

.bhp-footer-trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bhp-space-4);
	margin-top: auto;
	padding-top: var(--bhp-space-6);
}

.bhp-footer-trust__item {
	display: flex;
	align-items: center;
}

.bhp-footer-trust__img {
	display: block;
	height: 48px;
	width: auto;
	object-fit: contain;
}

.bhp-footer-trust__img--legit,
.bhp-footer-trust__img--hipaa {
	max-height: none;
	max-width: none;
}

/* Link columns — 2 cols on mobile, 3 from tablet up */
.bhp-footer-main__links {
	display: grid;
	gap: var(--bhp-space-8) var(--bhp-space-6);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	font-weight: var(--bhp-fw-medium);
}

.bhp-footer-locations {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.bhp-footer-main__links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bhp-footer-locations {
		grid-column: span 2;
	}
}

.bhp-footer-nav__title {
	margin: 0 0 var(--bhp-space-4);
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.92);
}

.bhp-footer-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.bhp-footer-nav__list a {
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--bhp-fs-sm);
	transition: color var(--bhp-transition);
}

.bhp-footer-nav__list a:hover,
.bhp-footer-nav__list a:focus-visible {
	color: var(--bhp-white);
}

/* Offices under Our Locations */
.bhp-footer-locations {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-5);
}

.bhp-footer-locations__grid {
	display: grid;
	gap: var(--bhp-space-5) var(--bhp-space-6);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bhp-footer-office__name {
	margin: 0 0 var(--bhp-space-2);
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-bold);
	line-height: var(--bhp-lh-snug);
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.92);
}

.bhp-footer-office__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-2);
	margin-bottom: var(--bhp-space-2);
}

.bhp-footer-office__heading .bhp-footer-office__name {
	margin: 0;
}

.bhp-footer-office__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.65rem;
	font-size: 0.6875rem;
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a8c5d9;
	background: rgba(1, 58, 101, 0.18);
	border: 1px solid rgba(1, 58, 101, 0.35);
	border-radius: var(--bhp-btn-radius);
}

.bhp-footer-office__address {
	margin: 0 0 var(--bhp-space-4);
	font-style: normal;
	font-size: var(--bhp-fs-sm);
	line-height: var(--bhp-lh-base);
}

.bhp-footer-office__address a {
	color: rgba(255, 255, 255, 0.7);
}

.bhp-footer-office__address a:hover,
.bhp-footer-office__address a:focus-visible {
	color: var(--bhp-white);
}

.bhp-footer-office__meta {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-3);
}

.bhp-footer-office__meta li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: var(--bhp-fs-sm);
	line-height: var(--bhp-lh-base);
	color: rgba(255, 255, 255, 0.68);
}

.bhp-footer-office__label {
	font-weight: var(--bhp-fw-medium);
	color: rgba(255, 255, 255, 0.45);
	font-size: var(--bhp-fs-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bhp-footer-office__meta a {
	color: rgba(255, 255, 255, 0.85);
}

.bhp-footer-office__meta a:hover,
.bhp-footer-office__meta a:focus-visible {
	color: var(--bhp-white);
}

/* Bottom strip inside main footer */
.bhp-footer-main__bottom {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
	.bhp-footer-main__bottom {
		padding-bottom: 4.5rem; /* 3× mobile footer bottom spacing */
	}
}

.bhp-footer-disclaimer {
	width: 100%;
	max-width: none;
	margin: 0 0 var(--bhp-space-6);
	font-size: var(--bhp-fs-xs);
	line-height: var(--bhp-lh-relaxed);
	color: rgba(255, 255, 255, 0.42);
}

.bhp-footer-disclaimer p {
	margin: 0;
}

.bhp-footer-disclaimer p + p {
	margin-top: var(--bhp-space-3);
}

.bhp-footer-disclaimer a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.bhp-footer-disclaimer a:hover,
.bhp-footer-disclaimer a:focus-visible {
	color: rgba(255, 255, 255, 0.85);
}

.bhp-footer-bar__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-4);
}

@media (min-width: 768px) {
	.bhp-footer-bar__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--bhp-space-6);
	}
}

.bhp-footer-bar__copy {
	margin: 0;
	font-size: var(--bhp-fs-xs);
	color: rgba(255, 255, 255, 0.45);
}

.bhp-footer-bar__copy a {
	color: rgba(255, 255, 255, 0.65);
}

.bhp-footer-bar__copy a:hover,
.bhp-footer-bar__copy a:focus-visible {
	color: var(--bhp-white);
}

.bhp-footer-bar__sep {
	margin: 0 0.35rem;
	opacity: 0.5;
}

.bhp-footer-bar__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhp-space-2) var(--bhp-space-5);
}

.bhp-footer-bar__links a {
	font-size: var(--bhp-fs-xs);
	color: rgba(255, 255, 255, 0.5);
}

.bhp-footer-bar__links a:hover,
.bhp-footer-bar__links a:focus-visible {
	color: var(--bhp-white);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
