/* 7sixty3 Slider. Light only. Colors come from CSS variables set on .sst-slider (Settings > 7sixty3 Slider). */

.sst-slider,
.sst-slider *,
.sst-slider *::before,
.sst-slider *::after {
	box-sizing: border-box;
}

.sst-slider {
	position: relative;
	color-scheme: light;
	/* Each variable can be set from the settings page; otherwise it follows the shared brand token, then a neutral color. */
	--sst-sl-accent: var(--sst-accent, #1a1a1a);
	--sst-ctl-bg: var(--sst-surface, #ffffff);
	--sst-ctl-fg: var(--sst-text, #111111);
	--sst-focus: #0b57d0;
	--sst-band: #e5e5e5;
	font-family: var(--sst-font, inherit);
	width: 100%;
}

.sst-slider-notice {
	padding: 12px 16px;
	border: 1px solid #c5c5c5;
	background: #f4f4f4;
	color: #1a1a1a;
	font-size: 16px;
}

/* ---------- Buttons and dots (shared) ---------- */

.sst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	min-width: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	background: var(--sst-ctl-bg);
	color: var(--sst-ctl-fg);
	cursor: pointer;
	line-height: 1;
	transition: box-shadow 0.15s ease;
}

.sst-btn:hover {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.sst-btn[hidden],
.sst-slider__dots[hidden] {
	display: none;
}

.sst-btn--pause .sst-icon--play {
	display: none;
}

.sst-btn--pause.is-paused .sst-icon--pause {
	display: none;
}

.sst-btn--pause.is-paused .sst-icon--play {
	display: block;
}

.sst-slider__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.sst-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sst-dot span {
	display: block;
	width: 14px;
	height: 14px;
	border: 2px solid var(--sst-sl-accent);
	border-radius: 50%;
	background: transparent;
	transition: background-color 0.15s ease;
}

.sst-dot.is-active span {
	background: var(--sst-sl-accent);
}

.sst-btn:focus-visible,
.sst-dot:focus-visible,
.sst-logo__link:focus-visible {
	outline: 3px solid var(--sst-focus);
	outline-offset: 2px;
}

/* Without JavaScript only the first slide shows, so the controls would do nothing. */
.sst-slider:not(.sst-js) .sst-slider__controls {
	display: none;
}

.sst-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---------- Slideshow ---------- */

.sst-slideshow {
	height: var(--sst-h, 50vh);
	min-height: 14rem;
	overflow: hidden;
	background: #e5e5e5;
}

.sst-slideshow .sst-slider__viewport {
	position: absolute;
	inset: 0;
}

.sst-slideshow .sst-slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	background: #e5e5e5; /* Opaque so a fading slide never shows the one beneath it through bars. */
	transition: opacity var(--sst-fade, 2000ms) ease;
}

.sst-slideshow .sst-slide.is-leaving {
	z-index: 1;
	opacity: 1;
}

.sst-slideshow .sst-slide.is-active {
	z-index: 2;
	opacity: 1;
}

.sst-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.sst-slide__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--sst-overlay, 0));
	pointer-events: none;
}

.sst-slide__caption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 3;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 8px 14px;
	background: #ffffff;
	color: #111111;
	font-size: 16px;
	line-height: 1.4;
}

.sst-slideshow:has(.sst-slider__controls) .sst-slide__caption {
	bottom: 68px;
}

.sst-slideshow .sst-slider__controls {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	display: block;
}

.sst-slideshow .sst-btn,
.sst-slideshow .sst-slider__dots {
	position: absolute;
	pointer-events: auto;
}

.sst-slideshow .sst-btn--prev,
.sst-slideshow .sst-btn--next {
	top: 50%;
	transform: translateY(-50%);
}

.sst-slideshow .sst-btn--prev {
	left: 12px;
}

.sst-slideshow .sst-btn--next {
	right: 12px;
}

.sst-slideshow .sst-btn--pause {
	right: 12px;
	bottom: 12px;
}

.sst-slideshow .sst-slider__dots {
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	max-width: calc(100% - 140px);
	background: rgba(255, 255, 255, 0.92);
	border-radius: 22px;
	padding: 0 6px;
}

/* ---------- Testimonials ---------- */

.sst-testimonials {
	padding: 24px 0;
	text-align: center;
}

.sst-testimonials .sst-slider__viewport {
	overflow: hidden;
}

.sst-slider__track {
	display: flex;
	transition: transform var(--sst-speed, 400ms) ease;
	touch-action: pan-y;
	will-change: transform;
}

.sst-testimonials .sst-slide {
	flex: 0 0 100%;
	min-width: 0;
	padding: 0 16px;
}

.sst-quote {
	margin: 0 auto;
	max-width: 46rem;
}

.sst-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	line-height: 1.6;
}

.sst-quote__text p {
	margin: 0;
}

.sst-quote__by {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 16px;
}

.sst-quote__name {
	font-weight: 700;
}

.sst-quote__role {
	font-size: 0.95rem;
	opacity: 0.8;
}

.sst-testimonials .sst-slider__controls {
	margin-top: 16px;
}

/* Arrows and dots show at 1024px and below by default. Above that they are visually hidden but stay reachable by keyboard
   and appear when focus enters them. The pause button is never hidden. */
@media (min-width: 1025px) {
	.sst-controls--auto .sst-btn--prev,
	.sst-controls--auto .sst-btn--next,
	.sst-controls--auto .sst-slider__dots {
		position: absolute;
		width: 1px;
		height: 1px;
		min-width: 0;
		overflow: hidden;
		clip-path: inset(50%);
		border: 0;
		white-space: nowrap;
	}

	.sst-controls--auto .sst-slider__controls:focus-within .sst-btn--prev,
	.sst-controls--auto .sst-slider__controls:focus-within .sst-btn--next,
	.sst-controls--auto .sst-slider__controls:focus-within .sst-slider__dots {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

	.sst-controls--auto .sst-slider__controls:focus-within .sst-btn--prev,
	.sst-controls--auto .sst-slider__controls:focus-within .sst-btn--next {
		width: 44px;
		height: 44px;
		min-width: 44px;
		border: 1px solid rgba(0, 0, 0, 0.25);
	}
}

/* ---------- Logo carousel ---------- */

.sst-logos {
	padding: 24px 0;
	--sst-pv: 4;
	--sst-gap: 30px;
}

.sst-logos--band {
	/* Full-bleed without relying on margins: block themes force auto margins on content children with !important. */
	position: relative;
	left: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	background: var(--sst-band);
}

.sst-logos__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.sst-logos .sst-slider__viewport {
	overflow: hidden;
}

.sst-logos .sst-slider__track {
	gap: var(--sst-gap);
}

.sst-logo {
	flex: 0 0 calc((100% - (var(--sst-pv) - 1) * var(--sst-gap)) / var(--sst-pv));
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: var(--sst-logo-h, 80px);
}

.sst-logo__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 44px;
}

.sst-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sst-logos--gray .sst-logo__img {
	filter: grayscale(1);
}

.sst-logos.sst-static .sst-slider__track {
	justify-content: center;
	transform: none !important;
}

.sst-logos .sst-slider__controls {
	margin-top: 16px;
}

/* ---------- Reduced motion: nothing animates and nothing advances by itself ---------- */

@media (prefers-reduced-motion: reduce) {
	.sst-slider .sst-slide,
	.sst-slider .sst-slider__track,
	.sst-slider .sst-btn,
	.sst-slider .sst-dot span {
		transition: none !important;
	}
}
