/* SA Elementor Widgets - Services Carousel */

.sa-services {
	--sa-primary-local: var(--sa-primary, #2e545e);
	--sa-accent-local: var(--sa-accent, #416a72);
	--sa-white-local: var(--sa-white, #ffffff);
	--sa-soft-white-local: var(--sa-soft-white, #f4f7f6);
	--sa-heading-font-local: var(--sa-heading-font, "Libre Caslon Text", serif);
	--sa-body-font-local: var(--sa-body-font, Manrope, sans-serif);
	--sa-radius-local: var(--sa-radius, 8px);
	--sa-services-container-width: var(--sa-container, 1180px);
	--sa-services-container-gutter: 40px;
	--sa-services-card-gap: 28px;
	background: var(--sa-white-local);
	padding-block: 96px;
	padding-inline: 0;
	overflow: hidden;
}

.sa-services__header {
	width: min(100% - var(--sa-services-container-gutter), var(--sa-services-container-width));
	max-width: none;
	margin: 0 auto 42px;
	text-align: center;
}

.sa-services__title {
	max-width: 880px;
	margin: 0 auto;
	font-family: var(--sa-heading-font-local);
	font-size: clamp(2.75rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0;
	color: var(--sa-primary-local);
}

.sa-services__intro {
	max-width: 680px;
	margin: 18px auto 0;
	font-family: var(--sa-body-font-local);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sa-accent-local);
}

.sa-services__carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.sa-services__track {
	display: flex;
	gap: var(--sa-services-card-gap);
	padding-inline: max(24px, calc((100vw - var(--sa-services-container-width)) / 2));
	padding-block: 4px 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(24px, calc((100vw - var(--sa-services-container-width)) / 2));
	-webkit-overflow-scrolling: touch;
	cursor: grab !important;
	scrollbar-width: none;
	user-select: none;
	touch-action: pan-y pinch-zoom;
	overscroll-behavior-x: contain;
	will-change: scroll-position;
}

.sa-services__track::-webkit-scrollbar {
	display: none;
}

.sa-services__track.is-dragging {
	cursor: grabbing !important;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.sa-services__track.is-dragging .sa-services__card {
	pointer-events: none;
}

.sa-services__slide {
	flex: 0 0 clamp(560px, 40vw, 680px);
	min-width: 0;
	scroll-snap-align: start;
	user-select: none;
}

.sa-services__slide[data-sa-services-clone="true"] {
	pointer-events: none;
}

.sa-services__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	min-height: 560px;
	overflow: hidden;
	border-radius: var(--sa-radius-local);
	background: var(--sa-soft-white-local);
	text-decoration: none;
	isolation: isolate;
	box-shadow: 0 24px 70px rgba(18, 38, 44, 0.12);
	-webkit-user-drag: none;
	user-select: none;
	cursor: inherit;
}

.sa-services__image,
.sa-services__image--placeholder {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	border-radius: var(--sa-radius-local);
	object-fit: cover;
	transform: scale(1);
	transition: transform 550ms ease, filter 550ms ease;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

.sa-services__image--placeholder {
	background: linear-gradient(135deg, rgba(46, 84, 94, 0.08), rgba(65, 106, 114, 0.18));
}

.sa-services__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(18, 38, 44, 0.04) 0%, rgba(18, 38, 44, 0.22) 66%, rgba(18, 38, 44, 0.46) 100%);
	pointer-events: none;
}

.sa-services__content {
	position: relative;
	z-index: 2;
	width: calc(100% - 48px);
	margin: 0 24px 24px;
	padding: 28px 32px;
	border-radius: var(--sa-radius-local);
	background: var(--sa-white-local);
	box-shadow: 0 18px 46px rgba(18, 38, 44, 0.14);
}

.sa-services__card-title {
	margin: 0;
	font-family: var(--sa-heading-font-local);
	font-size: clamp(2rem, 2.6vw, 2.375rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0;
	color: var(--sa-primary-local);
}

.sa-services__card-description {
	margin: 14px 0 0;
	font-family: var(--sa-body-font-local);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.65;
	color: var(--sa-accent-local);
}

.sa-services__arrow {
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--sa-white-local);
	background: transparent;
	border: 0;
	border-radius: 0;
	opacity: 0;
	transform: translate(6px, -6px);
	transition: opacity 220ms ease, transform 220ms ease;
	pointer-events: none;
	filter: drop-shadow(0 5px 10px rgba(18, 38, 44, 0.3));
}

.sa-services__arrow::before {
	position: absolute;
	top: 7px;
	right: 6px;
	width: 24px;
	height: 24px;
	content: "";
	border-top: 4px solid currentColor;
	border-right: 4px solid currentColor;
	border-radius: 1px;
}

.sa-services__arrow::after {
	position: absolute;
	top: 23px;
	right: 7px;
	width: 36px;
	height: 4px;
	content: "";
	background: currentColor;
	border-radius: 999px;
	transform: rotate(-45deg);
	transform-origin: center;
}

.sa-services__card:hover .sa-services__image,
.sa-services__card:focus-visible .sa-services__image {
	transform: scale(1.06);
	filter: saturate(1.02);
}

.sa-services__card:hover .sa-services__arrow,
.sa-services__card:focus-visible .sa-services__arrow {
	opacity: 1;
	transform: translate(0, 0);
}

.sa-services__card:focus-visible {
	outline: 2px solid var(--sa-primary-local);
	outline-offset: 5px;
}

.sa-services__dots {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: min(100% - var(--sa-services-container-gutter), var(--sa-services-container-width));
	margin: 22px auto 0;
}

.sa-services__dot {
	appearance: none;
	display: block;
	width: 9px !important;
	height: 9px !important;
	min-width: 9px;
	min-height: 9px;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(46, 84, 94, 0.26) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.sa-services__dot.is-active {
	width: 22px !important;
	border-radius: 999px !important;
	background: var(--sa-primary-local) !important;
}

@media (hover: none) {
	.sa-services__arrow {
		opacity: 1;
		transform: translate(0, 0);
	}
}

@media (max-width: 1024px) {
	.sa-services {
		--sa-services-container-gutter: 32px;
		--sa-services-card-gap: 20px;
		padding-block: 72px;
	}

	.sa-services__header {
		margin-bottom: 34px;
	}

	.sa-services__track {
		padding-inline: 32px;
		scroll-padding-inline: 32px;
	}

	.sa-services__slide {
		flex: 0 0 min(70vw, 620px);
	}

	.sa-services__card {
		min-height: 520px;
	}
}

@media (max-width: 767px) {
	.sa-services {
		--sa-services-container-gutter: 24px;
		--sa-services-card-gap: 16px;
		padding-block: 56px;
	}

	.sa-services__header {
		text-align: left;
		margin-bottom: 28px;
	}

	.sa-services__title {
		font-size: clamp(2rem, 10vw, 2.375rem);
		line-height: 1.12;
	}

	.sa-services__intro {
		margin-top: 14px;
		font-size: 1rem;
	}

	.sa-services__track {
		padding-inline: 24px;
		scroll-padding-inline: 24px;
	}

	.sa-services__slide {
		flex: 0 0 calc(100vw - 48px);
		scroll-snap-align: center;
	}

	.sa-services__card {
		min-height: 520px;
		box-shadow: 0 18px 46px rgba(18, 38, 44, 0.14);
	}

	.sa-services__content {
		width: calc(100% - 32px);
		margin: 0 16px 16px;
		padding: 24px;
	}

	.sa-services__card-title {
		font-size: 1.875rem;
	}

	.sa-services__card-description {
		font-size: 0.98rem;
		line-height: 1.62;
	}

	.sa-services__arrow {
		top: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
		opacity: 1;
		transform: translate(0, 0);
	}

	.sa-services__arrow::before {
		top: 6px;
		right: 5px;
		width: 21px;
		height: 21px;
		border-width: 3px;
	}

	.sa-services__arrow::after {
		top: 21px;
		right: 6px;
		width: 31px;
		height: 3px;
	}

	.sa-services__dots {
		display: flex;
	}
}

@media (max-width: 360px) {
	.sa-services {
		--sa-services-container-gutter: 20px;
	}

	.sa-services__track {
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}

	.sa-services__slide {
		flex-basis: calc(100vw - 40px);
	}

	.sa-services__content {
		width: calc(100% - 24px);
		margin-inline: 12px;
		padding: 22px;
	}
}
