/*
 * Hero: full-width photo stage (graphite overlay on the text side) and a white
 * services panel that overlaps the lower edge of the stage.
 */

.mj-hero {
	position: relative;
	padding-top: var(--mj-header-h);
	padding-bottom: 0;
	background: var(--mj-cream);
}

/* Stage */
.mj-hero__stage {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(34rem, calc(100svh - var(--mj-header-h) - 4rem), 46rem);
	background: var(--mj-graphite);
	color: var(--mj-cream);
	overflow: hidden;

	/* Dark surface: buttons invert to cream on hover */
	--mj-btn-hover-bg: var(--mj-cream);
	--mj-btn-hover-fg: var(--mj-graphite);
}

.mj-hero__media {
	position: absolute;
	inset: 0;
}

.mj-hero__media picture {
	display: block;
	height: 100%;
}

.mj-hero .mj-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 70% 50%;
}

/* Overlay: solid enough behind the text, the photo stays visible on the right */
.mj-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(22, 24, 29, 0.96) 0%, rgba(22, 24, 29, 0.9) 38%, rgba(22, 24, 29, 0.45) 66%, rgba(22, 24, 29, 0.15) 100%),
		linear-gradient(0deg, rgba(22, 24, 29, 0.55) 0%, rgba(22, 24, 29, 0) 35%);
}

/* No photo yet: plain graphite with a faint light from the right */
.mj-hero__media.is-empty {
	background: radial-gradient(ellipse 60% 80% at 85% 40%, #2a2d35 0%, var(--mj-graphite) 70%);
}

.mj-hero__content {
	position: relative;
	padding-block: 4.5rem 8.5rem;
}

.mj-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	color: rgba(242, 240, 235, 0.8);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* Short orange rule, like the bar of the gear gate in the logo */
.mj-hero__eyebrow::before {
	content: '';
	flex: none;
	width: 2rem;
	height: 2px;
	background: var(--mj-orange);
}

.mj-hero__title {
	max-width: 13ch;
	margin: 0 0 1.5rem;
	color: var(--mj-cream);
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	letter-spacing: -0.015em;
}

.mj-hero__title-sub {
	display: block;
	margin-top: 0.75rem;
	color: rgba(242, 240, 235, 0.62);
	font-size: 0.42em;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
}

.mj-hero__lead {
	max-width: 36rem;
	margin: 0 0 2.5rem;
	color: rgba(242, 240, 235, 0.82);
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
	line-height: 1.65;
}

.mj-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mj-btn--lg {
	min-height: 3.375rem;
	padding: 0 1.75rem;
	font-size: 1rem;
}

/* Services panel */
.mj-hero__services {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: -5rem 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 24px 48px -24px rgba(22, 24, 29, 0.35);
}

.mj-hero__service {
	display: flex;
	flex-direction: column;
	padding: 2.25rem 2.25rem 2rem;
}

.mj-hero__service + .mj-hero__service {
	border-left: 1px solid rgba(22, 24, 29, 0.12);
}

.mj-hero__service-title {
	margin: 0 0 0.75rem;
	font-size: 1.375rem;
}

.mj-hero__service p {
	flex: 1;
	margin: 0 0 1.5rem;
	color: rgba(22, 24, 29, 0.74);
	font-size: 0.9688rem;
	line-height: 1.6;
}

.mj-hero__service-link {
	align-self: flex-start;
	padding-bottom: 0.25rem;
	border-bottom: 2px solid var(--mj-orange);
	color: var(--mj-graphite);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.mj-hero__service-link:hover {
	border-color: var(--mj-graphite);
}

@media (max-width: 960px) {
	.mj-hero__services {
		grid-template-columns: minmax(0, 1fr);
		margin-top: -3rem;
	}

	.mj-hero__service {
		padding: 1.75rem 1.5rem;
	}

	.mj-hero__service + .mj-hero__service {
		border-left: 0;
		border-top: 1px solid rgba(22, 24, 29, 0.12);
	}
}

@media (max-width: 720px) {
	/* On phones the photo is a block above the text, fading into graphite */
	.mj-hero__stage {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.mj-hero__media {
		position: relative;
		inset: auto;
		aspect-ratio: 2 / 1;
	}

	.mj-hero__media.is-empty {
		display: none;
	}

	.mj-hero .mj-hero__img {
		object-position: 60% 50%;
	}

	.mj-hero__media::after {
		background: linear-gradient(0deg, var(--mj-graphite) 0%, rgba(22, 24, 29, 0) 45%);
	}

	.mj-hero__content {
		margin-top: -1.5rem;
		padding-block: 0 5.5rem;
	}

	.mj-hero__media.is-empty + .mj-hero__content {
		margin-top: 0;
		padding-top: 3rem;
	}

	.mj-hero__eyebrow {
		font-size: 0.875rem;
	}

	.mj-hero__title {
		font-size: clamp(2.25rem, 10vw, 3rem);
	}

	.mj-hero__title-sub {
		font-size: 0.5em;
	}

	.mj-hero__lead {
		font-size: 1rem;
	}

	.mj-hero__actions .mj-btn {
		flex: 1 1 100%;
	}
}
