/* =========================================================
   SERVICES CATEGORY WIDGET
   Scoped under .scw-widget so it never leaks into the rest
   of the page. Colors/spacing come from Elementor controls
   via CSS custom properties + generated selectors.
========================================================= */

.scw-widget {
	--scw-accent: #ff476f;
	--scw-sweep-enabled: 1;

	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.scw-widget * {
	box-sizing: border-box;
}

/* ---------- HEADING ---------- */

.scw-heading-wrap {
	text-align: center;
	margin-bottom: 52px;
}

.scw-heading {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
}

.scw-heading-line {
	display: block;
	width: 245px;
	height: 2px;
	margin: 17px auto 32px;
}

.scw-subheading {
	margin: 0 auto;
	max-width: 850px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: 400;
}

/* ---------- GRID ---------- */

.scw-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	width: 100%;
	align-items: start;
}

/* ---------- CARD ---------- */

.scw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	text-decoration: none;
	overflow: hidden;
	border-radius: 13px;
	transform: translateY(0);
	transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.scw-card.scw-extra {
	display: none;
}

.scw-grid.scw-show-all .scw-extra {
	display: flex;
}

/* ---------- HOVER SWEEP ---------- */

.scw-card::after {
	content: "";
	position: absolute;
	z-index: 3;
	pointer-events: none;
	width: 165%;
	height: 220%;
	top: -60%;
	left: -180%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 20%,
		rgba(255, 255, 255, 0.02) 27%,
		color-mix(in srgb, var(--scw-accent) 12%, transparent) 34%,
		color-mix(in srgb, var(--scw-accent) 22%, transparent) 40%,
		color-mix(in srgb, var(--scw-accent) 38%, transparent) 45%,
		color-mix(in srgb, var(--scw-accent) 55%, transparent) 49%,
		color-mix(in srgb, var(--scw-accent) 62%, transparent) 50%,
		color-mix(in srgb, var(--scw-accent) 55%, transparent) 51%,
		color-mix(in srgb, var(--scw-accent) 38%, transparent) 55%,
		color-mix(in srgb, var(--scw-accent) 22%, transparent) 61%,
		color-mix(in srgb, var(--scw-accent) 12%, transparent) 67%,
		rgba(255, 255, 255, 0.02) 74%,
		transparent 82%
	);
	transform: skewX(-12deg);
	opacity: 0;
	transition: left 2.2s cubic-bezier(.22, 1, .36, 1), opacity 0.7s ease;
}

.scw-card:hover {
	transform: translateY(-2px);
}

.scw-card:hover::after {
	left: 135%;
	opacity: var(--scw-sweep-enabled);
}

/* ---------- IMAGE ---------- */

.scw-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1.30 / 1;
	overflow: hidden;
	border-radius: 13px;
	background: #f5f5f5;
	flex-shrink: 0;
}

.scw-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.scw-card:hover .scw-image img {
	transform: scale(1.018);
}

/* ---------- TITLE ---------- */

.scw-title-wrap {
	position: relative;
	z-index: 4;
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px 8px 5px;
}

.scw-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	width: 100%;
	text-align: center;
	transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.scw-card:hover .scw-card-title {
	transform: translateY(-1px);
}

/* ---------- SHOW MORE BUTTON ---------- */

.scw-button-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.scw-show-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 175px;
	padding: 14px 25px;
	border: 1px solid var(--scw-accent);
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.scw-show-more:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--scw-accent) 22%, transparent);
}

.scw-show-more .scw-arrow {
	font-size: 18px;
	transition: transform 0.4s ease;
}

.scw-show-more:hover .scw-arrow {
	transform: translateY(3px);
}

/* ---------- TABLET ---------- */

@media (max-width: 1024px) {
	.scw-heading {
		font-size: 30px;
	}
	.scw-subheading {
		font-size: 18px;
	}
	.scw-card-title {
		font-size: 21px;
	}
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
	.scw-heading-wrap {
		margin-bottom: 35px;
	}
	.scw-heading {
		font-size: 27px;
	}
	.scw-heading-line {
		width: 180px;
		margin: 13px auto 22px;
	}
	.scw-subheading {
		font-size: 16px;
		line-height: 1.45;
	}
	.scw-card-title {
		font-size: 20px;
	}
	.scw-title-wrap {
		min-height: 62px;
	}
	.scw-button-wrap {
		margin-top: 35px;
	}
	.scw-show-more {
		min-width: 160px;
		padding: 12px 22px;
	}
}

@media (max-width: 480px) {
	.scw-card-title {
		font-size: 19px;
	}
}