/**
 * Slider Styles
 * Clients infinite marquee + Hero slider enhancements
 *
 * @package TheOneOne
 */

/* ==========================================================================
   CLIENTS — INFINITE MARQUEE
   ========================================================================== */

.tos-clients {
	background: var(--tos-white);
	position: relative;
	overflow: hidden;
}

.tos-clients__slider {
	position: relative;
	overflow: hidden;
	padding-block: var(--tos-space-lg);
	margin-top: var(--tos-space-xl);
}

.tos-clients__track {
	display: flex;
	align-items: center;
	gap: var(--tos-space-3xl);
	width: max-content;
	animation: tos-marquee 40s linear infinite;
	will-change: transform;
}

.tos-clients__slider:hover .tos-clients__track {
	animation-play-state: paused;
}

[dir="rtl"] .tos-clients__track {
	animation-name: tos-marquee-rtl;
}

.tos-clients__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	height: 80px;
	padding: var(--tos-space-md) var(--tos-space-xl);
	filter: grayscale(100%);
	opacity: 0.65;
	transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.tos-clients__item:hover {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.06);
}

.tos-clients__item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tos-clients__item img {
	max-height: 64px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.tos-clients__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 120px;
	pointer-events: none;
	z-index: 2;
}

.tos-clients__fade--start {
	inset-inline-start: 0;
	background: linear-gradient(
		to right,
		var(--tos-white) 0%,
		rgba(255, 255, 255, 0) 100%
	);
}

.tos-clients__fade--end {
	inset-inline-end: 0;
	background: linear-gradient(
		to left,
		var(--tos-white) 0%,
		rgba(255, 255, 255, 0) 100%
	);
}

[dir="rtl"] .tos-clients__fade--start {
	background: linear-gradient(
		to left,
		var(--tos-white) 0%,
		rgba(255, 255, 255, 0) 100%
	);
}

[dir="rtl"] .tos-clients__fade--end {
	background: linear-gradient(
		to right,
		var(--tos-white) 0%,
		rgba(255, 255, 255, 0) 100%
	);
}

@keyframes tos-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-33.3333%, 0, 0);
	}
}

@keyframes tos-marquee-rtl {
	0% {
		transform: translate3d(-33.3333%, 0, 0);
	}
	100% {
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tos-clients__track {
		animation: none !important;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}
	.tos-clients__fade {
		display: none;
	}
}

/* ==========================================================================
   HERO INDICATORS
   ========================================================================== */

.tos-hero__indicators {
	display: flex;
	gap: var(--tos-space-sm);
	margin-top: var(--tos-space-xl);
	justify-content: center;
}

.tos-hero__indicator {
	width: 36px;
	height: 4px;
	border-radius: 2px;
	border: 0;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease, width 0.4s ease;
	position: relative;
	overflow: hidden;
}

.tos-hero__indicator:hover {
	background: rgba(255, 255, 255, 0.5);
}

.tos-hero__indicator.is-active {
	background: var(--tos-accent);
	width: 56px;
}

/* ==========================================================================
   GENERIC CAROUSEL UTILS (for future use)
   ========================================================================== */

.tos-carousel {
	position: relative;
	overflow: hidden;
}

.tos-carousel__viewport {
	overflow: hidden;
}

.tos-carousel__track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.tos-carousel__slide {
	flex: 0 0 100%;
	min-width: 0;
}

.tos-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tos-white);
	color: var(--tos-primary);
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--tos-shadow-md);
	cursor: pointer;
	transition: all 0.3s ease;
}

.tos-carousel__nav:hover {
	background: var(--tos-primary);
	color: var(--tos-white);
	transform: translateY(-50%) scale(1.08);
}

.tos-carousel__nav--prev {
	inset-inline-start: var(--tos-space-md);
}

.tos-carousel__nav--next {
	inset-inline-end: var(--tos-space-md);
}

.tos-carousel__dots {
	display: flex;
	gap: var(--tos-space-xs);
	justify-content: center;
	margin-top: var(--tos-space-lg);
}

.tos-carousel__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	background: var(--tos-gray-300);
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tos-carousel__dot.is-active {
	background: var(--tos-primary);
	transform: scale(1.3);
}

/* ==========================================================================
   CLIENTS — COUNTRY GROUPS
   ========================================================================== */

.tos-clients__country {
	margin-top: var(--tos-space-2xl);
}

.tos-clients__country-title {
	display: inline-flex;
	align-items: center;
	gap: var(--tos-space-sm);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 800;
	color: var(--tos-primary);
	margin: 0 0 var(--tos-space-md);
	padding-bottom: var(--tos-space-xs);
	position: relative;
}

.tos-clients__country-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 60px;
	height: 4px;
	background: var(--tos-gradient-brand);
	border-radius: 2px;
}

.tos-clients__country-flag {
	display: inline-flex;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.tos-clients__country-flag svg {
	display: block;
}

.tos-clients__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	min-width: 160px;
	padding: 0 var(--tos-space-md);
	background: linear-gradient(135deg, var(--tos-light) 0%, #ffffff 100%);
	border: 1px dashed var(--tos-gray-300);
	border-radius: var(--tos-radius-md);
	color: var(--tos-primary);
	font-weight: 600;
	text-align: center;
	font-size: 0.92rem;
}
