/**
 * WPGPL.store — footer.
 *
 * WoodMart renders `<footer class="wd-footer footer-container">`, so the rules
 * below target that element (plus `.site-footer` for safety with other
 * templates).
 */

.wd-footer,
.footer-container,
.site-footer {
	background: var(--wpgpl-dark);
	color: var(--wpgpl-on-dark-text-muted);
	font-size: 0.9rem;
}

.wd-footer a,
.footer-container a,
.site-footer a {
	color: var(--wpgpl-on-dark-text-muted);
	text-decoration: none;
	transition: color var(--wpgpl-dur) var(--wpgpl-ease);
}

.wd-footer a:hover,
.footer-container a:hover,
.site-footer a:hover {
	color: #fff;
}

/* WoodMart's dark footer scheme already sets the plate colour; make sure the
   brand tokens win so it stays in sync with the design tokens. */
.wd-footer.color-scheme-dark,
.color-scheme-dark.wd-footer {
	background: var(--wpgpl-dark);
}

/* --------------------------------------------------------------------------
 * WPGPL.footer grid (rendered by [wpgpl_footer])
 * ----------------------------------------------------------------------- */

.wd-footer .main-footer {
	padding: 62px 0 26px;
}

.wd-footer .main-footer > p {
	margin: 0;
}

.wpgpl-footer {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
	gap: 40px 36px;
	align-items: start;
}

.wpgpl-footer__title {
	margin: 0 0 18px;
	font-family: var(--wpgpl-font-heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.wpgpl-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}

.wpgpl-footer li {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}

.wpgpl-footer a {
	color: var(--wpgpl-on-dark-text-muted);
	text-decoration: none;
	transition: color var(--wpgpl-dur) var(--wpgpl-ease);
}

.wpgpl-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Brand block */
.wpgpl-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpgpl-footer-brand .wpgpl-logo__word {
	color: #fff;
}

.wpgpl-footer-brand .wpgpl-logo__suffix {
	color: #93b0ff;
}

.wpgpl-footer-brand__tagline {
	margin: 0;
	font-family: var(--wpgpl-font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;
}

.wpgpl-footer-brand__text {
	margin: 0;
	max-width: 34ch;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--wpgpl-on-dark-text-muted);
}

@media (max-width: 1024px) {
	.wpgpl-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 28px;
	}

	.wpgpl-footer__brand-col {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.wd-footer .main-footer {
		padding: 44px 0 16px;
	}

	.wpgpl-footer {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}

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

.wd-footer .wd-copyrights,
.wd-footer .copyrights-wrapper {
	background: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	font-size: 0.85rem;
	color: var(--wpgpl-text-soft);
}

.wd-footer .wd-copyrights p,
.wd-footer .copyrights-wrapper p {
	margin: 0;
	color: var(--wpgpl-text-soft);
}

.wd-footer .wpgpl-footer__copy {
	color: var(--wpgpl-on-dark-text-muted, var(--wpgpl-text-soft));
}

/* WoodMart demo payment icons removed */
.wd-footer .footer-copyrights img[src*="payments.png"],
.wd-footer .footer-payments,
.site-footer .footer-copyrights img[src*="payments.png"] {
	display: none;
}

/* --------------------------------------------------------------------------
 * Widgets (kept for anyone using widget-based footers)
 * ----------------------------------------------------------------------- */

.wd-footer .widget,
.site-footer .widget {
	padding: 0 0 22px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.wd-footer .widget .widget-title,
.wd-footer .widget h2,
.wd-footer .widget h3,
.wd-footer .footer-widget-title,
.site-footer .widget .widget-title {
	margin: 0 0 18px;
	font-family: var(--wpgpl-font-heading);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.wd-footer .widget ul,
.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}

@media (max-width: 600px) {
	.wd-footer .wd-copyrights {
		text-align: center;
	}
}