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

.haris-logos {
	--haris-lg-cols: 4;
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 0 70px 70px;
	background-color: #0a0a0a;
}

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

.haris-logos__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1180px;
	text-align: center;
}

/* --------------------------------------------------------------- Divider */

.haris-logos__divider {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	height: 1px;
	margin: 0 0 58px;
	background-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------- Eyebrow */

.haris-logos__eyebrow {
	display: block;
	margin: 0 0 46px;
	color: #c9a227;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1;
}

/* ------------------------------------------------------------------ List */

.haris-logos__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 900px;
	column-gap: 60px;
	row-gap: 32px;
}

/* Fixed columns: each item takes an equal share of the row. */
.haris-logos--grid .haris-logos__list {
	display: grid;
	grid-template-columns: repeat(var(--haris-lg-cols, 4), minmax(0, 1fr));
	justify-content: stretch;
}

/* ------------------------------------------------------------------ Item */

.haris-logos__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	border: 0 solid transparent;
	text-decoration: none;
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* -------------------------------------------------------------- Text logo */

.haris-logos__item--text {
	text-align: center;
}

.haris-logos__text {
	display: block;
	color: #8c8c8c;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: uppercase;
	/* The Style tab sets the base size; the per-item nudge scales from it,
	   so a default of 1 leaves the logo exactly as typed. */
	transform: scale(var(--haris-lg-scale, 1));
	transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------- Image logo */

.haris-logos__item--image {
	line-height: 0;
}

.haris-logos__image {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 34px;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	transform: scale(var(--haris-lg-scale, 1));
	transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 1024px) {
	.haris-logos {
		padding: 0 32px 56px;
	}

	.haris-logos__list {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.haris-logos {
		padding: 0 20px 44px;
	}

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

	.haris-logos__eyebrow {
		margin-bottom: 30px;
	}

	.haris-logos__list {
		column-gap: 28px;
		justify-content: center;
	}

	.haris-logos__text {
		font-size: 19px;
	}
}

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

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