/* ==========================================================================
   SamSam Suppliers — front-end styles
   Palette and type match the SamSam Footer (pale #EAF3E6, teal #57A79A,
   Sora headings, Inter body) so the strip joins the footer wave seamlessly.
   ========================================================================== */

.sss-suppliers {
	--sss-s-pale: #EAF3E6;
	--sss-s-accent: #57A79A;
	--sss-s-deep: #2E6B61;
	--sss-s-tile-w: 220px;
	--sss-s-tile-h: 120px;
	--sss-s-gap: 22px;
	--sss-s-radius: 18px;
	--sss-s-duration: 55s;

	position: relative;
	box-sizing: border-box;
	background: var(--sss-s-pale);
	padding: 64px 0 28px;
	color: var(--sss-s-deep);
}
.sss-suppliers *,
.sss-suppliers *::before,
.sss-suppliers *::after {
	box-sizing: border-box;
}

/* ---- Full-bleed breakout (same technique as the footer) ---- */
.sss-s-fullbleed {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
}
.sss-s-fullbleed-guard {
	overflow-x: clip;
}

/* ---- Heading block ---- */
.sss-s-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 0 6vw;
	margin-bottom: 30px;
}
.sss-s-title {
	margin: 0;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.15;
	color: var(--sss-s-deep);
}
.sss-s-sub {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sss-s-deep);
	opacity: .85;
}

/* ---- Pause / play toggle ---- */
.sss-s-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 9px 18px 9px 14px;
	border: 1.5px solid var(--sss-s-deep);
	border-radius: 999px;
	background: transparent;
	color: var(--sss-s-deep);
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.sss-s-toggle:hover {
	background: var(--sss-s-deep);
	color: #fff;
}
.sss-s-toggle:focus-visible,
.sss-s-tile:focus-visible {
	outline: 3px solid var(--sss-s-deep);
	outline-offset: 3px;
}
.sss-s-toggle svg {
	width: 14px;
	height: 14px;
	flex: none;
}
.sss-s-toggle .sss-s-ico-play {
	display: none;
}
.sss-s-toggle[aria-pressed="true"] .sss-s-ico-play {
	display: block;
}
.sss-s-toggle[aria-pressed="true"] .sss-s-ico-pause {
	display: none;
}

/* ---- Scrolling viewport ---- */
.sss-s-viewport {
	overflow: hidden;
	/* room for the tile lift + shadow so overflow:hidden never clips them */
	padding: 20px 0 40px;
}
.sss-s-fade .sss-s-viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.sss-s-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: sss-s-scroll var(--sss-s-duration) linear infinite;
}
.sss-s-dir-right .sss-s-track {
	animation-direction: reverse;
}

@keyframes sss-s-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

.sss-s-group {
	display: flex;
	flex: none;
	gap: var(--sss-s-gap);
	/* trailing gap makes both groups identical, so -50% loops perfectly */
	padding: 0 var(--sss-s-gap) 0 0;
	margin: 0;
	list-style: none;
}
.sss-s-item {
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Pausing: toggle, hover/focus, and while a tile is launching */
.sss-suppliers.is-paused .sss-s-track,
.sss-suppliers.is-launching .sss-s-track {
	animation-play-state: paused;
}
@media (hover: hover) {
	.sss-s-hoverpause .sss-s-viewport:hover .sss-s-track {
		animation-play-state: paused;
	}
}
.sss-s-hoverpause .sss-s-viewport:focus-within .sss-s-track {
	animation-play-state: paused;
}

/* ---- Tile ---- */
.sss-s-tile {
	--x: 50%;
	--y: 50%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sss-s-tile-w);
	height: var(--sss-s-tile-h);
	border-radius: var(--sss-s-radius);
	background: var(--sss-s-tile-bg, #fff);
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 1px 0 rgba(46, 107, 97, .08), 0 12px 24px -16px rgba(46, 107, 97, .55);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, opacity .3s ease, filter .3s ease;
}
span.sss-s-tile {
	cursor: default;
}
.sss-s-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	transform: scale(var(--sss-s-zoom, 1));
}

/* Accent ring */
.sss-s-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 3px solid var(--sss-s-accent);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
	z-index: 2;
}

/* "Visit site" strip that slides up on hover / keyboard focus */
.sss-s-hover {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 10px;
	background: var(--sss-s-deep);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	transform: translateY(101%);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	z-index: 1;
}
.sss-s-hover svg,
.sss-s-launch svg {
	width: 15px;
	height: 15px;
	flex: none;
}

@media (hover: hover) {
	a.sss-s-tile:hover {
		transform: translateY(-5px) scale(1.04);
		box-shadow: 0 2px 0 rgba(46, 107, 97, .1), 0 22px 30px -16px rgba(46, 107, 97, .7);
	}
	a.sss-s-tile:hover::before {
		opacity: 1;
	}
	a.sss-s-tile:hover .sss-s-hover {
		transform: translateY(0);
	}
}
a.sss-s-tile:focus-visible .sss-s-hover {
	transform: translateY(0);
}

/* ---- Press animation: tile pops, deep-teal wipe spreads from the tap point ---- */
.sss-s-launch {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	background: var(--sss-s-deep);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	clip-path: circle(0 at var(--x) var(--y));
	-webkit-clip-path: circle(0 at var(--x) var(--y));
	pointer-events: none;
	z-index: 3;
}

.sss-s-tile.is-launching {
	z-index: 4;
	animation: sss-s-pop .55s cubic-bezier(.2, .8, .2, 1) forwards;
}
.sss-s-tile.is-launching::before {
	opacity: 1;
}
.sss-s-tile.is-launching .sss-s-launch {
	animation: sss-s-wipe .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
.sss-s-tile.is-launching .sss-s-hover {
	transform: translateY(101%);
}
.sss-suppliers.is-launching .sss-s-tile:not(.is-launching) {
	opacity: .4;
	filter: saturate(.5);
}

@keyframes sss-s-pop {
	0%   { transform: scale(1); }
	35%  { transform: translateY(-4px) scale(.96); }
	100% { transform: translateY(-6px) scale(1.12); box-shadow: 0 26px 34px -16px rgba(46, 107, 97, .8); }
}
@keyframes sss-s-wipe {
	from {
		clip-path: circle(0 at var(--x) var(--y));
		-webkit-clip-path: circle(0 at var(--x) var(--y));
	}
	to {
		clip-path: circle(150% at var(--x) var(--y));
		-webkit-clip-path: circle(150% at var(--x) var(--y));
	}
}

.sss-s-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--sss-s-deep);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.sss-s-head {
		margin-bottom: 22px;
	}
	.sss-s-sub {
		font-size: 14px;
	}
	.sss-s-launch {
		font-size: 14px;
	}
	.sss-s-hover {
		font-size: 12px;
		padding: 7px 8px;
	}
}

/* ---- Reduced motion: no auto-scroll, no press animation; strip scrolls by hand ---- */
@media (prefers-reduced-motion: reduce) {
	.sss-s-track {
		animation: none;
	}
	.sss-s-viewport {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.sss-s-group[aria-hidden="true"] {
		display: none;
	}
	.sss-s-tile,
	.sss-s-hover {
		transition: none;
	}
	.sss-s-tile.is-launching,
	.sss-s-tile.is-launching .sss-s-launch {
		animation: none;
	}
	.sss-s-toggle {
		display: none;
	}
}
