/*
 * Memory Haven design overrides (loaded last, after the original bundle).
 */

:root {
	--mh-blue: #2b6796;
	--mh-blue-dark: #1f4f75;
	--mh-orange: #f18c21;
}

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

.wrapper-navbar .nap .phone a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--mh-blue);
	font-weight: 600;
	text-decoration: none;
}
.wrapper-navbar .nap .phone a::before {
	content: "";
	width: .8em;
	height: .8em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wrapper-navbar .nap .phone a:hover,
.wrapper-navbar .nap .phone a:focus {
	text-decoration: underline;
}

@media (min-width: 1200px) {
	/* Keep the logo at its natural size so the nav fits on one line. */
	.wrapper-navbar .logo-wrapper {
		flex: 0 0 auto;
		max-width: 360px;
		margin-right: 2.5rem;
	}
	.wrapper-navbar .logo-wrapper img {
		width: 100%;
		height: auto;
	}
	.wrapper-navbar .navbar-wrapper {
		flex: 1 1 auto;
		min-width: 0;
	}
	.wrapper-navbar .nap {
		border-bottom: 1px solid rgba(43, 103, 150, .25) !important;
	}

	#main-menu {
		justify-content: flex-end !important;
		gap: .25rem;
	}
	#main-menu > .nav-item > .nav-link {
		position: relative;
		padding: .5rem .85rem !important;
		font-size: 18px;
		white-space: nowrap;
	}
	#main-menu > .nav-item > .nav-link:hover,
	#main-menu > .nav-item > .nav-link:focus,
	#main-menu > .nav-item > .nav-link.show {
		color: var(--mh-blue);
	}
	/* Underline on hover for plain links (dropdowns keep their caret). */
	#main-menu > .nav-item > .nav-link:not(.dropdown-toggle)::before {
		content: "";
		position: absolute;
		left: .85rem;
		right: .85rem;
		bottom: .2rem;
		height: 2px;
		background: var(--mh-blue);
		transform: scaleX(0);
		transition: transform .2s ease;
	}
	#main-menu > .nav-item > .nav-link:hover::before,
	#main-menu > .nav-item > .nav-link:focus::before {
		transform: scaleX(1);
	}
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
	.wrapper-navbar .logo-wrapper {
		max-width: 300px;
		margin-right: 1.5rem;
	}
	#main-menu > .nav-item > .nav-link {
		padding: .5rem .6rem !important;
		font-size: 17px;
	}
}

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

.mh-footer {
	color: #fff;
	font-size: 1rem;
}
.mh-footer a {
	color: #fff;
	text-decoration: none;
}
.mh-footer a:hover,
.mh-footer a:focus {
	text-decoration: underline;
}

.mh-footer__main {
	position: relative;
	padding: 4.5rem 0 3.5rem;
	background-color: var(--mh-blue);
	background-size: cover;
	background-position: center;
}
.mh-footer__main::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(31, 79, 117, .9);
}
.mh-footer__main > .container {
	position: relative;
}

.mh-footer__logo img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
}
.mh-footer__tagline {
	margin: 1rem 0 1.25rem;
	font-size: 1.1rem;
	opacity: .9;
}

.mh-footer__social {
	display: flex;
	gap: .75rem;
	margin: 0;
}
.mh-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	transition: background-color .2s ease, border-color .2s ease;
}
.mh-footer__social a:hover,
.mh-footer__social a:focus {
	background: rgba(255, 255, 255, .15);
	border-color: #fff;
}
.mh-footer__social .icon {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
}

.mh-footer__heading {
	margin-bottom: 1rem;
	color: #fff;
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.mh-footer__col li + li {
	margin-top: .55rem;
}
.mh-footer__col a {
	opacity: .9;
}
.mh-footer__col a:hover,
.mh-footer__col a:focus {
	opacity: 1;
}

.mh-footer__contact address {
	margin-bottom: .75rem;
	font-style: normal;
	font-size: 1.1rem;
	line-height: 1.5;
}
.mh-footer__phone a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.35rem;
	font-weight: 600;
}
.mh-footer__phone .icon {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}
.mh-footer__cta.btn {
	margin-top: .5rem;
	padding: .7rem 1.75rem;
	color: var(--mh-blue) !important;
	background: #fff;
	border-color: #fff;
}
.mh-footer__cta.btn:hover,
.mh-footer__cta.btn:focus {
	color: var(--mh-blue-dark) !important;
	background: rgba(255, 255, 255, .9);
	text-decoration: none;
}

.mh-footer__bar {
	padding: 1rem 0;
	background: var(--mh-blue-dark);
	font-size: .875rem;
}
.mh-footer__bar p {
	opacity: .85;
}
.mh-footer__bar .list-inline-item:not(:last-child) {
	margin-right: 1.25rem;
}

@media (max-width: 767.98px) {
	.mh-footer__main {
		padding: 3rem 0 2.5rem;
		text-align: center;
	}
	.mh-footer__logo img {
		margin: 0 auto;
		max-width: 240px;
	}
	.mh-footer__social {
		justify-content: center;
	}
	/* Leave room for the fixed mobile action bar. */
	.mh-footer__bar {
		padding-bottom: calc(1rem + 64px);
	}
	.mh-footer__bar .list-inline-item {
		margin: .25rem .5rem !important;
	}
}

/* Mobile action bar labels */
.stickyfooter span {
	font-size: 11px;
	letter-spacing: .04em;
}
.stickyfooter .nav-item + .nav-item {
	border-left: 1px solid rgba(255, 255, 255, .35);
}

/* ---------- Back to top ---------- */

#backToTop.mh-back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50% !important;
	background-color: var(--mh-blue) !important;
	color: #fff !important;
	opacity: 0;
	visibility: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: opacity .2s ease, visibility .2s ease, background-color .2s ease;
}
#backToTop.mh-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}
#backToTop.mh-back-to-top:hover,
#backToTop.mh-back-to-top:focus-visible {
	background-color: var(--mh-orange) !important;
}

/* ---------- Blog ---------- */

.mh-blog-hero {
	padding: 3.5rem 0 2.5rem;
	background: #f4f7fa;
	border-bottom: 1px solid #e3e9ef;
}
.mh-blog-hero h1 {
	margin: 0;
	color: var(--mh-blue);
}
.mh-blog-hero .mh-post-meta {
	margin-top: .75rem;
	color: #5b6670;
}
.mh-post-meta a {
	color: inherit;
}

.mh-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e3e9ef;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.mh-card:hover {
	box-shadow: 0 10px 24px rgba(31, 79, 117, .12);
	transform: translateY(-2px);
}
.mh-card__img {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e3e9ef;
}
.mh-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mh-card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.mh-card__cat {
	margin-bottom: .5rem;
	color: var(--mh-orange);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.mh-card__title {
	margin-bottom: .75rem;
	font-size: 1.25rem;
	line-height: 1.3;
}
.mh-card__title a {
	color: #0c0b0b;
	text-decoration: none;
}
.mh-card__title a:hover,
.mh-card__title a:focus {
	color: var(--mh-blue);
}
.mh-card__excerpt {
	color: #4a545d;
	font-size: .975rem;
}

.mh-blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}
.mh-blog-cats a {
	display: inline-block;
	padding: .35rem .9rem;
	border: 1px solid #cfd9e2;
	border-radius: 999px;
	color: var(--mh-blue);
	font-size: .9rem;
	text-decoration: none;
}
.mh-blog-cats a:hover,
.mh-blog-cats a:focus,
.mh-blog-cats a[aria-current] {
	background: var(--mh-blue);
	border-color: var(--mh-blue);
	color: #fff;
}

.mh-article {
	font-size: 1.1rem;
	line-height: 1.7;
}
.mh-article h2,
.mh-article h3,
.mh-article h4 {
	margin: 2rem 0 1rem;
	color: var(--mh-blue);
	line-height: 1.3;
}
.mh-article img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.mh-article figure {
	margin: 1.5rem 0;
}
.mh-article table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
}
.mh-article th,
.mh-article td {
	padding: .5rem .75rem;
	border: 1px solid #dfe5eb;
}
.mh-article__featured {
	margin-bottom: 2rem;
}
.mh-article__featured img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.mh-cta-box {
	margin: 3rem 0 1rem;
	padding: 2rem;
	background: #f4f7fa;
	border-left: 4px solid var(--mh-orange);
	border-radius: 6px;
}
.mh-cta-box h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

.mh-related {
	padding: 3rem 0 4rem;
	background: #f4f7fa;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35rem;
	margin-top: 3rem;
}
.navigation.pagination .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: .45rem .8rem;
	border: 1px solid #cfd9e2;
	border-radius: 4px;
	color: var(--mh-blue);
	text-align: center;
	text-decoration: none;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
	background: var(--mh-blue);
	border-color: var(--mh-blue);
	color: #fff;
}

/* ---------- Contact page ---------- */

.mh-contact .wpcf7-form label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 600;
}
.mh-contact .wpcf7-form input:not([type="submit"]):not([type="checkbox"]),
.mh-contact .wpcf7-form select,
.mh-contact .wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: .35rem;
	padding: .65rem .8rem;
	border: 1px solid #b9c6d2;
	border-radius: 4px;
	font-weight: 400;
}
.mh-contact .wpcf7-form textarea {
	height: 9rem;
}
.mh-contact .wpcf7-form input:focus,
.mh-contact .wpcf7-form select:focus,
.mh-contact .wpcf7-form textarea:focus {
	border-color: var(--mh-blue);
	outline: 2px solid rgba(43, 103, 150, .25);
}
.mh-contact .wpcf7-submit {
	padding: .75rem 2rem;
	border: 0;
	background: var(--mh-blue);
	color: #fff;
	font-weight: 600;
	letter-spacing: .04em;
}
.mh-contact .wpcf7-submit:hover {
	background: var(--mh-blue-dark);
}
.mh-contact-card {
	padding: 2rem;
	background: #f4f7fa;
	border-radius: 6px;
}
.mh-contact-card h2 {
	color: var(--mh-blue);
	font-size: 1.4rem;
}
.mh-contact-card address {
	font-style: normal;
}

/* ---------- Home hero ---------- */

.home-hero .hero-tagline {
	margin: .75rem 0 0;
	color: #fcfcfc;
	font-size: 1.35rem;
	letter-spacing: .5px;
	text-align: left;
	text-shadow: 1px 1px 1px var(--mh-blue);
}

@media (min-width: 768px) {
	/* Keep the legal links clear of the back-to-top button. */
	.mh-footer__bar ul {
		margin-right: 3.5rem;
	}
}

.mh-blog-hero h1 {
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 600;
	line-height: 1.2;
}
.mh-blog-hero .lead {
	font-weight: 400;
}
.mh-contact .wpcf7 {
	max-width: none;
	margin: 0;
}

/* Article/card headings: sentence case is easier to read than the site's spaced capitals. */
.mh-card__title,
.mh-article h2,
.mh-article h3,
.mh-article h4,
.mh-cta-box h2,
.mh-blog-hero h1 {
	letter-spacing: 0;
	text-transform: none;
}
.mh-card__title {
	font-weight: 600;
}
