/* Projects Showcase Widget — base styling
   Everything here can be overridden from Elementor's Style tab
   (those controls write inline CSS vars/selectors with higher specificity),
   or by adding your own CSS in Elementor's "Custom CSS" panel on this widget. */

.psw-wrapper,
.psw-wrapper *,
.psw-wrapper *::before,
.psw-wrapper *::after {
	box-sizing: border-box;
}

.psw-wrapper {
	position: relative;
	font-family: inherit;
}

.psw-wrapper img {
	max-width: none; /* stop themes from shrinking the absolutely-positioned card image */
}

.psw-wrapper button {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.psw-wrapper a.psw-card {
	color: inherit;
}

/* ---------- Top navy panel ---------- */
.psw-top {
	background-color: #0d1b4c;
	padding: 70px 40px 130px;
	border-radius: 6px 6px 0 0;
}

.psw-top-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.psw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ff5a1f;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.psw-dot {
	font-size: 20px;
	line-height: 0;
}

.psw-heading {
	margin: 0;
	color: #ffffff;
	font-size: 48px;
	line-height: 1.15;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.psw-heading-line {
	display: block;
}

.psw-heading .psw-highlight {
	color: #ff5a1f;
}

/* ---------- Nav arrows ---------- */
.psw-nav {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
}

.psw-nav-btn {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.psw-nav-btn svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: none;
	stroke: currentColor;
}

.psw-nav-btn i {
	font-size: 18px;
	line-height: 1;
}

.psw-nav-btn:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

.psw-nav-prev {
	background-color: #8892b0;
}

.psw-nav-next {
	background-color: #ff5a1f;
}

.psw-nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

/* ---------- Cards track ---------- */
.psw-track-outer {
	margin-top: -90px;
	padding: 0 40px 40px;
}

.psw-track {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: none;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	touch-action: pan-y;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
}

.psw-track.psw-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.psw-track.psw-dragging .psw-card {
	pointer-events: none; /* stop hover/link firing mid-drag */
}

.psw-track::-webkit-scrollbar {
	display: none;
}

.psw-card {
	position: relative;
	z-index: 1;
	flex: 0 0 calc((100% - (var(--psw-gap, 24px) * (var(--psw-cards, 3) - 1))) / var(--psw-cards, 3));
	min-width: 0;
	height: 560px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	scroll-snap-align: none;
	background-color: #1a2456;
	isolation: isolate; /* creates a fresh stacking context so theme z-index rules can't push our text behind the image */
}

.psw-card-img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	-webkit-user-drag: none;
	user-select: none;
}

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

.psw-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, #0d1b4c 0%, rgba(13, 27, 76, 0.15) 55%, rgba(13, 27, 76, 0) 100%);
	pointer-events: none;
}

.psw-card-content {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ---------- View Project hover button ---------- */
.psw-card-view-btn {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 50%;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background-color: #ff5a1f;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	transform: translate(-50%, -50%) scale(0.7);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.psw-card:hover .psw-card-view-btn {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.psw-view-icon {
	font-size: 18px;
	line-height: 1;
}

.psw-view-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.psw-view-text {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.3;
	max-width: 80px;
}

.psw-card-title {
	margin: 0;
	color: #ffffff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
}

.psw-card-tag {
	display: inline-flex;
	align-self: flex-start;
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	backdrop-filter: blur(2px);
}

/* ---------- Progress bar ---------- */
.psw-progress-outer {
	max-width: 1400px;
	margin: 0 auto;
	padding: 28px 40px 0;
}

.psw-progress-track {
	position: relative;
	width: 100%;
	height: 4px;
	border-radius: 999px;
	background-color: #f3e2da;
	overflow: hidden;
}

.psw-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background-color: #ff5a1f;
	transition: width 0.18s linear;
	will-change: width;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.psw-card {
		flex: 0 0 calc((100% - 24px) / 2);
	}
	.psw-heading {
		font-size: 38px;
	}
}

@media (max-width: 680px) {
	.psw-top {
		padding: 50px 20px 110px;
	}
	.psw-track-outer {
		padding: 0 20px 30px;
		margin-top: -70px;
	}
	.psw-progress-outer {
		padding: 20px 20px 0;
	}
	.psw-card {
		flex: 0 0 85%;
		height: 460px;
	}
	.psw-heading {
		font-size: 30px;
	}
	.psw-card-title {
		font-size: 24px;
	}
	.psw-card-view-btn {
		width: 88px;
		height: 88px;
	}
}


/* ---------- Slider reliability fixes ---------- */
.psw-track:focus { outline: none; }
.psw-track.is-scrollable { cursor: grab; }
.psw-track:not(.is-scrollable) { cursor: default; }
.psw-wrapper .psw-progress-track[aria-hidden="true"] { display: none; }

@media (max-width: 1024px) {
	.psw-track {
		gap: var(--psw-gap, 24px);
	}
}

/* v1.2 force reliability overrides */
.psw-wrapper .psw-nav{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:99999!important}
.psw-wrapper .psw-nav-btn{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:100000!important;min-width:52px!important;min-height:52px!important}
.psw-wrapper .psw-nav-btn span{font-size:24px!important;font-weight:700!important;line-height:1!important}
.psw-wrapper .psw-card{position:relative!important}
.psw-wrapper .psw-card-link{position:absolute!important;inset:0!important;z-index:8!important;display:block!important;text-decoration:none!important}
.psw-wrapper .psw-card-view-btn{pointer-events:auto!important;z-index:9!important}
.psw-wrapper .psw-card:hover .psw-card-view-btn{opacity:1!important;transform:translate(-50%,-50%) scale(1)!important}
.psw-wrapper .psw-progress-outer{display:block!important;visibility:visible!important;opacity:1!important}
.psw-wrapper .psw-progress-track{display:block!important;visibility:visible!important;width:100%!important;min-width:20px!important}
.psw-wrapper .psw-progress-fill{display:block!important;visibility:visible!important;width:0%;min-width:0;height:100%!important;transition:width .08s linear!important}

/* v1.3 infinite carousel fixes */
.psw-card-link{position:absolute!important;inset:0!important;z-index:5!important;display:block!important;text-decoration:none!important;cursor:pointer!important;}
.psw-card-link .psw-card-view-btn{pointer-events:none!important;}
.psw-track .psw-clone{user-select:none;}

/* v1.5 Roofio-style project motion */
.psw-wrapper .psw-track{scroll-behavior:auto;}
.psw-wrapper .psw-card{transition:transform .35s ease,filter .35s ease;}
.psw-wrapper .psw-card:hover{transform:translateY(-4px);}
.psw-wrapper .psw-card-link{z-index:12!important;}
.psw-wrapper .psw-card-view-btn{z-index:13!important;}
.psw-wrapper .psw-track-outer{overflow:hidden;}


/* v1.5.1 — finite horizontal scrolling
 * Cards are never cloned. The final card is the true end of the track.
 * Vertical scrolling is intentionally allowed to continue into following sections.
 */
.psw-wrapper .psw-track {
    overscroll-behavior-x: contain;
}
.psw-wrapper .psw-nav-btn:disabled {
    pointer-events: none;
}
