/**
 * Component: Site Footer — styles
 * Figma: "Desktop - Footer - Small" — flat compact strip, no pill/radius.
 * Scoped to .apt-footer (BEM root). No global/site-wide selectors.
 */

/* ── Root strip (full-bleed) ──────────────────────────── */
.apt-footer {
	background: var(--color-bg-3);
	padding-block: 18px;
	padding-inline: clamp(24px, 5.5vw, 80px);
}

/* ── Inner container (centred, space-between) ─────────── */
.apt-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	width: 100%;
	margin-inline: auto;
}

/* ── Logo ─────────────────────────────────────────────── */
.apt-footer__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

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

.apt-footer__logo:focus-visible {
	outline: 2px solid var(--color-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── Copyright ────────────────────────────────────────── */
.apt-footer__copyright {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-text-pri);
	margin: 0;
	text-align: center;
}

/* ── Social icons ─────────────────────────────────────── */
.apt-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-shrink: 0;
}

.apt-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	color: var(--color-text-pri);
	transition: opacity 0.15s ease;
}

.apt-footer__social-link:hover {
	opacity: 0.65;
}

.apt-footer__social-link:focus-visible {
	outline: 2px solid var(--color-brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.apt-footer__social-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Tablet ≤900px ────────────────────────────────────── */
@media (max-width: 900px) {
	.apt-footer {
		padding-inline: 24px;
		padding-block: var(--space-xl); /* 24px — more breathing room when stacked */
	}

	.apt-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: var(--space-xl); /* 24px between rows */
	}

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

/* ── Mobile ≤480px ────────────────────────────────────── */
@media (max-width: 480px) {
	.apt-footer {
		padding-inline: var(--space-lg); /* 16px */
		padding-block: var(--space-lg);
	}

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

	.apt-footer__copyright {
		font-size: var(--text-sub); /* 14px */
	}

	.apt-footer__social {
		gap: var(--space-2xl); /* 32px — tighter on mobile */
	}
}

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