/**
 * Absolute 2026: footer styles.
 *
 * Dark neutral footer. Division columns carry their accent colour in the
 * heading (lime and lilac, which read well on the dark background: 9.2:1
 * and 4.8:1).
 *
 * 0.5.0: social media links (round icon buttons under the contact details).
 *
 * @package Absolute_2026
 * @author  Steve Austen
 * @company The PCGP
 * @version 0.5.0
 */

.site-footer {
	background: var(--ink);
	color: rgb(255 255 255 / 80%);
	font-size: var(--text-sm);
	--focus-ring: #fff;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__main {
	display: grid;
	gap: 2.5rem;
	padding-block: 3.5rem 2.5rem;
}

@media (min-width: 40em) {
	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (min-width: 67.5em) {
	.site-footer__main {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
		gap: 3rem;
		padding-block: 4.5rem 3rem;
	}

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

.site-footer__brand img {
	width: auto;
	height: 3.75rem;
	margin-bottom: 1.25rem;
}

.site-footer__intro {
	max-width: 24rem;
}

.site-footer__address {
	margin-bottom: 1rem;
}

.site-footer__label {
	display: block;
	margin-bottom: 0.15rem;
	color: rgb(255 255 255 / 60%);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-footer__contact {
	display: grid;
	gap: 0.6rem;
}

.site-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.site-footer__contact .icon {
	margin-top: 0.2rem;
	color: rgb(255 255 255 / 60%);
}

/*
 * Social media links. Each is a 44px circle (a comfortable touch target,
 * above WCAG 2.2's 24px minimum) with a white logo on the dark footer.
 */
.site-footer__social {
	margin-top: 1.5rem;
}

.site-footer__social .site-footer__label {
	margin-bottom: 0.6rem;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.site-footer .social-links__link {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-footer .social-links__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	.site-footer .social-links__link {
		transition: none;
	}
}

.site-footer__heading {
	margin: 0 0 1rem;
	color: #fff;
	font: 600 0.8125rem/1.2 var(--font-sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.site-footer__heading a {
	color: inherit;
}

.site-footer__col[data-division="photocopiers"] .site-footer__heading {
	color: var(--photocopiers-400);
}

.site-footer__col[data-division="facilities"] .site-footer__heading {
	color: var(--facilities-300);
}

.footer-links {
	display: grid;
	gap: 0.6rem;
}

/* Legal bar */
.site-footer__legal {
	border-top: 1px solid rgb(255 255 255 / 12%);
	color: rgb(255 255 255 / 70%);
	font-size: 0.8125rem;
}

.site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.25rem;
}

.site-footer__legal p {
	margin: 0;
}

.legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}
