/* Site footer: closing CTA, link columns, contact details, payments. */

.hf-footer {
	/* Deep brand blue with a soft sky-blue glow from the top left. */
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(var(--hf-blue-rgb), 0.28) 0%, transparent 60%),
		var(--hf-deep-500);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-sm);
}

.hf-footer a {
	transition: color var(--dur-2) var(--ease-out);
}

/* Newsletter card (above the footer, on every page) */
.hf-newsletter {
	padding-block: 0 var(--section-y);
	background: var(--hf-surface);
}

.hf-newsletter__card {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: var(--sp-8);
	align-items: center;
	padding: clamp(28px, 5vw, 64px);
	border-radius: var(--radius-l);
	background:
		radial-gradient(90% 120% at 100% 0%, var(--hf-blue-500) 0%, rgba(var(--hf-blue-rgb), 0) 70%),
		linear-gradient(120deg, var(--hf-blue-600) 0%, var(--hf-blue-600) 45%, #00669f 100%);
	color: #fff;
	overflow: hidden;
}

.hf-newsletter__ridge {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: min(60%, 600px);
	height: 120px;
	fill: rgba(0, 33, 56, 0.18);
}

.hf-newsletter .hf-eyebrow {
	color: #fff;
}

.hf-newsletter .hf-eyebrow::before {
	background: var(--hf-orange-500);
}

.hf-newsletter__title {
	color: #fff;
	font-size: var(--fs-h2);
	font-weight: 800;
	line-height: 1.1;
}

.hf-newsletter__lead {
	max-width: 46ch;
	margin-top: var(--sp-3);
	color: #fff;
	font-size: var(--fs-lead);
}

.hf-newsletter .hf-form-wrapper {
	max-width: none;
}

.hf-newsletter .hf-alert {
	background: #fff;
}

.hf-newsletter__perks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: var(--sp-4);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.hf-newsletter__perks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hf-newsletter__perks .hf-icon {
	width: 18px;
	height: 18px;
}

@media (min-width: 960px) {
	.hf-newsletter__card {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-12);
	}
}

/* Columns */
.hf-footer__main {
	padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 130px);
	/* Faint layered mountain ridges along the bottom. */
	background-image: url("../../images/footer/footer-ridge.svg");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% clamp(70px, 9vw, 120px);
}

.hf-footer__grid {
	display: grid;
	gap: var(--sp-10);
}

.hf-footer__about {
	max-width: 44ch;
	line-height: 1.75;
}

.hf-footer__follow {
	margin-top: var(--sp-6);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 700;
}

.hf-footer__social {
	display: flex;
	gap: 10px;
	margin-top: var(--sp-3);
}

.hf-footer__social-link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transition:
		background-color var(--dur-2) var(--ease-out),
		border-color var(--dur-2) var(--ease-out),
		color var(--dur-2) var(--ease-out),
		transform var(--dur-2) var(--ease-out);
}

.hf-footer__social-link:hover {
	border-color: var(--hf-orange-500);
	background: var(--hf-orange-500);
	color: var(--hf-ink);
	transform: translateY(-2px);
}

/* Column titles: the same on every column, with a short accent line. */
.hf-footer__title {
	margin-bottom: var(--sp-6);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hf-footer__title::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--hf-orange-500);
}

.hf-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 24px;
}

.hf-footer__links a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-left: 18px;
	transition:
		color var(--dur-2) var(--ease-out),
		padding-left var(--dur-2) var(--ease-out);
}

/* A small orange arrow before each link; it steps forward on hover. */
.hf-footer__links a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 6px;
	height: 6px;
	border-top: 2px solid var(--hf-orange-500);
	border-right: 2px solid var(--hf-orange-500);
	opacity: 0.85;
	transform: translateY(-50%) rotate(45deg);
	transition: left var(--dur-2) var(--ease-out);
}

.hf-footer__links a:hover {
	padding-left: 22px;
}

.hf-footer__links a:hover::before {
	left: 4px;
}

.hf-footer__links a:hover,
.hf-footer__contact a:hover,
.hf-footer__legal a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hf-footer__contact {
	display: grid;
	gap: var(--sp-4);
	font-style: normal;
}

.hf-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	line-height: 1.5;
}

.hf-footer__contact-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	color: #ffc58f;
}

.hf-footer__contact-icon .hf-icon {
	width: 20px;
	height: 20px;
}

.hf-footer__contact-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hf-footer__contact-label {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hf-footer__contact a,
.hf-footer__contact-text {
	color: #fff;
	overflow-wrap: anywhere;
}

.hf-footer__contact a {
	font-size: 1rem;
	font-weight: 700;
}

.hf-footer__contact-text {
	font-weight: 500;
}

/* Bottom bar */
.hf-footer__bottom {
	position: relative;
	background: var(--hf-deep-900);
}

/* A soft light line along the top instead of a hard border. */
.hf-footer__bottom::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28) 20%, rgba(255, 255, 255, 0.28) 80%, transparent);
}

.hf-footer__bottom-inner {
	display: grid;
	justify-items: center;
	gap: var(--sp-5);
	padding-block: var(--sp-8) calc(var(--sp-8) + 72px);
	text-align: center;
}

.hf-footer__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 16px;
}

.hf-footer__payments-label {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hf-footer__payment-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* Small card icons (they carry their own rounded corners). */
.hf-footer__payment {
	display: block;
	line-height: 0;
}

.hf-footer__card {
	display: block;
	width: 44px;
	height: 28px;
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* An uploaded image for a card the theme has no icon for. */
.hf-footer__card--upload {
	padding: 2px;
	background: #fff;
	object-fit: contain;
}

.hf-footer__legal {
	display: grid;
	gap: 4px;
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--fs-xs);
	line-height: 1.6;
}

.hf-footer__legal a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 3px;
}

@media (max-width: 999px) {
	.hf-footer__main {
		background-size: 100% 80px;
	}

	.hf-footer__col {
		padding-top: var(--sp-8);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
}

@media (min-width: 700px) {
	.hf-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hf-footer__brand {
		grid-column: span 2;
	}
}

@media (min-width: 1000px) {
	.hf-footer__grid {
		grid-template-columns: 1.05fr 1.25fr 1fr;
		gap: 0;
	}

	.hf-footer__brand {
		padding-right: clamp(24px, 4vw, 64px);
	}

	.hf-footer__col {
		padding-left: clamp(24px, 3vw, 48px);
		border-left: 1px solid rgba(255, 255, 255, 0.12);
	}

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

	.hf-footer__bottom-inner {
		grid-template-columns: 1fr auto 1fr;
		justify-items: stretch;
		align-items: center;
		gap: var(--sp-8);
		padding-block: var(--sp-6);
		text-align: left;
	}

	.hf-footer__legal {
		justify-self: center;
		text-align: center;
	}

	.hf-footer__payments {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hf-footer__links a,
	.hf-footer__links a::before,
	.hf-footer__social-link {
		transition: none;
	}

	.hf-footer__social-link:hover {
		transform: none;
	}
}
