/*
 * G-04 site footer (Phase 7). Ported from the redesign PoC (css/site.css @
 * ed0ab9f7, "Footer") using theme.json tokens and base.css aliases only.
 *
 * Four columns, then two below md (900px) and one below xs (520px), as in the
 * PoC. The footer has no animation, so there is nothing to reduce for
 * prefers-reduced-motion.
 *
 * Literal values kept from the PoC: 1px borders and the round social buttons
 * (50%).
 */

.site-footer {
	border-top: 1px solid var(--line-soft);
	padding-block: var(--wp--custom--footer--padding-top) var(--wp--custom--footer--padding-bottom);
	background: var(--c-black);
	font-size: var(--wp--custom--font-size--footer);
	color: var(--c-muted);
}

/* Resets at the lowest specificity, so the component rules below win. */
.site-footer :where(p) {
	margin: 0;
}

.site-footer :where(ul) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer-grid {
	display: grid;
	grid-template-columns: var(--wp--custom--footer--columns);
	gap: var(--wp--custom--footer--column-gap);
}

/* ---------- Brand column ---------- */

.site-footer-logo img {
	display: block;
	width: auto;
	height: var(--wp--custom--footer--logo-height);
	margin-bottom: var(--wp--custom--gap--stack);
}

.site-footer-statement {
	max-width: var(--wp--custom--footer--statement-measure);
}

.site-footer-social {
	display: flex;
	gap: var(--wp--custom--footer--social-gap);
	margin-top: var(--wp--custom--footer--social-offset);
}

.site-footer-social a {
	display: grid;
	place-items: center;
	width: var(--wp--custom--footer--social-size);
	height: var(--wp--custom--footer--social-size);
	border: 1px solid var(--line-soft);
	border-radius: 50%;
	color: var(--c-muted);
}

.site-footer-social svg {
	width: var(--wp--custom--footer--social-icon-size);
	height: var(--wp--custom--footer--social-icon-size);
}

/* ---------- Menu columns ---------- */

.site-footer-heading {
	margin: 0 0 var(--wp--custom--gap--stack);
	font-family: var(--f-display);
	font-size: var(--wp--custom--font-size--footer-heading);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--heading);
	letter-spacing: var(--wp--custom--footer--heading-letter-spacing);
	text-transform: uppercase;
	color: var(--c-text);
}

.site-footer-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--footer--list-gap);
}

.site-footer-list a {
	color: var(--c-muted);
	text-decoration: none;
}

.site-footer-email {
	user-select: all;
}

/* ---------- Bottom row ---------- */

.site-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--gap--stack);
	justify-content: space-between;
	margin-top: var(--wp--custom--footer--bottom-offset);
	border-top: 1px solid var(--line-soft);
	padding-top: var(--wp--custom--footer--bottom-padding);
	font-size: var(--wp--custom--font-size--footer-bottom);
	color: var(--c-faint);
}

.site-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--footer--legal-gap);
}

/* Block links, as the PoC's flex-item links (same 1.65 line box). */
.site-footer-legal a {
	display: block;
	color: inherit;
}

/* ---------- Hover (outlines only what is clickable, G-12) ---------- */

.site-footer-social a:hover {
	border-color: var(--c-orange);
}

.site-footer-list a:hover {
	color: var(--c-orange);
}

/* md */
@media (max-width: 900px) {

	.site-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* xs */
@media (max-width: 520px) {

	.site-footer-grid {
		grid-template-columns: 1fr;
	}
}
