/* =========================================================
   SERVICES SLIDER — styling
   Colors/fonts intentionally scoped to .services-slider so
   they don't touch your theme's global font-family/colors.
   Edit the CSS variables below to fine-tune the palette.
   ========================================================= */

.services-slider {
	--ss-bg: #1a1a1a;
	--ss-card-radius: 16px;
	--ss-accent: #f0a941;
	--ss-white: #ffffff;
	--ss-muted: #cfcfcf;
	--ss-number-size: 60px;

	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.services-slider .slick-list {
	overflow: visible; /* so the number circle can overlap without being clipped */
	padding-bottom: 10px;
}

.service-slide {
	padding: 0 14px;
	box-sizing: border-box;
}

.service-card {
	display: block;
	position: relative;
	text-decoration: none;
	color: var(--ss-white);
	border-radius: var(--ss-card-radius);
}

/* ---------- Image block ---------- */
.service-card__image {
	position: relative;
	width: 100%;
	height: 430px;
	border-radius: var(--ss-card-radius);
	overflow: hidden;
	background: #2a2a2a;
}

.service-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
	transform: scale(1.06);
}

/* Dark gradient always present at the bottom so the caption stays readable */
.service-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 65%);
	pointer-events: none;
}

/* ---------- Hover overlay + description (desktop) ---------- */
.service-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	background: rgba(10, 10, 10, 0.72);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	z-index: 2;
}

.service-card:hover .service-card__overlay {
	opacity: 1;
	visibility: visible;
}

.service-card__desc {
	margin: 0;
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ss-white);
}

/* ---------- Caption: number + title, overlapping the bottom edge ---------- */
.service-card__caption {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: calc(var(--ss-number-size) * -0.5);
	padding: 0 6px;
}

.service-card__number {
	flex: 0 0 auto;
	width: var(--ss-number-size);
	height: var(--ss-number-size);
	border-radius: 50%;
	border: 1px solid var(--ss-accent);
	background: var(--ss-bg);
	color: var(--ss-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.service-card__title {
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: var(--ss-white);
}

/* Mobile-only description block (hidden on desktop) */
.service-card__desc--mobile {
	display: none;
}

/* ---------- Slick dots to match the orange/white style in the screenshot ---------- */
.services-slider .slick-dots {
	position: static;
	margin-top: 34px;
}

.services-slider .slick-dots li button:before {
	font-size: 10px;
	color: transparent;
	background: transparent;
	border: 1px solid #888;
	border-radius: 50%;
	width: 10px;
	height: 10px;
	opacity: 1;
	content: "";
}

.services-slider .slick-dots li.slick-active button:before {
	background: var(--ss-accent);
	border-color: var(--ss-accent);
}

/* =========================================================
   RESPONSIVE
   - Below 768px: no hover, description shows stacked
     under the image instead of as an overlay.
   ========================================================= */
@media (max-width: 768px) {
	.service-card__image {
		height: 320px;
	}

	.service-card__overlay {
		display: none; /* replaced by the static block below */
	}

	.service-card__caption {
		margin-top: calc(var(--ss-number-size) * -0.5);
	}

	.service-card__desc--mobile {
		display: block;
		margin: 14px 0 0 0;
		padding: 0 6px;
		font-size: 14px;
		line-height: 1.6;
		color: var(--ss-muted);
	}

	.service-card:hover .service-card__image img {
		transform: none; /* skip zoom on touch devices */
	}
}