/* Zenit Service Cards - Animated */

.zpsc-wrapper *,
.zpsc-wrapper *::before,
.zpsc-wrapper *::after { box-sizing: border-box !important; }

.zpsc-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.zpsc-grid {
	display: grid;
	gap: 32px;
	align-items: stretch;
}

.zpsc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.zpsc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.zpsc-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── CARD ──────────────────────────────────────────────── */

.zpsc-card {
	padding: 48px 36px 44px;
	background: #ffffff;
	border-radius: 8px;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zpsc-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(197, 225, 122, 0.03) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	border-radius: inherit;
}

.zpsc-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.zpsc-card:hover::before {
	opacity: 1;
}

/* ── ACCENT LINE ───────────────────────────────────────── */

.zpsc-accent {
	width: 60px;
	height: 4px;
	border-radius: 2px;
	margin-bottom: 28px;
	flex-shrink: 0;
	position: relative;
	transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s ease;
}

.zpsc-card:hover .zpsc-accent {
	width: 80px;
	box-shadow: 0 0 12px rgba(197, 225, 122, 0.5);
}

/* ── NUMBER ────────────────────────────────────────────── */

.zpsc-num {
	font-size: 13px;
	font-weight: 600;
	color: #999999;
	margin-bottom: 16px;
	letter-spacing: 1px;
	flex-shrink: 0;
	transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.zpsc-card:hover .zpsc-num {
	letter-spacing: 3px;
	color: #777777;
}

/* ── TITLE ─────────────────────────────────────────────── */

.zpsc-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px !important;
	line-height: 1.3 !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.zpsc-card:hover .zpsc-title {
	transform: translateX(4px);
}

/* ── DESCRIPTION ───────────────────────────────────────── */

.zpsc-desc {
	font-size: 15px;
	color: #555555;
	line-height: 1.75 !important;
	margin: 0 !important;
	flex: 1;
}

/* ── BUTTON ────────────────────────────────────────────── */

.zpsc-btn-wrap {
	text-align: center;
	margin-top: 40px;
}

.zpsc-cta {
	display: inline-block;
	position: relative;
	background-color: #1a1a1a;
	color: #ffffff;
	padding: 16px 36px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	line-height: 1.4 !important;
	overflow: hidden;
	z-index: 1;
}

.zpsc-cta::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transition: left 0.5s ease;
	z-index: -1;
}

.zpsc-cta:hover::before {
	left: 100%;
}

.zpsc-cta:hover {
	background-color: #333333;
	transform: translateY(-2px);
	color: #ffffff !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── SCROLL ANIMATIONS ─────────────────────────────────── */

.zpsc-card {
	opacity: 0;
	transform: translateY(40px);
}

.zpsc-card.zpsc-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zpsc-btn-wrap {
	opacity: 0;
	transform: translateY(20px);
}

.zpsc-btn-wrap.zpsc-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Accent line grow animation */
.zpsc-accent {
	transform: scaleX(0);
	transform-origin: left center;
}

.zpsc-card.zpsc-visible .zpsc-accent {
	transform: scaleX(1);
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
	            width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s ease;
}

/* Number fade */
.zpsc-num {
	opacity: 0;
	transform: translateX(-10px);
}

.zpsc-card.zpsc-visible .zpsc-num {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.5s ease 0.35s,
	            transform 0.5s ease 0.35s,
	            letter-spacing 0.3s ease,
	            color 0.3s ease;
}

/* Title slide */
.zpsc-title {
	opacity: 0;
	transform: translateX(-15px);
}

.zpsc-card.zpsc-visible .zpsc-title {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.5s ease 0.4s,
	            transform 0.5s ease 0.4s;
}

.zpsc-card.zpsc-visible .zpsc-title:hover,
.zpsc-card:hover .zpsc-title.zpsc-visible {
	transform: translateX(4px);
}

/* Description fade */
.zpsc-desc {
	opacity: 0;
	transform: translateY(10px);
}

.zpsc-card.zpsc-visible .zpsc-desc {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.5s ease 0.5s,
	            transform 0.5s ease 0.5s;
}

/* Stagger delays for cards */
.zpsc-card:nth-child(1).zpsc-visible { transition-delay: 0s; }
.zpsc-card:nth-child(2).zpsc-visible { transition-delay: 0.15s; }
.zpsc-card:nth-child(3).zpsc-visible { transition-delay: 0.3s; }
.zpsc-card:nth-child(4).zpsc-visible { transition-delay: 0.45s; }

/* Elementor editor - always visible */
.elementor-editor-active .zpsc-card,
.elementor-editor-active .zpsc-btn-wrap,
.elementor-editor-active .zpsc-accent,
.elementor-editor-active .zpsc-num,
.elementor-editor-active .zpsc-title,
.elementor-editor-active .zpsc-desc {
	opacity: 1 !important;
	transform: none !important;
}

/* ── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 900px) {
	.zpsc-grid--3,
	.zpsc-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.zpsc-card { padding: 36px 28px; min-height: 260px; }
}

@media (max-width: 600px) {
	.zpsc-grid--2,
	.zpsc-grid--3,
	.zpsc-grid--4 { grid-template-columns: 1fr; }
	.zpsc-card { padding: 28px 22px; min-height: auto; }
}
