/**
 * Symbiotic Peptides stats bar component.
 * Background color: #FBF8F5
 */

.sp-stats {
	position: relative;
	z-index: 2;
	background-color: #FBF8F5;
	border-top: 1px solid rgba( 0, 0, 0, 0.06 );
	border-bottom: 1px solid rgba( 0, 0, 0, 0.06 );
	width: 100%;
}

.sp-stats__inner {
	width: 100%;
	max-width: var( --global-content-width, 1290px );
	margin-inline: auto;
}

.sp-stats__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	align-items: center;
}

.sp-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp( 2.25rem, 4.5vw, 3.5rem ) 1.5rem;
	position: relative;
}

/* Vertical divider lines between grid items */
.sp-stats__item:not( :last-child )::after {
	content: "";
	position: absolute;
	top: 20%;
	bottom: 20%;
	right: 0;
	width: 1px;
	background-color: rgba( 0, 0, 0, 0.08 );
}

.sp-stats__number {
	color: var( --global-palette1, #e8620a );
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp( 2.25rem, 4vw, 3.5rem );
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 0.625rem;
}

.sp-stats__label {
	color: #8C857B;
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Responsive adjustments */
@media ( max-width: 900px ) {
	.sp-stats__grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.sp-stats__item:nth-child( 2 )::after {
		display: none;
	}

	.sp-stats__item:nth-child( 1 ),
	.sp-stats__item:nth-child( 2 ) {
		border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	}
}

@media ( max-width: 550px ) {
	.sp-stats__grid {
		grid-template-columns: 1fr;
	}

	.sp-stats__item::after {
		display: none !important;
	}

	.sp-stats__item:not( :last-child ) {
		border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	}

	.sp-stats__item {
		padding: 1.75rem 1rem;
	}
}
