/**
 * Footer: "Join Our Journey" band and the dark link footer.
 * Phones: stacked. 768–1199px: 3 columns. 1200px+: artboard grid (--hm-u).
 */

.hm-footer {
	--hm-footer-bg: #012050;

	position: relative;
	color: #d7e6f8;
}

/* Join band --------------------------------------------------------------- */

.hm-fcta {
	position: relative;
	background: #eef5fd var(--hm-fcta-bg, none) center / cover no-repeat;
}

.hm-fcta__inner {
	position: relative;
	z-index: 2;
	padding-block: 48px 40px;
}

.hm-fcta__kids,
.hm-fcta__tagline {
	display: none;
}

.hm-fcta__title {
	margin: 0;
	font-family: var(--hm-font-heading);
	font-size: clamp(26px, 2.2vw + 16px, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: #0b2a5e;
}

.hm-fcta__title span {
	color: var(--hm-color-highlight);
}

.hm-fcta__text {
	max-width: 32em;
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.5;
	color: #3c4f6b;
}

.hm-fcta__actions {
	justify-content: flex-start;
}

/* Main footer ------------------------------------------------------------- */

.hm-footer__main {
	position: relative;
	z-index: 1;
	background: var(--hm-footer-bg);
}

.hm-footer__wave {
	position: absolute;
	right: 0;
	bottom: calc(100% - 1px);
	left: 0;
	width: 100%;
	height: 40px;
	fill: var(--hm-footer-bg);
}

.hm-footer__grid {
	display: grid;
	gap: 32px 24px;
	padding-block: 40px 28px;
}

.hm-footer__main a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hm-footer__main a:hover {
	color: var(--hm-color-white);
}

.hm-footer__main a:focus-visible,
.hm-footer button:focus-visible,
.hm-footer input:focus-visible {
	outline: 2px solid #6fb2ff;
	outline-offset: 3px;
}

.hm-footer__logo {
	display: inline-block;
}

.hm-footer__logo img {
	display: block;
	width: auto;
	height: 70px;
}

/* No light logo uploaded: show the site logo in white. */
.hm-footer__logo--auto img {
	filter: brightness(0) invert(1);
}

.hm-footer__about {
	max-width: 22em;
	margin: 18px 0 0;
	font-size: 15.5px;
	line-height: 1.5;
}

.hm-footer__social {
	display: flex;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.hm-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #01337b;
	color: var(--hm-color-white);
	transition: background-color 0.2s ease;
}

.hm-footer__social a:hover {
	background: #0b6bd6;
}

.hm-footer__social svg {
	width: 45%;
	height: 45%;
}

.hm-footer__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 14px;
	font-family: var(--hm-font-heading);
	font-size: 19px;
	font-weight: 700;
	color: var(--hm-color-white);
}

.hm-footer__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 3px;
	border-radius: 2px;
	background: #1277e2;
}

.hm-footer__links,
.hm-footer__contact ul,
.hm-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-footer__links li {
	font-size: 15.5px;
	line-height: 1.6;
	color: #cfe0f5;
}

.hm-footer__links a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgb(255 255 255 / 0.4);
}

.hm-footer__contact li {
	display: flex;
	gap: 18px;
	margin-bottom: 16px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--hm-color-white);
}

.hm-footer__contact svg {
	flex: none;
	width: 20px;
	height: 22px;
	margin-top: 2px;
	color: #0076ff;
}

.hm-footer__contact small {
	font-size: inherit;
	color: #c9dcf2;
}

.hm-footer__subscribe p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.5;
}

.hm-footer__email {
	display: flex;
	align-items: center;
	height: 52px;
	margin-top: 18px;
	padding: 0 4px 0 18px;
	border-radius: var(--hm-radius-pill);
	background: var(--hm-color-white);
}

.hm-footer__email > svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: #0b2a5e;
}

.hm-footer__email input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 12px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15.5px;
	color: #0b2a5e;
	outline: none;
}

.hm-footer__email button {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #0b6bd6;
	color: var(--hm-color-white);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.hm-footer__email button:hover {
	background: #1277e2;
}

.hm-footer__email button svg {
	width: 40%;
	height: auto;
}

.hm-footer__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}

.hm-footer__consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #0b6bd6;
}

.hm-footer__subscribe .hm-footer__notice {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgb(18 119 226 / 0.25);
	font-size: 13.5px;
	color: var(--hm-color-white);
}

.hm-footer__subscribe .hm-footer__notice--error {
	background: rgb(226 60 60 / 0.3);
}

.hm-footer__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
}

.hm-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-block: 90px 26px;
	font-size: 14px;
}

/* Landmark skyline drawn faintly behind the bottom bar. */
.hm-footer__bottom::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: min(1000px, 96%);
	height: 120px;
	background: var(--hm-skyline, none) center bottom / contain no-repeat;
	opacity: 0.5;
	transform: translateX(-50%);
	pointer-events: none;
}

.hm-footer__bottom p {
	position: relative;
	margin: 0;
}

.hm-footer__legal {
	position: relative;
	display: flex;
	flex-wrap: wrap;
}

.hm-footer__legal li + li::before {
	content: "|";
	margin-inline: 18px;
	opacity: 0.7;
}

/* Phones: link columns two per row, the rest full width. */
@media (max-width: 767px) {
	.hm-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.hm-footer__brand,
	.hm-footer__contact,
	.hm-footer__subscribe {
		grid-column: 1 / -1;
	}

	.hm-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 768px) {
	.hm-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hm-footer__brand {
		grid-column: 1 / -1;
	}

	.hm-footer__wave {
		height: 70px;
	}
}

@media (min-width: 1200px) {
	.hm-fcta {
		min-height: calc(300 * var(--hm-u));
	}

	.hm-fcta .hm-container {
		padding-inline: calc(788 * var(--hm-u)) calc(80 * var(--hm-u));
	}

	.hm-fcta__inner {
		padding-block: calc(57 * var(--hm-u)) calc(30 * var(--hm-u));
	}

	/*
	 * Behind the footer wave so the wave crops the photo's flat bottom
	 * edge, as in the design.
	 */
	.hm-fcta__kids {
		position: absolute;
		z-index: 0;
		bottom: calc(-36 * var(--hm-u));
		left: calc(240 * var(--hm-u));
		display: block;
		width: calc(400 * var(--hm-u));
		height: auto;
	}

	.hm-fcta__tagline {
		position: absolute;
		top: calc(88 * var(--hm-u));
		left: calc(44 * var(--hm-u));
		display: block;
		margin: 0;
		font-family: var(--hm-font-script);
		font-size: calc(32 * var(--hm-u));
		line-height: calc(38 * var(--hm-u));
		white-space: nowrap;
		color: #0b2a5e;
		transform: skewY(-14deg) skewX(-8deg);
		transform-origin: 0 0;
	}

	.hm-fcta__tagline span {
		display: block;
		margin-left: calc(var(--hm-line, 0) * 10 * var(--hm-u));
	}

	.hm-fcta__tagline svg {
		display: block;
		width: calc(110 * var(--hm-u));
		margin: calc(2 * var(--hm-u)) 0 0 calc(30 * var(--hm-u));
		color: var(--hm-color-highlight);
	}

	.hm-fcta .hm-news__eyebrow {
		margin-bottom: calc(3 * var(--hm-u));
		font-size: max(12px, calc(17 * var(--hm-u)));
		line-height: calc(26 * var(--hm-u));
		letter-spacing: 0.14em;
	}

	.hm-fcta__title {
		font-size: calc(41.3 * var(--hm-u));
		line-height: calc(48 * var(--hm-u));
	}

	.hm-fcta__text {
		max-width: calc(560 * var(--hm-u));
		margin-top: calc(12 * var(--hm-u));
		font-size: max(13px, calc(17 * var(--hm-u)));
		line-height: calc(25 * var(--hm-u));
	}

	.hm-fcta__actions {
		gap: calc(16 * var(--hm-u));
		margin-top: calc(18 * var(--hm-u));
	}

	.hm-fcta .hm-cta__btn {
		min-width: calc(247 * var(--hm-u));
		min-height: max(40px, calc(52 * var(--hm-u)));
		padding-inline: calc(28 * var(--hm-u));
		font-size: max(13px, calc(17 * var(--hm-u)));
	}

	.hm-footer__wave {
		height: calc(80 * var(--hm-u));
	}

	.hm-footer .hm-container {
		padding-inline: calc(94 * var(--hm-u)) calc(72 * var(--hm-u));
	}

	.hm-fcta .hm-container {
		padding-inline: calc(788 * var(--hm-u)) calc(80 * var(--hm-u));
	}

	.hm-footer__grid {
		grid-template-columns: calc(389 * var(--hm-u)) calc(255 * var(--hm-u)) calc(267 * var(--hm-u)) calc(266 * var(--hm-u)) calc(318 * var(--hm-u)) minmax(0, 1fr);
		gap: 0;
		padding-block: calc(45 * var(--hm-u)) calc(38 * var(--hm-u));
	}

	.hm-footer__brand {
		grid-column: auto;
	}

	.hm-footer__logo img {
		height: max(52px, calc(80 * var(--hm-u)));
	}

	.hm-footer__about {
		max-width: calc(310 * var(--hm-u));
		margin-top: calc(22 * var(--hm-u));
		font-size: max(13px, calc(16.8 * var(--hm-u)));
		line-height: max(calc(24 * var(--hm-u)), 1.5em);
	}

	.hm-footer__social {
		gap: calc(12 * var(--hm-u));
		margin-top: calc(24 * var(--hm-u));
	}

	.hm-footer__social a {
		width: calc(44 * var(--hm-u));
		height: calc(44 * var(--hm-u));
	}

	.hm-footer__title {
		margin: calc(17 * var(--hm-u)) 0 calc(17 * var(--hm-u));
		padding-bottom: calc(16 * var(--hm-u));
		font-size: max(15px, calc(19.7 * var(--hm-u)));
		line-height: calc(26 * var(--hm-u));
	}

	.hm-footer__title::after {
		width: calc(30 * var(--hm-u));
		height: calc(3 * var(--hm-u));
	}

	.hm-footer__links li {
		font-size: max(13px, calc(16.5 * var(--hm-u)));
		line-height: max(calc(24.5 * var(--hm-u)), 1.5em);
	}

	.hm-footer__contact li {
		gap: calc(34 * var(--hm-u));
		margin-bottom: calc(14 * var(--hm-u));
		font-size: max(13px, calc(16.5 * var(--hm-u)));
		line-height: max(calc(23.5 * var(--hm-u)), 1.45em);
	}

	.hm-footer__contact svg {
		width: calc(22 * var(--hm-u));
		height: calc(24 * var(--hm-u));
		margin-left: calc(7 * var(--hm-u));
	}

	.hm-footer__subscribe p {
		font-size: max(13px, calc(16.2 * var(--hm-u)));
		line-height: max(calc(24 * var(--hm-u)), 1.5em);
	}

	.hm-footer__email {
		height: calc(54 * var(--hm-u));
		margin-top: calc(15 * var(--hm-u));
		padding: 0 calc(3 * var(--hm-u)) 0 calc(20 * var(--hm-u));
	}

	.hm-footer__email > svg {
		width: calc(22 * var(--hm-u));
		height: calc(22 * var(--hm-u));
	}

	.hm-footer__email input {
		padding-inline: calc(16 * var(--hm-u));
		font-size: max(12px, calc(16.5 * var(--hm-u)));
	}

	.hm-footer__email button {
		width: calc(50 * var(--hm-u));
		height: calc(50 * var(--hm-u));
	}

	.hm-footer__consent {
		gap: calc(12 * var(--hm-u));
		margin-top: calc(15 * var(--hm-u));
		font-size: max(11px, calc(13.5 * var(--hm-u)));
		line-height: max(calc(20 * var(--hm-u)), 1.45em);
	}

	.hm-footer__consent input {
		width: calc(18 * var(--hm-u));
		height: calc(18 * var(--hm-u));
	}

	.hm-footer__bottom {
		padding-block: calc(96 * var(--hm-u)) calc(32 * var(--hm-u));
		font-size: max(12px, calc(15 * var(--hm-u)));
	}

	.hm-footer__bottom::before {
		width: calc(1100 * var(--hm-u));
		height: calc(150 * var(--hm-u));
		bottom: 0;
	}

	.hm-footer__legal li + li::before {
		margin-inline: calc(18 * var(--hm-u));
	}
}
