/* =========================================================
   Halation Mobile Menu — fullscreen burger menu (mobile only)
   ========================================================= */

/* Wrapper: pins the burger to the right inside the Elementor Shortcode widget. */
.hmm-root {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

.hmm-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* Kill any Elementor/theme button hover styling. */
.hmm-burger:hover,
.hmm-burger:focus,
.hmm-burger:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.hmm-burger span {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 1.5px;
	border-radius: 2px;
	background: var(--e-global-color-primary, #ECDECB);
	box-shadow: 0 0 8px rgba(240, 203, 203, .8);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), top .4s cubic-bezier(.2, .7, .2, 1), width .3s;
}

.hmm-burger span:nth-child(1) { top: 17px; }
.hmm-burger span:nth-child(2) { top: 26px; left: 16px; }
.hmm-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hmm-burger.is-open span:nth-child(2) { top: 21px; left: 8px; transform: rotate(-45deg); }
.hmm-burger:focus-visible {
	outline: 1px solid var(--e-global-color-primary, #ECDECB);
	outline-offset: 2px;
	border-radius: 50%;
}

/* ---------- Fullscreen overlay ---------- */
.hmm-menu {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	padding: 15px 15px calc(30px + env(safe-area-inset-bottom));
	background: rgba(0, 0, 0, .9);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .45s, visibility .45s;
}

.hmm-menu[hidden] { display: flex; }
.hmm-menu.is-open { opacity: 1; visibility: visible; }

.hmm-menu__top {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	min-height: 44px;
	padding-bottom: 10px;
}

.hmm-menu__logo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 40%;
	line-height: 0;
	text-align: center;
}

.hmm-menu__logo img {
	width: 100%;
	height: auto;
	display: inline-block;
}

/* Scrollable area: everything below the logo/close (nav + email). */
.hmm-menu__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hmm-menu__body::-webkit-scrollbar { width: 6px; }
.hmm-menu__body::-webkit-scrollbar-thumb {
	background: rgba(236, 222, 203, .35);
	border-radius: 3px;
}

/* margin:auto centers the group when it fits; when it overflows it scrolls from the top. */
.hmm-menu__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	width: 100%;
	margin: auto 0;
	padding: 30px 0 10px;
}

.hmm-menu__nav {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 34px;
	text-align: center;
}

.hmm-menu__link {
	font-family: var(--e-global-typography-primary-font-family, "Kaisei HarunoUmi"), Sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #ECDECB);
	text-decoration: none;
}

.hmm-menu__link:hover,
.hmm-menu__link:focus-visible {
	color: #fff;
	outline: none;
	text-shadow: 0 0 14px rgba(240, 203, 203, .8);
}

.hmm-menu__link.is-current { text-shadow: 0 0 14px rgba(240, 203, 203, .8); }

/* Kill inherited li font-size / line-height (theme sets li line-height:1 -> huge gaps). */
.hmm-menu__nav li {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
}

.hmm-menu__sub {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hmm-menu__sub a {
	display: inline-block;
	font-family: var(--e-global-typography-primary-font-family, "Kaisei HarunoUmi"), Sans-serif;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--e-global-color-text, #BEAF96);
}

.hmm-menu__sub a:hover { color: #fff; }

.hmm-menu__foot {
	text-align: center;
	font-size: 14px;
	letter-spacing: 1px;
}

.hmm-menu__foot a {
	color: var(--e-global-color-text, #BEAF96);
	text-decoration: none;
}

/* ---------- Cascade appearance ---------- */
.hmm-menu__nav > *,
.hmm-menu__foot {
	opacity: 0;
	transform: translateY(-14px);
	transition: opacity .5s, transform .5s;
}

.hmm-menu.is-open .hmm-menu__nav > *,
.hmm-menu.is-open .hmm-menu__foot {
	opacity: 1;
	transform: none;
}

.hmm-menu.is-open .hmm-menu__nav > :nth-child(1) { transition-delay: .10s; }
.hmm-menu.is-open .hmm-menu__nav > :nth-child(2) { transition-delay: .18s; }
.hmm-menu.is-open .hmm-menu__nav > :nth-child(3) { transition-delay: .26s; }
.hmm-menu.is-open .hmm-menu__nav > :nth-child(4) { transition-delay: .34s; }
.hmm-menu.is-open .hmm-menu__nav > :nth-child(5) { transition-delay: .42s; }
.hmm-menu.is-open .hmm-menu__foot { transition-delay: .50s; }

@media (max-width: 1024px) {
	.hmm-burger { display: block; }
}

@media (min-width: 1025px) {
	.hmm-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.hmm-menu,
	.hmm-menu__nav > *,
	.hmm-menu__foot,
	.hmm-burger span { transition: none !important; }
}
