/**
 * Services page, mobile first.
 * Loaded only for /servicios/.
 */

.mextura-services-page {
	margin-block-start: 0 !important;
	overflow: clip;
}

.mextura-services-page > * {
	margin-block-start: 0;
}

.mextura-services-page :where(h1, h2, p, blockquote) {
	margin-top: 0;
}

.mextura-services-eyebrow,
.mextura-service__identity > p {
	color: var(--wp--preset--color--petrol-dark);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
}

.mextura-services-eyebrow {
	margin-bottom: 0.75rem;
}

/* Editorial hero. */
.mextura-services-hero {
	position: relative;
	isolation: isolate;
	padding-top: clamp(3.5rem, 8vw, 6.25rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}

.mextura-services-hero::before {
	position: absolute;
	top: -7rem;
	right: -8rem;
	z-index: -1;
	width: 17rem;
	height: 17rem;
	background: var(--wp--preset--color--neutral-50);
	content: "";
	transform: rotate(45deg);
}

.mextura-services-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 7vw, 4.5rem);
	align-items: center;
}

.mextura-services-hero__copy,
.mextura-services-hero__statement {
	min-width: 0;
	margin: 0;
}

.mextura-services-hero__copy {
	max-width: 47rem;
}

.mextura-services-hero h1 {
	max-width: 14ch;
	margin-bottom: 1.5rem;
	text-wrap: balance;
}

.mextura-services-hero__copy .has-lead-font-size {
	max-width: 44rem;
	margin-bottom: 0;
	color: var(--wp--preset--color--slate);
}

.mextura-services-hero__statement {
	position: relative;
	isolation: isolate;
	padding: clamp(1.75rem, 6vw, 3rem);
	overflow: hidden;
	clip-path: polygon(0 0, calc(100% - 2.25rem) 0, 100% 2.25rem, 100% 100%, 0 100%);
}

.mextura-services-hero__statement::before,
.mextura-services-hero__statement::after {
	position: absolute;
	z-index: -1;
	width: 8rem;
	height: 2.25rem;
	background: rgba(22, 143, 163, 0.46);
	content: "";
	transform: rotate(-45deg);
}

.mextura-services-hero__statement::before {
	top: 0.5rem;
	right: -2.8rem;
}

.mextura-services-hero__statement::after {
	right: -1.5rem;
	bottom: 0.75rem;
}

.mextura-services-hero__statement p {
	max-width: 24rem;
	margin-bottom: 0;
	color: var(--wp--preset--color--white);
	font-size: clamp(1.45rem, 1.2rem + 1vw, 2.15rem);
	font-weight: 500;
	line-height: 1.28;
	text-wrap: balance;
}

.mextura-services-hero__statement strong {
	display: block;
	font-weight: 750;
}

/* Six coordinated service areas. */
.mextura-services-areas {
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.mextura-services-list {
	border-top: 1px solid var(--wp--preset--color--neutral-100);
	border-bottom: 1px solid var(--wp--preset--color--neutral-100);
}

.mextura-service {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	overflow: hidden;
	border-bottom: 1px solid var(--wp--preset--color--neutral-100);
	background: var(--wp--preset--color--white);
}

.mextura-service:last-child {
	border-bottom: 0;
}

.mextura-service__identity,
.mextura-service__content {
	min-width: 0;
	padding: clamp(1.5rem, 5vw, 2.5rem);
}

.mextura-service__identity {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	overflow: hidden;
	background: rgba(22, 143, 163, 0.09);
}

.mextura-service__identity::after {
	position: absolute;
	top: -2.75rem;
	right: -2.75rem;
	z-index: -1;
	width: 5.5rem;
	height: 5.5rem;
	background: rgba(22, 143, 163, 0.17);
	content: "";
	transform: rotate(45deg);
}

.mextura-service__number {
	color: var(--wp--preset--color--petrol-dark);
	font-size: clamp(2.8rem, 11vw, 4.8rem);
	font-weight: 750;
	letter-spacing: -0.07em;
	line-height: 0.8;
}

.mextura-service__identity > p {
	max-width: 12rem;
	margin-bottom: 0;
	text-align: right;
}

.mextura-service__content h2 {
	max-width: 29ch;
	margin-bottom: 1.25rem;
	font-size: clamp(1.65rem, 1.4rem + 1.05vw, 2.5rem);
	text-wrap: balance;
}

.mextura-service__content > p:not(.mextura-service__statement, .mextura-service__note) {
	max-width: 47rem;
}

.mextura-service__content > :last-child {
	margin-bottom: 0;
}

.mextura-service__statement,
.mextura-service__note {
	max-width: 45rem;
	margin: 1.5rem 0 0;
	padding: 0.25rem 0 0.25rem 1rem;
	border-left: 0.1875rem solid var(--wp--preset--color--petrol);
	color: var(--wp--preset--color--slate);
	font-weight: 650;
}

.mextura-service__note {
	font-size: 0.9375rem;
	font-weight: 500;
}

.mextura-service--02 .mextura-service__identity,
.mextura-service--04 .mextura-service__identity,
.mextura-service--06 .mextura-service__identity {
	background: var(--wp--preset--color--neutral-100);
}

.mextura-service--03 .mextura-service__identity::after,
.mextura-service--06 .mextura-service__identity::after {
	top: auto;
	right: -3.5rem;
	bottom: -3.5rem;
	width: 7rem;
	height: 7rem;
}

.mextura-service--05 {
	border-color: rgba(255, 255, 255, 0.2);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.mextura-service--05 .mextura-service__identity {
	background: var(--wp--preset--color--petrol-dark);
}

.mextura-service--05 .mextura-service__identity::after {
	width: 7rem;
	height: 7rem;
	background: rgba(255, 255, 255, 0.13);
}

.mextura-service--05 .mextura-service__number,
.mextura-service--05 .mextura-service__identity > p,
.mextura-service--05 h2,
.mextura-service--05 p {
	color: var(--wp--preset--color--white);
}

.mextura-service__quote {
	max-width: 42rem;
	margin: 1.75rem 0 0;
	padding: 1.25rem 0 1.25rem 1.25rem;
	border-left: 0.25rem solid var(--wp--preset--color--petrol);
}

.mextura-service__quote p {
	margin: 0;
	font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.55rem);
	font-weight: 700;
	line-height: 1.4;
}

/* Integration instead of replacement. */
.mextura-services-adaptation {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.mextura-services-adaptation__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 7vw, 5rem);
	align-items: center;
}

.mextura-services-adaptation__copy,
.mextura-services-adaptation__statement {
	min-width: 0;
	margin: 0;
}

.mextura-services-adaptation h2 {
	max-width: 18ch;
	margin-bottom: 1.25rem;
	text-wrap: balance;
}

.mextura-services-adaptation__copy .has-lead-font-size {
	margin-bottom: 0;
}

.mextura-services-adaptation__statement {
	position: relative;
	padding: clamp(1.75rem, 5vw, 2.75rem);
	border: 0;
	border-left: 0.3rem solid var(--wp--preset--color--petrol);
	background: var(--wp--preset--color--neutral-50);
	font-size: clamp(1.35rem, 1.2rem + 0.65vw, 1.9rem);
	line-height: 1.38;
}

.mextura-services-adaptation__statement::after {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 3.5rem;
	height: 3.5rem;
	background: rgba(22, 143, 163, 0.18);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	content: "";
}

.mextura-services-adaptation__statement p {
	margin: 0;
}

.mextura-services-adaptation__statement strong {
	display: block;
}

/* Services answer what; solutions answer how. */
.mextura-services-solutions {
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.mextura-services-solutions__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.mextura-services-solutions__heading,
.mextura-services-solutions__content {
	min-width: 0;
	margin: 0;
	padding: clamp(1.75rem, 6vw, 3.25rem);
}

.mextura-services-solutions__heading {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.mextura-services-solutions__heading::after {
	position: absolute;
	right: -4.5rem;
	bottom: -4.5rem;
	z-index: -1;
	width: 10rem;
	height: 10rem;
	background: rgba(22, 143, 163, 0.45);
	content: "";
	transform: rotate(45deg);
}

.mextura-services-solutions__heading h2 {
	margin-bottom: 0;
	color: var(--wp--preset--color--white);
}

.mextura-services-solutions__heading h2 span {
	display: block;
}

.mextura-services-solutions__heading h2 span + span {
	margin-top: 0.35rem;
	color: #A6E2E8;
}

.mextura-services-solutions__content .has-lead-font-size {
	margin-bottom: 1.5rem;
}

.mextura-services-solutions .wp-block-button__link,
.mextura-services-cta .wp-block-button__link {
	border-radius: 0;
	background-color: var(--wp--preset--color--petrol-dark);
	clip-path: polygon(0 0, calc(100% - 0.85rem) 0, 100% 0.85rem, 100% 100%, 0 100%);
	color: var(--wp--preset--color--white);
	font-weight: 750;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

/* Commercial close. */
.mextura-services-cta {
	position: relative;
	isolation: isolate;
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
}

.mextura-services-cta::before,
.mextura-services-cta::after {
	position: absolute;
	z-index: -1;
	width: 12rem;
	height: 12rem;
	content: "";
	transform: rotate(45deg);
}

.mextura-services-cta::before {
	top: -8rem;
	left: 8%;
	background: rgba(22, 143, 163, 0.24);
}

.mextura-services-cta::after {
	right: -7rem;
	bottom: -7rem;
	background: rgba(22, 143, 163, 0.4);
}

.mextura-services-cta__inner {
	text-align: center;
}

.mextura-services-cta h2 {
	max-width: 21ch;
	margin-right: auto;
	margin-bottom: 1.25rem;
	margin-left: auto;
}

.mextura-services-cta p {
	max-width: 47rem;
	margin-right: auto;
	margin-bottom: 1.75rem;
	margin-left: auto;
}

@media (max-width: 31.25rem) {
	.mextura-services-solutions .wp-block-buttons,
	.mextura-services-solutions .wp-block-button,
	.mextura-services-solutions .wp-block-button__link,
	.mextura-services-cta .wp-block-buttons,
	.mextura-services-cta .wp-block-button,
	.mextura-services-cta .wp-block-button__link {
		width: 100%;
	}

	.mextura-services-solutions .wp-block-button__link,
	.mextura-services-cta .wp-block-button__link {
		text-align: center;
	}
}

@media (min-width: 48rem) {
	.mextura-service {
		grid-template-columns: minmax(12rem, 31fr) minmax(0, 69fr);
		grid-template-areas: "identity content";
		align-items: stretch;
	}

	.mextura-service__identity {
		grid-area: identity;
		min-height: 100%;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
	}

	.mextura-service__identity > p {
		text-align: left;
	}

	.mextura-service__content {
		grid-area: content;
	}

	.mextura-service--02,
	.mextura-service--04,
	.mextura-service--06 {
		grid-template-columns: minmax(0, 69fr) minmax(12rem, 31fr);
		grid-template-areas: "content identity";
	}

	.mextura-services-adaptation__layout {
		grid-template-columns: minmax(0, 56fr) minmax(18rem, 44fr);
	}

	.mextura-services-solutions__layout {
		grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
		align-items: stretch;
	}

	.mextura-services-solutions__heading,
	.mextura-services-solutions__content {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

@media (min-width: 64rem) {
	.mextura-service__identity {
		justify-content: flex-start;
		gap: clamp(1.5rem, 2.4vw, 2rem);
	}

	.mextura-service__identity > p {
		width: min-content;
		max-width: 100%;
		font-size: clamp(1.1rem, 0.95rem + 0.25vw, 1.25rem);
		font-weight: 800;
		hyphens: none;
		letter-spacing: 0.045em;
		line-height: 1.2;
		overflow-wrap: normal;
		word-break: normal;
	}

	.mextura-services-hero__layout {
		grid-template-columns: minmax(0, 61fr) minmax(20rem, 39fr);
		gap: clamp(3.5rem, 7vw, 6.5rem);
	}

	.mextura-services-hero__statement {
		min-height: 19rem;
		display: flex;
		align-items: center;
	}

	.mextura-service {
		grid-template-columns: minmax(15rem, 28fr) minmax(0, 72fr);
	}

	.mextura-service--02,
	.mextura-service--04,
	.mextura-service--06 {
		grid-template-columns: minmax(0, 72fr) minmax(15rem, 28fr);
	}

	.mextura-service__identity,
	.mextura-service__content {
		padding: clamp(2.25rem, 4vw, 3.5rem);
	}
}
