/**
 * Service Showcase Widget — Frontend Styles
 * Unlimited alternating image/content rows with feature checklists.
 * Uses Montserrat throughout (loaded as a separate style dependency).
 */

.ssw-service-showcase {
	--ssw-accent: #D60000;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
}

.ssw-service-showcase *,
.ssw-service-showcase *::before,
.ssw-service-showcase *::after {
	box-sizing: border-box;
}

.ssw-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */

.ssw-header {
	width: 100%;
	text-align: center;
}

.ssw-heading {
	margin: 0 0 16px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 45px;
	color: #000000;
	line-height: 1.25;
}

.ssw-subtitle {
	margin: 0 0 48px;
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: #555555;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------------
 * Rows
 * ---------------------------------------------------------------- */

.ssw-rows {
	display: flex;
	flex-direction: column;
}

.ssw-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.ssw-row + .ssw-row {
	margin-top: 100px;
}

/* Default order: image left, content right. */
.ssw-image-col {
	grid-column: 1;
	grid-row: 1;
}

.ssw-content-col {
	grid-column: 2;
	grid-row: 1;
}

/* Alternate rows: content left, image right. */
.ssw-row-reverse .ssw-image-col {
	grid-column: 2;
}

.ssw-row-reverse .ssw-content-col {
	grid-column: 1;
}

/* ------------------------------------------------------------------
 * Image
 * ---------------------------------------------------------------- */

.ssw-image-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.1);
	background-color: #EAEAEA;
	transition-property: box-shadow;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.ssw-image-card:hover {
	box-shadow: 0 22px 48px rgba(17, 17, 17, 0.18);
}

.ssw-image-wrap {
	position: relative;
	width: 100%;
	height: 460px;
	overflow: hidden;
}

.ssw-image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition-property: transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.ssw-image-card:hover img {
	transform: scale(1.05);
}

/* ------------------------------------------------------------------
 * Content
 * ---------------------------------------------------------------- */

.ssw-content {
	text-align: left;
}

.ssw-content > * {
	margin-bottom: 20px;
}

.ssw-content > *:last-child {
	margin-bottom: 0;
}

.ssw-title {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 36px;
	color: #1A1A1A;
	line-height: 1.3;
}

.ssw-description {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.8;
	color: #555555;
}

/* ------------------------------------------------------------------
 * Feature list
 * ---------------------------------------------------------------- */

.ssw-features-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ssw-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ssw-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	margin-top: 3px;
}

.ssw-feature-icon i {
	font-size: 18px;
	color: var(--ssw-accent);
}

.ssw-feature-icon svg {
	width: 18px;
	height: 18px;
	fill: var(--ssw-accent);
}

.ssw-feature-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 17px;
	color: #444444;
	line-height: 1.6;
}

/* ------------------------------------------------------------------
 * Button
 * ---------------------------------------------------------------- */

.ssw-button {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #FFFFFF;
	background-color: var(--ssw-accent);
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	text-align: center;
	transition-property: background-color, color;
	transition-duration: 300ms;
	transition-timing-function: ease;
	margin-top: 12px;
}

.ssw-button:hover,
.ssw-button:focus-visible {
	background-color: #1A1A1A;
	color: #FFFFFF;
}

.ssw-button:focus-visible {
	outline: 2px solid var(--ssw-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Responsive: Tablet & Mobile — stack image then content
 * ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ssw-row,
	.ssw-row-reverse {
		grid-template-columns: 1fr;
	}

	.ssw-row .ssw-image-col,
	.ssw-row-reverse .ssw-image-col {
		grid-column: 1;
		grid-row: 1;
	}

	.ssw-row .ssw-content-col,
	.ssw-row-reverse .ssw-content-col {
		grid-column: 1;
		grid-row: 2;
	}

	.ssw-image-wrap {
		height: 360px;
	}

	.ssw-title {
		font-size: 28px;
	}
}

@media (max-width: 640px) {
	.ssw-heading {
		font-size: 30px;
	}

	.ssw-title {
		font-size: 24px;
	}

	.ssw-image-wrap {
		height: 260px;
	}

	.ssw-row + .ssw-row {
		margin-top: 56px;
	}

	.ssw-row {
		gap: 24px;
	}
}

/* ------------------------------------------------------------------
 * Reveal-on-scroll animation hooks (progressive enhancement via JS)
 * ---------------------------------------------------------------- */

.ssw-row.ssw-in-view {
	animation: ssw-fade-up 600ms ease both;
}

@keyframes ssw-fade-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssw-image-card,
	.ssw-image-wrap img,
	.ssw-button {
		transition: none !important;
	}

	.ssw-row.ssw-in-view {
		animation: none !important;
	}
}
