/* ============================================
   MTG HEADER - mirrors the Kajabi "Encore Page" theme header
   on www.morpheustrading.com: hello bar + nav.
   ============================================ */

.mtgh {
	position: sticky;
	top: 0;
	z-index: 1030;
	margin-bottom: 1.5rem;
	font-family: Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #fff;
	background-color: #2d0444;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Kajabi sticky background once the page has scrolled */
.mtgh--scrolled {
	background-color: #5b0f6f;
}

.mtgh--hidden {
	transform: translateY(-100%);
}

.mtgh a,
.mtgh a:visited,
.mtgh a:hover,
.mtgh a:focus {
	color: #fff;
	text-decoration: none;
}

/* Hello bar */
.mtgh-hello {
	padding: 11px 0;
	background-color: #2a2010;
	text-align: center;
}

.mtgh-hello__text {
	margin: 0;
	padding: 0 16px;
	font-size: 17px;
	line-height: 1.35;
	color: #f2e3c4;
}

.mtgh .mtgh-hello__text a {
	color: #d9a441;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.mtgh .mtgh-hello__text a:hover {
	color: #f0862b;
}

.mtgh-hello .hb-mobile {
	display: none;
}

/* Main bar */
.mtgh-bar {
	display: flex;
	align-items: center;
	padding: 20px 53px;
}

.mtgh-block {
	flex: 0 0 auto;
	margin: 0 10px;
}

/* Like Kajabi's "stretch" logo block: takes the spare width, pushing the nav right */
.mtgh-block--stretch {
	flex: 1 1 0;
}

.mtgh-logo {
	display: block;
	line-height: 1;
}

.mtgh-logo img {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.mtgh-links {
	display: flex;
	align-items: center;
}

.mtgh-links a {
	display: block;
	margin: 0 10px;
}

/* Join button (Kajabi solid small button, orange) */
.mtgh .mtgh-links a.mtgh-btn {
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid #f0862b;
	border-radius: 10px;
	background-color: #f0862b;
	color: #111827;
	font-size: 16.2px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.25px;
	transition: opacity 0.15s ease;
}

.mtgh .mtgh-links a.mtgh-btn:hover,
.mtgh .mtgh-links a.mtgh-btn:focus {
	color: #111827;
	opacity: 0.85;
}

/* Dropdown */
.mtgh-dropdown {
	position: relative;
}

.mtgh-dropdown__trigger {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-family: Roboto, sans-serif;
	cursor: pointer;
}

.mtgh-dropdown__trigger:hover,
.mtgh-dropdown__trigger:focus {
	color: #fff;
	outline: none;
}

.mtgh-dropdown__trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mtgh-dropdown__trigger .fa-chevron-down {
	margin-left: 5px;
	font-size: 0.9em;
	transition: transform 0.2s ease;
}

.mtgh-dropdown--open .fa-chevron-down {
	transform: rotate(180deg);
}

.mtgh-dropdown__menu {
	display: none;
	position: absolute;
	top: 40px;
	left: 0;
	min-width: 200px;
	padding: 10px 0;
	background-color: #1a2744;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Hover bridge so the menu stays open while the pointer crosses the gap */
.mtgh-dropdown__menu::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 0;
	right: 0;
	height: 15px;
}

.mtgh-dropdown--open .mtgh-dropdown__menu {
	display: block;
}

.mtgh-dropdown__menu a {
	display: block;
	padding: 10px 20px;
	white-space: nowrap;
}

.mtgh-dropdown__menu a:hover,
.mtgh-dropdown__menu a:focus {
	background: rgba(255, 255, 255, 0.06);
}

/* Hamburger */
.mtgh-hamburger {
	display: none;
	margin-left: auto;
	padding: 6px 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.mtgh-hamburger span {
	display: block;
	width: 30px;
	height: 2px;
	margin: 7px 0;
	background-color: #fff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mtgh--menu-open .mtgh-hamburger span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.mtgh--menu-open .mtgh-hamburger span:nth-child(2) {
	opacity: 0;
}

.mtgh--menu-open .mtgh-hamburger span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 992px) {
	/* Flatten the nav wrappers so every block is a direct flex item of the bar */
	.mtgh-nav,
	.mtgh-nav > .mtgh-links {
		display: contents;
	}

	.mtgh-dropdown:hover .mtgh-dropdown__menu {
		display: block;
	}
}

/* Mobile: logo + hamburger, nav folds into a panel below */
@media (max-width: 991px) {
	.mtgh {
		font-size: 16px;
	}

	.mtgh-bar {
		flex-wrap: wrap;
		padding: 20px;
	}

	.mtgh-block {
		margin: 0;
	}

	.mtgh-block--logo {
		flex: 0 1 auto;
	}

	.mtgh-hamburger {
		display: block;
	}

	.mtgh-nav {
		display: none;
		flex: 0 0 100%;
		margin-top: 16px;
		padding-top: 8px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.mtgh--menu-open .mtgh-nav {
		display: block;
	}

	.mtgh-nav .mtgh-block,
	.mtgh-links {
		display: block;
	}

	.mtgh-links a,
	.mtgh-dropdown__trigger {
		margin: 0;
		padding: 8px 0;
		text-align: left;
	}

	.mtgh .mtgh-links a.mtgh-btn {
		margin-top: 8px;
		padding: 8px 16px;
	}

	.mtgh-dropdown__menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		background: none;
		box-shadow: none;
	}

	.mtgh-dropdown__menu::before {
		display: none;
	}

	.mtgh-dropdown__menu a {
		padding: 8px 0;
	}

	.mtgh-dropdown__menu a:hover,
	.mtgh-dropdown__menu a:focus {
		background: none;
	}
}

@media (max-width: 767px) {
	.mtgh-hello {
		padding: 9px 0;
	}

	.mtgh-hello__text {
		font-size: 15px;
	}

	.mtgh-hello .hb-desktop {
		display: none;
	}

	.mtgh-hello .hb-mobile {
		display: inline;
	}
}

/* The WordPress "Mobile Menu" plugin adds its own bar below 1024px; this header replaces it */
.mob-menu-header-holder,
.mobmenu-panel,
.mobmenu-overlay {
	display: none !important;
}

body.mob-menu-overlay,
body.mob-menu-slideout,
body.mob-menu-slideout-over,
body.mob-menu-slideout-top {
	padding-top: 0 !important;
}
