/**
 * Local Businesses Carousel (ACF) – Logo carousel, minimal
 * Vars: --lbc-bg, --lbc-gap, --lbc-logo-h, --lbc-arrow-prev, --lbc-arrow-next
 * Optional: --lbc-height (track height; default derived from --lbc-logo-h)
 */

.lbc {
	background-color: var(--lbc-bg, #f6f2ea);
	padding: 3rem 0;
	--lbc-height: var(--lbc-track-height, calc(var(--lbc-logo-h, 38px) + 2rem));
}

.lbc__container {
	margin: 0 auto;
	padding: 0 1.5rem;
}

.lbc__container--wide {
	max-width: 1280px;
}

.lbc__container--normal {
	max-width: 960px;
}

.lbc__head {
	text-align: center;
	margin-bottom: 2rem;
}

.lbc__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9a9a9a;
	margin-bottom: 0.5rem;
}

.lbc__title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	color: #111111;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.lbc__intro {
	font-size: 0.95rem;
	color: #9a9a9a;
	max-width: 42em;
	margin: 0 auto;
	line-height: 1.5;
}

.lbc__intro p {
	margin: 0 0 0.5rem;
}

/* Carousel layout */
.lbc__carousel {
	display: flex;
	align-items: center;
	gap: 1rem;
	position: relative;
}

.lbc__nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background-color: var(--lbc-arrow-prev, #d9d9d9);
	color: #333;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.lbc__nav:hover {
	opacity: 0.9;
}

.lbc__nav:focus {
	outline: none;
}

.lbc__nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lbc__nav--next {
	background-color: var(--lbc-arrow-next, #f4a51c);
	color: #333;
}

.lbc__track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	/* height: var(--lbc-height); */
	display: flex;
	align-items: center;
}

.lbc__slides {
	display: flex;
	align-items: center;
	gap: var(--lbc-gap, 28px);
	height: 100%;
	min-height: 0;
	transition: transform 0.4s ease;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.lbc__slides {
		transition-duration: 0.1ms;
	}
}

.lbc__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 100%;
	min-height: 0;
	text-decoration: none;
	color: inherit;
	padding: 0.5rem;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

a.lbc__item:hover {
	opacity: 0.85;
}

.lbc__item:focus {
	outline: none;
}

a.lbc__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lbc__logo {
	/* max-height: var(--lbc-logo-h, 38px); */
	max-width: 100%;
	width: auto;
	/* height: auto; */
	object-fit: contain;
	display: block;
	vertical-align: middle;
}

@media (max-width: 768px) {
	.lbc {
		padding: 2rem 0;
	}

	.lbc__carousel {
		gap: 0.75rem;
	}

	.lbc__nav {
		width: 38px;
		height: 38px;
		font-size: 1.25rem;
	}
}

.lbc__badge {
	display: block;
	font-size: 0.7rem;
	color: #9a9a9a;
	margin-top: 0.25rem;
	line-height: 1.2;
}
