/**
 * Haris Counter for Elementor — frontend styles.
 * Colours, sizes and spacing come from the Elementor Style tab;
 * the values here are structural fallbacks only.
 */

.haris-counter {
	position: relative;
	width: 100%;
	padding: 80px 60px 90px;
	background-color: #0a0a0a;
}

.haris-counter,
.haris-counter *,
.haris-counter *::before,
.haris-counter *::after {
	box-sizing: border-box;
}

.haris-counter__wrap {
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
}

/* --------------------------------------------------------------- Heading */

.haris-counter__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 62px;
}

.haris-counter__eyebrow {
	display: block;
	color: #e0b83c;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1;
}

.haris-counter__title {
	margin: 16px 0 0;
	color: #f2f2f2;
	font-size: 36px;
	font-weight: 300;
	line-height: 1.2;
}

/* ------------------------------------------------------------------ Grid */

.haris-counter__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}

.haris-counter__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
	text-decoration: none;
}

/* ------------------------------------------------------------- Dividers */

.haris-counter--divider .haris-counter__item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(-1 * var(--haris-ct-gap, 40px) / 2);
	width: 1px;
	height: 60%;
	background-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-50%);
	pointer-events: none;
}

/* The first item in each row has nothing to its left. */
.haris-counter--divider .haris-counter__item:first-child::before {
	display: none;
}

/* ---------------------------------------------------------------- Number */

.haris-counter__value {
	display: block;
	margin: 0 0 16px;
	color: #fff;
	font-size: 46px;
	font-weight: 300;
	line-height: 1.1;
	transition: color 0.3s ease;
}

.haris-counter__item--highlight .haris-counter__value {
	color: #e0b83c;
}

.haris-counter--tabular .haris-counter__number {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.haris-counter__prefix,
.haris-counter__number,
.haris-counter__suffix {
	display: inline;
}

/* ----------------------------------------------------------------- Label */

.haris-counter__label {
	display: block;
	color: #9b9b9b;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.6;
}

a.haris-counter__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1024px) {
	.haris-counter {
		padding: 64px 32px 72px;
	}

	.haris-counter__head {
		margin-bottom: 48px;
	}

	.haris-counter__value {
		font-size: 38px;
	}
}

@media (max-width: 767px) {
	.haris-counter {
		padding: 48px 20px 56px;
	}

	.haris-counter__head {
		margin-bottom: 36px;
	}

	.haris-counter__title {
		font-size: 26px;
	}

	.haris-counter__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.haris-counter__value {
		font-size: 34px;
	}

	/* A single column stacks, so the rule would sit in the wrong place. */
	.haris-counter--divider .haris-counter__item::before {
		display: none;
	}
}

/* ------------------------------------------------------------ A11y / RM */

@media (prefers-reduced-motion: reduce) {
	.haris-counter *,
	.haris-counter *::before,
	.haris-counter *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
