/*
 * Footer, matched to nosolowebs.es: #1d1d1d ground, 90px of air above the
 * columns, headings in Space Grotesk at 22px/500 in the grey used across the
 * agency site.
 *
 * One deliberate difference: nosolowebs renders some footer links in the brand
 * blue, which on this background sits well under the contrast floor. The links
 * here are white with a lime hover, which reads the same and stays legible.
 */

.site-footer {
	background: #1d1d1d;
	color: var(--color-white);
	padding: 90px 30px 20px;
}

.footer-inner {
	margin: 0 auto;
	max-width: var(--container);
}

.footer-tagline {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 64px;
	max-width: 18ch;
}

.footer-tagline span {
	color: var(--color-grey);
}

.footer-columns {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.footer-column h4 {
	color: var(--color-grey);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.footer-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list a {
	color: var(--color-white);
	font-size: 14px;
	text-decoration: none;
	transition: color 160ms ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
	color: var(--color-accent);
}

/* The lime band is what keeps the footer from being a grey wall, and it is
   where the agency site puts its own closing call to action. */
.footer-cta {
	align-items: center;
	background: var(--color-accent);
	border-radius: 15px;
	color: var(--color-ink);
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	justify-content: space-between;
	margin-top: 72px;
	padding: 40px 44px;
}

.footer-cta h3 {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
}

.footer-cta p {
	font-size: 15px;
	margin: 0;
	max-width: 46ch;
}

.footer-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.footer-cta .button-accent {
	background: var(--color-ink);
	color: var(--color-accent);
}

.footer-cta .button-accent:hover {
	background: var(--color-white);
	color: var(--color-ink);
}

.footer-cta .button-outline {
	border-color: var(--color-ink);
	color: var(--color-ink);
}

.footer-cta .button-outline:hover {
	background: var(--color-ink);
	color: var(--color-accent);
}

/*
 * Social icons, cloned from nosolowebs.es: 36px lime square, 10px radius, a
 * 20px black glyph inside. Reusable on its own — .social-list works anywhere,
 * not just in the footer.
 */
.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
}

.social-link {
	align-items: center;
	background: var(--color-lime);
	border-radius: 10px;
	color: var(--color-black);
	display: inline-flex;
	height: 36px;
	justify-content: center;
	transition: background-color 150ms ease, color 150ms ease;
	width: 36px;
}

.social-link svg {
	display: block;
	height: 20px;
	width: 20px;
}

.social-link:hover,
.social-link:focus-visible {
	background: var(--color-white);
	color: var(--color-blue);
}

.footer-bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 24px;
}

.footer-bottom .brand-footer {
	color: var(--color-white);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.footer-bottom p {
	color: var(--color-grey);
	font-size: 12px;
	line-height: 1.6;
	margin: 0;
	max-width: 68ch;
}

.footer-bottom p a {
	color: var(--color-accent);
	text-decoration: none;
}

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

@media (max-width: 1080px) {
	.footer-columns {
		gap: 36px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.site-footer {
		padding: 56px 20px 20px;
	}

	.footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-tagline {
		margin-bottom: 44px;
	}

	.footer-cta {
		padding: 28px 24px;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		margin-top: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.footer-list a {
		transition: none;
	}
}
