/* Single Service (usl_service) layout. Shared blocks: components.css */

.single-service {
	box-sizing: border-box;
	max-width: 100%;
}

.single-service *,
.single-service *::before,
.single-service *::after {
	box-sizing: inherit;
}

/* Hero — 50/50 split; content drives height, media fills/crops */
.single-service .service-hero {
	width: 100%;
	max-width: 100%;
}

.single-service .service-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
}

@media screen and (min-width: 768px) {
	.single-service .service-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 22rem;
		max-height: min(40rem, 70vh);
		/* Prevent tall intro/WYSIWYG from spilling into the next section. */
		overflow: hidden;
	}
}

@media screen and (min-width: 1024px) {
	.single-service .service-hero__grid {
		min-height: 32rem;
	}
}

.single-service .service-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: var(--wp--preset--spacing--section-y, 2rem) 1.75rem;
	background-color: var(--wp--preset--color--accent, #203a6f);
	color: var(--wp--preset--color--text-on-dark, #ffffff);
}

@media screen and (min-width: 768px) {
	.single-service .service-hero__content {
		/* min-height:0 lets overflow:auto work inside a max-height grid. */
		min-height: 0;
		padding: 2.5rem 3rem;
		overflow: auto;
	}
}

.single-service .service-hero__title {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--text-on-dark, #ffffff);
}

.single-service .service-hero__lead {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--roboto, "Roboto", sans-serif);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-on-dark, #ffffff);
}

.single-service .service-hero__lead p {
	margin: 0 0 1em;
	padding: 0;
	color: inherit;
}

.single-service .service-hero__lead p:last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 768px) {
	.single-service .service-hero__lead {
		font-size: var(--wp--preset--font-size--body, 17px);
	}
}

.single-service .service-hero__actions {
	margin: 0;
}

.single-service .service-hero__media {
	position: relative;
	min-height: 14rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

@media screen and (min-width: 768px) {
	.single-service .service-hero__media {
		aspect-ratio: auto;
		min-height: 0;
		align-self: stretch;
	}
}

.single-service .service-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Two columns — alternate (#edf0fc, contained image) */
.single-service .service-two-col-alt {
	background-color: #edf0fc;
	padding-top: var(--usl-section-y, 2rem);
	padding-bottom: var(--usl-section-y, 2rem);
}

.single-service .service-two-col-alt__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.single-service .service-two-col-alt__grid {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 2.5rem;
	}
}

.single-service .service-two-col-alt__media {
	display: flex;
	justify-content: center;
}

@media screen and (min-width: 768px) {
	.single-service .service-two-col-alt__media {
		justify-content: flex-start;
	}
}

.single-service .service-two-col-alt__image {
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	max-height: 500px;
	object-fit: cover;
}

.single-service .service-two-col-alt__content {
	text-align: left;
	font-family: var(--wp--preset--font-family--roboto, "Roboto", sans-serif);
	font-size: 16px;
	color: var(--wp--preset--color--text-default, #333333);
}

@media screen and (min-width: 768px) {
	.single-service .service-two-col-alt__content {
		font-size: var(--wp--preset--font-size--body, 17px);
	}
}

.single-service .service-two-col-alt__content p {
	margin: 0 0 1em;
	padding: 0;
}

.single-service .service-two-col-alt__content p:last-child {
	margin-bottom: 0;
}

/* Gallery */
.single-service .service-gallery {
	background-color: #edf0fc;
	padding-top: var(--usl-section-y, 2rem);
	padding-bottom: var(--usl-section-y, 2rem);
}

.single-service .service-gallery__header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.single-service .service-gallery__title {
	margin: 0 0 0.75rem;
}

.single-service .service-gallery__intro {
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto, "Roboto", sans-serif);
	font-size: 16px;
	color: var(--wp--preset--color--text-default, #333333);
}

@media screen and (min-width: 768px) {
	.single-service .service-gallery__intro {
		font-size: var(--wp--preset--font-size--body, 17px);
	}
}

.single-service .service-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: 100%;
	max-width: 100%;
	grid-auto-rows: 1fr;
}

@media screen and (min-width: 768px) {
	.single-service .service-gallery__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.single-service .service-gallery__item {
	display: flex;
	min-height: 0;
	overflow: hidden;
}

.single-service .service-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 150px;
	object-fit: cover;
}

@media screen and (min-width: 768px) {
	.single-service .service-gallery__image {
		max-height: 300px;
	}
}

/* Careers on service: no extra bottom margin after gallery */
.single-service .usl-careers-cta {
	margin-bottom: 0;
}
