/*---*\
Masthead
Full-bleed landing page hero above flexible content

KEY FEATURES:
- Editable background, feature, logos, and Google review images
- Dynamic breadcrumbs and page title
- Mobile-first two-column layout

IMPLEMENTATION NOTES:
- Overlay matches Figma rgba(32,32,32,0.6)
- Google review badge overlaps the feature image
\*---*/

.masthead {
	position: relative;
	color: var(--color-text-white);
	background-color: #2b2b2b;
}

.masthead__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.masthead__background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

.masthead__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(32, 32, 32, 0.6);
}

.masthead__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container-max-width);
	margin-left: auto;
	margin-right: auto;
	padding: 40px 20px 32px;
}

.masthead__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.masthead__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.masthead__breadcrumbs {
	margin: 0 0 16px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--color-text-muted);
}

.masthead__breadcrumbs a {
	color: var(--color-primary);
	text-decoration: none;
}

.masthead__breadcrumbs .breadcrumb_last,
.masthead__breadcrumbs [aria-current="page"] {
	color: var(--color-text-muted);
}

.masthead__breadcrumb-sep {
	color: var(--color-text-muted);
}

.masthead__title {
	margin: 0 0 24px;
	max-width: 18ch;
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--color-text-white);
}

.masthead__logos {
	width: 100%;
	max-width: 100%;
	background-color: #2b3036;
	padding: 20px;
	display: flex;
	align-items: center;
}

.masthead__logos-image {
	width: 100%;
	height: auto;
	display: block;
}

.masthead__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 470px;
	margin-left: auto;
	margin-right: auto;
}

.masthead__feature {
	position: relative;
	width: 100%;
	aspect-ratio: 470 / 400;
	overflow: hidden;
}

.masthead__feature-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.masthead__review {
	position: relative;
	z-index: 2;
	width: min(100%, 305px);
	margin-top: -48px;
	background-color: var( --color-text-white );
}

.masthead__review-link {
	display: block;
	text-decoration: none;
	padding: 20px;
	transition: all ease-in-out 0.3s;
}

.masthead__review-link:hover {
	transform: scale(1.05);
}

.masthead__review-image {
	width: 100%;
	height: auto;
	display: block;
	/* box-shadow:
		0 2px 2px rgba(0, 0, 0, 0.1),
		0 7px 3.5px rgba(0, 0, 0, 0.09),
		0 16px 4.5px rgba(0, 0, 0, 0.05); */
}

.masthead .object-fit {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.masthead .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 768px) {
	.masthead__inner {
		padding: 60px 28px 40px;
	}

	.masthead__breadcrumbs {
		font-size: 16px;
		line-height: 26.4px;
	}

	.masthead__title {
		margin-bottom: 36px;
		font-size: 42px;
		line-height: 1.12;
	}

	.masthead__review {
		margin-top: -60px;
	}
}

@media (min-width: 1200px) {
	.masthead__inner {
		padding: 130px 20px 20px;
	}

	.masthead__grid {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0;
		/* margin-bottom: -120px; */
        z-index: 9999;
        position: relative;
	}

	.masthead__content {
		flex: 1 1 auto;
		max-width: 680px;
		padding-right: 0;
		padding-top: 100px;
	}

	.masthead__title {
		margin-bottom: 60px;
		max-width: none;
		font-size: 50px;
		line-height: 55px;
		max-width: 560px;
		
	}

	.masthead__aside {
		flex: 0 0 510px;
		width: 510px;
		max-width: 510px;
		margin: 0;
		padding: 20px 0 0;
	}

	.masthead__feature {
		width: 570px;
		max-width: 100%;
		height: 450px;
		aspect-ratio: auto;
		margin-left: auto;
		margin-right: auto;
	}

	.masthead__review {
		margin-top: -74px;
	}

	.masthead__breadcrumbs a:hover {
		text-decoration: underline;
	}

	.masthead__breadcrumbs a:focus-visible,
	.masthead__review-link:focus-visible {
		outline: 2px solid var(--color-primary);
		outline-offset: 3px;
	}

	/* First WYSIWYG under masthead clears overlapping logos/review (Figma: 180px) */
	.masthead + .wysiwyg.section-padding {
		padding-top: 180px;
	}
}
