/*
Theme Name:   Magic Moving
Theme URI:    https://ko-websites.com/
Author:       KO Websites
Author URI:   https://ko-websites.com/
Description:  Child theme of Twenty Twenty-Five for the Magic Moving website (built from the "Magic Moving – Homepage Redesign" Figma). Requires Advanced Custom Fields PRO for Theme Settings and the Section Builder; Gravity Forms for forms.
Template:     twentytwentyfive
Version:      1.1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  magicmoving-twentytwentyfive-child
*/

/* -----------------------------------------------------------------
 * Most design tokens (colors, fonts, sizes, spacing, layout) live in
 * theme.json. This file only holds what theme.json can't express.
 * ----------------------------------------------------------------- */

/* ---------- Accessibility ---------- */
/* Anchor links and keyboard focus stop below the fixed header (WCAG 2.4.11). */
html {
	scroll-padding-top: calc(var(--mm-header-h-scrolled, 68px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
}

/* Visible keyboard focus everywhere (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Green buttons: white ring so focus shows against the green. */
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--contrast);
}

/* Text only for screen readers. */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--contrast);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--base);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Footer copyright links: same colour as the text, green on hover/focus.
 * The underline keeps them recognisable as links (WCAG 1.4.1). */
.mm-footer p a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease;
}
.mm-footer p a:hover,
.mm-footer p a:focus-visible {
	color: var(--wp--preset--color--accent-1);
}

/* Reduced motion: no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
}
/* ---------- Header / Nav ---------- */
/* Figma "Top Bar" (40px navy) + "Header" (84px Magic Blue).
 * Fixed to the top; the bar shrinks when the page is scrolled
 * (assets/js/header.js adds .is-scrolled). */
:root {
	--mm-header-h: 124px;
	--mm-header-h-scrolled: 72px;
	--mm-gutter: clamp(20px, 5.556vw, 80px);
	--mm-orange: linear-gradient(90deg, #FF7A3D 0%, #F24E1E 100%);
	--mm-orange-shadow: 0 10px 24px -4px rgba(255, 107, 43, 0.4);
	--mm-radius: 12px;
}

/* Spacer: the template part keeps the header's full height in the flow.
 * Painted like the header (top bar + blue bar), so no white shows while the
 * header shrinks or grows near the top of the page. */
.wp-block-template-part:has(> .mm-header) {
	height: var(--mm-header-h);
	margin-block: 0;
	background: linear-gradient(180deg, #041B38 0, #041B38 40px, var(--wp--preset--color--green-dark, #0A51A1) 40px);
}

.mm-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	margin: 0 !important;
	max-width: none !important;
	transition: box-shadow 0.25s ease;
}
.mm-header > * { margin-block: 0 !important; }

.mm-utility {
	box-sizing: border-box;
	min-height: 40px;
	gap: 24px;
	padding: 8px max(var(--mm-gutter), (100% - var(--wp--style--global--wide-size, 1280px)) / 2);
	background: var(--wp--preset--color--base);
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	overflow: hidden;
	max-height: 60px;
	transition: max-height 0.25s ease, padding 0.25s ease, min-height 0.25s ease;
}
.mm-utility p { margin: 0; }
.mm-utility a { color: #fff; font-weight: 600; text-decoration: none; }
.mm-utility a:hover { color: var(--wp--preset--color--gold); text-decoration: underline; }
.mm-tagline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mm-topbar-right { display: flex; gap: 22px; white-space: nowrap; }
.mm-topbar-right > span { color: rgba(255, 255, 255, 0.78); }
.mm-topbar-right > * + * { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.18); }

.mm-header__bar {
	box-sizing: border-box;
	min-height: 84px;
	gap: 24px;
	padding: 0 max(var(--mm-gutter), (100% - var(--wp--style--global--wide-size, 1280px)) / 2);
	background: var(--wp--preset--color--green-dark);
	transition: min-height 0.25s ease;
}

.mm-header.is-scrolled { box-shadow: 0 12px 32px -12px rgba(4, 27, 56, 0.55); }
.mm-header.is-scrolled .mm-utility { max-height: 0; min-height: 0; padding-block: 0; }
.mm-header.is-scrolled .mm-header__bar { min-height: 72px; }

/* Logo */
.mm-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none !important;
}
.mm-logo__img {
	display: block;
	width: auto;
	height: 56px;
	max-width: 160px;
	object-fit: contain;
	transition: height 0.25s ease;
}
.mm-header.is-scrolled .mm-logo__img { height: 46px; }
.mm-logo__text { font-family: var(--wp--preset--font-family--bebas-neue); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }

.mm-header__nav { gap: 18px; flex: 1 1 auto; min-width: 0; justify-content: center; }
.mm-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.mm-home-link:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--base); }

/* "Home" nav item: only in the mobile menu (the house icon does it on desktop). */
.mm-header .wp-block-navigation__container > .mm-nav-home { display: none; }
.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .mm-nav-home { display: flex; }

/* Nav type: Inter 700, 14px, caps */
.mm-header .wp-block-navigation {
	gap: clamp(14px, 2vw, 30px);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}
.mm-header .wp-block-navigation-item__content {
	display: block;
	color: inherit;
	white-space: nowrap;
	text-decoration: none;
	padding-block: 10px;
	transition: color 0.15s ease;
}
.mm-header .wp-block-navigation-item__content:hover,
.mm-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.mm-header .current-menu-item > .wp-block-navigation-item__content,
.mm-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}
.mm-header .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 5px; }
/* Dropdowns: white card */
.mm-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 260px !important;
	padding: 10px !important;
	border: 0 !important;
	border-radius: 14px;
	background: #fff !important;
	color: var(--wp--preset--color--base) !important;
	box-shadow: 0 24px 48px -16px rgba(4, 27, 56, 0.35);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
}
.mm-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 12px !important;
	border-radius: 8px;
	color: var(--wp--preset--color--base);
}
.mm-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--green-dark);
}

/* Phone + quote button */
.mm-header__actions { gap: 22px; flex: 0 0 auto; }
.mm-header-phone {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1;
}
.mm-header-phone__label { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.mm-header-phone__number {
	font-family: var(--wp--preset--font-family--bebas-neue);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.mm-header-phone:hover .mm-header-phone__number { color: var(--wp--preset--color--gold); }

.mm-header-buttons { display: flex; gap: 12px; }
.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border: 0;
	border-radius: var(--mm-radius);
	background: var(--mm-orange);
	box-shadow: var(--mm-orange-shadow);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.mm-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 28px -6px rgba(255, 107, 43, 0.5); }
.mm-btn--alternative { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.mm-btn__icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* Smaller desktops: drop the phone label, then the phone and home icon */
@media (max-width: 1380px) {
	.mm-header-phone__label { display: none; }
}
@media (max-width: 1280px) {
	.mm-utility .mm-topbar-right > a { display: none; }
	.mm-topbar-right > * + * { padding-left: 0; border-left: 0; }
	.mm-header-phone { display: none; }
}
@media (max-width: 1160px) {
	.mm-home-link { display: none; }
	.mm-header .wp-block-navigation { gap: 18px; font-size: 13px; }
}

/* Tablets (600–1099px): the menu collapses to the overlay too
 * (core only does that below 600px). */
@media (min-width: 600px) and (max-width: 1099px) {
	.mm-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.mm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.mm-header .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
	.mm-header__nav { justify-content: flex-end; }
}
/* Extras added to the menu by magic.js: only inside the open mobile menu. */
.mm-menu-call,
.mm-menu-actions { display: none !important; }
.is-menu-open .mm-menu-call { display: flex !important; }
.is-menu-open .mm-menu-actions { display: flex !important; }

/* ---------- Mobile menu (Figma "Mobile v2 — Menu open") ----------
 * Core's overlay restyled: blue 70px bar with the logo, call + close
 * buttons; navy panel; Plus Jakarta 17px caps rows with thin dividers;
 * submenus as an accordion in a soft card; quote + phone buttons below.
 * assets/js/magic.js adds the call button, the bottom buttons and the
 * accordion toggles. */
@media (max-width: 1099px) {
	/* Menu button in the header (≡): glass square */
	.mm-header .wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
	}
	.mm-header .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }

	.mm-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: 0 !important;
		background: #062B57 !important;
		color: #fff !important;
		overflow-y: auto;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative;
		min-height: 100%;
		background: linear-gradient(180deg, #0A51A1 0, #0A51A1 70px, transparent 70px);
	}
	/* Logo in the menu bar */
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-dialog::before {
		content: "";
		position: absolute;
		top: 12px;
		left: 16px;
		width: 118px;
		height: 46px;
		background: url("assets/images/magic_moving_logo_white.webp") left center / contain no-repeat;
	}
	/* Close (×) */
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: 14px;
		right: 16px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; fill: currentColor; }
	/* Call button next to the close button (added by magic.js) */
	.mm-menu-call {
		position: absolute;
		top: 14px;
		right: 66px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: linear-gradient(90deg, #FF8A3D 0%, #F24E1E 100%);
		color: #fff !important;
	}
	.mm-menu-call svg { width: 19px; height: 19px; }

	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content {
		display: block !important;
		padding: 82px 20px 32px !important;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
		display: flex;
		flex-direction: column;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100%;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item {
		position: relative;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		text-align: left;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		flex: 1 1 auto;
		padding: 16px 0 !important;
		font-family: var(--wp--preset--font-family--bebas-neue);
		font-size: 17px;
		font-weight: 700;
		line-height: 21px;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		color: #fff;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--gold); }
	/* Home row: house icon */
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .mm-nav-home > .wp-block-navigation-item__content { display: flex; align-items: center; gap: 10px; }
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .mm-nav-home > .wp-block-navigation-item__content::before {
		content: "";
		width: 18px;
		height: 18px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* Accordion chevron (core's submenu icon button, shown in the overlay) */
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		margin: 0 -8px 0 0;
		padding: 0;
		border: 0;
		background: none;
		color: #fff;
		cursor: pointer;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon svg {
		width: 14px;
		height: 14px;
		stroke-width: 2;
		transition: transform 0.2s ease;
		transform: none;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .mm-open > .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--gold); }
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .mm-open > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }

	/* Submenu card */
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
		position: static !important;
		display: none !important;
		flex: 0 0 100%;
		flex-direction: column;
		align-items: flex-start !important;
		gap: 12px !important;
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		margin: 0 0 14px !important;
		padding: 14px 16px !important;
		border: 0 !important;
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.06) !important;
		box-shadow: none;
		opacity: 1 !important;
		visibility: visible !important;
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .mm-open > .wp-block-navigation__submenu-container { display: flex !important; }
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding: 0 !important;
		font-family: var(--wp--preset--font-family--barlow);
		font-size: 15px;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: 0;
		text-transform: none;
		white-space: normal;
		color: rgba(255, 255, 255, 0.8);
	}
	.mm-header .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background: none;
		color: var(--wp--preset--color--gold);
	}

	/* Buttons under the menu (added by magic.js) */
	.mm-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
	.mm-menu-actions a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		box-sizing: border-box;
		width: 100%;
		min-height: 52px;
		padding: 15px 26px;
		border-radius: 12px;
		font-family: var(--wp--preset--font-family--barlow);
		font-size: 16px;
		font-weight: 600;
		line-height: 19px;
		color: #fff !important;
		text-decoration: none !important;
	}
	.mm-menu-actions .mm-menu-quote {
		background: linear-gradient(90deg, #FF7A3D 0%, #F24E1E 100%);
		box-shadow: 0 10px 24px -4px rgba(255, 107, 43, 0.4);
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}
	.mm-menu-actions .mm-menu-phone {
		border: 1.5px solid rgba(255, 255, 255, 0.35);
		background: rgba(255, 255, 255, 0.06);
	}
	.mm-menu-actions svg { width: 18px; height: 18px; flex: 0 0 auto; }
}

/* Phones / small tablets: menu opens in the full-screen overlay. */
@media (max-width: 781px) {
	:root {
		--mm-header-h: 108px;
		--mm-header-h-scrolled: 64px;
	}
	.mm-utility { font-size: 12px; min-height: 36px; justify-content: center !important; }
	.mm-utility .mm-topbar-right { display: none; }
	.mm-header__bar { min-height: 70px; gap: 12px; padding-inline: 16px; }
	.mm-logo__img { height: 46px; max-width: 118px; }
	.mm-header__nav { order: 3; flex: 0 0 auto; }
	.mm-header__actions { gap: 8px; margin-left: auto; }
	.mm-header-buttons { display: none; }
	/* Orange call square (Figma "Mobile v2 — Home" header) */
	.mm-header__bar .mm-header-phone {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / 19px no-repeat,
			linear-gradient(90deg, #FF8A3D 0%, #F24E1E 100%);
	}
	.mm-header__bar .mm-header-phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.admin-bar .mm-header.is-scrolled { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mm-header, .mm-utility, .mm-header__bar, .mm-logo__img { transition: none; }
}

/* ---------- Buttons ---------- */
/* Primary: orange gradient, 12px radius (Figma "Button / Primary").
 * Outline: white 2px border. Gold: block style. */
.wp-element-button,
.wp-block-button .wp-block-button__link {
	box-shadow: var(--mm-orange-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.wp-element-button:hover,
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.06); }
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	background: transparent;
	box-shadow: none;
	padding: 14px 24px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-mm-gold .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--base);
	box-shadow: none;
}

/* ---------- Custom block styles (registered in functions.php) ---------- */

/* Eyebrow: "✦ WHAT WE DO" — small caps label with an orange sparkle. */
.is-style-mm-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--green-dark);
}
.is-style-mm-eyebrow::before {
	content: "\2726";
	color: var(--wp--preset--color--accent-1);
	font-size: 15px;
}

/* Outline numeral: giant stroked number. */
.is-style-mm-outline-numeral {
	font-family: var(--wp--preset--font-family--bebas-neue) !important;
	font-weight: 800;
	font-size: clamp(8rem, 18vw, 16rem);
	line-height: 0.8;
	color: transparent !important;
	-webkit-text-stroke: 2px currentColor;
	opacity: 0.12;
	pointer-events: none;
	user-select: none;
	margin: 0;
}

/* Divider: thin orange gradient rule (Separator block style). */
.wp-block-separator.is-style-mm-hazard {
	height: 4px;
	width: 100%;
	max-width: none;
	border: 0;
	border-radius: 4px;
	opacity: 1;
	background: var(--mm-orange);
}

/* Spec bar: horizontal list of label/value pairs (Group block style). */
.is-style-mm-spec-bar { border-top: 1px solid var(--wp--preset--color--accent-6); }
.is-style-mm-spec-bar > * + * { border-left: 1px solid var(--wp--preset--color--accent-6); }

/* Rounded image (Image / Cover block style). */
.is-style-mm-angled img,
.wp-block-cover.is-style-mm-angled { border-radius: 24px; }

/* Card (Group block style). */
.is-style-mm-card {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px -8px rgba(5, 31, 77, 0.05);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.is-style-mm-card:hover { box-shadow: 0 16px 40px -8px rgba(5, 26, 64, 0.08); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.is-style-mm-spec-bar > * + * {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--accent-6);
	}
}

/* ==========================================================================
 * Hero (section class: mm-page-hero) — matches Figma "Hero" frame (1440×900)
 * ========================================================================== */
.mm-page-hero {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: min(900px, 100svh);
	padding-top: clamp(96px, 11.8vw, 170px) !important;
	padding-bottom: 28px !important;
	overflow: hidden;
}

/* Overlay: "Grade – bottom" on top of "Grade – left" (replaces the flat ACF overlay color). */
.mm-page-hero .acfsb-section__overlay {
	background:
		var(--wp--preset--gradient--fade-bottom, linear-gradient(180deg, rgba(10,10,10,0) 0%, #0A0A0A 100%)),
		var(--wp--preset--gradient--fade-left, linear-gradient(90deg, rgba(10,10,10,0.97) 10%, rgba(10,10,10,0.82) 40%, rgba(10,10,10,0.15) 100%)) !important;
}

.mm-page-hero .acfsb-container {
	display: flex;
	flex: 1;
	width: 100%;
}

/* Content stack (eyebrow / headline / copy / CTA) at the top, spec bar pinned to the bottom. */
.mm-page-hero .acfsb-grid {
	flex: 1;
	grid-template-rows: auto auto auto 1fr;
	row-gap: 22px;
}
.mm-page-hero .acfsb-block--grid { align-self: end; padding-top: 48px; }

/* Eyebrow + headline */
.mm-page-hero .acfsb-block--heading .acfsb-eyebrow { margin-bottom: 22px; }
.mm-page-hero .acfsb-heading__title {
	font-size: var(--wp--preset--font-size--hero, clamp(80px, 14.7vw, 212px));
	line-height: 1;
	letter-spacing: 0.01em;
}
.mm-page-hero .acfsb-heading__title span:not(.mm-hl) {
	display: block;
	margin-top: -0.3em;
	font-size: clamp(44px, 6.4vw, 92px);
	letter-spacing: 0.02em;
}

/* Intro copy */
.mm-page-hero .acfsb-block--text { max-width: 520px; }
.mm-page-hero .acfsb-text {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: var(--wp--preset--font-size--medium, 19px);
	line-height: 1.65;
	color: var(--wp--preset--color--accent-5, #e4e8e4);
}

/* CTA sits 10px lower than the regular gap */
.mm-page-hero .acfsb-block--buttons { padding-top: 10px; }

/* Spec bar: 1px gunmetal rule on top, column dividers, no card boxes */
.mm-page-hero .acfsb-cards--stats {
	gap: 0;
	border-top: 1px solid var(--acfsb-border);
}
.mm-page-hero .acfsb-cards--stats .acfsb-card {
	border: 0;
	background: transparent;
}
.mm-page-hero .acfsb-cards--stats .acfsb-card + .acfsb-card {
	border-left: 1px solid var(--acfsb-border);
}
.mm-page-hero .acfsb-cards--stats .acfsb-card__body {
	gap: 8px;
	padding: 24px 0 0 28px;
}
.mm-page-hero .acfsb-cards--stats .acfsb-card:first-child .acfsb-card__body { padding-left: 0; }

.mm-page-hero .acfsb-cards--stats .acfsb-eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small, 13px);
	letter-spacing: 0.22em;
}
.mm-page-hero .acfsb-cards--stats .acfsb-eyebrow::before { content: none; }

.mm-page-hero .acfsb-cards--stats .acfsb-card__title {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: var(--wp--preset--font-size--x-large, 26px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--acfsb-heading);
}

/* Tablet: spec bar 2 × 2 */
@media (max-width: 1024px) {
	.mm-page-hero .acfsb-cards--stats .acfsb-card:nth-child(odd) { border-left: 0; }
	.mm-page-hero .acfsb-cards--stats .acfsb-card:nth-child(odd) .acfsb-card__body { padding-left: 0; }
	.mm-page-hero .acfsb-cards--stats .acfsb-card:nth-child(n+3) .acfsb-card__body { padding-top: 20px; }
}

/* Mobile: stack, divider between rows instead of columns; stronger fade since copy covers the photo */
@media (max-width: 600px) {
	.mm-page-hero .acfsb-section__overlay {
		background:
			var(--wp--preset--gradient--fade-bottom, linear-gradient(180deg, rgba(10,10,10,0) 0%, #0A0A0A 100%)),
			linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 100%) !important;
	}
	.mm-page-hero .acfsb-cards--stats .acfsb-card + .acfsb-card {
		border-left: 0;
		border-top: 1px solid var(--acfsb-border);
	}
	.mm-page-hero .acfsb-cards--stats .acfsb-card .acfsb-card__body { padding: 16px 0; }
	.mm-page-hero .acfsb-heading__title span:not(.mm-hl) { margin-top: -0.12em; }
}

/* ==========================================================================
 * Page banner (inner pages, inc/page-banner.php) — the home hero's layout and
 * style (.mm-page-hero), with the title sized for longer page names.
 * Height: Theme Settings > Banner (inline min-height).
 * ========================================================================== */
.mm-page-banner .acfsb-heading__title {
	font-size: clamp(44px, 10vw, 150px);
	overflow-wrap: break-word;
	hyphens: auto;
}
.mm-page-banner .acfsb-heading__title span:not(.mm-hl) {
	font-size: clamp(32px, 4.6vw, 72px);
}
.mm-page-banner--no-image {
	background-color: var(--wp--preset--color--accent-2);
}

/* No page content (e.g. title-only pages): drop the empty padded area. */
.mm-page-content:has(> .wp-block-post-content:empty) {
	display: none;
}
/* Section Builder sections bring their own spacing. */
.mm-page-content:has(> .wp-block-post-content > .acfsb-sections:first-child) {
	padding-top: 0 !important;
}
.mm-page-content:has(> .wp-block-post-content > .acfsb-sections:last-child) {
	padding-bottom: 0 !important;
}


/* ==========================================================================
 * Home page (patterns/home.php, templates/front-page.html)
 * Figma (1440 wide, 120px side gutters, 1200px column).
 * ========================================================================== */
.mm-home > *,
.mm-home section > * { margin-block-start: 0; }
/* Section Builder sections on the front page manage their own width. */
.mm-home .acfsb-section { padding-inline: 0; }
.mm-home section {
	box-sizing: border-box;
	padding-inline: max(var(--mm-gutter), (100% - var(--wp--style--global--wide-size, 1200px)) / 2);
}

/* Shared labels / eyebrows */
.mm-label {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.1;
	text-transform: uppercase;
}
.mm-label--gold { color: var(--wp--preset--color--gold); }
.mm-label--green { color: var(--wp--preset--color--green-dark); }

.is-style-mm-eyebrow.mm-eyebrow--gold { color: var(--wp--preset--color--gold); font-size: 17px; letter-spacing: 0.1em; }
.is-style-mm-eyebrow.mm-eyebrow--gold::before {
	width: 30px;
	height: 3px;
	background: var(--wp--preset--color--gold);
	transform: none;
}

.mm-hl { color: var(--wp--preset--color--accent-1); }
.mm-title--dark { color: var(--wp--preset--color--base) !important; }
.mm-title--dark .mm-hl { color: var(--wp--preset--color--green-dark); }

/* Links with a trailing arrow ("Event Details →", "Get Directions →") */
.mm-arrow-link { margin: 8px 0 0; }
.mm-arrow-link a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--accent-1);
}
.mm-arrow-link a::after { content: "\2192"; content: "\2192" / ""; display: inline-block; margin-left: 8px; transition: transform 0.15s ease; }
.mm-arrow-link a:hover { text-decoration: none; color: var(--wp--preset--color--contrast); }
.mm-arrow-link a:hover::after { transform: translateX(4px); }
.mm-arrow-link--dark a { color: var(--wp--preset--color--base); }
.mm-arrow-link--dark a::after { color: var(--wp--preset--color--green-dark); }
.mm-arrow-link--dark a:hover { color: var(--wp--preset--color--green-dark); }

/* Small icons (mask so they take the current colour) */
.mm-meta--time, .mm-meta--pin, .mm-meta--phone, .mm-meta--ig { position: relative; padding-left: 26px; }
.mm-meta--time::before, .mm-meta--pin::before, .mm-meta--phone::before, .mm-meta--ig::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--accent-1);
	-webkit-mask: var(--mm-icon) center / contain no-repeat;
	mask: var(--mm-icon) center / contain no-repeat;
}
.mm-meta--time { --mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.mm-meta--pin { --mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.mm-meta--phone { --mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.mm-meta--ig { --mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black'/%3E%3C/svg%3E"); }


/* Built-in quote form ([mm_quote_form]) */
.mm-form { margin-top: 20px; }
.mm-form p { margin: 0 0 14px; }
.mm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mm-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--base);
}
.mm-form input,
.mm-form select,
.mm-form textarea {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--wp--preset--color--base);
}
.mm-form select { line-height: 46px; }
.mm-form textarea { height: auto; min-height: 96px; padding-block: 12px; resize: vertical; }
.mm-form input:focus, .mm-form select:focus, .mm-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--green-dark);
	outline-offset: 0;
	border-color: var(--wp--preset--color--green-dark);
}
.mm-form__submit { margin-top: 6px !important; }
.mm-form__submit .wp-element-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; cursor: pointer; }
.mm-form__hp { position: absolute !important; left: -9999px; }
.mm-form__notice { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.mm-form__notice--ok { background: #E3F1E3; color: #1E5A23; }
.mm-form__notice--error { background: #FDE8E6; color: #8A1C12; }
.mm-form-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0 !important;
	font-size: 13px;
	color: inherit;
	opacity: 0.8;
}
.mm-form-note svg { width: 16px; height: 16px; color: var(--wp--preset--color--gold); flex: 0 0 auto; }

/* ---------- Footer (parts/footer.html) ---------- */
/* Same content edges as the header and every section. */
.mm-footer.mm-footer {
	padding-top: 80px;
	padding-bottom: 32px;
	padding-left: max(var(--mm-gutter), (100% - var(--wp--style--global--wide-size, 1280px)) / 2) !important;
	padding-right: max(var(--mm-gutter), (100% - var(--wp--style--global--wide-size, 1280px)) / 2) !important;
	margin-block-start: 0 !important;
	background: var(--wp--preset--color--black) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 15px;
	line-height: 1.6;
}
.mm-footer.mm-footer > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mm-footer__cols { gap: clamp(32px, 4vw, 64px) !important; margin-block: 0 !important; }
.mm-footer .mm-logo__img { height: 60px; max-width: 170px; }
.mm-footer__tagline { margin: 20px 0 0; max-width: 340px; }
/* Footer widget areas (inc/footer-widgets.php): widgets stack without extra gaps. */
.mm-footer__widget { margin: 0; }
.mm-footer__widget > :first-child { margin-top: 0; }
.mm-footer__widget > :last-child { margin-bottom: 0; }
.mm-footer__widget + .mm-footer__widget { margin-top: 0; }
.mm-footer__widget + .mm-footer__widget:has(> .mm-footer__title) { margin-top: 28px; }
.mm-footer__widget:has(.mm-header-phone) { margin-top: 24px; }
.mm-footer__widget:has(> .mm-footer__title) + .mm-footer__widget { margin-top: 18px; }
.mm-footer__widget:has(.mm-logo) + .mm-footer__widget { margin-top: 18px; }
.mm-footer .mm-footer__tagline { margin: 0; }
.mm-footer__title {
	margin: 0 0 18px;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold) !important;
}
.mm-footer__links { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.mm-footer__links li + li { margin-top: 10px; }
.mm-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.15s ease; }
.mm-footer a:hover { color: #fff; text-decoration: underline; }
/* Phone: orange circle + label + number */
.mm-footer .mm-header-phone {
	display: grid;
	grid-template-columns: 48px auto;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 4px;
	align-items: center;
	color: #fff;
}
.mm-footer .mm-header-phone::before {
	content: "";
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / 22px no-repeat,
		var(--mm-orange);
	box-shadow: var(--mm-orange-shadow);
}
.mm-footer .mm-header-phone__label { display: block; align-self: end; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.mm-footer .mm-header-phone__number { align-self: start; font-size: 20px; color: #fff; }
.mm-footer .mm-header-phone:hover { text-decoration: none; }
.mm-footer__bottom {
	margin-top: 56px !important;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	gap: 12px;
}
.mm-footer__bottom p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.mm-footer__motto a { color: rgba(255, 255, 255, 0.7); }
.mm-footer p a { text-decoration: none; }
.mm-footer p a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 781px) {
	.mm-form__row { grid-template-columns: 1fr; gap: 0; }
	.mm-footer.mm-footer { padding-top: 48px; padding-bottom: 24px; }
	/* Phones: every footer widget full width, one under the other. */
	.mm-footer .mm-footer__cols {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 32px !important;
	}
	.mm-footer .mm-footer__cols > .wp-block-column { flex-basis: auto !important; width: 100% !important; max-width: none !important; min-width: 0; }
	.mm-footer .mm-footer__cols > .wp-block-column + .wp-block-column { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
	.mm-footer .mm-footer__brand { grid-column: 1 / -1; }
	.mm-footer .mm-logo__img { height: 52px; }
	.mm-footer__links { font-size: 14px; }
	.mm-footer__links li + li { margin-top: 9px; }
	.mm-footer__bottom { margin-top: 36px !important; gap: 6px; }
	.mm-footer__bottom { flex-direction: column; align-items: flex-start !important; }
}
