/**
 * Services Grid — Elementor Widget Styles
 * File: assets/css/widget.css
 */

/* -------------------------------------------------
 * Section wrapper
 * ------------------------------------------------- */
.sgw-section {
	background-color: #ffffff;
	width: 100%;
	box-sizing: border-box;
}

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

/* -------------------------------------------------
 * Grid
 * ------------------------------------------------- */
.sgw-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	column-gap: 4px;
	row-gap: 4px;
	width: 100%;
}

/* -------------------------------------------------
 * Card
 * ------------------------------------------------- */
.sgw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	will-change: transform;
}

.sgw-card:focus-visible {
	outline: 2px solid #0f6cbd;
	outline-offset: 3px;
}

/* -------------------------------------------------
 * Image
 * ------------------------------------------------- */
.sgw-card-image {
	display: block;
	width: 100%;
	height: 400px;
	overflow: hidden;
	background-color: #eeeeee;
}

.sgw-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
	transform: scale( 1 );
}

.sgw-card:hover .sgw-card-img,
.sgw-card:focus-within .sgw-card-img {
	transform: scale( 1.08 );
}

/* -------------------------------------------------
 * Bottom bar
 * ------------------------------------------------- */
.sgw-card-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	background-color: #f5f5f5;
	transition: background-color 0.3s ease;
}

.sgw-card:hover .sgw-card-bar,
.sgw-card:focus-within .sgw-card-bar {
	background-color: #0f6cbd;
}

/* -------------------------------------------------
 * Title
 * ------------------------------------------------- */
.sgw-card-title {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #222222;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.sgw-card:hover .sgw-card-title,
.sgw-card:focus-within .sgw-card-title {
	color: #ffffff;
}

/* -------------------------------------------------
 * Arrow
 * ------------------------------------------------- */
.sgw-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	transition: transform 0.3s ease;
}

.sgw-card-arrow i {
	font-size: 18px;
	color: #0f6cbd;
	transition: color 0.3s ease;
}

.sgw-card-arrow svg {
	width: 18px;
	height: 18px;
	fill: #0f6cbd;
	transition: fill 0.3s ease;
}

.sgw-card:hover .sgw-card-arrow,
.sgw-card:focus-within .sgw-card-arrow {
	transform: translateX( 6px );
}

.sgw-card:hover .sgw-card-arrow i,
.sgw-card:focus-within .sgw-card-arrow i {
	color: #ffffff;
}

.sgw-card:hover .sgw-card-arrow svg,
.sgw-card:focus-within .sgw-card-arrow svg {
	fill: #ffffff;
}

/* -------------------------------------------------
 * Hover lift
 * ------------------------------------------------- */
.sgw-card:hover,
.sgw-card:focus-within {
	transform: translateY( -6px );
}

/* -------------------------------------------------
 * Reduced motion support
 * ------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	.sgw-card,
	.sgw-card-img,
	.sgw-card-bar,
	.sgw-card-title,
	.sgw-card-arrow,
	.sgw-card-arrow i,
	.sgw-card-arrow svg {
		transition: none !important;
		transform: none !important;
	}
}

/* -------------------------------------------------
 * Responsive breakpoints
 * (aligned with Elementor's default tablet / mobile widths)
 * ------------------------------------------------- */
@media ( max-width: 1024px ) {
	.sgw-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 767px ) {
	.sgw-grid {
		grid-template-columns: 1fr;
	}

	.sgw-card-image {
		height: 260px;
	}
}
