/**
 * Icon Stat Module
 * Row of icon + large number stats, bold label, optional description,
 * separated by thin vertical divider lines on a light grey background.
 */

/* ===========================
   # Section shell
=========================== */

.icon-stat-module {
	padding: 80px 0;
	background: var(--nec-light-grey, #f5f5f6);
}

/* ===========================
   # Header block (optional)
=========================== */

.ism__header {
	margin-bottom: 48px;
}

.ism__subheader {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.ism__subheader-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nec-orange, #EB6E00);
	flex-shrink: 0;
}

.ism__subheader-text {
	font-family: var(--nec-font, 'Neo Sans Std', sans-serif);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nec-grey, #384249);
}

.ism__heading {
	font-family: var(--nec-font, 'Neo Sans Std', sans-serif);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--nec-grey, #384249);
	margin: 0;
}

/* ===========================
   # Stats row
=========================== */

.ism__stats {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 48px;
}

.ism__stat {
	box-sizing: border-box;
	flex: 0 0 25%;
	max-width: 25%;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	border-left: 1px solid rgba(56, 66, 73, 0.15);
	padding: 0 32px;
}



/* ===========================
   # Stacked layout modifier
   Number sits below the icon; all stat content centres.
=========================== */

.ism__stats--stacked .ism__stat {
	align-items: center;
	text-align: center;
}

.ism__stats--stacked .ism__top {
	flex-direction: column;
	gap: 12px;
}

.ism__stats--stacked .ism__bottom {
	align-items: center;
}

/* ===========================
   # Top: icon + number
=========================== */

.ism__top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.ism__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 101px;
	height: 101px;
}

.ism__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ism__number {
	font-family: var(--nec-font, 'Neo Sans Std', sans-serif);
	font-size: clamp(2.5rem, calc(1.7571rem + 3.0476vw), 4.5rem);
	font-weight: 400;
	line-height: 1;
	color: var(--nec-orange, #EB6E00);
}

/* ===========================
   # Bottom: label + description
=========================== */

.ism__bottom {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ism__label {
	font-family: var(--nec-font, 'Neo Sans Std', sans-serif);
	font-size: 17px;
	font-weight: 500;
	color: var(--nec-grey, #384249);
}

.ism__description {
	margin: 0;
	font-family: var(--nec-font, 'Neo Sans Std', sans-serif);
	color: var(--nec-grey, #384249);
	opacity: 0.85;
}

/* ===========================
   # Responsive — 991px
=========================== */

@media (max-width: 991px) {
	.icon-stat-module {
		padding: 48px 0;
	}

	.ism__header {
		margin-bottom: 32px;
	}

	.ism__stats {
		row-gap: 32px;
	}

	.ism__stat {
		flex: 0 0 50%;
		min-width: 0;
		border-left: none;
		padding: 0 16px;
	}

	.ism__stat:nth-child(odd) {
		padding-left: 0;
	}

	.ism__stat:nth-child(even) {
		border-left: 1px solid rgba(56, 66, 73, 0.15);
	}
}

/* ===========================
   # Responsive — 767px
=========================== */

@media (max-width: 767px) {
	.icon-stat-module {
		padding: 40px 0;
	}

	/* Repeats the .ism__stat selector to out-specificity the 991px
	   :nth-child(even) divider rule without resorting to !important. */
	.ism__stat.ism__stat {
		flex: 0 0 100%;
		border-left: none;
		padding: 0 0 24px;
		border-bottom: 1px solid rgba(56, 66, 73, 0.15);
		margin-bottom: 24px;
	}

	.ism__stat.ism__stat:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.ism__icon {
		width: 44px;
		height: 44px;
	}
}
