/* ============================================
	Counter Boxes Widget Styles
	============================================ */

.counter-boxes-grid {
	display: grid;
	gap: 24px;
	width: 100%;
	/* Grid template columns set via inline style on desktop */
}

/* Counter Box */
.counter-box {
	padding: 32px;
	border-radius: 60px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background-color: var(--site-color);
	color: var(--site-contrast-color);
}

/* Icon */
.counter-box-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
}

.counter-box-icon svg path,
.counter-box-icon i {
	width: 32px;
	height: 32px;
	font-size: 32px;
	line-height: 1;
	color: var(--site-contrast-color);
	fill: var(--site-contrast-color);
}

.counter-box-icon svg {
	display: block;
}

/* Number */
.counter-box-number {
	font-size: var(--h2-font-size);
	font-weight: 700;
	line-height: 130%;
	text-align: left;
}

/* Text */
.counter-box-text {
	font-size: var(--paragraph-s-font-size);
	line-height: var(--paragraph-s-line-height);
	font-family: var(--paragraph-s-font-family);
	font-weight: var(--paragraph-s-font-weight);
	letter-spacing: var(--paragraph-s-letter-spacing);
	word-spacing: var(--paragraph-s-word-spacing);
	text-align: left;
}

/* Larger Box Styles */
.counter-box-large .counter-box-number {
	font-size: var(--e-global-typography-title-hero-font-size, var(--h1-alt-titlepage-font-size));
	line-height: var(--e-global-typography-title-hero-line-height, var(--h1-alt-titlepage-line-height));
	font-family: var(--e-global-typography-title-hero-font-family, var(--h1-alt-titlepage-font-family));
	font-weight: var(--e-global-typography-title-hero-font-weight, var(--h1-alt-titlepage-font-weight));
	letter-spacing: var(--e-global-typography-title-hero-letter-spacing, var(--h1-alt-titlepage-letter-spacing));
	word-spacing: var(--e-global-typography-title-hero-word-spacing, var(--h1-alt-titlepage-word-spacing));
	text-align: center;
}

.counter-box-large .counter-box-text {
	font-size: var(--h4-font-size);
	line-height: var(--h4-line-height);
	font-family: var(--h4-font-family);
	font-weight: 700;
	letter-spacing: var(--h4-letter-spacing);
	word-spacing: var(--h4-word-spacing);
	text-align: center;
}

/* ============================================
	Responsive Styles
	============================================ */

/* Tablet */
@media (max-width: 1024px) {
	.counter-boxes-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.counter-boxes-grid {
		grid-template-columns: 1fr !important;
	}

	.counter-box {
		border-radius: 24px;
	}

	.counter-box-large .counter-box-number,
	.counter-box-large .counter-box-text {
		text-align: start;
	}

	.counter-box-large .counter-box-text {
		font-size: var(--paragraph-s-font-size);
		line-height: var(--paragraph-s-line-height);
		font-family: var(--paragraph-s-font-family);
		font-weight: var(--paragraph-s-font-weight);
		letter-spacing: var(--paragraph-s-letter-spacing);
		word-spacing: var(--paragraph-s-word-spacing);
	}
}
