/**
 * Component: Site Footer — styles
 * Scoped to .apt-footer (BEM root). Tokens from style.css.
 *
 * Comp (1440, v3 export): 45px below the contact panel; wordmark 193×37 at x=80; legal
 * links centred on the page, 25px apart; icons 24px ending at x=1360; 41px
 * to the bottom of the page. The three-column grid keeps the links on the
 * true centre however wide the outer columns are.
 */

.apt-footer {
	padding: 45px 80px 41px;
}

.apt-footer__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.apt-footer__logo {
	justify-self: start;
	display: inline-flex;
	border-radius: var(--radius-sm);
}

.apt-footer__logo-img {
	display: block;
	width: 193px;
	height: auto;
}

.apt-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 25px;
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.5;
	color: var(--color-text);
}

.apt-footer__legal-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.apt-footer__legal-link:hover,
.apt-footer__legal-link:focus-visible {
	color: var(--color-accent);
}

/* Bare variant (no legal links, no icons): the copyright takes the icons'
   column, ending where they would. */
.apt-footer__copyright {
	grid-column: 3;
	justify-self: end;
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.5;
	color: var(--color-text);
}

.apt-footer__social {
	justify-self: end;
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apt-footer__social li {
	margin: 0;
}

.apt-footer__social-link {
	display: inline-flex;
	color: var(--color-text);
	transition: color 0.2s ease, transform 0.25s var(--ease-out);
}

.apt-footer__social-link:hover,
.apt-footer__social-link:focus-visible {
	color: var(--color-accent);
	transform: translateY(-2px);
}

.apt-footer__social-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.apt-footer a:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 4px;
}

/* ── Tablet ≤900px ────────────────────────────────────────────── */
/* Stacked and centred: wordmark, links, icons. */
@media (max-width: 900px) {
	.apt-footer {
		padding: 56px var(--gutter) 40px;
	}

	.apt-footer__bar {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 24px;
	}

	.apt-footer__logo,
	.apt-footer__social,
	.apt-footer__copyright {
		grid-column: auto;
		justify-self: center;
	}

	.apt-footer__logo-img {
		width: 160px;
	}
}

/* ── Mobile ≤480px ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.apt-footer {
		padding-top: 44px;
		padding-bottom: 32px;
	}

	.apt-footer__logo-img {
		width: 140px;
	}

	.apt-footer__legal,
	.apt-footer__copyright {
		font-size: var(--text-sub);
		gap: 6px 18px;
	}
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.apt-footer__legal-link,
	.apt-footer__social-link {
		transition: none;
	}

	.apt-footer__social-link:hover,
	.apt-footer__social-link:focus-visible {
		transform: none;
	}
}
