/**
 * Site Footer Styles — WP SOC Theme
 * ============================================================
 * Reused as-is from the design system: .wp-soc-section,
 * .wp-soc-section-pad--sm, .wp-soc-container, .wp-soc-bg-grid,
 * .wp-soc-bg-glow, .wp-soc-btn.wp-soc-btn--icon (social links),
 * .wp-soc-divider, .wp-soc-text-h4/-body/-caption/-label/-muted.
 *
 * Nothing above is redefined. Only the column grid, the link-list
 * hover treatment, the contact definition list, and the bottom bar
 * layout are added below — using existing tokens exclusively. This
 * is the darkest section on the site: it deliberately omits the
 * --surface modifier so it renders at var(--wp-soc-color-bg), the
 * same base tone as the page background, one level below every
 * --surface section above it.
 * ============================================================
 */

/* ------------------------------------------------------------ *
 * Ambient background — very soft, minimal, the quietest glow on
 * the site (per brief: "minimal visual noise").
 * ------------------------------------------------------------ */

.wp-soc-footer__glow {
	width: 560px;
	height: 560px;
	top: -220px;
	left: 50%;
	margin-left: -280px;
	opacity: 0.18;
}

.wp-soc-footer__grid-bg {
	mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 80%);
}

/* ------------------------------------------------------------ *
 * Column grid — brand column wider than the three link columns
 * ------------------------------------------------------------ */

.wp-soc-footer__columns {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--wp-soc-space-7);
}

/* ------------------------------------------------------------ *
 * Column 1 — Brand
 * ------------------------------------------------------------ */

.wp-soc-footer__logo {
	display: inline-block;
	color: var(--wp-soc-color-text);
}

.wp-soc-footer__description {
	margin-top: var(--wp-soc-space-4);
	max-width: 34ch;
	color: var(--wp-soc-color-text-secondary);
}

.wp-soc-footer__social {
	display: flex;
	gap: var(--wp-soc-space-3);
	margin-top: var(--wp-soc-space-6);
}

.wp-soc-footer__social .wp-soc-btn--icon {
	width: 40px;
	height: 40px;
}

/* ------------------------------------------------------------ *
 * Columns 2–3 — Services / Resources
 * ------------------------------------------------------------ */

.wp-soc-footer__column-title {
	display: block;
	color: var(--wp-soc-color-text);
}

.wp-soc-footer__links {
	margin-top: var(--wp-soc-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--wp-soc-space-3);
}

.wp-soc-footer__links a,
.wp-soc-footer__legal a {
	color: var(--wp-soc-color-text-secondary);
	font-size: var(--wp-soc-text-body);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: color var(--wp-soc-duration-base) var(--wp-soc-ease-out),
		background-size var(--wp-soc-duration-base) var(--wp-soc-ease-out);
}

.wp-soc-footer__links a:hover,
.wp-soc-footer__links a:focus-visible,
.wp-soc-footer__legal a:hover,
.wp-soc-footer__legal a:focus-visible {
	color: var(--wp-soc-color-text);
	background-size: 100% 1px;
}

.wp-soc-footer__legal a {
	font-size: var(--wp-soc-text-caption);
}

/* ------------------------------------------------------------ *
 * Column 4 — Contact
 * ------------------------------------------------------------ */

.wp-soc-footer__contact {
	margin-top: var(--wp-soc-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--wp-soc-space-4);
}

.wp-soc-footer__contact dt {
	margin-bottom: var(--wp-soc-space-1);
}

.wp-soc-footer__contact dd {
	margin: 0;
	color: var(--wp-soc-color-text);
}

.wp-soc-footer__contact dd a {
	color: var(--wp-soc-color-text);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size var(--wp-soc-duration-base) var(--wp-soc-ease-out);
}

.wp-soc-footer__contact dd a:hover,
.wp-soc-footer__contact dd a:focus-visible {
	background-size: 100% 1px;
}

/* ------------------------------------------------------------ *
 * Bottom bar
 * ------------------------------------------------------------ */

.wp-soc-footer__bottom {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp-soc-space-4);
}

.wp-soc-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp-soc-space-5);
}

/* ------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------ */

@media (max-width: 1023px) {
	.wp-soc-footer__columns {
		grid-template-columns: 1fr 1fr;
		row-gap: var(--wp-soc-space-8);
	}

	.wp-soc-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 639px) {
	.wp-soc-footer__columns {
		grid-template-columns: 1fr;
		row-gap: var(--wp-soc-space-7);
	}

	.wp-soc-footer__brand {
		grid-column: auto;
	}

	.wp-soc-footer__description {
		max-width: 100%;
	}

	.wp-soc-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ------------------------------------------------------------ *
 * Accessibility
 * ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.wp-soc-footer__links a,
	.wp-soc-footer__legal a,
	.wp-soc-footer__contact dd a {
		transition: none;
	}
}
