/**
 * Services Carousel — Frontend Styles
 * Premium red & black service business carousel.
 */

.scw-section {
	--scw-primary: #D60000;
	--scw-heading: #1A1A1A;
	--scw-desc: #555555;
	--scw-bg: #F8F8F8;
	--scw-card-bg: #FFFFFF;
	box-sizing: border-box;
}

.scw-section *,
.scw-section *::before,
.scw-section *::after {
	box-sizing: border-box;
}

.scw-container {
	max-width: 1320px;
	margin: 0 auto;
	width: 100%;
}

/* Header */
.scw-header {
	text-align: center;
}

.scw-heading {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--scw-heading);
}

.scw-subtitle {
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 40px;
	color: var(--scw-desc);
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.scw-header[style*="text-align: left"] .scw-subtitle,
.scw-header[style*="text-align: right"] .scw-subtitle {
	margin-left: 0;
	margin-right: 0;
}

/* Carousel wrapper */
.scw-carousel-wrap {
	position: relative;
}

.scw-swiper {
	width: 100%;
	overflow: hidden;
	padding: 8px 4px 24px;
}

.scw-swiper .swiper-wrapper {
	align-items: stretch;
}

.scw-swiper .swiper-slide {
	height: auto;
	display: flex;
}

/* Card */
.scw-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: var(--scw-card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 300ms ease, box-shadow 300ms ease;
	will-change: transform;
}

.scw-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

/* Image */
.scw-card-image {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background-color: #eaeaea;
}

.scw-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}

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

.scw-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background-color: var(--scw-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	line-height: 1;
}

/* Body */
.scw-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 28px;
}

.scw-card-title {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
	color: var(--scw-heading);
	transition: color 300ms ease;
}

.scw-card:hover .scw-card-title {
	color: var(--scw-primary);
}

.scw-card-description {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 20px;
	color: var(--scw-desc);
	flex: 1 1 auto;
}

/* Button */
.scw-card-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--scw-primary);
	text-decoration: none;
	margin-top: auto;
	align-self: flex-start;
	cursor: pointer;
	background: transparent;
	border: none;
}

.scw-card-button-arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 300ms ease;
}

.scw-card-button-arrow svg {
	width: 16px;
	height: 16px;
}

.scw-card:hover .scw-card-button-arrow {
	transform: translateX(6px);
}

/* Navigation arrows */
.scw-nav-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background-color: #FFFFFF;
	color: #1A1A1A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
	z-index: 2;
}

.scw-nav-arrow:hover {
	background-color: var(--scw-primary);
	color: #fff;
}

.scw-nav-arrow svg {
	width: 18px;
	height: 18px;
}

.scw-nav-prev {
	left: -22px;
}

.scw-nav-next {
	right: -22px;
}

.scw-nav-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Pagination dots */
.scw-pagination.swiper-pagination {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.scw-pagination .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: #E0C4C4;
	opacity: 1;
	margin: 0;
	transition: background-color 300ms ease, transform 300ms ease;
}

.scw-pagination .swiper-pagination-bullet-active {
	background-color: var(--scw-primary);
	transform: scale(1.25);
}

/* Responsive tweaks */
@media (max-width: 1024px) {
	.scw-nav-prev {
		left: 4px;
	}

	.scw-nav-next {
		right: 4px;
	}
}

@media (max-width: 767px) {
	.scw-nav-arrow {
		width: 40px;
		height: 40px;
	}

	.scw-card-image {
		height: 220px;
	}

	.scw-card-body {
		padding: 22px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.scw-card,
	.scw-card-image img,
	.scw-card-button-arrow,
	.scw-nav-arrow {
		transition: none !important;
	}
}
