/**
 * Site header (desktop + mobile bar) + fullscreen mobile overlay.
 */

.m306-mm-bar,
.m306-mm {
	--m306-mm-ink: #ffffff;
	--m306-mm-ink-inv: #111111;
	--m306-mm-font: 'Fahkwang', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--m306-mm-overlay-bg: #1a1f1e;
	box-sizing: border-box;
	font-family: var(--m306-mm-font);
	color: var(--m306-mm-ink);
}

.m306-mm-bar *,
.m306-mm-bar *::before,
.m306-mm-bar *::after,
.m306-mm *,
.m306-mm *::before,
.m306-mm *::after {
	box-sizing: border-box;
}

/* ========== Transparent site header — full width ========== */
.m306-mm-bar {
	position: relative;
	z-index: 100;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: clamp(20px, 3vw, 48px);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 18px clamp(16px, 3.5vw, 64px);
	background: transparent;
	color: var(--m306-mm-ink);
}

/* Break out of Elementor content-width wrappers when possible */
.elementor-widget-shortcode > .elementor-widget-container,
.elementor-shortcode {
	max-width: none !important;
	width: 100% !important;
}

.m306-mm-bar__brand {
	display: inline-flex;
	flex-shrink: 0;
	grid-column: 1;
	text-decoration: none;
	line-height: 0;
	color: inherit;
}

.m306-mm-bar__logo {
	display: block;
	width: auto;
	height: clamp(56px, 7vw, 84px);
	max-width: 150px;
	object-fit: contain;
	/* Default logo PNG has black fill — blend so it sits on photo headers */
	mix-blend-mode: screen;
}

.m306-mm-bar__nav {
	display: none;
	grid-column: 2;
	width: 100%;
	min-width: 0;
	justify-content: stretch;
}

.m306-mm-bar__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
	gap: clamp(12px, 2vw, 32px);
	list-style: none;
	margin: 0;
	padding: 0 12px;
}

.m306-mm-bar__item {
	flex: 1 1 0;
	text-align: center;
	min-width: 0;
}

.m306-mm-bar__link {
	display: inline-block;
	padding: 6px 10px;
	font-size: clamp(13px, 1.05vw, 15px);
	font-weight: 300;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	color: var(--m306-mm-ink) !important;
	white-space: nowrap;
	background: transparent;
	border: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm-bar__link:hover,
.m306-mm-bar__link:focus,
.m306-mm-bar__link:focus-visible,
.elementor a.m306-mm-bar__link:hover,
.elementor a.m306-mm-bar__link:focus {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm-bar__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(16px, 2vw, 28px);
	flex-shrink: 0;
	grid-column: 3;
}

.m306-mm-bar__util,
.m306-mm-bar__menu {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 4px 6px;
	border: 0;
	background: transparent;
	color: var(--m306-mm-ink) !important;
	text-decoration: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm-bar__util:hover,
.m306-mm-bar__util:focus,
.m306-mm-bar__menu:hover,
.m306-mm-bar__menu:focus,
.elementor a.m306-mm-bar__util:hover,
.elementor a.m306-mm-bar__util:focus {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
	opacity: 1;
	outline: none;
}

.m306-mm-bar__util-icon {
	display: inline-flex;
	line-height: 0;
	color: inherit;
}

.m306-mm-bar__util-label {
	font-size: 12px;
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1;
	color: inherit;
}

.m306-mm-bar__cta {
	display: none;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid rgba(255, 255, 255, 0.95) !important;
	background: transparent !important;
	color: var(--m306-mm-ink) !important;
	font-family: inherit;
	font-size: clamp(11px, 0.95vw, 13px);
	font-weight: 400;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.m306-mm-bar__cta:hover,
.m306-mm-bar__cta:focus,
.m306-mm-bar__cta:focus-visible,
.elementor .m306-mm-bar__cta:hover,
.elementor .m306-mm-bar__cta:focus,
.elementor button.m306-mm-bar__cta:hover {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
	border-color: #ffffff !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm-bar__burger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 22px;
	height: 14px;
}

.m306-mm-bar__burger span {
	display: block;
	height: 1.5px;
	width: 100%;
	background: currentColor;
}

/* Desktop header layout */
@media (min-width: 901px) {
	.m306-mm-bar {
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.m306-mm-bar__nav {
		display: flex;
	}

	.m306-mm-bar__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.m306-mm-bar__menu {
		display: none;
	}

	.m306-mm-bar__logo {
		height: clamp(70px, 6.5vw, 92px);
	}
}

/* Mobile: logo | actions only */
@media (max-width: 900px) {
	.m306-mm-bar {
		grid-template-columns: auto 1fr;
	}

	.m306-mm-bar__actions {
		grid-column: 2;
		justify-self: end;
	}
}

/* ========== Fullscreen mobile overlay ========== */
.m306-mm {
	position: fixed;
	inset: 0;
	z-index: 100040;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	background: var(--m306-mm-overlay-bg);
	color: var(--m306-mm-ink);
}

.m306-mm[hidden] {
	display: none !important;
}

.m306-mm__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: max(18px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.m306-mm__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
}

.m306-mm__brand {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
	line-height: 0;
}

.m306-mm__logo {
	display: block;
	width: auto;
	height: clamp(64px, 18vw, 88px);
	max-width: 140px;
	object-fit: contain;
}

.m306-mm__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--m306-mm-ink);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.m306-mm__rule {
	height: 1px;
	width: 100%;
	background: rgba(255, 255, 255, 0.35);
	margin-bottom: clamp(36px, 8vh, 56px);
}

.m306-mm__nav {
	flex: 0 0 auto;
}

.m306-mm__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(22px, 4.5vh, 34px);
}

.m306-mm__link {
	display: inline-block;
	padding: 4px 8px;
	margin-left: -8px;
	font-size: clamp(20px, 5.2vw, 26px);
	font-weight: 300;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-decoration: none !important;
	color: var(--m306-mm-ink) !important;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm__link:hover,
.m306-mm__link:focus,
.elementor a.m306-mm__link:hover {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
	opacity: 1;
	outline: none;
}

.m306-mm__cta {
	display: block;
	width: 100%;
	max-width: none;
	margin: clamp(36px, 7vh, 52px) 0 0;
	padding: 16px 20px;
	border: 1px solid rgba(255, 255, 255, 0.95) !important;
	background: transparent !important;
	color: var(--m306-mm-ink) !important;
	font-family: inherit;
	font-size: clamp(13px, 3.4vw, 15px);
	font-weight: 400;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.m306-mm__cta:hover,
.m306-mm__cta:focus,
.elementor .m306-mm__cta:hover {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
	border-color: #ffffff !important;
	opacity: 1;
	outline: none;
	box-shadow: none;
}

.m306-mm__footer {
	margin-top: auto;
	padding-top: clamp(40px, 10vh, 72px);
	display: flex;
	justify-content: center;
	align-items: center;
}

.m306-mm__util {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: var(--m306-mm-ink) !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m306-mm__util:hover,
.m306-mm__util:focus {
	background: #ffffff !important;
	color: var(--m306-mm-ink-inv) !important;
}

.m306-mm__util-icon {
	display: inline-flex;
	line-height: 0;
	color: inherit;
}

.m306-mm__util-label {
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.06em;
	line-height: 1;
	color: inherit;
}

body.m306-mm-open {
	overflow: hidden;
}

/* Elementor: keep white icons when header sits on dark hero */
.elementor .m306-mm-bar {
	color: #fff;
	width: 100%;
}
