/**
 * Site chrome: header (Figma "METRO HOUSE/Nav bar"), phone menu and footer ("METRO HOUSE").
 */

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.mh-main:focus {
	outline: 0;
}

.mh-header {
	position: relative;
	z-index: 50;
	background: var(--mh-c-white);
	color: var(--mh-c-ink);
	font-family: var(--mh-sans);
}

.mh-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mh-header__bar {
	display: flex;
	align-items: center;
	gap: 48px;
	height: 72px;
	padding: 0 32px;
}

.mh-logo {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin-right: auto;
	color: var(--mh-c-ink);
	font-family: var(--mh-serif);
	font-size: 28px;
	line-height: 36px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.mh-logo--image a {
	display: flex;
	align-items: center;
}

.mh-logo--image img {
	display: block;
	width: auto;
	max-height: 36px;
}

.mh-nav__list {
	display: flex;
	align-items: center;
	gap: 48px;
}

.mh-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--mh-c-ink);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.mh-nav__link:hover,
.mh-nav__link[aria-current="page"] {
	text-decoration-line: underline;
}

.mh-header__cta {
	flex: none;
	width: 190px;
	padding: 0 16px;
}

.mh-header__toggle {
	display: none;
}

@media (max-width: 1024px) {
	.mh-header__bar,
	.mh-nav__list {
		gap: 24px;
	}

	.mh-header__cta {
		width: 152px;
	}
}

@media (max-width: 767px) {
	.mh-header__bar {
		padding: 0 20px;
	}

	.mh-nav,
	.mh-header__cta {
		display: none;
	}

	.mh-header__toggle {
		display: inline-flex;
		flex: none;
		min-height: 40px;
		padding: 0 14px;
		font-size: 16px;
		line-height: 24px;
		font-weight: 600;
	}
}

/* ------------------------------------------------------------------ */
/* Phone menu panel                                                   */
/* ------------------------------------------------------------------ */

.mh-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 72px - var(--wp-admin--admin-bar--height, 0px));
	height: calc(100dvh - 72px - var(--wp-admin--admin-bar--height, 0px));
	padding: 64px 20px 64px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--mh-c-white);
}

.mh-menu[hidden] {
	display: none;
}

.mh-menu__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mh-menu__link {
	width: 100%;
}

.mh-menu__link[aria-current="page"] {
	border-color: var(--mh-c-ink);
}

.mh-menu__cta {
	flex: none;
	margin-top: 24px;
}

.mh-menu__note {
	margin: 24px 0 0;
	color: var(--mh-c-muted);
	font-size: 14px;
	line-height: 20px;
}

/* While the panel is open the header stays on screen and the page behind it does not scroll. */
html.mh-menu-open {
	overflow: hidden;
}

html.mh-menu-open body {
	padding-top: 72px;
}

html.mh-menu-open .mh-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
}

@media (min-width: 768px) {
	.mh-menu {
		display: none;
	}

	html.mh-menu-open {
		overflow: visible;
	}

	html.mh-menu-open body {
		padding-top: 0;
	}

	html.mh-menu-open .mh-header {
		position: relative;
		top: auto;
	}
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.mh-footer {
	padding: var(--mh-section-pad) 0;
	background: var(--mh-c-ink);
	color: var(--mh-c-white);
	font-family: var(--mh-sans);
	font-size: 16px;
	line-height: 24px;
}

.mh-footer h2,
.mh-footer p,
.mh-footer ul {
	margin: 0;
}

.mh-footer ul {
	padding: 0;
	list-style: none;
}

.mh-footer a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.mh-footer a:hover {
	text-decoration: underline;
}

.mh-footer :focus-visible {
	outline-color: var(--mh-c-white);
}

.mh-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 600px) minmax(0, 552px);
	justify-content: space-between;
	gap: 48px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mh-c-line);
}

.mh-footer__top--solo {
	grid-template-columns: minmax(0, 600px);
}

.mh-footer .mh-logo--footer {
	display: inline-block;
	min-height: 0;
	margin: 0;
	color: var(--mh-c-white);
	font-size: 56px;
	line-height: 64px;
	white-space: normal;
}

.mh-footer .mh-logo--footer:hover {
	text-decoration: none;
}

.mh-footer .mh-footer__promise {
	margin-top: 16px;
	font-family: var(--mh-serif);
	font-size: 28px;
	line-height: 36px;
	font-weight: 400;
}

.mh-footer .mh-footer__about {
	max-width: 552px;
	margin-top: 16px;
}

.mh-footer__news-title {
	color: var(--mh-c-white);
	font-family: var(--mh-serif);
	font-size: 28px;
	line-height: 36px;
	font-weight: 400;
}

.mh-footer .mh-footer__news-text {
	margin-top: 16px;
}

.mh-footer__form {
	margin-top: 16px;
}

.mh-footer__label {
	display: block;
}

.mh-footer__row {
	display: flex;
	gap: 16px;
	margin-top: 12px;
}

.mh-footer__input {
	flex: 0 1 386px;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--mh-c-line);
	border-radius: var(--mh-radius-control);
	background: transparent;
	color: var(--mh-c-white);
	font-family: var(--mh-sans);
	font-size: 16px;
	line-height: 24px;
}

.mh-footer__input::placeholder {
	color: var(--mh-c-white);
	opacity: 1;
}

.mh-footer__input:focus {
	outline: 2px solid var(--mh-c-white);
	outline-offset: 2px;
}

.mh-footer__submit {
	flex: none;
	width: 150px;
	padding: 0 16px;
}

.mh-footer .mh-footer__status {
	margin-top: 12px;
	font-size: 14px;
	line-height: 20px;
}

.mh-footer__status:empty {
	display: none;
}

.mh-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 32px;
	margin-top: 24px;
}

.mh-footer .mh-footer__heading {
	margin-bottom: 8px;
	color: var(--mh-c-white);
}

.mh-footer__links li + li {
	margin-top: 8px;
}

.mh-footer__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.mh-footer__links + .mh-footer__contact,
.mh-footer__contact li + li {
	margin-top: 8px;
}

.mh-footer .mh-footer__legal {
	margin-top: 24px;
	font-size: 14px;
	line-height: 20px;
}

@media (max-width: 1024px) {
	.mh-footer__top,
	.mh-footer__top--solo {
		grid-template-columns: minmax(0, 1fr);
	}

	.mh-footer .mh-logo--footer {
		font-size: 44px;
		line-height: 52px;
	}

	.mh-footer .mh-footer__promise {
		font-size: 26px;
		line-height: 34px;
	}

	.mh-footer .mh-footer__about {
		max-width: none;
	}

	.mh-footer__input {
		flex: 1 1 auto;
	}

	.mh-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 276px));
		column-gap: 24px;
	}
}

@media (max-width: 767px) {
	.mh-footer .mh-logo--footer {
		font-size: 36px;
		line-height: 44px;
	}

	.mh-footer .mh-footer__promise {
		font-size: 22px;
		line-height: 30px;
	}

	.mh-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}
}
