/* =========================================================
   eh-partner.css — Partner Logos Section
   BEM: .eh-partner / .eh-pt__*
   ========================================================= */

/* ── Section wrapper ──────────────────────────────────── */
.eh-partner {
	display: block;
	width: 100%;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

/* ── Inner container ──────────────────────────────────── */
.eh-pt__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px 22px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

/* ── Section heading ──────────────────────────────────── */
.eh-pt__heading {
	font-size: 10.5px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	margin: 0 0 14px;
	text-align: center;
}

/* ── Carousel wrapper ─────────────────────────────────── */
.eh-pt__carousel-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

/* ── Logo track ─────────────────────────────────────────
   Default (≤ 7 logos): centred, no overflow
   Scrollable (> 7): overflow-x, hidden scrollbar
   ───────────────────────────────────────────────────── */
.eh-pt__track {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	/* logos are spaced evenly across available width */
}

/* When > 7 logos: enable horizontal scroll */
.eh-partner--scrollable .eh-pt__track {
	justify-content: flex-start;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	gap: 0;
}
.eh-partner--scrollable .eh-pt__track::-webkit-scrollbar {
	display: none;
}

/* ── Logo items ───────────────────────────────────────── */
.eh-pt__item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	/* vertical separator between logos */
	border-right: 1px solid #e8ecf0;
	padding: 0 20px;
}

.eh-pt__item:last-child {
	border-right: none;
}

/* Scrollable mode: fixed width items, not flex-grow */
.eh-partner--scrollable .eh-pt__item {
	flex: 0 0 auto;
	padding: 0 32px;
}

/* ── Logo link & image ────────────────────────────────── */
.eh-pt__logo-link {
	display: block;
	line-height: 0;
}

.eh-pt__logo-img {
	height: 38px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	display: block;
	filter: grayscale(100%) opacity(0.55);
	transition: filter 0.22s ease;
}

.eh-pt__logo-link:hover .eh-pt__logo-img,
.eh-pt__logo-link:focus-visible .eh-pt__logo-img {
	filter: grayscale(0%) opacity(1);
}

/* ── Arrow buttons (only rendered when > 7 logos) ────── */
.eh-pt__arrow {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid #cbd5e1;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	/* hidden until JS detects overflow */
	visibility: hidden;
	opacity: 0;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.eh-pt__arrow.is-visible {
	visibility: visible;
	opacity: 1;
}

.eh-pt__arrow.is-hidden {
	opacity: 0.3;
	pointer-events: none;
}

.eh-pt__arrow:hover,
.eh-pt__arrow:focus-visible {
	background: #f1f5f9;
	border-color: #94a3b8;
	outline: none;
}

.eh-pt__arrow svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: #64748b;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
	.eh-pt__item {
		padding: 0 14px;
	}

	.eh-pt__logo-img {
		height: 32px;
		max-width: 100px;
	}
}

@media (max-width: 640px) {
	.eh-pt__inner {
		padding: 16px 16px 20px;
	}

	/* Force horizontal scroll on small screens so logos don't crush */
	.eh-pt__track {
		justify-content: flex-start;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.eh-pt__track::-webkit-scrollbar {
		display: none;
	}

	.eh-pt__item {
		flex: 0 0 auto;
		padding: 0 16px;
	}

	.eh-pt__logo-img {
		height: 28px;
		max-width: 90px;
	}
}
