/**
 * ZeltaCode Service Tabs — front-end styles.
 *
 * Everything here is a sensible default; Elementor's generated CSS overrides it
 * because widget selectors are more specific ( .elementor-element-xxxx .zcst ).
 */

/* ------------------------------------------------------------------ */
/* Shell                                                               */
/* ------------------------------------------------------------------ */

.zcst {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	background: #000;
}

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

/* ------------------------------------------------------------------ */
/* Left column — tab list                                              */
/* ------------------------------------------------------------------ */

.zcst__tabs {
	display: flex;
	flex-direction: column;
	flex: 0 0 28%;
	max-width: 28%;
	min-width: 0;
}

.zcst__tab {
	position: relative;
	display: block;
	padding: 26px 28px 28px;
	background: #0a0a0c;
	border-top: 0 solid #1e2126;
	cursor: pointer;
	outline: none;
	transition-property: background-color, background-image, color;
	transition-duration: 0.3s;
	transition-timing-function: ease;
	-webkit-tap-highlight-color: transparent;
}

.zcst__tab:first-child {
	border-top-width: 0 !important;
}

.zcst__tab.is-active {
	background: #101216;
}

/* Active marker */
.zcst__tab::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: #5e9eff;
	opacity: 0;
	transform: scaleY(0.35);
	transform-origin: center;
	transition-property: opacity, transform;
	transition-duration: 0.3s;
	transition-timing-function: ease;
	pointer-events: none;
}

.zcst__tab.is-active::before {
	opacity: 1;
	transform: scaleY(1);
}

.zcst-marker-right .zcst__tab::before {
	left: auto;
	right: 0;
}

.zcst-marker-none .zcst__tab::before {
	display: none;
}

.zcst__tab:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(94, 158, 255, 0.65);
}

/* Text blocks */
.zcst__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #8a8a8a;
	transition: color 0.3s ease;
}

.zcst__tab.is-active .zcst__eyebrow {
	color: #5e9eff;
}

.zcst .zcst__title {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.4px;
	color: #ededed;
	transition: color 0.3s ease;
}

.zcst__tab.is-active .zcst__title {
	color: #fff;
}

.zcst .zcst__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #8a90a0;
	transition: color 0.3s ease;
}

/* Button */
.zcst__btn-wrap {
	margin-top: 18px;
}

.zcst--btn-active-only .zcst__tab:not(.is-active) .zcst__btn-wrap {
	display: none;
}

.zcst .zcst__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 2px;
	background: #fff;
	color: #0a0a0c;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 0 solid transparent;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.zcst .zcst__btn:hover,
.zcst .zcst__btn:focus {
	background: #5e9eff;
	color: #fff;
	text-decoration: none;
}

.zcst__btn-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	transition: transform 0.25s ease;
}

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

.zcst .zcst__btn:hover .zcst__btn-icon {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------ */
/* Right column — panels                                               */
/* ------------------------------------------------------------------ */

/**
 * The panel column carries no intrinsic height: every panel is absolutely
 * positioned, so the flex row is sized by the tab column and .zcst__panels
 * simply stretches to match it. "Custom Height" and "Fit Content" opt out
 * of that further down.
 */
.zcst__panels {
	position: relative;
	align-self: stretch;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.zcst-panel {
	--zcst-anim: 0.45s;
	position: absolute;
	inset: 0;
	display: block;
}

.zcst-panel[hidden] {
	display: none;
}

.zcst-panel.is-active {
	z-index: 1;
}

.zcst-panel__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, #10123a 0%, #3b1a7a 45%, #8b3ff0 100%);
	pointer-events: none;
}

.zcst-panel__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	padding: 0;
}

/* Content layer — fills the panel edge to edge. */
.zcst-panel__body {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.zcst-panel__body > * {
	max-width: 100%;
}

.zcst-panel__media {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Overlay layer — floats above the image instead of pushing it down. */
.zcst-panel__top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 22px 0;
	pointer-events: none;
}

.zcst-panel__logo,
.zcst-panel__badge {
	pointer-events: auto;
}

.zcst-panel__logo {
	display: block;
	width: 130px;
	height: auto;
	max-width: 45%;
}

.zcst-panel__logo-spacer {
	display: block;
}

.zcst-panel__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 6px 11px;
	border-radius: 3px;
	background: #fff;
	color: #0a0a0c;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.zcst-panel__badge-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	color: #2f6bff;
}

.zcst-panel__badge-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ------------------------------------------------------------------ */
/* Panel height modes                                                  */
/* ------------------------------------------------------------------ */

/* Custom Height — the column is given an explicit height by the control. */
.zcst-height-custom .zcst__panels {
	align-self: auto;
}

/* Fit Content — the active panel grows with whatever is inside it. */
.zcst-height-auto .zcst__panels {
	align-self: auto;
}

.zcst-height-auto .zcst-panel.is-active {
	position: relative;
}

.zcst-height-auto .zcst-panel__inner {
	height: auto;
}

.zcst-height-auto .zcst-panel__body {
	position: static;
}

.zcst-height-auto .zcst-panel__media {
	height: auto;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Panel switch animations                                             */
/* ------------------------------------------------------------------ */

.zcst-anim-fade .zcst-panel.is-active .zcst-panel__inner,
.zcst-anim-fade .zcst-panel.is-active .zcst-panel__bg {
	animation: zcst-fade var(--zcst-anim) ease both;
}

.zcst-anim-fade-up .zcst-panel.is-active .zcst-panel__inner {
	animation: zcst-fade-up var(--zcst-anim) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.zcst-anim-fade-up .zcst-panel.is-active .zcst-panel__bg {
	animation: zcst-fade var(--zcst-anim) ease both;
}

.zcst-anim-fade-side .zcst-panel.is-active .zcst-panel__inner {
	animation: zcst-fade-side var(--zcst-anim) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.zcst-anim-fade-side .zcst-panel.is-active .zcst-panel__bg {
	animation: zcst-fade var(--zcst-anim) ease both;
}

.zcst-anim-zoom .zcst-panel.is-active .zcst-panel__inner,
.zcst-anim-zoom .zcst-panel.is-active .zcst-panel__bg {
	animation: zcst-zoom var(--zcst-anim) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes zcst-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes zcst-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes zcst-fade-side {
	from {
		opacity: 0;
		transform: translateX(28px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes zcst-zoom {
	from {
		opacity: 0;
		transform: scale(0.965);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zcst-panel.is-active .zcst-panel__inner,
	.zcst-panel.is-active .zcst-panel__bg {
		animation: none !important;
	}

	.zcst__tab,
	.zcst__tab::before,
	.zcst__btn,
	.zcst__btn-icon {
		transition: none !important;
	}
}

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

.zcst {
	--zcst-stack-height: 320px;
}

@media (max-width: 1024px) {
	.zcst-stack-tablet .zcst {
		flex-direction: column !important;
	}

	.zcst-stack-tablet .zcst__tabs {
		flex: 1 1 auto !important;
		max-width: 100% !important;
		width: 100%;
	}

	/* Stacked: nothing left to match, so fall back to an explicit height. */
	.zcst-stack-tablet .zcst__panels {
		width: 100%;
	}

	.zcst-stack-tablet.zcst-height-match .zcst__panels {
		height: var(--zcst-stack-height);
	}
}

@media (max-width: 767px) {
	.zcst-stack-mobile .zcst {
		flex-direction: column !important;
	}

	.zcst-stack-mobile .zcst__tabs {
		flex: 1 1 auto !important;
		max-width: 100% !important;
		width: 100%;
	}

	.zcst-stack-mobile .zcst__panels {
		width: 100%;
	}

	.zcst-stack-mobile.zcst-height-match .zcst__panels {
		height: var(--zcst-stack-height);
	}

	.zcst-panel__top {
		padding: 16px 16px 0;
	}

	.zcst-panel__logo {
		width: 100px;
	}
}
