/* Slide-in menu for phones and tablets. See mobile-menu.php. */

.bfhof-drawer {
	--bfhof-drawer-navy: #092E63;
	--bfhof-drawer-orange: #CC4712;
	--bfhof-drawer-line: rgba(255, 255, 255, 0.14);
	--bfhof-drawer-speed: 0.32s;

	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear var(--bfhof-drawer-speed);
}

.bfhof-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

@media (min-width: 1025px) {
	.bfhof-drawer {
		display: none;
	}
}

html.bfhof-drawer-open {
	overflow: hidden;
}

.bfhof-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 17, 38, 0.6);
	opacity: 0;
	transition: opacity var(--bfhof-drawer-speed) ease;
}

.bfhof-drawer.is-open .bfhof-drawer__backdrop {
	opacity: 1;
}

.bfhof-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 420px);
	background: var(--bfhof-drawer-navy);
	color: #FFFFFF;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
	transform: translateX(100%);
	transition: transform var(--bfhof-drawer-speed) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bfhof-drawer.is-open .bfhof-drawer__panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.bfhof-drawer,
	.bfhof-drawer__backdrop,
	.bfhof-drawer__panel {
		transition-duration: 0s;
	}
}

/* ── Head: logo and close ─────────────────────────────────────── */

.bfhof-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px 14px 24px;
	border-bottom: 1px solid var(--bfhof-drawer-line);
}

.bfhof-drawer__logo {
	display: block;
	line-height: 0;
}

.bfhof-drawer__logo-img {
	width: auto;
	height: 64px;
}

.bfhof-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--bfhof-drawer-orange);
	color: #FFFFFF;
	cursor: pointer;
}

.bfhof-drawer__close:hover,
.bfhof-drawer__close:focus {
	background: var(--bfhof-drawer-orange);
	color: #FFFFFF;
}

/* ── Menu ─────────────────────────────────────────────────────── */

.bfhof-drawer__nav {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.bfhof-drawer__list,
.bfhof-drawer__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bfhof-drawer__item {
	border-bottom: 1px solid var(--bfhof-drawer-line);
}

.bfhof-drawer__item--sub {
	border-bottom: 0;
}

.bfhof-drawer__row {
	display: flex;
	align-items: stretch;
}

.bfhof-drawer__row .bfhof-drawer__link {
	flex: 1 1 auto;
}

.bfhof-drawer .bfhof-drawer__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 14px 24px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #FFFFFF;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 22px;
	font-weight: 900;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: left;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.bfhof-drawer__item--sub .bfhof-drawer__link {
	min-height: 48px;
	padding: 10px 24px 10px 40px;
	font-size: 17px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
}

.bfhof-drawer__sub {
	padding: 4px 0 12px;
	background: rgba(0, 0, 0, 0.18);
}

/* Orange bar on hover and on the page you are on. */
.bfhof-drawer .bfhof-drawer__link::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0;
	width: 4px;
	background: var(--bfhof-drawer-orange);
	transform: scaleY(0);
	transition: transform 0.18s ease;
}

.bfhof-drawer .bfhof-drawer__link:hover,
.bfhof-drawer .bfhof-drawer__link:focus {
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
}

.bfhof-drawer .bfhof-drawer__link:hover::before,
.bfhof-drawer .bfhof-drawer__link[aria-current="page"]::before,
.bfhof-drawer .is-current > .bfhof-drawer__toggle::before {
	transform: scaleY(1);
}

.bfhof-drawer__link[aria-current="page"] {
	color: #FFFFFF;
}

.bfhof-drawer__toggle--icon {
	flex: 0 0 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-left: 1px solid var(--bfhof-drawer-line);
	border-radius: 0;
	background: transparent;
	color: #FFFFFF;
	cursor: pointer;
}

.bfhof-drawer__chevron {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.bfhof-drawer__toggle[aria-expanded="true"] .bfhof-drawer__chevron {
	transform: rotate(180deg);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.bfhof-drawer__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--bfhof-drawer-line);
}

.bfhof-drawer .bfhof-drawer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 55px;
	padding: 17.5px 12px 15px;
	border: 2px solid var(--bfhof-drawer-orange);
	border-radius: 0;
	background: var(--bfhof-drawer-orange);
	color: #FFFFFF;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.bfhof-drawer .bfhof-drawer__btn--donate {
	border-color: #FFFFFF;
	background: transparent;
}

.bfhof-drawer .bfhof-drawer__btn:hover,
.bfhof-drawer .bfhof-drawer__btn:focus {
	color: #FFFFFF;
}

.bfhof-drawer .bfhof-drawer__btn--donate:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ── Focus ────────────────────────────────────────────────────── */

.bfhof-drawer a:focus-visible,
.bfhof-drawer button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: -4px;
}

.bfhof-drawer .bfhof-drawer__close:focus-visible,
.bfhof-drawer .bfhof-drawer__btn--visit:focus-visible {
	outline-offset: 2px;
}
