/* Shrisha Completed Projects — structural CSS only.
   Colors, fonts, spacing values are injected by Elementor from the widget controls;
   this file only handles layout mechanics + sensible fallbacks + hover motion. */

.scp-section {
	width: 100%;
	box-sizing: border-box;
}

.scp-inner {
	width: 100%;
	margin: 0 auto;
}

.scp-header {
	margin-bottom: 40px;
}

.scp-eyebrow {
	display: block;
	margin-bottom: 8px;
}

.scp-title {
	margin: 0 0 16px 0;
	line-height: 1.2;
}

/* display: inline-flex makes this an inline-level box, so it follows the
   text-align set on .scp-header (left/center/right) automatically —
   no need to detect the alignment value separately here. */
.scp-divider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 1px;
	background-color: currentColor;
	opacity: 0.5;
	width: 140px;
	margin-bottom: 20px;
	position: relative;
}

.scp-divider span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: 1;
}

.scp-description {
	line-height: 1.7;
}

.scp-description p {
	margin: 0 0 0.5em 0;
}

.scp-description p:last-child {
	margin-bottom: 0;
}

/* Grid */
.scp-grid {
	--scp-columns: 4;
	--scp-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--scp-columns), 1fr);
	gap: var(--scp-gap);
	width: 100%;
	box-sizing: border-box;
}

.scp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scp-card:hover {
	transform: translateY(-4px);
}

.scp-card-image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	flex-shrink: 0;
}

.scp-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.scp-eye-icon {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	text-decoration: none;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.25s ease;
}

.scp-eye-icon:hover {
	transform: scale(1.1);
}

.scp-card-body {
	box-sizing: border-box;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.scp-project-title {
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.scp-meta-location {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.scp-meta-divider {
	width: 100%;
	height: 1px;
	margin-bottom: 14px;
}

.scp-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.scp-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.scp-meta-icon {
	display: inline-flex;
	align-items: center;
	font-size: 0.95em;
	flex-shrink: 0;
}

.scp-meta-icon svg,
.scp-eye-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.scp-meta-text {
	line-height: 1.4;
}

/* CTA */
.scp-cta-wrap {
	display: flex;
	width: 100%;
	margin-top: 44px;
}

.scp-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
	white-space: nowrap;
}

.scp-cta-button:hover {
	transform: translateY(-2px);
}

.scp-cta-icon {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s ease;
}

.scp-cta-button:hover .scp-cta-icon {
	transform: translateX(4px);
}

.scp-cta-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Column counts per breakpoint are controlled entirely by Elementor's
   responsive "Columns" control (see register_controls()) — no hardcoded
   column overrides here, so there's only one system setting --scp-columns. */
@media (max-width: 600px) {
	.scp-cta-wrap {
		justify-content: center !important;
	}

	.scp-meta-row {
		gap: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scp-card,
	.scp-card-image,
	.scp-eye-icon,
	.scp-cta-button,
	.scp-cta-icon {
		transition: none !important;
	}

	.scp-card:hover {
		transform: none;
	}

	.scp-card:hover .scp-card-image {
		transform: none;
	}

	.scp-cta-button:hover {
		transform: none;
	}

	.scp-cta-button:hover .scp-cta-icon {
		transform: none;
	}
}
