/**
 * SDB One Foundation — SDB Header element (front end).
 *
 * A verbatim port of the Header2 template's header styling: the Bricks global
 * classes (site-header / nav / morph / mega / mnav families), the template's
 * HTML/CSS code element, and the two per-element rules that mattered. Design
 * tokens (--primary, --surface, --hh, --ease, …) come from the Bricks global
 * variables and ACSS, which are site-wide and independent of the template.
 *
 * The only additions: the .sdb-header-root wrapper (display:contents so the
 * sticky header still pins against #brx-header, not the element wrapper), the
 * .site-header--primary modifier that replaces the old conditional "Color
 * Header" section, and .sdb-loc-card, which replaces two per-element-ID rules
 * from the locations dropdown.
 */

.sdb-header-root {
	display: contents;
}

/* ── Nav bar ─────────────────────────────────────────────────────────────── */

.site-header {
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
	background-color: var(--white);
	padding-right: var(--gutter);
	padding-left: var(--gutter);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	position: sticky !important;
	top: 0 !important;
	z-index: 999 !important;
}

.site-header--primary {
	background-color: var(--primary);
}

.site-header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 1px 24px -16px rgba(21, 22, 26, .4);
}

.site-header__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--hh);
	gap: 28px;
}

@media (max-width: 767px) {
	.site-header__inner {
		justify-items: space-between;
		flex-direction: row;
	}
}

.fr-nav-mm-alpha__logo-wrapper {
	position: relative;
	height: fit-content;
	width: 200px;
	--focus-color: var(--nav-link-color);
	order: -1;
}

.fr-nav-mm-alpha__logo {
	width: 100%;
	height: 100%;
}

.nav {
	display: flex;
	align-items: center;
	justify-self: center;
	gap: 4px;
}

.nav__item {
	list-style: none;
}

.nav__trigger {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	transition: color .18s var(--ease), background .18s var(--ease);
	background-color: transparent;
	gap: 5px;
	color: var(--text-dark);
}

.nav__trigger:hover,
.nav__trigger[aria-expanded="true"] {
	background: var(--primary);
	color: var(--text-light);
}

.nav__trigger a {
	color: var(--text-dark) !important;
	text-decoration: none;
	transition: none;
}

.nav__trigger:hover a,
.nav__trigger[aria-expanded="true"] a {
	color: var(--text-light) !important;
}

.nav__trigger[aria-expanded="true"] .nav__caret {
	transform: rotate(180deg);
}

.nav__caret {
	transition: transform .25s var(--ease);
}

.nav__link {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: var(--text-dark);
	transition: color .18s var(--ease), background .18s var(--ease);
	gap: 5px;
}

.nav__link:hover {
	background: var(--primary);
	color: var(--white);
}

/* The primary-color header flips the hover colors: white pills, dark text. */

.nav__trigger-white {
	gap: 5px;
	color: var(--text-light);
}

.nav__trigger-white:hover,
.nav__trigger-white[aria-expanded="true"] {
	background: var(--white);
	color: var(--text-dark) !important;
}

.nav__trigger-white a {
	color: var(--text-light) !important;
	text-decoration: none;
	transition: none;
}

.nav__trigger-white:hover a,
.nav__trigger-white[aria-expanded="true"] a {
	color: var(--text-dark) !important;
}

.nav__trigger-white[aria-expanded="true"] .nav__caret {
	transform: rotate(180deg);
}

.nav__link-white {
	color: var(--white);
	gap: 5px;
}

.nav__link-white:hover {
	background: var(--white);
	color: var(--text-dark);
}

.actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	justify-self: end;
	gap: 8px;
}

/* Compact CTA size for crowded menus (standard is ~10px/20px at 13.5px).
   High-specificity + ACSS button vars so it wins regardless of sheet order. */
.sdb-header-root .actions .brxe-button.sdb-btn--compact {
	--btn-padding-block: 7px;
	--btn-padding-inline: 14px;
	--btn-font-size: 12.5px;
	padding: 7px 14px;
	font-size: 12.5px;
}

/* Full-width toggle: the inner bar spans the whole header instead of the
   content width. */
.site-header--full > .site-header__inner {
	width: 100%;
	max-width: 100%;
}

.btn--white {
	--btn-background-hover: var(--white);
	--btn-text-color-hover: var(--primary);
	--btn-border-color-hover: var(--primary-dark);
}

.menu-toggle {
	display: none;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	align-items: center;
	justify-content: center;
	transition: background .15s var(--ease);
	background-color: var(--white);
}

.menu-toggle:hover {
	background: var(--line-soft);
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
}

/* ── Morphing dropdown / mega panel ──────────────────────────────────────── */

.morph {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	width: 0;
	height: 0;
	border: none;
	border-radius: var(--radius);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform-origin: top center;
	transform: translateY(8px) scale(.99);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s, width .40s var(--ease), height .40s var(--ease), left .40s var(--ease);
}

.morph.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.morph.no-morph {
	transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}

.morph__content {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none !important;
	opacity: 0;
	pointer-events: none;
	box-sizing: border-box;
	transform: translateX(0);
	will-change: opacity, transform;
}

.morph__content.is-active {
	pointer-events: auto;
}

.morph__content--drop {
	width: 224px !important;
	padding: 8px;
}

.drop-link {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
	transition: background .15s var(--ease), color .15s var(--ease);
}

.drop-link:hover {
	color: var(--ink);
	background: var(--line-soft);
}

/* ── Mega panel ──────────────────────────────────────────────────────────── */

.morph__content--mega {
	width: min(1200px, calc(100vw - 32px)) !important;
	display: grid;
	grid-template-columns: 1.6fr .9fr;
}

.mega__cols {
	padding: 22px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px 22px;
}

.mega__col {
	position: relative;
}

.mega__group-title {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 6px 10px 8px;
}

.mega-link {
	display: block;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
	transition: background .15s var(--ease), color .15s var(--ease);
	position: relative;
}

.mega-link:hover {
	color: var(--ink);
	background: var(--line-soft);
}

.mega-link span {
	display: block;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--muted);
}

.mega-link:has(~ div .sub-megalink) {
	position: relative;
}

.mega-link:has(~ div .sub-megalink)::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	border-bottom: 1px solid var(--neutral-light);
}

.mega-link:hover:has(~ div .sub-megalink)::after {
	opacity: 0;
}

.sub-megalink {
	margin-left: var(--space-xs);
}

.has-sublinks::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	border-bottom: 1px solid var(--neutral-light);
}

/* Background image comes inline from the configured card image. */
.mega__feature {
	color: #fff;
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-color: var(--primary);
	background-position: center center;
	border: 10px solid var(--white);
	border-radius: var(--radius);
	row-gap: var(--space-xs);
}

.mega__feature::before {
	position: absolute;
	background-image: linear-gradient(0deg, var(--primary-dark-trans-70), var(--primary-trans-90));
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
}

:where(.mega__feature > *:not(figcaption)) {
	position: relative;
}

.mega__feature-eyebrow {
	position: relative;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-light-muted);
}

.mega__feature-title {
	position: relative;
	font-size: var(--text-l);
	font-weight: 700;
	line-height: 1.15;
	color: var(--text-light);
}

.mega__feature-text {
	position: relative;
	font-size: var(--text-s);
	color: var(--text-light-muted);
}

.mega__feature-link {
	position: relative;
	margin-top: 6px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	font-size: var(--text-s);
	font-weight: 600;
	text-decoration: none;
	padding-bottom: 1px;
	flex-direction: row-reverse;
	gap: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.mega__feature-link .icon > svg {
	fill: var(--white);
	color: var(--white);
}

.mega__feature-link span {
	color: var(--white);
	text-decoration: none;
}

.mega__feature-link span:hover {
	color: var(--primary-semi-light);
	text-decoration: none !important;
}

/* ── Locations dropdown cards ────────────────────────────────────────────── */

.sdb-loc-card .sdb-loc-card__title {
	flex-direction: row-reverse;
}

.sdb-loc-card .sdb-loc-card__title .icon > svg {
	fill: var(--primary);
	color: var(--primary);
}

/* ── Mobile menu ─────────────────────────────────────────────────────────── */

.mnav {
	position: fixed;
	z-index: 200;
	display: flex;
	flex-direction: column;
	transition: transform .42s var(--ease);
	visibility: hidden;
	inset: 0;
	background: var(--surface);
	transform: translateX(100%);
}

.mnav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mnav__bar {
	height: var(--hh);
	flex-shrink: 0;
	padding: 0 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--primary);
	border-bottom: 1px solid var(--line);
}

.mnav__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mnav__close {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	color: var(--ink-soft);
	transition: background .15s var(--ease);
}

.mnav__close:hover {
	background: var(--line-soft);
}

.mnav__close svg {
	width: 24px;
	height: 24px;
}

.mnav__viewport {
	position: relative;
	overflow: hidden;
	flex: 1;
}

.mnav__footer {
	flex-shrink: 0;
	padding: 16px;
	display: grid;
	grid-template-columns: var(--grid-1);
	border-top: 1px solid var(--line);
	gap: 10px;
	background: var(--surface);
}

.mnav__footer .btn {
	width: 100%;
	padding: 14px;
}

/* ── Ported from the template's HTML/CSS code element ────────────────────── */

@media (max-width: 980px) {
	.nav,
	.actions {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.site-header__inner {
		display: flex;
		justify-content: space-between;
		gap: 0;
		flex-direction: row;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: .01ms !important;
	}
}

.mnav__view {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 14px 16px 32px;
}

.mnav__panel {
	transform: translateX(100%);
	transition: transform .4s var(--ease);
	background: var(--surface);
	z-index: 2;
}

.mnav__panel.is-open {
	transform: translateX(0);
}

.mnav__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mnav__row {
	width: 100%;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 14px;
	border-radius: 13px;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	transition: background .15s var(--ease);
	background-color: transparent;
}

.mnav__row:hover,
.mnav__row:active {
	background: var(--line-soft);
}

.mnav__row .chev {
	color: var(--muted);
	flex-shrink: 0;
}

.mnav__back {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 8px 6px;
	margin-bottom: 8px;
	border-radius: 11px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-soft);
	transition: background .15s var(--ease);
}

.mnav__back:hover {
	background: var(--line-soft);
	color: var(--ink);
}

.mnav__back svg {
	width: 22px;
	height: 22px;
}

.mnav__heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 14px 14px 6px;
}

.mnav__heading:first-child {
	padding-top: 4px;
}

.mnav__sublink {
	display: block;
	padding: 13px 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ink-soft);
	transition: background .15s var(--ease), color .15s var(--ease);
}

.mnav__sublink:hover,
.mnav__sublink:active {
	background: var(--line-soft);
	color: var(--ink);
}

.mnav__sublink small {
	display: block;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--muted);
	margin-top: 1px;
}

.mnav__panel .drop-link {
	display: block;
	padding: 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ink-soft);
	transition: background .15s var(--ease), color .15s var(--ease);
}

.mnav__panel .drop-link:hover,
.mnav__panel .drop-link:active {
	background: var(--line-soft);
	color: var(--ink);
}

.mnav__panel .mega__cols {
	display: block;
	padding: 0;
}

.mnav__panel .mega__cols > div + div {
	margin-top: 4px;
}

.mnav__panel .mega__group-title {
	padding: 16px 14px 6px;
}

.mnav__panel .mega-link {
	padding: 13px 14px;
	border-radius: 12px;
	font-size: 16px;
}

.mnav__panel .mega-link span {
	font-size: 13.5px;
}

.mnav__panel .mega__feature {
	margin-top: 14px;
	border-radius: 16px;
	padding: 22px;
	min-height: 0;
}

body.is-locked {
	overflow: hidden;
}

.hover-bridge {
	position: fixed;
	left: 0;
	right: 0;
	height: 0;
	pointer-events: none;
	z-index: 998; /* one below .morph's z-index */
}

.hover-bridge.is-active {
	pointer-events: auto;
}
