/* Services hub page (page-services.php). Shared blocks: components.css */

.page-services {
	box-sizing: border-box;
	max-width: 100%;
}

.page-services *,
.page-services *::before,
.page-services *::after {
	box-sizing: inherit;
}

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

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

@media screen and (min-width: 768px) {
	.page-services .services-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 22rem;
		max-height: min(40rem, 70vh);
		overflow: hidden;
	}
}

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

.page-services .services-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) {
	.page-services .services-hero__content {
		min-height: 0;
		padding: 2.5rem 3rem;
		overflow: auto;
	}
}

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

.page-services .services-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);
}

.page-services .services-hero__lead p {
	margin: 0;
	padding: 0;
	color: inherit;
}

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

.page-services .services-hero__actions {
	margin: 0;
}

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

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

.page-services .services-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

/* Intro — components.css (.usl-centered-content) */

/* Services hub list — transparent section; spacing comes from the flow gap. */

.page-services .services-hub__list {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

@media screen and (min-width: 1024px) {
	.page-services .services-hub__list {
		gap: 6.5rem;
	}
}

.page-services .services-hub__item-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.page-services .services-hub__media {
	width: 100%;
	flex-shrink: 0;
}

.page-services .services-hub__image {
	display: block;
	width: 100%;
	max-width: 600px;
	height: auto;
	aspect-ratio: 6 / 5;
	object-fit: cover;
	object-position: center;
	border-radius: 3px;
}

.page-services .services-hub__card {
	width: 100%;
	padding: 2rem 1.5rem;
	text-align: left;
	background-color: var(--wp--preset--color--white, #ffffff);
	border: 1px solid #c2c2c2;
	border-radius: 3px;
	box-shadow: 6px 6px 0 0 #cccccc;
}

.page-services .services-hub__title {
	margin: 0 0 1rem;
	text-align: left;
}

.page-services .services-hub__title a {
	color: var(--wp--preset--color--text-blue, #1f396f);
	text-decoration: none;
}

.page-services .services-hub__title a:hover,
.page-services .services-hub__title a:focus-visible {
	opacity: 0.9;
}

.page-services .services-hub__description {
	margin: 0 0 1.25rem;
	text-align: left;
}

.page-services .services-hub__children {
	margin: 0;
	padding: 0 0 0 1.25rem;
	list-style: disc;
	text-align: left;
}

.page-services .services-hub__child {
	margin: 0 0 0.35rem;
}

.page-services .services-hub__child a {
	color: var(--wp--preset--color--link, #b33a43);
	text-decoration: none;
}

.page-services .services-hub__child a:hover,
.page-services .services-hub__child a:focus-visible {
	text-decoration: underline;
}

.page-services .services-hub__footer {
	margin: 5rem auto 0;
	max-width: 52rem;
	text-align: center;
}

@media screen and (min-width: 1024px) {
	.page-services .services-hub__footer {
		margin-top: 6.5rem;
	}
}

.page-services .services-hub__footer-link {
	color: var(--wp--preset--color--link, #b33a43);
	text-decoration: none;
}

.page-services .services-hub__footer-link:hover,
.page-services .services-hub__footer-link:focus-visible {
	text-decoration: underline;
}

@media screen and (min-width: 1024px) {
	.page-services .services-hub__item-inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: center;
		gap: 0;
		min-height: 34rem;
	}

	.page-services .services-hub__item--reverse .services-hub__item-inner {
		flex-direction: row-reverse;
	}

	.page-services .services-hub__media {
		width: 600px;
		max-width: 55%;
	}

	.page-services .services-hub__image {
		width: 600px;
		height: 500px;
		max-width: 100%;
	}

	.page-services .services-hub__card {
		position: relative;
		z-index: 2;
		width: min(100%, 32rem);
		max-width: 48%;
		margin-top: 3.125rem;
		padding: 3.125rem;
		flex-shrink: 0;
	}

	.page-services .services-hub__item--default .services-hub__card {
		margin-left: -4rem;
		transform: translate(50px, 50px);
	}

	.page-services .services-hub__item--reverse .services-hub__card {
		margin-right: -4rem;
		transform: translate(-50px, 50px);
	}
}

/* Careers CTA — components.css (.usl-careers-cta) */
