/**
 * Steps block — see init.php's top comment for the Figma source (node
 * 2001:7075 @1920) and why this is a Swiper slider. Swiper's own core
 * layout/transition CSS comes from js/vendor/swiper/swiper-bundle.min.css
 * (enqueued by block.php) — everything below is purely this block's own
 * visual skin on top of Swiper's structural classes (.swiper,
 * .swiper-wrapper, .swiper-slide).
 *
 * @package intobi
 */

.steps__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	padding-top: var(--io-section-py);
	padding-bottom: var(--io-section-py);
}

@media (min-width: 1024px) {
	.steps__container {
		gap: var(--io-section-py);
	}
}

.steps--slider {
	overflow: hidden;
}
.steps--slider .steps__swiper {
	overflow: visible;
}

.steps__texts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	max-width: 480px;
	width: 100%;
}

/* .steps__heading — font-size now comes from the base h2 cascade (css/base.css) */

.steps__subtext {
	font-size: 16px;
}

/* ---------------------------------------------------------------
   Swiper — full-bleed viewport (overflow: hidden comes from
   swiper-bundle's own .swiper class); slides are a fixed width so
   several sit side by side and the next one peeks in at the edge,
   matching Figma's own layout instead of stretching to fill the row.
------------------------------------------------------------------ */

.steps__swiper {
	width: 100%;
}

.steps__slide {
	max-width: 320px;
	height: auto;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

@media (min-width: 768px) {
	.steps__slide {
		max-width: 360px;
	}
}

@media (min-width: 1024px) {
	.steps__slide {
		max-width: 480px;
	}
}

.steps__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

.steps__step-name {
	font-family: var(--io-font-heading);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.25;
	color: var(--io-highlight);
}

.steps__step-number {
	font-family: var(--io-font-body);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	color: var(--io-body);
}

.steps__divider {
	width: 100%;
	height: 1px;
	background: var(--io-gradient-highlight);
	margin: 40px 0;
}
.steps__slide .steps__divider {
	margin: 0;
}

.steps__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.steps__tag {
	display: inline-flex;
	align-items: center;
	padding: 8px;
	border-radius: 16px;
	background: rgba(199, 181, 242, 0.25);
	color: var(--io-primary-dark);
	font-family: var(--io-font-body);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.125;
	margin-right: -32px;
}

.steps__step-text {
	font-family: var(--io-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: var(--io-body);
	margin: 0;
}

/* ---------------------------------------------------------------
   Nav — two circular purple prev/next buttons, same visual family as
   cases_block's slider buttons.
------------------------------------------------------------------ */

.steps__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* .steps__nav-btn — visuals now come from the shared .io-icon-btn class
   (css/base.css) added alongside it in block.php; kept here only as the
   JS hook for the --prev/--next/--disabled modifiers (see block.js). */

.steps__nav-btn--disabled {
	background: #e2e6ec;
	color: var(--io-muted);
	cursor: not-allowed;
	pointer-events: none;
}
/* The arrow icon file (images/arrow-left.svg etc.) is a hardcoded
   white stroke, not currentColor, so `color` above doesn't reach it —
   Figma's "Primary/Inactive" (node 2001:2286) wants grey-on-grey, not
   white-on-grey. Was commented out; filling it in now that the value
   is confirmed against that node rather than guessed. */
.steps__nav-btn--disabled svg path {
	stroke: var(--io-muted);
}

/* ---------------------------------------------------------------
   Stacked layout — plain vertical divided list, no Swiper. See
   init.php's top comment ("layout" field) and block.php's markup
   (.steps__list/.steps__row). Left-edge divider + right-hand text
   column, matching Figma's "Step" component (node 2001:2048, Service
   Page "Why Intobi" section) exactly.
------------------------------------------------------------------ */

.steps__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.steps__row {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

/* 10.09, per Oleksandr: was a 1px var(--io-border) hairline — Figma's
   own "Step" component (node 2001:2048/2049, confirmed against the
   real instance node 2001:9709 @1920) uses a 3px var(--io-highlight)
   accent bar instead, same blue as .steps__step-name's own title. */
.steps__row-divider {
	flex-shrink: 0;
	width: 1px;
	align-self: stretch;
	background: var(--io-gradient-highlight-vertical);
}

.steps__row-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	flex: 1 1 0%;
	min-width: 0;
	padding: 0 32px 32px;
}

.steps__row-upper {
	display: flex;
	align-items: center;
	gap: 16px;
}

.steps__step-number--inline {
	white-space: nowrap;
}
