/**
 * BRAND EXPO Services page styles.
 */

.services-page.site-main {
	padding-block: 0;
}

.services-intro {
	position: relative;
	display: grid;
	min-height: clamp(13rem, 20vw, 19rem);
	overflow: hidden;
	background: var(--brand-black);
	color: var(--brand-white);
	align-items: end;
}

.services-intro__media,
.services-intro__overlay {
	position: absolute;
	inset: 0;
}

.services-intro__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.services-intro__overlay {
	background: linear-gradient(90deg, rgba(8, 8, 8, 0.84), rgba(8, 8, 8, 0.38));
}

.services-intro__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(4.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
	text-align: start;
}

.services-intro__title {
	max-width: 20ch;
	margin: 0;
	color: var(--brand-white);
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	overflow-wrap: normal;
	word-break: normal;
}

.services-intro__text {
	max-width: 44rem;
	margin-block: 0.75rem 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(0.9rem, 1.2vw, 1.05rem);
	line-height: 1.5;
}

.services-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 1.75vw, 1.5rem);
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

.service-section {
	display: flex;
	min-width: 0;
	border: 0.0625rem solid rgba(8, 8, 8, 0.1);
	background: var(--brand-white);
	flex-direction: column;
	text-align: start;
}

.service-section__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--brand-light);
}

.service-section__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-section__content {
	display: flex;
	min-width: 0;
	padding: clamp(0.9rem, 1.6vw, 1.25rem);
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
}

.service-section__title {
	margin-block: 0;
	color: var(--color-heading);
	font-size: clamp(1rem, 1.35vw, 1.25rem);
	line-height: 1.2;
	overflow-wrap: normal;
	word-break: normal;
}

.service-section__text {
	margin-block-start: 0.55rem;
	font-size: 0.82rem;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.service-section__text p {
	margin-block: 0 0.5rem;
}

.service-section__text p:last-child {
	margin-block-end: 0;
}

.service-section--no-media .service-section__content {
	min-height: 100%;
}

@media (min-width: 64em) {
	.services-list {
		row-gap: 1rem;
		padding-block: 1.75rem 2rem;
	}
}

@media (max-width: 63.9375rem) {
	.services-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.services-intro {
		min-height: 17rem;
	}

	.services-intro__overlay {
		background: rgba(8, 8, 8, 0.64);
	}

}

@media (max-width: 40rem) {
	.services-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

[dir="rtl"] .services-intro__overlay {
	background: linear-gradient(270deg, rgba(8, 8, 8, 0.84), rgba(8, 8, 8, 0.38));
}

@media (max-width: 48rem) {
	[dir="rtl"] .services-intro__overlay {
		background: rgba(8, 8, 8, 0.64);
	}
}
