:root {
	--hmg-header-navy: #545454;
	--hmg-header-gold: #000;
	--hmg-header-text: #545454;
	--hmg-header-border: #ece7dd;
	--hmg-header-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.hmg-mobile-header {
	display: none;
}

@media (max-width: 921px) {
	body.hmg-mobile-header-enabled #masthead:not(.hmg-mobile-header),
	body.hmg-mobile-header-enabled #site-header:not(.hmg-mobile-header),
	body.hmg-mobile-header-enabled header.site-header:not(.hmg-mobile-header),
	body.hmg-mobile-header-enabled .ast-mobile-header-wrap,
	body.hmg-mobile-header-enabled #ast-mobile-header,
	body.hmg-mobile-header-enabled #ast-desktop-header {
		display: none !important;
	}

	body.hmg-mobile-header-enabled {
		padding-top: var(--hmg-mobile-header-height, 88px) !important;
	}

	.hmg-mobile-header,
	.hmg-mobile-header * {
		box-sizing: border-box;
	}

	.hmg-mobile-header {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 99999;
		width: 100%;
		background: #fff;
		font-family: inherit;
	}

	.admin-bar .hmg-mobile-header { top: 46px; }

	.hmg-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 88px;
		padding: 0 16px;
		background: #fff;
		border-bottom: 1px solid var(--hmg-header-border);
	}

	.hmg-mobile-brand,
	.hmg-mobile-brand .custom-logo-link {
		display: flex;
		align-items: center;
		min-width: 0;
		line-height: 0;
		text-decoration: none;
	}

	.hmg-mobile-brand .custom-logo {
		display: block;
		width: auto !important;
		min-width: 0 !important;
		max-width: 180px !important;
		height: 44px !important;
		object-fit: contain;
	}

	.hmg-mobile-logo-text {
		color: var(--hmg-header-navy);
		font-family: Georgia, serif;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none;
	}

	.hmg-mobile-toggle {
		display: flex !important;
		width: 60px !important;
		min-width: 60px !important;
		min-height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		color: var(--hmg-header-navy) !important;
		background: #fff !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		font: inherit !important;
		cursor: pointer;
	}

	.hmg-mobile-toggle-lines {
		display: flex;
		flex-direction: column;
		gap: 5px;
	}

	.hmg-mobile-toggle-lines > span {
		display: block;
		width: 26px;
		height: 2px;
		background: var(--hmg-header-navy);
		border-radius: 10px;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.hmg-mobile-toggle-label {
		margin-top: 2px;
		font-size: 11px;
		font-weight: 600;
		line-height: 1;
	}

	body.hmg-mobile-menu-open .hmg-mobile-toggle-lines > span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
	body.hmg-mobile-menu-open .hmg-mobile-toggle-lines > span:nth-child(2) { opacity: 0; }
	body.hmg-mobile-menu-open .hmg-mobile-toggle-lines > span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

	.hmg-mobile-menu {
		display: none;
		max-height: calc(100dvh - 88px);
		overflow-y: auto;
		background: #fff;
		border-top: 2px solid var(--hmg-header-gold);
		box-shadow: var(--hmg-header-shadow);
	}

	body.hmg-mobile-menu-open .hmg-mobile-menu { display: block; }

	.hmg-mobile-nav-list,
	.hmg-mobile-nav-list .sub-menu,
	.hmg-mobile-nav-list .children {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	.hmg-mobile-nav-list li {
		position: relative;
		margin: 0 !important;
		border-bottom: 1px solid #eee;
		overflow: hidden;
	}

	.hmg-mobile-nav-list li > a {
		display: flex !important;
		align-items: center;
		width: 100% !important;
		min-height: 50px !important;
		padding: 14px 52px 14px 20px !important;
		color: var(--hmg-header-navy) !important;
		background: #fff !important;
		border: 0 !important;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none !important;
	}

	.hmg-mobile-nav-list li > a:hover,
	.hmg-mobile-nav-list li > a:focus-visible { background: #f8f5f0 !important; }

	.hmg-mobile-nav-list .sub-menu,
	.hmg-mobile-nav-list .children { border-top: 1px solid #eee; }

	.hmg-mobile-nav-list .sub-menu[hidden],
	.hmg-mobile-nav-list .children[hidden] { display: none !important; }

	.hmg-mobile-nav-list .sub-menu li > a,
	.hmg-mobile-nav-list .children li > a {
		padding-left: 36px !important;
		color: var(--hmg-header-text) !important;
		background: #f9f6f0 !important;
		font-size: 15px;
		font-weight: 500;
	}

	.hmg-mobile-nav-list .sub-menu .sub-menu li > a,
	.hmg-mobile-nav-list .children .children li > a {
		padding-left: 52px !important;
		background: #f3efe6 !important;
		font-size: 14px;
	}

	.hmg-mobile-nav-list li.current-menu-item > a,
	.hmg-mobile-nav-list li.current-menu-ancestor > a,
	.hmg-mobile-nav-list li.current_page_item > a,
	.hmg-mobile-nav-list li.current_page_ancestor > a {
		color: var(--hmg-header-gold) !important;
		font-weight: 700;
	}

	.hmg-submenu-toggle {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 52px !important;
		height: 50px !important;
		min-height: 50px !important;
		margin: 0 !important;
		padding: 0 !important;
		color: var(--hmg-header-navy) !important;
		background: transparent !important;
		border: 0 !important;
		border-left: 1px solid #eee !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		cursor: pointer;
	}

	.hmg-submenu-toggle:hover,
	.hmg-submenu-toggle:focus-visible { background: #f0ece4 !important; }

	.hmg-submenu-toggle svg {
		display: block;
		pointer-events: none;
		transition: transform 0.25s ease;
	}

	.hmg-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}

@media (min-width: 783px) and (max-width: 921px) {
	.admin-bar .hmg-mobile-header { top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.hmg-mobile-header *,
	.hmg-mobile-header *::before,
	.hmg-mobile-header *::after { transition-duration: 0.01ms !important; }
}

