/*
 * Blanky Work – Split hero (text on the left, photo on the right)
 *
 * Shared by the Person and Scene heroes. The photo column stays narrower than
 * the bundled image (768px wide), so the image is never stretched.
 *
 * @package blanky-work
 * @since 1.7
 */

.work-hero-split {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--work-off-white);
}

.work-hero-split-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.75rem;
	padding: calc(var(--work-nav-height, 72px) + 2.5rem) 1.5rem 3rem;
}

.work-hero-split-eyebrow {
	font-family: var(--work-font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--work-muted-gold-text);
}

.work-hero-split-heading {
	font-family: var(--work-font-serif);
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--work-deep-navy);
}

.work-hero-split-heading span {
	display: block;
	word-break: auto-phrase;
}

/* The first line names what people come with; it leads in at a smaller size so the promise stays the focus. */
.work-hero-split-heading span:first-child {
	margin-bottom: 0.5em;
	font-size: 0.55em;
	line-height: 1.5;
	color: var(--work-text-muted);
}

.work-hero-split-lead {
	max-width: 32rem;
	font-family: var(--work-font-sans);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.9;
	color: var(--work-text-muted);
}

.work-hero-split-name {
	padding-top: 1.25rem;
	border-top: 1px solid var(--work-border-gold);
	font-family: var(--work-font-sans);
	font-size: 0.875rem;
	letter-spacing: 0.15em;
	color: var(--work-text-muted);
}

.work-hero-split .work-hero-tel {
	color: var(--work-deep-navy);
}

.work-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.work-hero-badges li {
	padding: 0.4em 0.9em;
	border: 1px solid var(--work-muted-gold);
	font-family: var(--work-font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--work-deep-navy);
	background: var(--work-white);
}

/* The first badge is the offer, so it is filled. */
.work-hero-badges li:first-child {
	border-color: var(--work-band);
	background: var(--work-band);
	color: var(--work-on-band);
}

.work-hero-split-photo {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e9e5dc;
}

.work-hero-split-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* Tablets stack text and photo; the photo stays at a modest size instead of filling the width. */
@media (600px <= width < 1024px) {
	.work-hero-split-photo {
		width: calc(100% - 3rem);
		max-width: 32rem;
		margin: 0 auto 3rem;
	}
}

@media (width >= 1024px) {
	/* Content stays within the site's max width and is centred, so text and photo never drift apart on wide screens. */
	.work-hero-split {
		grid-template-columns: minmax(0, 1fr) min(44vw, 38rem);
		column-gap: 4rem;
		min-height: 100svh;
		padding-inline: max(4rem, calc((100% - var(--work-max-w)) / 2));
	}

	.work-hero-split-body {
		padding: calc(var(--work-nav-height, 93px) + 3rem) 0 4rem;
	}

	/*
	 * The photo sits below the fixed header so the face is never hidden. Its height is capped
	 * so the bundled image (1200px tall) is not stretched on very tall screens.
	 */
	.work-hero-split-photo {
		align-self: center;
		aspect-ratio: auto;
		height: min(calc(100svh - var(--work-nav-height, 93px) - 4rem), 52rem);
		margin-top: var(--work-nav-height, 93px);
	}
}
