/* Fairheads mobile menu — replaces ShiftNav Pro. Values copied from the old ShiftNav settings. */
.fh-mm-bar, .fh-mm-panel, .fh-mm-overlay { display: none; }

@media only screen and (max-width: 980px) {
	/* Divi's own header is hidden on mobile, as it was with ShiftNav */
	.fh-mm-enabled header#main-header,
	.fh-mm-enabled #et-top-navigation,
	.fh-mm-enabled #et_mobile_nav_menu { display: none !important; }

	.fh-mm-bar {
		display: block;
		position: fixed; top: 0; left: 0; right: 0;
		height: 112px;
		background: #ffffff;
		box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
		z-index: 500000;
		text-align: center;
		transition: transform .5s;
	}
	body.admin-bar .fh-mm-bar { top: 46px; }
	.fh-mm-logo { display: inline-block; padding: 16px 40px; line-height: 0; }
	.fh-mm-logo img { width: 130px; height: auto; }

	.fh-mm-burger {
		position: absolute; top: 0; right: 0;
		height: 112px; padding: 0 20px;
		background: none; border: 0; cursor: pointer;
		color: #f2cb64; font-size: 21px; line-height: 1;
	}
	.fh-mm-burger:focus-visible { outline: 2px solid #aa7918; outline-offset: -4px; }
	.fh-mm-icon-close { display: none; }
	.fh-mm-open .fh-mm-icon-open { display: none; }
	.fh-mm-open .fh-mm-icon-close { display: inline; }

	/* Push the page down under the fixed bar, and across when the panel opens */
	.fh-mm-enabled #page-container { padding-top: 112px !important; margin-top: 0 !important; transition: transform .5s; }
	.fh-mm-open #page-container,
	.fh-mm-open .fh-mm-bar { transform: translateX(-290px); }
	body.fh-mm-open { overflow: hidden; }

	.fh-mm-panel {
		display: block;
		position: fixed; top: 0; right: 0;
		width: 290px; height: 100%;
		background: #ffffff; color: #333333;
		overflow-y: auto; overflow-x: hidden;
		z-index: 600000;
		transform: translateX(290px);
		visibility: hidden;
		transition: transform .5s, visibility 0s linear .5s;
		box-shadow: 0 0 15px rgba(136, 136, 136, .22);
		font-family: 'DM Serif Display', Georgia, "Times New Roman", serif;
	}
	body.admin-bar .fh-mm-panel { top: 46px; padding-bottom: 46px; }
	.fh-mm-open .fh-mm-panel { transform: translateX(0); visibility: visible; transition: transform .5s; }

	.fh-mm-overlay {
		display: block;
		position: fixed; inset: 0;
		z-index: 550000;
		background: transparent;
	}
	.fh-mm-overlay[hidden] { display: none; }

	/* Menu items */
	.fh-mm-menu, .fh-mm-menu ul { list-style: none; margin: 0; padding: 0; }
	.fh-mm-menu li { position: relative; margin: 0; padding: 0; }
	.fh-mm-menu a {
		display: block;
		padding: 15px 50px 15px 25px;
		color: #333333; font-size: 18px; line-height: 1.4;
		text-decoration: none;
		font-family: 'DM Serif Display', Georgia, "Times New Roman", serif;
		font-weight: normal;
	}
	.fh-mm-menu a:hover,
	.fh-mm-menu li.fh-mm-active > a,
	.fh-mm-menu li.current-menu-item > a,
	.fh-mm-menu li.current-menu-ancestor > a { color: #aa7918; background: #ffffff; }

	/* Accordion sub-menus */
	.fh-mm-menu .sub-menu {
		background: #efefef;
		max-height: 0; overflow: hidden; visibility: hidden;
		border: 0 !important; border-radius: 0;
	}
	.fh-mm-menu li.fh-mm-active > .sub-menu { max-height: 1600px; visibility: visible; }
	.fh-mm-menu .sub-menu a { padding: 8px 50px 8px 15px; background: transparent; }
	.fh-mm-menu .sub-menu .sub-menu a { padding-left: 30px; }
	.fh-mm-menu .sub-menu li.fh-mm-active > a,
	.fh-mm-menu .sub-menu li.current-menu-item > a { background: transparent; }

	.fh-mm-sub-toggle {
		position: absolute; top: 0; right: 0;
		width: 50px; height: 52px;
		display: flex; align-items: center; justify-content: center;
		background: transparent; border: 0; cursor: pointer;
		color: #333333;
	}
	.sub-menu .fh-mm-sub-toggle { height: 41px; }
	.fh-mm-sub-toggle:hover,
	li.fh-mm-active > .fh-mm-sub-toggle { color: #aa7918; }
	li.fh-mm-active > .fh-mm-sub-toggle svg { transform: rotate(180deg); }
	.fh-mm-sub-toggle svg { transition: transform .2s; }
}

@media (prefers-reduced-motion: reduce) {
	.fh-mm-bar, .fh-mm-panel, .fh-mm-enabled #page-container { transition: none !important; }
}

/* ---- Mobile fixes, Nov 2026 ---- */
@media only screen and (max-width: 980px) {
	/* Case Studies slider (AnythingSlider): Prev/Next on the "Case Studies" tagline line, right-aligned */
	#casestudies .as-arrows-control,
	.Lp21 .as-arrows-control {
		position: absolute !important;
		top: -44px !important; right: 0 !important; left: auto !important; bottom: auto !important;
		transform: none !important;
		display: flex; gap: 8px;
		margin: 0;
		z-index: 20 !important;
	}
	/* the slider frame clips its contents; anchor the arrows to the outer module instead */
	#casestudies .Lp21 .swiper-container.main_slider { position: static !important; }
	#casestudies .as-arrows-control .as-prev,
	#casestudies .as-arrows-control .as-next { margin: 0 !important; }
	#casestudies .as-arrows-control a.et_pb_button { padding: 4px 14px !important; font-size: 15px !important; line-height: 24px !important; }

	/* Recent News grid: a Divi footer style (wrong class collision) hid this block on phones/tablets */
	.et_pb_text:has(.fh-grid) { display: block !important; }
}
