/* BP Footer widget styles
 *
 * Four-column responsive grid with a separated bottom bar.
 * Logical properties keep LTR/RTL aligned. Mirrors the
 * approved Barbary Plante mockup:
 *   - Brand 28%  Nav 22%  Contact 27%  Follow 23%
 *   - subtle vertical separators
 *   - 1200px inner, 56-64px block padding
 *   - headings: Manrope 600, restrained tracking
 *   - bottom bar: copyright + legal, compact
 */

.bp-footer {
	--bp-footer-bg:        var(--bp-primary);
	--bp-footer-fg:        var(--bp-fg-on-green);
	--bp-footer-muted:     var(--bp-cream);
	--bp-footer-border:    rgba( 255, 255, 255, 0.15 );
	--bp-footer-border-soft: rgba( 255, 255, 255, 0.08 );
	--bp-footer-inner-max: 1200px;
	--bp-footer-pad-block: 56px;
	--bp-footer-pad-inline: 24px;
	--bp-footer-col-gap:   40px;

	background: var(--bp-footer-bg);
	color: var(--bp-footer-fg);
	margin-block-start: 0;
}

.bp-footer__inner {
	max-inline-size: var(--bp-footer-inner-max);
	margin-inline: auto;
	padding-inline: var(--bp-footer-pad-inline);
	padding-block: var(--bp-footer-pad-block);
	display: grid;
	grid-template-columns: 28fr 22fr 27fr 23fr;
	gap: var(--bp-footer-col-gap);
}

.bp-footer__col {
	min-inline-size: 0;
	padding-inline-start: 0;
	border-inline-start: 0;
}

.bp-footer__col--brand { padding-inline-end: 8px; }
.bp-footer__col:not(:first-child) {
	border-inline-start: 1px solid var(--bp-footer-border-soft);
	padding-inline-start: 32px;
}

/* ---- Brand column ---- */
.bp-footer__logo {
	display: inline-flex;
	align-items: center;
	margin-block-end: 16px;
	text-decoration: none;
}

.bp-footer__logo img {
	display: block;
	max-inline-size: 130px;
	block-size: auto;
	object-fit: contain;
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.bp-footer__logo-text {
	font-family: var(--bp-font-display);
	font-size: 24px;
	font-weight: 400;
	color: var(--bp-cream);
	letter-spacing: 0.01em;
}

.bp-footer__description {
	margin: 0 0 20px;
	color: var(--bp-footer-muted);
	font-family: var(--bp-font-body);
	font-size: 14px;
	line-height: 1.6;
	max-inline-size: 32ch;
}

/* Social row. */
.bp-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bp-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.08 );
	color: var(--bp-footer-fg);
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.bp-footer__social-link:hover,
.bp-footer__social-link:focus-visible {
	background: var(--bp-cream);
	color: var(--bp-primary);
}

/* ---- Headings ---- */
.bp-footer__heading {
	margin: 0 0 18px;
	font-family: var(--bp-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-footer-fg);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---- Navigation column ---- */
.bp-footer__nav { display: block; }

.bp-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bp-footer__menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 2px 0;
	color: var(--bp-footer-muted);
	text-decoration: none;
	font-family: var(--bp-font-body);
	font-size: 14px;
	transition: color 150ms ease;
}

.bp-footer__menu > li > a:hover,
.bp-footer__menu > li > a:focus-visible {
	color: var(--bp-cream);
}

/* ---- Contact column ---- */
.bp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--bp-font-body);
	font-size: 14px;
	color: var(--bp-footer-muted);
}

.bp-footer__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.5;
}

.bp-footer__list a {
	color: var(--bp-footer-muted);
	text-decoration: none;
	transition: color 150ms ease;
}

.bp-footer__list a:hover,
.bp-footer__list a:focus-visible {
	color: var(--bp-cream);
}

.bp-footer__list .bp-footer__list-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--bp-cream);
	margin-block-start: 2px;
}

.bp-footer__list .bp-footer__list-text--pending {
	font-style: italic;
	opacity: 0.75;
}

.bp-footer__address {
	color: var(--bp-footer-muted);
}

/* ---- Language / QR column ---- */
.bp-footer__col--lang {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
}

.bp-footer__qr {
	display: none; /* Hidden by default — see widget logic. */
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.bp-footer__qr.is-visible {
	display: flex;
}

.bp-footer__qr img {
	display: block;
	inline-size: 96px;
	block-size: 96px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--bp-cream);
}

.bp-footer__qr-label {
	font-family: var(--bp-font-body);
	font-size: 12px;
	color: var(--bp-footer-muted);
	max-inline-size: 22ch;
	line-height: 1.4;
}

.bp-footer__lang { color: var(--bp-footer-muted); }

/* ---- Bottom bar ---- */
.bp-footer__bottom {
	border-block-start: 1px solid rgba( 255, 255, 255, 0.12 );
	background: var(--bp-footer-bg);
	color: var(--bp-footer-muted);
}

.bp-footer__bottom .bp-footer__inner {
	padding-block: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	grid-template-columns: none;
}

.bp-footer__copyright {
	margin: 0;
	font-family: var(--bp-font-body);
	font-size: 12px;
	color: var(--bp-footer-muted);
	letter-spacing: 0.01em;
}

.bp-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.bp-footer__legal a {
	color: var(--bp-footer-muted);
	font-family: var(--bp-font-body);
	font-size: 12px;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 150ms ease;
}

.bp-footer__legal a:hover,
.bp-footer__legal a:focus-visible {
	color: var(--bp-cream);
}

/* ---------------- Responsive ---------------- */
@media ( max-width: 1024px ) {
	.bp-footer {
		--bp-footer-pad-block: 44px;
		--bp-footer-col-gap:   28px;
	}
	.bp-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
	.bp-footer__col:not(:first-child) {
		border-inline-start: 0;
		padding-inline-start: 0;
	}
}

@media ( max-width: 640px ) {
	.bp-footer {
		--bp-footer-pad-block: 36px;
	}
	.bp-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.bp-footer__bottom .bp-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.bp-footer *,
	.bp-footer *::before,
	.bp-footer *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
