/* ==========================================================================
   Footer (patterns/footer.php)
   Reference: dark green, 62px top padding, three 350px columns, then a row
   with the copyright on the left and round social icons on the right.
   ========================================================================== */

.ineuro-footer {
	margin-block-start: 0;
	color: var(--wp--preset--color--deep);
	background-color: var(--wp--preset--color--sage);
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.39);
}

.ineuro-footer a {
	color: var(--wp--preset--color--deep);
}

.ineuro-footer__widgets.wp-block-columns {
	gap: 40px 30px;
	margin: 0;
	padding: 62px 0 0;
}

.ineuro-footer .wp-block-column > .ineuro-footer__logo {
	margin: 22px 0 37px;
}

.ineuro-footer__logo a {
	display: block;
}

.ineuro-footer__logo img {
	display: block;
	width: 260px;
	max-width: 100%;
	height: auto;
}

.ineuro-footer__title.wp-block-heading {
	margin: 0 0 36px;
	padding: 23px 0 18px;
	border-bottom: 1px solid rgba(15, 46, 67, 0.35);
	font-size: 26px;
	line-height: 28px;
	color: var(--wp--preset--color--deep);
}

/* As on the original, the latest-post widget's 50px bottom margin sets the
   space above the copyright row. */
.ineuro-footer .wp-block-column > .ineuro-footer__latest {
	margin: 0 0 50px;
	padding: 0;
	list-style: none;
}

.ineuro-footer__latest .wp-block-latest-posts__post-title {
	display: block;
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
}

.ineuro-footer__latest .wp-block-latest-posts__post-date {
	display: block;
	padding-left: 23px;
	font-size: 14px;
	line-height: 18px;
	color: var(--wp--preset--color--deep);
	background: url("../images/icon-clock-light.svg") no-repeat left center / 16px 16px;
}

.ineuro-footer > .ineuro-footer__bottom {
	margin-block-start: 0;
}

.ineuro-footer__bottom {
	align-items: flex-start;
	padding: 16px 0 9px;
	border-top: 1px solid rgba(15, 46, 67, 0.35);
}

.ineuro-footer__copyright {
	margin: 0;
	padding: 10px 0 14px;
	font-size: 13px;
	line-height: 15px;
}

.ineuro-footer__copyright a {
	font-weight: 500;
}

/* The original icons carry an 8px bottom margin (40px tall row). */
.ineuro-footer__socials.wp-block-social-links {
	gap: 8px;
	margin: 0;
	padding-bottom: 8px;
}

.ineuro-footer__socials .wp-social-link,
.ineuro-footer__socials .wp-social-link:hover {
	transform: none;
}

.ineuro-footer__socials .wp-social-link {
	width: 32px;
	height: 32px;
	border-radius: 32px;
	transition: background-color 0.3s, color 0.3s;
}

.ineuro-footer__socials .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.ineuro-footer__socials .wp-social-link svg {
	width: 17px;
	height: 17px;
}

/* Brand colours on hover, as on the original. !important beats the inline
   colours the social-links block writes on each item. */
.ineuro-footer__socials .wp-social-link:hover {
	color: var(--wp--preset--color--base) !important;
}

.ineuro-footer__socials .wp-social-link-linkedin:hover { background-color: #0077b5 !important; }

@media (max-width: 781px) {
	/* The original stacks the social icons above the copyright, centred. */
	.ineuro-footer__bottom.wp-block-group {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0;
	}

	.ineuro-footer__copyright {
		text-align: center;
	}
}
