/**
 * Platform Features block — shared front-end + editor styles.
 */

.eretail-platform {
	padding-block: var( --eretail-space-2xl, 96px );
}

.eretail-platform__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var( --eretail-space-md, 24px );
	margin-bottom: var( --eretail-space-sm, 16px );
}

.eretail-platform__heading-row {
	display: flex;
	align-items: center;
	gap: var( --eretail-space-sm, 16px );
}

.eretail-platform__heading {
	margin-bottom: 0;
}

.eretail-platform__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: var( --eretail-radius-pill, 999px );
	background: var( --eretail-color-bg-light, #f7f7f7 );
	color: var( --eretail-color-text, #4a4a4a );
	font-weight: 600;
	font-size: 0.9rem;
}

.eretail-platform__body {
	max-width: 640px;
	color: var( --eretail-color-text, #4a4a4a );
	margin-bottom: var( --eretail-space-xl, 64px );
}

.eretail-platform__tiles {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: var( --eretail-space-sm, 16px );
}

.eretail-platform__tile {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var( --eretail-radius-md, 8px );
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background-color: var( --eretail-color-heading, #111111 );
}

.eretail-platform__tile-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
}

.eretail-platform__tile-title {
	position: relative;
	z-index: 1;
	color: #ffffff;
	font-weight: 700;
	padding: var( --eretail-space-sm, 16px );
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.75 ), rgba( 0, 0, 0, 0 ) 80% );
	width: 100%;
}

.eretail-platform__footnote {
	margin-top: var( --eretail-space-lg, 40px );
	max-width: 720px;
	color: var( --eretail-color-text-light, #767676 );
	font-size: 0.9375rem;
}

@media ( min-width: 600px ) {
	.eretail-platform__tiles {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( min-width: 1024px ) {
	.eretail-platform__tiles {
		grid-template-columns: repeat( 5, 1fr );
	}
}
