/**
 * SH Portfolio Slider. Front end styles.
 *
 * Every rule is scoped under .shps-section so that the plugin cannot
 * collide with theme or page builder styles.
 */

.shps-section {
	--shps-section-bg: #f7f9fc;
	--shps-heading: #0b1b3d;
	--shps-subheading: #64748b;
	--shps-underline: #1d4ed8;
	--shps-underline-track: #dbe2ea;
	--shps-card-bg: #ffffff;
	--shps-title: #0f172a;
	--shps-text: #5b6b83;
	--shps-feature-text: #44526a;
	--shps-divider: #e6ebf2;
	--shps-accent: #2563eb;
	--shps-accent-soft: rgba(37, 99, 235, 0.12);
	--shps-dot: #cbd5e1;
	--shps-dot-active: #1d4ed8;
	--shps-card-radius: 16px;
	--shps-image-radius: 14px;
	--shps-image-height: 240px;
	--shps-container: 1600px;

	box-sizing: border-box;
	width: 100%;
	padding: 64px 20px 72px;
	background: var(--shps-section-bg);
	font-family: inherit;
}

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

.shps-inner {
	width: 100%;
	max-width: var(--shps-container);
	margin: 0 auto;
}

/* ---------------------------------------------------------------
   Heading block
   --------------------------------------------------------------- */

.shps-header {
	margin: 0 auto 44px;
	max-width: 760px;
	text-align: center;
}

.shps-section .shps-heading {
	margin: 0;
	padding: 0;
	color: var(--shps-heading);
	font-family: "Inter", Sans-serif;
	font-size: 36px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.shps-underline {
	display: block;
	width: 128px;
	height: 5px;
	margin: 18px auto 0;
	border-radius: 999px;
	background: var(--shps-underline-track);
	overflow: hidden;
}

.shps-underline-fill {
	display: block;
	width: 56%;
	height: 100%;
	border-radius: 999px;
	background: var(--shps-underline);
}

.shps-section .shps-subheading {
	margin: 20px 0 0;
	color: var(--shps-subheading);
	font-size: clamp(15px, 1.15vw, 18px);
	font-weight: 400;
	line-height: 1.6;
}

/* ---------------------------------------------------------------
   Category filter
   --------------------------------------------------------------- */

.shps-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 34px;
}

.shps-section .shps-filter-item {
	margin: 0;
	padding: 9px 20px;
	border: 1px solid var(--shps-divider);
	border-radius: 999px;
	background: var(--shps-card-bg);
	color: var(--shps-feature-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.shps-section .shps-filter-item:hover,
.shps-section .shps-filter-item:focus-visible {
	border-color: var(--shps-accent);
	color: var(--shps-accent);
}

.shps-section .shps-filter-item.is-active {
	border-color: var(--shps-accent);
	background: var(--shps-accent-soft);
	color: var(--shps-accent);
}

/* ---------------------------------------------------------------
   Stage and slider
   --------------------------------------------------------------- */

.shps-stage {
	position: relative;
}

.shps-slider {
	width: 100%;
	padding: 14px 0 34px;
	overflow: hidden;
}

.shps-slider.is-busy {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

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

/* ---------------------------------------------------------------
   Card
   --------------------------------------------------------------- */

.shps-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-radius: var(--shps-card-radius);
	background: var(--shps-card-bg);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.06);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shps-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 22px 46px rgba(15, 23, 42, 0.12);
}

.shps-section .shps-card-image {
	position: relative;
	margin: 0;
	padding: 0;
	height: var(--shps-image-height);
	border-radius: var(--shps-image-radius) var(--shps-image-radius) 0 0;
	background: #eef2f7;
	overflow: hidden;
}

.shps-section .shps-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	border-radius: inherit;
	transition: transform 0.6s ease;
}

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

.shps-card-image-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa8bd;
}

/* Header row. The icon tile overlaps the image edge. */

.shps-section .shps-card-head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: -18px;
	padding: 0 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: none;
}

.shps-card-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 14px;
	background: var(--shps-card-bg);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
	color: var(--shps-accent);
	overflow: hidden;
}

.shps-section .shps-card-icon img {
	display: block;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.shps-section .shps-card-title {
	flex: 1 1 auto;
	margin: 22px 0 0;
	padding: 0;
	color: var(--shps-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	word-break: break-word;
}

.shps-card-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	color: var(--shps-accent);
	transition: transform 0.3s ease;
}

.shps-card-linked:hover .shps-card-arrow {
	transform: translateX(4px);
}

.shps-section .shps-card-head:focus-visible {
	outline: 2px solid var(--shps-accent);
	outline-offset: 4px;
	border-radius: 8px;
}

/* Body */

.shps-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 22px 26px;
}

.shps-section .shps-card-description {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	color: var(--shps-text);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.7;
}

.shps-card-divider {
	display: block;
	height: 1px;
	margin: 22px 0 18px;
	background: var(--shps-divider);
}

.shps-section .shps-card-features {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shps-section .shps-card-feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shps-section .shps-card-feature + .shps-card-feature {
	margin-top: 13px;
}

.shps-feature-mark {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--shps-accent);
}

.shps-feature-text {
	color: var(--shps-feature-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.shps-section .shps-card-feature:last-child .shps-feature-text {
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Navigation and pagination
   --------------------------------------------------------------- */

.shps-navigation {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.shps-section .shps-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--shps-divider);
	border-radius: 50%;
	background: var(--shps-card-bg);
	color: var(--shps-accent);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.shps-section .shps-nav:hover {
	background: var(--shps-accent);
	color: #ffffff;
}

.shps-section .shps-nav:focus-visible {
	outline: 2px solid var(--shps-accent);
	outline-offset: 3px;
}

.shps-section .shps-nav[aria-disabled="true"],
.shps-section .shps-nav.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

.shps-nav-prev {
	left: -8px;
}

.shps-nav-next {
	right: -8px;
}

.shps-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 34px;
}

.shps-section .shps-pagination .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0;
	border-radius: 50%;
	background: var(--shps-dot);
	opacity: 1;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.shps-section .shps-pagination .swiper-pagination-bullet:hover {
	background: var(--shps-dot-active);
}

.shps-section .shps-pagination .swiper-pagination-bullet-active {
	background: var(--shps-dot-active);
	transform: scale(1.25);
}

/* Loading bar shown while the AJAX filter runs. */

.shps-loading {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	overflow: hidden;
	background: transparent;
}

.shps-loading-bar {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: 999px;
	background: var(--shps-accent);
	animation: shps-loading 1.1s ease-in-out infinite;
}

@keyframes shps-loading {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(300%);
	}
}

/* ---------------------------------------------------------------
   Empty state
   --------------------------------------------------------------- */

.shps-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 44px 28px;
	border: 1px dashed var(--shps-divider);
	border-radius: var(--shps-card-radius);
	background: var(--shps-card-bg);
	text-align: center;
}

.shps-section .shps-empty-title {
	margin: 0 0 8px;
	color: var(--shps-title);
	font-size: 17px;
	font-weight: 700;
}

.shps-section .shps-empty-text {
	margin: 0 0 18px;
	color: var(--shps-text);
	font-size: 14px;
}

.shps-section .shps-empty-link {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--shps-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1199px) {

	.shps-nav-prev {
		left: 0;
	}

	.shps-nav-next {
		right: 0;
	}
}

@media (max-width: 767px) {

	.shps-section {
		padding: 48px 16px 56px;
	}

	.shps-header {
		margin-bottom: 32px;
	}

	.shps-section .shps-heading {
		font-size: 26px;
	}

	.shps-card-icon {
		width: 60px;
		height: 60px;
	}

	.shps-section .shps-card-icon img {
		width: 34px;
		height: 34px;
	}

	.shps-navigation {
		display: none;
	}

	.shps-pagination {
		margin-top: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.shps-section *,
	.shps-section *::before,
	.shps-section *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
