/**
 * 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__lang-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

.mpm-header__lang-flag {
	display: block;
	width: 18px;
	height: 13px;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 1px;
	object-fit: cover;
}

.mpm-header__lang-label {
	line-height: 1.2;
}

.mpm-header__utility-nav a.mpm-header__lang-link:hover .mpm-header__lang-flag,
.mpm-header__utility-nav a.mpm-header__lang-link:focus .mpm-header__lang-flag {
	border-color: rgba(139, 197, 63, 0.85);
}

.mpm-mobile-menu__accounts-list .mpm-header__lang-link {
	color: #111111;
}

.mpm-mobile-menu__accounts-list .mpm-header__lang-flag {
	border-color: rgba(0, 0, 0, 0.12);
}

.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: 115px;
	background: #ffffff;
	border-bottom: 1px solid #ececec;
	transition: height 0.25s ease;
}

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

.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: 80px;
	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: 64px;
}

/* 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;
}

/* Brasil — WhatsApp in main nav (after Solicitar Cotação) */
.mpm-header--brasil .mpm-header__nav-item--whatsapp {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.mpm-header--brasil .mpm-header__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 0 6px;
	line-height: 1;
	text-decoration: none;
}

.mpm-header--brasil .mpm-header__whatsapp-icon {
	display: block;
	width: 20px;
	height: 20px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mpm-header--brasil .mpm-header__whatsapp:hover .mpm-header__whatsapp-icon,
.mpm-header--brasil .mpm-header__whatsapp:focus .mpm-header__whatsapp-icon {
	opacity: 0.85;
	transform: scale(1.06);
}

.mpm-mobile-menu__cta-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 8px;
}

.mpm-mobile-menu__cta-row .mpm-mobile-menu__cta {
	flex: 1 1 auto;
	margin-top: 0;
}

.mpm-mobile-menu__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	min-height: 48px;
	padding: 0 12px;
	border: 2px solid #8bc53f;
	border-radius: 4px;
	background: #ffffff;
	text-decoration: none;
}

.mpm-mobile-menu__whatsapp-icon {
	display: block;
	width: 26px;
	height: 26px;
}

/* Nav dropdown */
.mpm-header__nav-item--dropdown {
	position: relative;
}

.mpm-header__nav-trigger {
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
	background: transparent;
	border: 0;
	padding-bottom: 4px;
}

/* Dropdown trigger: one underline (::before), chevron (::after) — not nav-link ::after bar */
.mpm-header__nav-link.mpm-header__nav-trigger::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #8bc53f;
	transition: width 0.25s ease;
}

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

.mpm-header__nav-link.mpm-header__nav-trigger::after {
	content: '';
	position: static;
	left: auto;
	bottom: auto;
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 6px;
	background: transparent;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: middle;
	transform: translateY(-1px);
	transition: transform 0.2s ease;
}

.mpm-header__nav-link.mpm-header__nav-trigger:hover::after,
.mpm-header__nav-link.mpm-header__nav-trigger:focus::after,
.mpm-header__nav-link.mpm-header__nav-trigger.is-active::after {
	width: 0;
	height: 0;
	background: transparent;
}

.mpm-header__nav-item--dropdown:hover .mpm-header__nav-link.mpm-header__nav-trigger::after,
.mpm-header__nav-item--dropdown:focus-within .mpm-header__nav-link.mpm-header__nav-trigger::after,
.mpm-header__nav-item--dropdown.is-open .mpm-header__nav-link.mpm-header__nav-trigger::after {
	transform: translateY(-1px) rotate(180deg);
}

.mpm-header__dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 340px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 10003;
}

.mpm-header__nav-item--dropdown:hover .mpm-header__dropdown,
.mpm-header__nav-item--dropdown:focus-within .mpm-header__dropdown,
.mpm-header__nav-item--dropdown.is-open .mpm-header__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mpm-header__dropdown-link {
	display: block;
	padding: 12px 20px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	color: #111111;
	text-decoration: none;
	white-space: normal;
	transition: background 0.2s ease, color 0.2s ease;
}

.mpm-header__dropdown-link::after {
	display: none;
}

.mpm-header__dropdown-link:hover,
.mpm-header__dropdown-link:focus,
.mpm-header__dropdown-link.is-active {
	background: #ffffff;
	color: #8bc53f;
}

.mpm-mobile-menu__group {
	border-bottom: 1px solid #ececec;
	padding-bottom: 4px;
}

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

.mpm-mobile-menu__sublist {
	list-style: none;
	margin: 0;
	padding: 0 0 12px 12px;
}

.mpm-mobile-menu__sublist li {
	border-bottom: 0;
}

.mpm-mobile-menu__sublink {
	display: block;
	padding: 10px 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	color: #333333;
	text-decoration: none;
}

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

/* 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;
	}

	.mpm-header--brasil .mpm-header__main-inner {
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
		column-gap: 28px;
	}

	.mpm-header--brasil .mpm-header__logo {
		max-width: 200px;
	}

	.mpm-header--brasil .mpm-header__nav-list {
		gap: 10px;
	}

	.mpm-header--brasil .mpm-header__nav-link {
		font-size: 10.5px;
		letter-spacing: 0.1px;
	}
}

/* Brasil — longer PT nav labels; keep menu clear of logo */
@media (min-width: 992px) {
	.mpm-header--brasil .mpm-header__main-inner {
		display: grid;
		grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
		align-items: center;
		column-gap: 48px;
		justify-content: stretch;
	}

	.mpm-header--brasil .mpm-header__logo {
		max-width: 280px;
		margin-right: 0;
	}

	.mpm-header--brasil .mpm-header__nav {
		margin-left: 0;
		padding-left: 0;
		justify-self: end;
		width: 100%;
		max-width: 100%;
	}

	.mpm-header--brasil .mpm-header__nav-list {
		gap: 22px;
	}

	.mpm-header--brasil .mpm-header__nav-link {
		font-size: 12px;
		letter-spacing: 0.15px;
	}
}

@media (min-width: 992px) and (max-width: 1280px) {
	.mpm-header--brasil .mpm-header__main-inner {
		grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
		column-gap: 32px;
	}

	.mpm-header--brasil .mpm-header__logo {
		max-width: 240px;
	}

	.mpm-header--brasil .mpm-header__nav-list {
		gap: 14px;
	}

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

@media (min-width: 1281px) {
	.mpm-header--brasil .mpm-header__main-inner {
		column-gap: 56px;
	}

	.mpm-header--brasil .mpm-header__nav-list {
		gap: 28px;
	}
}

/* Español — same spacing as Brasil for longer nav labels */
	.mpm-header--espanol .mpm-header__main-inner {
		grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
		column-gap: 28px;
	}

	.mpm-header--espanol .mpm-header__logo {
		max-width: 200px;
	}

	.mpm-header--espanol .mpm-header__nav-list {
		gap: 10px;
	}

	.mpm-header--espanol .mpm-header__nav-link {
		font-size: 10.5px;
		letter-spacing: 0.1px;
	}
}

@media (min-width: 992px) {
	.mpm-header--espanol .mpm-header__main-inner {
		display: grid;
		grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
		align-items: center;
		column-gap: 48px;
		justify-content: stretch;
	}

	.mpm-header--espanol .mpm-header__logo {
		max-width: 280px;
		margin-right: 0;
	}

	.mpm-header--espanol .mpm-header__nav {
		margin-left: 0;
		padding-left: 0;
		justify-self: end;
		width: 100%;
		max-width: 100%;
	}

	.mpm-header--espanol .mpm-header__nav-list {
		gap: 22px;
	}

	.mpm-header--espanol .mpm-header__nav-link {
		font-size: 12px;
		letter-spacing: 0.15px;
	}
}

@media (min-width: 992px) and (max-width: 1280px) {
	.mpm-header--espanol .mpm-header__main-inner {
		grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
		column-gap: 32px;
	}

	.mpm-header--espanol .mpm-header__logo {
		max-width: 240px;
	}

	.mpm-header--espanol .mpm-header__nav-list {
		gap: 14px;
	}

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

@media (min-width: 1281px) {
	.mpm-header--espanol .mpm-header__main-inner {
		column-gap: 56px;
	}

	.mpm-header--espanol .mpm-header__nav-list {
		gap: 28px;
	}
}
