/* Interactive Logo Showcase — frontend styles */

.ils-section {
	position: relative;
	overflow: hidden;
	background-color: #F7FAFA;
}

.ils-section__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ils-section__inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.ils-heading {
	margin: 0 0 12px;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	text-align: center;
}

.ils-description {
	margin: 0 0 40px;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	color: #55696B;
}

/* ---------- Carousel shell ---------- */

.ils-carousel-wrap {
	position: relative;
}

.ils-carousel {
	overflow: hidden;
	padding: 56px 4px 10px; /* top padding leaves room for the hover label + pointer */
}

.ils-carousel .swiper-wrapper {
	align-items: stretch;
}

.ils-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	width: auto;
}

/* ---------- Card ---------- */

.ils-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	height: 110px;
	padding: 18px 20px;
	background-color: #FFFFFF;
	border-radius: 10px;
	box-sizing: border-box;
	text-decoration: none;
	transition: transform 400ms ease, background-color 400ms ease, box-shadow 400ms ease;
	transform-origin: center bottom;
	will-change: transform;
	outline: none;
	/* Promote to its own compositor layer so scaling on hover doesn't
	   force the browser to repaint/rasterize the logo image at a
	   fractional pixel size, which is what causes the blurry look. */
	transform: translateZ(0) scale(1);
	backface-visibility: hidden;
	-webkit-font-smoothing: subpixel-antialiased;
}

.ils-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.45);
}

.ils-card__img {
	max-width: 80%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.8;
	transition: filter 400ms ease, opacity 400ms ease;
	pointer-events: none;
	-webkit-user-drag: none;
}

.ils-card.is-active .ils-card__img,
.ils-card:hover .ils-card__img,
.ils-card:focus-visible .ils-card__img {
	filter: grayscale(0%);
	opacity: 1;
}

.ils-card.is-active,
.ils-card:hover,
.ils-card:focus-visible {
	transform: translateZ(0) scale(1.05);
}

/* ---------- Hover / active name label ---------- */

.ils-label-wrap {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	transform: translate(-50%, 6px);
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 400ms ease, transform 400ms ease, visibility 400ms;
	z-index: 3;
	white-space: nowrap;
}

.ils-slide:hover .ils-label-wrap,
.ils-slide.is-active .ils-label-wrap,
.ils-card:focus-visible ~ .ils-label-wrap,
.ils-slide:focus-within .ils-label-wrap {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	pointer-events: none;
}

.ils-label {
	display: inline-block;
	background-color: #0F3D3E;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 6px 14px;
	border-radius: 6px;
	transition: background-color 400ms ease, color 400ms ease;
}

.ils-label__pointer {
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 8px;
	height: 8px;
	background-color: #0F3D3E;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 1px;
}

/* ---------- Navigation arrows ---------- */

.ils-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #FFFFFF;
	color: #0F3D3E;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	z-index: 4;
	transition: background-color 300ms ease, color 300ms ease;
}

.ils-arrow:hover {
	background-color: #0F3D3E;
	color: #FFFFFF;
}

.ils-arrow--prev {
	left: 0;
}

.ils-arrow--next {
	right: 0;
}

.ils-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.ils-card,
	.ils-card__img,
	.ils-label-wrap,
	.ils-label,
	.ils-arrow {
		transition-duration: 1ms !important;
	}
}

/* ---------- Mobile tap-active state ---------- */

@media (hover: none) {
	.ils-slide.is-active .ils-card {
		transform: scale(1.05);
	}
}
