/* TCB ACF Repeater Cards
 * Base layout only. Colours, spacing, typography and hover shadows are set by
 * the widget's Elementor controls so each client site can differ without a
 * plugin change. Anything hard-coded here is structural.
 */

.tcb-arc {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.tcb-arc__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	min-width: 0;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1),
	            box-shadow .3s cubic-bezier(.2, .7, .3, 1),
	            background-color .3s ease;
}

/* --- Stat -------------------------------------------------------------- */

.tcb-arc--stat .tcb-arc__item {
	justify-content: center;
	gap: 8px;
}

.tcb-arc__num {
	line-height: 1;
	white-space: nowrap;
}

.tcb-arc__lbl {
	line-height: 1.35;
}

/* --- Icon card --------------------------------------------------------- */

.tcb-arc__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	transition: background-color .3s ease, color .3s ease;
}

.tcb-arc__chip img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

/* --- Step card --------------------------------------------------------- */

/* The image runs edge to edge, so the card itself carries no padding and no
 * gap — the text block below the number circle supplies both. overflow:hidden
 * is what clips the image to the card's border radius. */
.tcb-arc--step-card .tcb-arc__item {
	padding: 0;
	gap: 0;
	overflow: hidden;
	justify-content: flex-start;
}

.tcb-arc__media {
	width: 100%;
	height: 170px;
	flex: none;
	overflow: hidden;
	background: #E9F1F5;
}

.tcb-arc__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* Sits astride the bottom edge of the image. The negative top margin is half
 * the circle size and is emitted by the Circle Size control, so the two can
 * never drift apart. */
.tcb-arc__step {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	position: relative;
	z-index: 1;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	border-radius: 50%;
	border-style: solid;
	border-width: 3px;
	border-color: #FFFFFF;
	box-sizing: border-box;
}

.tcb-arc__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 16px 22px 26px;
	box-sizing: border-box;
}

/* --- Shared text ------------------------------------------------------- */

.tcb-arc__title {
	margin: 0;
}

.tcb-arc__desc {
	margin: 0;
	text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
	.tcb-arc__item,
	.tcb-arc__chip,
	.tcb-arc__media img {
		transition: none;
	}

	.tcb-arc__item:hover .tcb-arc__media img {
		transform: none;
	}
}
