.wp-site-blocks > footer.wp-block-template-part {
	max-width: none;
}

/* Full bleed, with the content kept to the same width and edges as the header. */
.nffat-footer {
	--nffat-footer-gutter: max(var(--wp--style--root--padding-left), calc((100% - var(--nffat-page-max)) / 2 + var(--wp--style--root--padding-left)));
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 72px var(--nffat-footer-gutter) 32px;
	background: var(--wp--preset--color--teal-900);
	color: var(--wp--preset--color--white);
	border-radius: var(--nffat-radius-panel) var(--nffat-radius-panel) 0 0;
	overflow: hidden;
}

.nffat-footer > *,
.nffat-footer .wp-block-group > * {
	margin-block: 0;
}

.nffat-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 48px;
}

.nffat-footer__hello {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 760px;
}

.nffat-footer__title {
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: 0;
}

.nffat-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nffat-footer__contact .nffat-btn {
	padding: 14px 22px;
	gap: 10px;
}

.nffat-footer__contact .nffat-btn .nffat-icon {
	font-size: 18px;
}

.nffat-footer__phone .nffat-icon {
	color: var(--wp--preset--color--teal);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-footer__contact .nffat-btn:hover .nffat-icon {
		transform: none;
	}

	.nffat-footer__phone:hover {
		background: var(--wp--preset--color--teal-50);
	}
}

.nffat-footer__columns {
	display: flex;
	gap: 72px;
	flex-shrink: 0;
}

.nffat-footer__column {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nffat-footer__heading {
	color: var(--wp--preset--color--teal-100);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.nffat-footer__links {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	list-style: none;
}

.nffat-footer__links li {
	font-size: 16px;
	line-height: 1.25;
}

.nffat-footer__links a {
	color: var(--wp--preset--color--white);
	font-weight: 500;
	border-radius: 4px;
}

.nffat-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid rgb(255 255 255 / 0.2);
}

@media (min-width: 1100px) {
	.nffat-footer__bottom {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 20px 24px;
	}

	.nffat-footer__social {
		grid-area: 2 / 1;
	}

	.nffat-footer__legal {
		grid-area: 1 / 2 / 3;
		align-self: center;
		justify-content: flex-end;
	}
}

.nffat-footer__logo {
	flex-shrink: 0;
	margin: 0;
}

.nffat-footer__logo a {
	display: block;
	border-radius: 8px;
}

.nffat-footer__logo img {
	display: block;
	width: 150px;
	height: 52px;
	object-fit: contain;
}

.nffat-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	color: var(--wp--preset--color--teal-100);
	font-size: 13px;
	line-height: 1.4;
}

.nffat-footer__legal a {
	color: inherit;
	border-radius: 4px;
}

.nffat-footer__social {
	display: flex;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.nffat-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.12);
	color: var(--wp--preset--color--white);
	transition: background-color 160ms var(--nffat-ease-out);
}

.nffat-footer__social .nffat-icon {
	font-size: 18px;
}

.nffat-footer :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

@media (hover: hover) and (pointer: fine) {
	.nffat-footer__links a:hover,
	.nffat-footer__legal a:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.nffat-footer__social a:hover {
		background: rgb(255 255 255 / 0.24);
	}
}

@media (max-width: 1099px) {
	.nffat-footer {
		padding-block: 56px 32px;
	}

	.nffat-footer__top {
		flex-direction: column;
	}

	.nffat-footer__bottom {
		flex-wrap: wrap;
	}

	.nffat-footer__legal {
		order: 3;
		flex-basis: 100%;
	}
}

@media (max-width: 699px) {
	.nffat-footer {
		gap: 40px;
		padding: 48px 24px 28px;
		border-radius: 32px 32px 0 0;
	}

	.nffat-footer__columns {
		flex-direction: column;
		gap: 32px;
	}

	.nffat-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.nffat-footer__social {
		order: 1;
	}

	.nffat-footer__legal {
		order: 2;
		column-gap: 10px;
	}

	.nffat-footer__legal > :first-child {
		flex-basis: 100%;
	}

	.nffat-footer__legal > :nth-child(n+3):not(.nffat-kinder)::before {
		content: "";
		display: inline-block;
		width: 4px;
		height: 4px;
		margin-right: 10px;
		border-radius: 50%;
		background: currentColor;
		opacity: 0.5;
		vertical-align: middle;
	}
}

/* Agency credit: letters rise in turn, then the heart pops; on hover the heart beats once. */
.nffat-footer__legal > .nffat-kinder {
	flex-basis: 100%;
	display: flex;
	justify-content: flex-end;
	margin: 4px 0 0;
}

.nffat-kinder a {
	display: block;
	padding: 4px;
	margin: -4px;
	border-radius: 6px;
	opacity: 0.75;
	transition: opacity 200ms var(--nffat-ease-out);
}

.nffat-kinder__mark {
	display: block;
	width: auto;
	height: 26px;
	overflow: visible;
}

.nffat-kinder__word {
	transition: translate 300ms var(--wp--custom--ease--back);
}

.nffat-kinder__pop,
.nffat-kinder__beat {
	transform-box: fill-box;
	transform-origin: center;
}

@media (hover: hover) and (pointer: fine) {
	.nffat-kinder a:hover {
		opacity: 1;
	}

	.nffat-kinder a:hover .nffat-kinder__word {
		translate: 0 -2px;
	}

	.nffat-kinder a:hover .nffat-kinder__beat {
		animation: nffat-kinder-beat 900ms ease-in-out;
	}
}

.nffat-kinder a:focus-visible {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.nffat-kinder.is-in .nffat-kinder__letter {
		animation: nffat-kinder-rise 500ms var(--wp--custom--ease--out) calc(var(--i) * 35ms) backwards;
	}

	.nffat-kinder.is-in .nffat-kinder__pop {
		animation: nffat-kinder-pop 500ms var(--wp--custom--ease--back) 520ms backwards;
	}
}

@keyframes nffat-kinder-rise {
	from { opacity: 0; translate: 0 10px; }
}

@keyframes nffat-kinder-pop {
	from { opacity: 0; scale: 0.3; }
}

@keyframes nffat-kinder-beat {
	0%, 60%, 100% { scale: 1; }
	15% { scale: 1.25; }
	30% { scale: 1.05; }
	45% { scale: 1.18; }
}

@media (max-width: 1099px) {
	.nffat-footer__legal > .nffat-kinder {
		justify-content: flex-start;
		margin-top: 12px;
	}
}
