/* Home services and contact: all text, links, image and form fields are edited in Bricks. */
.home-services-contact {
	position: relative;
	padding: clamp(72px, 9vw, 132px) 0;
	overflow: hidden;
	background-color: #f4f5f6;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.home-services-contact-inner {
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(0, .93fr) minmax(0, .94fr);
	align-items: stretch;
	gap: 24px;
	width: min(calc(100% - 56px), 1380px);
	margin: 0 auto;
}

.home-services-contact-content {
	display: contents;
}

/* Add this Heading as the first child of .home-services-contact-inner in Bricks. */
.home-services-contact-title {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-self: center;
	gap: 14px;
	margin: 0 0 18px;
	color: #111111;
	font-size: clamp(31px, 3vw, 42px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.025em;
	text-align: center;
}

.home-services-contact-title::before,
.home-services-contact-title::after {
	width: clamp(30px, 4vw, 54px);
	height: 14px;
	content: '';
	background:
		linear-gradient(#ffc400, #ffc400) left 0 top 2px / 100% 2px no-repeat,
		linear-gradient(#ffc400, #ffc400) right 0 bottom 2px / calc(100% - 18px) 2px no-repeat;
	transition: transform .28s ease;
}

.home-services-contact-title::after {
	background:
		linear-gradient(#ffc400, #ffc400) right 0 top 2px / 100% 2px no-repeat,
		linear-gradient(#ffc400, #ffc400) left 0 bottom 2px / calc(100% - 18px) 2px no-repeat;
}

.home-services-contact-title:hover::before,
.home-services-contact-title:focus-within::before {
	transform: translateX(-10px);
}

.home-services-contact-title:hover::after,
.home-services-contact-title:focus-within::after {
	transform: translateX(10px);
}

/* In the Bricks Heading text, wrap the first word in a span. */
.home-services-contact-title span {
	color: #ffc400;
	font-weight: 300;
}

/* =========================================================
   LEFT SERVICE CARD
   ========================================================= */
.home-service-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 468px;
	padding: clamp(30px, 3vw, 42px);
	background: rgba(255, 255, 255, .94);
	color: #111111;
	box-shadow: 0 16px 34px rgba(20, 26, 31, .06);
	box-sizing: border-box;
}

.home-service-eyebrow {
	margin: 0 0 8px;
	color: #252525;
	font-size: clamp(29px, 2.4vw, 38px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.home-service-title {
	margin: 0 0 26px;
	color: #111111;
	font-size: clamp(30px, 2.6vw, 40px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.home-service-description {
	max-width: 34ch;
	margin: 0 0 28px;
	color: #222a32;
	font-size: 15px;
	line-height: 1.65;
}

.home-service-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 13px;
}

.home-service-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0 0 2px 20px;
	color: #121212;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: color .2s ease;
}

.home-service-link::before {
	position: absolute;
	left: 0;
	content: '›';
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.home-service-link::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 20px;
	height: 1px;
	content: '';
	background: #ffc400;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .2s ease;
}

.home-service-link:hover,
.home-service-link:focus-visible,
.home-service-link.is-active {
	color: #dca900;
}

.home-service-link:hover::after,
.home-service-link:focus-visible::after,
.home-service-link.is-active::after {
	transform: scaleX(1);
}

.home-service-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 28px;
	align-self: flex-end;
	color: #151515;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease, transform .2s ease;
}

.home-service-read-more::after {
	content: '›';
	color: #ffc400;
	font-size: 21px;
	font-weight: 400;
	line-height: .7;
}

.home-service-read-more:hover,
.home-service-read-more:focus-visible {
	color: #dca900;
	transform: translateX(3px);
}

/* =========================================================
   CENTER IMAGE
   ========================================================= */
.home-service-image-wrap {
	align-self: stretch;
	min-height: 468px;
	overflow: hidden;
	background: #e6e8e9;
}

.home-service-image,
.home-service-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* =========================================================
   RIGHT CONTACT CARD / NATIVE BRICKS FORM
   ========================================================= */
.home-contact-panel {
	min-height: 468px;
	padding: clamp(30px, 3vw, 42px);
	background: #151515;
	color: #ffffff;
	box-shadow: 0 16px 34px rgba(20, 26, 31, .08);
	box-sizing: border-box;
}

.home-contact-title {
	margin: 0 0 34px;
	color: #ffffff;
	font-size: clamp(30px, 2.6vw, 39px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.home-contact-panel form {
	width: 100%;
	margin: 0;
}

.home-contact-panel .form-group {
	margin-bottom: 24px;
}

.home-contact-panel label {
	display: block;
	margin: 0 0 7px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.home-contact-panel input:not([type='submit']),
.home-contact-panel textarea,
.home-contact-panel select {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 0 9px;
	background: transparent;
	color: #ffffff;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .22);
	border-radius: 0;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.4;
}

.home-contact-panel input:not([type='submit']) {
	height: 38px;
}

.home-contact-panel textarea {
	height: 64px;
	min-height: 64px;
	resize: vertical;
}

.home-contact-panel input::placeholder,
.home-contact-panel textarea::placeholder {
	color: rgba(255, 255, 255, .55);
	opacity: 1;
}

.home-contact-panel input:focus,
.home-contact-panel textarea:focus,
.home-contact-panel select:focus {
	border-bottom-color: #ffc400;
	outline: 0;
	box-shadow: none;
}

/* The Bricks Form submit button cannot receive its own class. */
.home-contact-panel .bricks-button.bricks-background-primary,
.home-contact-panel button[type='submit'],
.home-contact-panel input[type='submit'] {
	position: static !important;
	left: auto !important;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 172px;
	height: 48px;
	margin: 8px 0 0 !important;
	padding: 0 24px;
	background: #ffc400;
	color: #111111;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .20em;
	text-transform: uppercase;
	cursor: pointer;
	transform: none !important;
	transition: background .2s ease, transform .2s ease !important;
}

/* Bricks wraps the submit button in this element. It must span the full form. */
.home-contact-panel .submit-button-wrapper {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}

.home-contact-panel .bricks-button.bricks-background-primary:hover,
.home-contact-panel .bricks-button.bricks-background-primary:focus-visible,
.home-contact-panel button[type='submit']:hover,
.home-contact-panel button[type='submit']:focus-visible,
.home-contact-panel input[type='submit']:hover,
.home-contact-panel input[type='submit']:focus-visible {
	background: #e5ae00;
	color: #111111;
	transform: translateY(-1px) !important;
}

.home-contact-panel .message,
.home-contact-panel .error,
.home-contact-panel .success {
	margin-top: 12px;
	color: #ffc400;
	font-size: 12px;
	line-height: 1.45;
}

@media (max-width: 1199px) {
	.home-services-contact-inner {
		gap: 14px;
	}

	.home-service-panel,
	.home-service-image-wrap,
	.home-contact-panel {
		min-height: 430px;
	}

	.home-service-panel,
	.home-contact-panel {
		padding: 30px 28px 28px;
	}

	.home-service-description {
		font-size: 14px;
	}

	.home-service-link {
		font-size: 13px;
	}
}

@media (max-width: 991px) {
	.home-services-contact {
		padding: 78px 0 82px;
	}

	.home-services-contact-inner {
		width: min(calc(100% - 48px), 900px);
	}

	.home-services-contact-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.home-service-panel,
	.home-service-image-wrap,
	.home-contact-panel {
		min-height: 430px;
	}

	.home-contact-panel {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.home-services-contact {
		padding: 64px 0 68px;
	}

	.home-services-contact-inner {
		width: min(calc(100% - 36px), 560px);
	}

	.home-services-contact-inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.home-services-contact-title {
		gap: 10px;
		margin-bottom: 12px;
		font-size: clamp(27px, 8vw, 34px);
	}

	.home-service-panel,
	.home-service-image-wrap,
	.home-contact-panel {
		grid-column: auto;
		min-height: 0;
	}

	.home-service-panel {
		min-height: 462px;
		padding: 30px 26px 28px;
	}

	.home-service-image-wrap {
		aspect-ratio: 1 / 1;
	}

	.home-contact-panel {
		padding: 30px 26px;
	}

	.home-service-eyebrow {
		font-size: 30px;
	}

	.home-service-title {
		margin-bottom: 20px;
		font-size: 28px;
	}

	.home-service-description {
		margin-bottom: 24px;
		font-size: 14px;
	}

	.home-service-links {
		gap: 10px;
	}

	.home-service-link {
		font-size: 13px;
	}

	.home-contact-title {
		margin-bottom: 30px;
		font-size: 30px;
	}

	.home-contact-panel .bricks-button.bricks-background-primary,
	.home-contact-panel button[type='submit'],
	.home-contact-panel input[type='submit'] {
		width: 100%;
		margin-top: 8px;
		left: auto !important;
		transform: none !important;
	}
}

@media (max-width: 479px) {
	.home-services-contact-inner {
		width: calc(100% - 28px);
	}

	.home-service-panel,
	.home-contact-panel {
		padding: 26px 22px;
	}

	.home-service-eyebrow {
		font-size: 27px;
	}

	.home-service-title {
		font-size: 26px;
	}
}

.home-services-contact a:focus-visible,
.home-services-contact button:focus-visible,
.home-services-contact input:focus-visible,
.home-services-contact textarea:focus-visible,
.home-services-contact select:focus-visible {
	outline: 2px solid #ffc400;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.home-service-link,
	.home-service-link::after,
	.home-service-read-more,
	.home-services-contact-title::before,
	.home-services-contact-title::after,
	.home-contact-panel .bricks-button.bricks-background-primary,
	.home-contact-panel button[type='submit'],
	.home-contact-panel input[type='submit'] {
		transition: none;
	}
}
