/* ─── Ecto Services Tabs ─── */

.ecto-st-wrap {
	display: flex;
	flex-direction: row;
	gap: 8px;
	padding: 8px;
	background-color: #fafafa;
	border: 1px solid #f4f4f5;
	border-radius: 16px;
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
	overflow: hidden;
	box-sizing: border-box;
}

/* ── Sidebar ── */

.ecto-st-sidebar {
	flex-shrink: 0;
	width: 228px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
}

.ecto-st-tab {
	flex: 1 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	border-radius: 8px !important; /* !important beats theme button rules */
	border: 1px solid #f4f4f5;
	background-color: transparent !important;
	box-shadow: none;
	cursor: pointer;
	text-align: left;
	min-height: 0;
	width: 100%;
	position: relative;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ecto-st-tab:focus-visible {
	outline: 2px solid var(--ecto-st-accent, #2f6af7);
	outline-offset: 2px;
}

.ecto-st-wrap .ecto-st-tab:hover:not(.ecto-st-tab--active) {
	background-color: rgba(255, 255, 255, 0.7);
	border-color: #e4e4e7;
}

/* Two-class selector + !important ensures it beats any theme "button" rule */
.ecto-st-wrap .ecto-st-tab--active {
	background-color: #ffffff !important;
	border-color: #d4d4d8 !important;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Colored left-edge accent so the active tab is always unmistakable */
.ecto-st-wrap .ecto-st-tab--active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 22%;
	height: 56%;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background-color: var(--ecto-st-accent, #2f6af7);
	transition: background-color 0.25s ease;
}

.ecto-st-wrap--no-bar .ecto-st-tab--active::before {
	display: none;
}

.ecto-st-tab__logo {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ecto-st-tab__icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

.ecto-st-tab__label {
	font-family: 'Mulish', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: normal;
	color: #717179;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.ecto-st-tab--active .ecto-st-tab__label {
	color: #18181b;
}

.ecto-st-tab__dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	background-color: #51d39c;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ecto-st-tab--active .ecto-st-tab__dot {
	opacity: 1;
}

/* ── Panels container (CSS grid stacks all panels, only active is visible) ── */

.ecto-st-panels {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
}

/* ── Individual panel ── */

.ecto-st-panel {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: row;
	gap: 32px;
	padding: 32px;
	background-color: #fff;
	border: 1px solid #f4f4f5;
	border-radius: 12px;
	box-sizing: border-box;

	/* Transition states */
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0.35s;
	pointer-events: none;
	will-change: opacity, transform;
}

.ecto-st-panel--active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
	z-index: 1;
}

/* ── Panel: text column ── */

.ecto-st-panel__text {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 280px;
	flex-shrink: 0;
}

.ecto-st-panel__info {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ecto-st-panel__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ecto-st-panel__title-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ecto-st-panel__icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
}

.ecto-st-panel__title {
	font-family: 'Mulish', sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: normal;
	color: #18181b;
	margin: 0;
}

.ecto-st-panel__desc {
	font-size: 16px;
	line-height: 24px;
	color: #717179;
	margin: 0;
}

/* ── Features list ── */

.ecto-st-panel__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ecto-st-feature {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transform: translateX(-8px);
}

.ecto-st-panel--active .ecto-st-feature {
	animation: ecto-st-feature-in 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	animation-delay: var(--ecto-st-feature-delay, 0s);
}

@keyframes ecto-st-feature-in {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.ecto-st-feature__dot {
	width: 6px;
	height: 6px;
	border-radius: 99px;
	background-color: #51d39c;
	flex-shrink: 0;
}

.ecto-st-feature__text {
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	color: #717179;
}

/* ── CTA Button ── */

.ecto-st-panel__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 56px;
	padding: 10px 24px;
	border-radius: 999px;
	background-color: var(--ecto-st-accent, #2f6af7);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	white-space: nowrap;
	overflow: hidden;
	align-self: flex-start;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.ecto-st-panel--active .ecto-st-panel__cta {
	animation: ecto-st-cta-in 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
	opacity: 0;
	transform: translateY(6px);
}

@keyframes ecto-st-cta-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ecto-st-panel__cta:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
}

.ecto-st-panel__cta:active {
	filter: brightness(0.95);
	transform: translateY(0);
}

.ecto-st-panel__cta svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ecto-st-panel__cta:hover svg {
	transform: translateX(4px);
}

/* ── Illustration panel ── */

.ecto-st-panel__illus {
	flex: 1 1 auto;
	min-width: 200px;
	align-self: stretch;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	background-color: var(--ecto-st-accent, #2f6af7);
}

/* Subtle grid pattern */
.ecto-st-panel__illus-pattern {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	transform: rotate(-5deg) scale(1.2);
	pointer-events: none;
}

/* Radial gradient fade to edge */
.ecto-st-panel__illus-mask {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 30%, var(--ecto-st-illus-bg, rgba(0,0,0,0.45)) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Ambient glow blobs */
.ecto-st-panel__illus-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	mix-blend-mode: lighten;
	pointer-events: none;
}

.ecto-st-panel__illus-glow--1 {
	width: 160px;
	height: 160px;
	background-color: rgba(255, 255, 255, 0.25);
	top: -30px;
	right: -30px;
	opacity: 0.6;
	z-index: 1;
}

.ecto-st-panel__illus-glow--2 {
	width: 120px;
	height: 120px;
	background-color: rgba(255, 255, 255, 0.18);
	bottom: 10px;
	left: 10px;
	opacity: 0.5;
	z-index: 1;
}

.ecto-st-panel__illus-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 2;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecto-st-panel--active .ecto-st-panel__illus-img {
	animation: ecto-st-illus-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
	opacity: 0;
	transform: scale(1.04);
}

@keyframes ecto-st-illus-in {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ── Responsive: tablet ── */

@media (max-width: 900px) {
	.ecto-st-wrap {
		flex-direction: column;
	}

	.ecto-st-sidebar {
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 2px;
	}

	.ecto-st-sidebar::-webkit-scrollbar {
		display: none;
	}

	.ecto-st-tab {
		flex: 0 0 auto;
		padding: 10px 18px;
		gap: 6px;
		min-height: 52px;
	}

	.ecto-st-tab__dot {
		display: none;
	}

	.ecto-st-panel {
		gap: 24px;
		padding: 24px;
	}
}

/* ── Responsive: mobile ── */

@media (max-width: 640px) {
	.ecto-st-panel {
		flex-direction: column;
	}

	.ecto-st-panel__text {
		width: 100%;
	}

	.ecto-st-panel__illus {
		min-height: 220px;
		align-self: auto;
	}

	.ecto-st-tab__label {
		font-size: 15px;
	}

	.ecto-st-tab__icon {
		width: 24px;
		height: 24px;
	}
}

/* ── Elementor editor: show all panels side by side in editor context ── */

.elementor-editor-active .ecto-st-panels {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.elementor-editor-active .ecto-st-panel {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	pointer-events: auto !important;
	transition: none !important;
	position: static;
}

.elementor-editor-active .ecto-st-feature {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

.elementor-editor-active .ecto-st-panel__cta {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}
