/* Site footer — matches Just Wedi design tokens */

.jw-site-footer {
	box-sizing: border-box;
	margin-top: auto;
	background: var(--jw-color-heading);
	color: rgba(248, 250, 252, 0.92);
	font-size: 0.9rem;
	line-height: 1.55;
}

.jw-site-footer a {
	color: rgba(248, 250, 252, 0.88);
	text-decoration: none;
	transition: color 0.18s ease;
}

.jw-site-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.jw-site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 2.75rem);
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--jw-header-pad-x, clamp(0.75rem, 4vw, 2.25rem));
	box-sizing: border-box;
}

@media (min-width: 782px) {
	.jw-site-footer__main {
		grid-template-columns: minmax(14rem, 1.15fr) minmax(0, 2.85fr);
		align-items: start;
		gap: clamp(2rem, 3.5vw, 3rem);
	}
}

.jw-site-footer__brand {
	max-width: min(22rem, 100%);
}

.jw-site-footer__logo-link {
	display: inline-block;
	margin-bottom: 1rem;
}

.jw-site-footer__logo {
	display: block;
	height: auto;
	max-width: min(11.5rem, 100%);
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.jw-site-footer__site-name {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: var(--jw-fw-display);
	color: #fff;
	text-decoration: none;
}

.jw-site-footer__site-name:hover {
	color: #fff;
	text-decoration: none;
	opacity: 0.9;
}

.jw-site-footer__tagline {
	margin: 0;
	font-size: 0.845rem;
	line-height: 1.6;
	color: rgba(248, 250, 252, 0.72);
	max-width: min(28rem, 100%);
}

.jw-site-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 600px) {
	.jw-site-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.jw-site-footer__nav {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.jw-site-footer__heading {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: var(--jw-fw-display);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(248, 250, 252, 0.55);
	font-family: inherit;
}

.jw-site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.42rem;
}

.jw-site-footer__links a {
	font-size: 0.875rem;
	font-weight: var(--jw-fw-body);
}

.jw-site-footer__bar {
	border-top: 1px solid rgba(248, 250, 252, 0.12);
	background: rgba(15, 23, 42, 0.35);
}

.jw-site-footer__bar-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.1rem var(--jw-header-pad-x, clamp(0.75rem, 4vw, 2.25rem));
	box-sizing: border-box;
}

@media (min-width: 782px) {
	.jw-site-footer__bar-inner {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem 1.5rem;
	}
}

.jw-site-footer__copy {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(248, 250, 252, 0.55);
}

.jw-site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.85rem;
}

.jw-site-footer__legal a {
	font-size: 0.8125rem;
	font-weight: var(--jw-fw-semibold);
	color: rgba(248, 250, 252, 0.65);
}

.jw-site-footer__legal li + li {
	position: relative;
}

@media (min-width: 480px) {
	.jw-site-footer__legal li:not(:first-child)::before {
		content: "·";
		position: absolute;
		left: -0.55rem;
		color: rgba(248, 250, 252, 0.35);
		pointer-events: none;
	}
}

/* Hide legacy Astra footer builder rows when our footer is active */
.jw-site-footer ~ .site-below-footer-wrap,
.jw-site-footer ~ .site-primary-footer-wrap,
.jw-site-footer ~ .site-above-footer-wrap {
	display: none !important;
}

/* Astra may still output builder rows inside site-footer wrapper — suppress duplicates */
.site-footer:not(.jw-site-footer) .site-primary-footer-wrap,
.site-footer:not(.jw-site-footer) .site-below-footer-wrap {
	display: none;
}
