/**
 * Site footer — logo, links, partner, back to top.
 */

.site-footer {
	background: #eee;
	padding: 32px var(--bona-content-pad, 24px) 44px;
}

.site-footer__inner {
	max-width: var(--bona-content-max, 1080px);
	width: 100%;
	margin: 0 auto;
}

/* Subscribe row + social icons */
.site-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-bottom: 32px;
}

.site-footer__subscribe-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	flex: 1;
	min-width: 0;
}

.site-footer__subscribe-label {
	margin: 0;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #767676;
	white-space: nowrap;
}

.site-footer__subscribe-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #767676;
	white-space: nowrap;
	cursor: pointer;
}

.site-footer__subscribe-checkbox input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #c8e600;
}

.site-footer__subscribe-field {
	margin: 0;
}

.site-footer__subscribe-input {
	width: 220px;
	max-width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #c8c8c8;
	border-radius: 2px;
	background: #fff;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	color: #000;
}

.site-footer__subscribe-input::placeholder {
	color: #999;
}

.site-footer__subscribe-input:focus {
	outline: none;
	border-color: #999;
}

.site-footer__subscribe-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.site-footer__subscribe-button {
	height: 38px;
	padding: 0 22px;
	border: none;
	border-radius: 4px;
	background: #c8e600;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.site-footer__subscribe-button:hover {
	background: #b8d600;
}

.site-footer__subscribe-button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.site-footer__subscribe-message {
	flex: 1 1 100%;
	margin: 0;
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #2f5f00;
}

.site-footer__subscribe-message.is-error {
	color: #a40000;
}

.site-footer__subscribe-message[hidden]:not(.is-visible) {
	display: none;
}

/* Social icons — top right */
.site-footer__social {
	display: flex;
	justify-content: flex-end;
	flex-shrink: 0;
}

.site-footer__social-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer__social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__social-icon:hover {
	transform: scale(1.05);
	opacity: 0.92;
}

.site-footer__social-icon svg {
	width: 22px;
	height: 22px;
	fill: #fff;
	display: block;
}

.site-footer__social-icon--facebook {
	background: #1877f2;
}

.site-footer__social-icon--instagram {
	background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.site-footer__social-icon--x {
	background: #55acee;
}

.site-footer__social-icon--tiktok {
	background: #010101;
}

.site-footer__divider {
	border: none;
	border-top: 1px solid #c8c8c8;
	margin: 0 0 33px;
}

/* Logo + badge | nav | partner row */
.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 172px) minmax(0, 1fr) minmax(0, 249px);
	align-items: start;
	gap: 24px 32px;
	margin-bottom: 24px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.site-footer__logo {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.site-footer__logo img {
	width: 172px;
	max-width: 100%;
	height: auto;
	display: block;
	filter: brightness(0);
}

.site-footer__member-badge {
	background: #fff;
	padding: 10px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.site-footer__member-badge img {
	width: 230px;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Nav — single row of four links on desktop */
.site-footer__nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
	gap: 10px 18px;
	padding-top: 8px;
}

.site-footer__nav a {
	color: #767676;
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	white-space: nowrap;
	transition: color 0.2s;
}

.site-footer__nav a:hover {
	color: #000;
}

/* Habari Media + back to top */
.site-footer__partner {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 28px;
	flex-shrink: 0;
}

.site-footer__partner-logo {
	width: 110px;
	max-width: 100%;
	height: auto;
	display: block;
}

.site-footer__back-to-top {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #c8e600;
	color: #fff;
	cursor: pointer;
	line-height: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__back-to-top:hover,
.site-footer__back-to-top:focus-visible {
	background: #b6d200;
	color: #fff;
	outline: none;
}

.site-footer__back-to-top svg {
	display: block;
}

/* Address left · copyright right */
.site-footer__legal {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #000;
}

.site-footer__address {
	margin: 0;
	flex: 1;
	text-transform: uppercase;
}

.site-footer__copyright {
	margin: 0;
	flex-shrink: 0;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.site-footer__top {
		flex-direction: column;
		align-items: stretch;
	}

	.site-footer__subscribe-form {
		flex-direction: column;
		align-items: stretch;
	}

	.site-footer__subscribe-input {
		width: 100%;
	}

	.site-footer__subscribe-button {
		width: 100%;
	}

	.site-footer__social {
		justify-content: flex-start;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.site-footer__nav {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-top: 0;
	}

	.site-footer__partner {
		width: 100%;
		justify-content: space-between;
	}

	.site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.site-footer__copyright {
		white-space: normal;
	}
}
