/**
 * Miami Prime Management — header system (desktop + mobile)
 * Typography: Arial, Helvetica, sans-serif only
 */

html,
body,
.page,
button,
input,
select,
textarea,
.rd-navbar,
.font-accent,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: Arial, Helvetica, sans-serif !important;
}

/* Hide legacy RD Navbar header markup */
.page-head .rd-navbar-wrap {
	display: none !important;
}

.page-head {
	background: transparent;
}

/* ------------------------------------------------------------------ */
.mpm-header {
	position: relative;
	z-index: 10001;
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	transition: box-shadow 0.25s ease;
}

.mpm-header--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 1px 0 #ececec;
}

.mpm-header__container {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
}

/* Utility bar (desktop only) */
.mpm-header__utility {
	height: 42px;
	background: #1d3b5a;
}

.mpm-header__utility-inner {
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.mpm-header__utility-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
}

.mpm-header__utility-nav a {
	font-size: 13px;
	font-weight: 400;
	color: #ffffff;
	text-decoration: none;
	line-height: 1.2;
	transition: color 0.2s ease;
}

.mpm-header__utility-nav a:hover,
.mpm-header__utility-nav a:focus {
	color: #8bc53f;
}

.mpm-header__sep {
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
	margin: 0 10px;
	user-select: none;
}

/* Main header bar */
.mpm-header__main {
	height: 95px;
	background: #ffffff;
	border-bottom: 1px solid #ececec;
	transition: height 0.25s ease;
}

.mpm-header--scrolled .mpm-header__main {
	height: 75px;
}

.mpm-header__main-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mpm-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 34%;
	text-decoration: none;
}

.mpm-header__logo img {
	display: block;
	height: 60px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	transition: height 0.25s ease;
}

.mpm-header--scrolled .mpm-header__logo img {
	height: 48px;
}

/* Desktop navigation — right aligned, no overlap with logo */
.mpm-header__nav {
	flex: 0 1 auto;
	min-width: 0;
	margin-left: auto;
	display: flex;
	justify-content: flex-end;
}

.mpm-header__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 40px;
}

.mpm-header__nav-list li {
	margin: 0;
	padding: 0;
}

.mpm-header__nav-link {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #111111;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
	position: relative;
	padding-bottom: 4px;
	transition: color 0.2s ease;
}

.mpm-header__nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #8bc53f;
	transition: width 0.25s ease;
}

.mpm-header__nav-link:hover,
.mpm-header__nav-link:focus {
	color: #8bc53f;
}

.mpm-header__nav-link:hover::after,
.mpm-header__nav-link:focus::after,
.mpm-header__nav-link.is-active::after {
	width: 100%;
}

.mpm-header__nav-link.is-active {
	color: #111111;
}

/* Hamburger (mobile) */
.mpm-header__toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	z-index: 2;
}

.mpm-header__toggle-bar {
	display: block;
	width: 26px;
	height: 2px;
	background: #111111;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mpm-header__toggle[aria-expanded="true"] .mpm-header__toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.mpm-header__toggle[aria-expanded="true"] .mpm-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.mpm-header__toggle[aria-expanded="true"] .mpm-header__toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile full-screen menu */
.mpm-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 10002;
	pointer-events: none;
	visibility: hidden;
}

.mpm-mobile-menu.is-open {
	pointer-events: auto;
	visibility: visible;
}

.mpm-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	background: #ffffff;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	padding: 24px 24px 32px;
	box-sizing: border-box;
}

.mpm-mobile-menu.is-open .mpm-mobile-menu__panel {
	transform: translateX(0);
}

.mpm-mobile-menu__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 36px;
	line-height: 1;
	color: #111111;
	cursor: pointer;
	padding: 0;
}

.mpm-mobile-menu__nav {
	margin-top: 56px;
}

.mpm-mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mpm-mobile-menu__list li {
	border-bottom: 1px solid #ececec;
}

.mpm-mobile-menu__link {
	display: block;
	padding: 18px 0;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #111111;
	text-decoration: none;
}

.mpm-mobile-menu__link.is-active,
.mpm-mobile-menu__link:hover {
	color: #8bc53f;
}

.mpm-mobile-menu__divider {
	height: 1px;
	background: #ececec;
	margin: 28px 0 20px;
}

.mpm-mobile-menu__accounts-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: #111111;
	letter-spacing: 0.3px;
}

.mpm-mobile-menu__accounts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mpm-mobile-menu__accounts-list li {
	margin: 0 0 10px;
}

.mpm-mobile-menu__accounts-list a {
	font-size: 16px;
	font-weight: 400;
	color: #111111;
	text-decoration: none;
}

.mpm-mobile-menu__accounts-list a:hover {
	color: #8bc53f;
}

.mpm-mobile-menu__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 32px;
	height: 48px;
	width: 100%;
	background: #8bc53f;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-decoration: none;
	border-radius: 4px;
	box-sizing: border-box;
}

.mpm-mobile-menu__cta:hover {
	background: #7ab332;
	color: #ffffff !important;
}

body.mpm-menu-open {
	overflow: hidden;
}

/* Tablet / mobile */
@media (max-width: 991px) {
	.mpm-header__utility {
		display: none !important;
	}

	.mpm-header__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.mpm-header__main,
	.mpm-header--scrolled .mpm-header__main {
		height: 72px;
	}

	.mpm-header__logo img,
	.mpm-header--scrolled .mpm-header__logo img {
		height: 44px;
		max-height: 44px;
	}

	.mpm-header__nav {
		display: none;
	}

	.mpm-header__toggle {
		display: flex;
	}
}

@media (max-width: 1280px) and (min-width: 992px) {
	.mpm-header__nav-list {
		gap: 20px;
	}

	.mpm-header__nav-link {
		font-size: 12px;
		letter-spacing: 0.2px;
	}

	.mpm-header__logo {
		max-width: 30%;
	}
}

@media (max-width: 1100px) and (min-width: 992px) {
	.mpm-header__nav-list {
		gap: 14px;
	}

	.mpm-header__nav-link {
		font-size: 11px;
	}
}
