/**
 * Boombeen site footer — matches homepage theme.
 */

.bb-footer {
	--bb-footer-pad: clamp(2.5rem, 5vw, 4rem);

	direction: rtl;
	text-align: right;
	background: var(--bb-bg-page);
	border-top: 1px solid var(--bb-border);
	color: var(--bb-body);
	font-family: "Farhang2FaNum", Tahoma, sans-serif;
	line-height: 1.65;
}

.bb-footer__container {
	width: 100%;
	max-width: var(--bb-max-width);
	margin-inline: auto;
	padding-inline: var(--bb-gutter);
}

.bb-footer__main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: var(--bb-footer-pad);
}

.bb-footer__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--bb-text);
}

.bb-footer__name {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--bb-text);
	text-decoration: none;
}

.bb-footer__name:hover {
	color: var(--bb-primary);
}

.bb-footer__logo img,
.bb-footer__logo .custom-logo {
	max-height: 48px;
	width: auto;
	height: auto;
}

.bb-footer__tagline,
.bb-footer__text {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	max-width: 22rem;
}

.bb-footer__email {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.bb-footer__email a {
	color: var(--bb-primary);
	text-decoration: none;
	word-break: break-all;
}

.bb-footer__email a:hover {
	text-decoration: underline;
}

.bb-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-footer__list li + li {
	margin-top: 0.5rem;
}

.bb-footer__list a {
	color: var(--bb-body);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.2s ease;
}

.bb-footer__list a:hover {
	color: var(--bb-primary);
}

.bb-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	background: var(--bb-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.bb-footer__btn:hover {
	background: var(--bb-primary-dark);
	color: #fff;
}

.bb-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bb-border);
	border-radius: 50%;
	background: var(--bb-surface);
	color: var(--bb-text);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bb-footer__social a:hover {
	border-color: var(--bb-primary);
	color: var(--bb-primary);
	transform: translateY(-2px);
}

.bb-footer__social svg {
	width: 18px;
	height: 18px;
}

.bb-footer__bottom {
	padding-block: 1.25rem 1.75rem;
	border-top: 1px solid var(--bb-border);
}

.bb-footer__copyright {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bb-body);
	text-align: center;
}

/* Hide legacy WoodMart footer if any residual styles leak */
.bb-footer + .wd-footer,
.bb-footer ~ .wd-footer {
	display: none !important;
}

@media (max-width: 1199px) {
	.bb-footer__main {
		grid-template-columns: repeat(2, 1fr);
	}

	.bb-footer__col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.bb-footer__main {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.bb-footer__tagline,
	.bb-footer__text {
		max-width: 100%;
	}

	.bb-footer__btn {
		width: 100%;
		max-width: 280px;
	}
}

@media (max-width: 575px) {
	.bb-footer {
		--bb-gutter: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bb-footer__social a,
	.bb-footer__btn,
	.bb-footer__list a {
		transition: none;
	}
}
