/*
 * Page-specific presentation for migrated About and Contact pages.
 *
 * These rules intentionally key off the stable page-slug body class provided
 * by inc/setup.php. No database page IDs are used, so the theme remains
 * portable between environments.
 */

.page-slug-about-us,
.page-slug-contact-us {
	overflow-x: clip;
}

/* About page */
.page-slug-about-us .site-content {
	padding-top: 0;
}

.page-slug-about-us article { position: relative; background: linear-gradient(#377dff 0 33.8rem, #fff 33.8rem); }
.trivers-about-hero-art { position: absolute; top: 0; right: 0; left: 0; height: 33.8rem; overflow: hidden; pointer-events: none; }
.trivers-about-hero-art img { position: absolute; display: block; max-width: none; }
.trivers-about-hero-art__top-left { top: 0; left: 0; width: 60%; height: auto; }
.trivers-about-hero-art__bottom-right { right: 0; bottom: 0; width: 15%; height: auto; }
.trivers-about-hero-art__curve { right: 0; bottom: -1.75rem; left: 0; width: 100%; height: 8.75rem; }

.page-slug-about-us .entry-header {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 5.9rem 1rem .6rem;
	overflow: hidden;
	background: transparent;
	color: #fff;
	text-align: center;
}

.page-slug-about-us .entry-title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: clamp(2.35rem, 4vw, 3.35rem);
	font-weight: 400;
}

.page-slug-about-us .entry-content > .trivers-page-hero:first-child {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 0 3.75rem;
	padding: .15rem 1rem 8.9rem;
	overflow: visible;
	border-radius: 0;
	min-height: 23.6rem;
	background: transparent;
	color: #fff;
	text-align: center;
}

.page-slug-about-us .entry-content > .trivers-page-hero:first-child::after {
	position: absolute;
	right: -5%;
	bottom: -3.9rem;
	left: -5%;
	height: 7.8rem;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	background: transparent;
	content: "";
}

.page-slug-about-us .trivers-page-hero > * {
	position: relative;
	z-index: 1;
}

.page-slug-about-us .trivers-page-hero p {
	max-width: 720px;
	margin-inline: auto;
	color: rgb(255 255 255 / 90%);
	font-size: .98rem;
	font-weight: 600;
}

.page-slug-about-us .trivers-page-hero .trivers-form-panel {
	width: min(100% - 2rem, 444px);
	max-width: 444px;
	margin: 1.8rem auto 0;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
}



.page-slug-about-us .trivers-readable {
	width: var(--trivers-page-width);
	padding-block: 1.15rem 3.4rem;
}

.page-slug-about-us .trivers-readable > * {
	max-width: 100%;
}

.page-slug-about-us .trivers-team-card {
	padding: 1rem;
}

.page-slug-about-us .trivers-stat {
	background: transparent;
	color: var(--trivers-ink);
}

.page-slug-about-us .trivers-stat strong {
	color: var(--trivers-ink);
	font-size: 1.995rem;
}

/* Contact page */
.page-slug-contact-us .site-content {
	padding-top: 0;
}

.page-slug-contact-us .entry-header {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 4.1rem 1rem .3rem;
	text-align: center;
}

.page-slug-contact-us .entry-title {
	color: var(--trivers-blue);
	font-size: clamp(2.15rem, 4vw, 3.05rem);
	font-weight: 500;
}

.page-slug-contact-us .entry-content > .trivers-page-hero:first-child {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0 calc(50% - 50vw);
	min-height: 18.5rem;
	padding: 0 1rem;
	border-radius: 0;
	background: #fff;
	color: var(--trivers-muted);
	text-align: center;
	overflow: hidden;
}

.page-slug-contact-us .entry-content > .trivers-page-hero:first-child::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: min(18.08vw, 21.7rem);
	background: url("../images/contact-hero-wave.svg") center bottom / 100% 100% no-repeat;
	content: "";
	pointer-events: none;
}

.page-slug-contact-us .entry-content > .trivers-page-hero:first-child > * {
	position: relative;
	z-index: 1;
}

.page-slug-contact-us .trivers-page-hero p {
	max-width: 540px;
	margin-inline: auto;
	color: #7a8596;
	font-size: 1.155rem;
	line-height: 1.45;
}

.page-slug-contact-us .entry-content > .trivers-form-panel {
	width: min(100% - 2rem, 900px);
	max-width: 900px;
	margin: 1.6rem auto 2.8rem;
	padding: 1.7rem 1.8rem;
	border: 1px solid #e3e8ef;
	box-shadow: 0 12px 30px rgb(10 33 65 / 6%);
}

.page-slug-contact-us .trivers-readable {
	width: var(--trivers-page-width);
	padding-block: 2.8rem 4rem;
}

/* Contact details are presented as a clear, stand-alone service card. */
.page-slug-contact-us .trivers-business-info {
	padding-block: 3.5rem;
	background: #f4f8ff;
}


.page-slug-contact-us .trivers-business-info__inner {
	max-width: 1140px;
}

.page-slug-contact-us .trivers-business-info__grid {
	grid-template-columns: minmax(240px, .95fr) minmax(330px, 1.25fr) minmax(210px, .8fr);
	overflow: hidden;
	border: 0;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 18px 40px rgb(18 54 103 / 10%);
}

.page-slug-contact-us .trivers-business-info__item {
	padding: 2rem 2.1rem;
	border-right: 1px solid #e3ebf7;
}

.page-slug-contact-us .trivers-business-info__item:first-child {
	background: linear-gradient(135deg, #236cf5, #377dff);
}

.page-slug-contact-us .trivers-business-info__item h3 {
	margin-bottom: 1rem;
	color: #17243a;
	font-size: 1.05rem;
}

.page-slug-contact-us .trivers-business-info__item:first-child h3,
.page-slug-contact-us .trivers-business-info__item:first-child .trivers-business-info__contact {
	color: #fff;
}

.page-slug-contact-us .trivers-business-info__contact {
	gap: .7rem;
	font-size: .96rem;
	line-height: 1.55;
}

.page-slug-contact-us .trivers-business-info__contact a {
	color: inherit;
	font-size: 1.18rem;
}

.page-slug-contact-us .trivers-business-info__contact a + a {
	font-size: .96rem;
}

.page-slug-contact-us .trivers-business-info__hours {
	gap: 0;
}

.page-slug-contact-us .trivers-business-info__hours div {
	padding: .46rem 0;
	border-bottom: 1px solid #edf1f7;
}

.page-slug-contact-us .trivers-business-info__hours div:last-child {
	border-bottom: 0;
}

.page-slug-contact-us .trivers-business-info__socials {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
}

.page-slug-contact-us .trivers-business-info__socials li {
	margin: 0;
}

@media (max-width: 899px) {
	.page-slug-contact-us .trivers-business-info__grid {
		grid-template-columns: 1fr 1fr;
	}

	.page-slug-contact-us .trivers-business-info__item:last-child {
		grid-column: 1 / -1;
		border-top: 1px solid #e3ebf7;
	}
}

@media (max-width: 639px) {
	.page-slug-contact-us .trivers-business-info {
		padding-block: 2.5rem;
	}

	.page-slug-contact-us .trivers-business-info__grid {
		grid-template-columns: 1fr;
	}

	.page-slug-contact-us .trivers-business-info__item,
	.page-slug-contact-us .trivers-business-info__item:last-child {
		padding: 1.55rem;
		border-right: 0;
		border-bottom: 1px solid #e3ebf7;
	}

	.page-slug-contact-us .trivers-business-info__item:last-child {
		border-bottom: 0;
	}
}

@media (min-width: 780px) {
	.page-slug-about-us .trivers-readable {
		display: grid;
		grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
		column-gap: 4rem;
		row-gap: .75rem;
		align-items: start;
	}

	.page-slug-about-us .trivers-readable::before {
		display: block;
		grid-column: 1;
		grid-row: 3 / span 3;
		width: 100%;
		aspect-ratio: 3 / 2;
		margin-top: .35rem;
		background: url("../images/about-office.webp") center / cover no-repeat;
		content: "";
	}

	.page-slug-about-us .trivers-readable > * {
		grid-column: 2;
		margin-top: 0;
	}

	.page-slug-about-us .trivers-readable > h2:first-child {
		grid-column: 2;
		grid-row: 1;
		font-size: 1.65rem;
	}

	.page-slug-about-us .trivers-readable > h2:first-child + p {
		grid-column: 1;
		grid-row: 1 / span 2;
		margin-top: 0;
		font-size: 1.08rem;
		font-weight: 800;
		line-height: 1.42;
	}

	.page-slug-about-us .trivers-readable > p:nth-of-type(2) {
		grid-column: 2;
		grid-row: 2;
	}

}

@media (max-width: 779px) {
	.page-slug-about-us .entry-header {
		padding-top: 3.4rem;
	}

	.page-slug-about-us .entry-content > .trivers-page-hero:first-child {
		padding-bottom: 3.75rem;
	}


	.page-slug-contact-us .entry-header {
		padding-top: 3rem;
	}

	.page-slug-contact-us .entry-content > .trivers-form-panel {
		margin-top: .8rem;
		padding: 1rem;
	}
}
