.wg-footer {
	margin-top: 1.25rem;
	border-top: 1px solid rgba(194, 163, 90, 0.16);
	color: var(--wg-text-muted);
	background:
		linear-gradient(180deg, rgba(13, 9, 18, 0), rgba(8, 5, 12, 0.76)),
		var(--wg-bg-deep);

	a {
		color: var(--wg-text-muted);
		text-decoration: none;
		transition:
			border-color 0.18s ease,
			box-shadow 0.18s ease,
			color 0.18s ease,
			background 0.18s ease;

		&:hover,
		&:focus {
			color: var(--wg-text);
			text-decoration: none;
		}

		&:focus-visible {
			border-radius: 4px;
			outline: 2px solid var(--wg-focus);
			outline-offset: 3px;
		}
	}
}

.wg-footer .wg-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(10rem, 1fr) minmax(10rem, 1fr);
	gap: clamp(2rem, 5vw, 3.125rem);
	width: min(100%, 1240px);
	margin: 0 auto;
	padding: clamp(2.75rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 1.875rem;
}

.wg-footer .wg-footer__brand-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.125rem;
}

.wg-footer .wg-footer__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border: 1.5px solid var(--wg-gold);
	color: var(--wg-gold);
	transform: rotate(45deg);

	span {
		width: 0.4375rem;
		height: 0.4375rem;
		background: currentColor;
	}
}

.wg-footer .wg-footer__title,
.wg-footer .wg-footer__heading {
	margin: 0;
	font-family: var(--wg-font-display);
	font-weight: 600;
	text-transform: uppercase;
}

.wg-footer .wg-footer__title {
	color: var(--wg-text);
	font-size: 0.95rem;
	letter-spacing: 0.14em;
	line-height: 1.35;
}

.wg-footer .wg-footer__description {
	max-width: 24rem;
	margin: 0 0 1.125rem;
	color: var(--wg-text-muted);
	font-family: var(--wg-font-text);
	font-size: 0.94rem;
	line-height: 1.8;
}

.wg-footer .wg-footer__motto {
	margin: 0;
	color: #9a8262;
	font-family: var(--wg-font-display);
	font-size: 0.9rem;
	font-style: italic;
}

.wg-footer .wg-footer__heading {
	margin-bottom: 1.125rem;
	color: var(--wg-gold);
	font-family: var(--wg-font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
}

.wg-footer .wg-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wg-font-ui);
	font-size: 0.94rem;
	line-height: 1.35;
}

.wg-footer .wg-footer__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: min(100%, 1240px);
	margin: 0 auto;
	padding: 1.375rem clamp(1rem, 4vw, 2rem);
	border-top: 1px solid rgba(194, 163, 90, 0.1);

	p {
		margin: 0;
		color: #7f756f;
		font-family: var(--wg-font-ui);
		font-size: 0.78rem;
		line-height: 1.45;
	}
}

.wg-footer .wg-footer__powered-by {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.625rem;
	width: min(100%, 1240px);
	margin: 0 auto;
	padding: 0 1rem 1.875rem;
	font-family: var(--wg-font-ui);
	line-height: 1;
	text-align: center;
}

.wg-footer .wg-footer__powered-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 10.875rem;
	min-height: 2rem;
	border: 1px solid var(--wg-border);
	border-radius: 8px;
	padding: 0.42rem 0.75rem;
	color: var(--wg-text-muted);
	background: var(--wg-velvet-panel);
	box-shadow: var(--wg-velvet-shadow);

	&:hover,
	&:focus {
		border-color: rgba(194, 163, 90, 0.22);
		color: #efe7da;
		background: var(--wg-velvet-panel-hover);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.035),
			inset 0 0 38px rgba(120, 36, 84, 0.14),
			0 12px 30px rgba(0, 0, 0, 0.3);
	}

	&:focus-visible {
		outline: none;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.035),
			inset 0 0 38px rgba(120, 36, 84, 0.14),
			0 0 0 2px rgba(194, 163, 90, 0.18),
			0 12px 30px rgba(0, 0, 0, 0.3);
	}
}

.wg-footer .wg-footer__powered-label {
	color: var(--wg-ledger-ink);
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

.wg-footer .wg-footer__powered-name {
	color: #f2edf7;
	font-family: var(--wg-font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.wg-footer {
		margin-bottom: 3.75rem;
	}

	.wg-footer .wg-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.wg-footer .wg-footer__meta {
		align-items: flex-start;
		flex-direction: column;
	}
}
