/*
 * Layout "cover": one full-bleed hero image; headline copy on the left, signup card on the right (inside the image).
 * Used by infusiveweb.com, utfleagues.com, watch/hear.predecy.com, retrogradecinemas.ca, northernendeavors.ca.
 *
 * Markup: core/cover.bcs-cover > inner container (a grid) > group.bcs-copy + group.bcs-card [+ p.bcs-cover-foot].
 * The overlay gradient and focal point are block settings (editable in the editor); art-directed mobile crops
 * are added by the child theme.
 */

.bcs-cover.wp-block-cover {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	min-height: 744px;
	padding: 0;
	align-items: stretch;
	justify-content: flex-start;
	color: var(--wp--preset--color--hero-ink);
}

.bcs-cover .wp-block-cover__inner-container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 384px;
	gap: 48px;
	align-items: end;
	padding: 56px var(--gutter);
	color: inherit;
}

.bcs-cover .bcs-copy {
	max-width: 800px;
	align-self: center;
	color: var(--wp--preset--color--hero-ink);
}

.bcs-cover .bcs-copy .bcs-eyebrow {
	color: var(--wp--preset--color--eyebrow);
}

.bcs-cover .bcs-copy .bcs-sub,
.bcs-cover .bcs-teasers {
	color: var(--wp--preset--color--hero-ink);
}

.bcs-cover .bcs-card {
	align-self: end;
}

.bcs-page .bcs-cover-foot {
	position: absolute;
	left: var(--gutter);
	bottom: 24px;
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--hero-ink);
}

@media (max-width: 1100px) and (min-width: 701px) {
	.bcs-cover .wp-block-cover__inner-container {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 24px;
		padding-block: 40px;
	}
}

@media (max-width: 700px) {
	.bcs-cover.wp-block-cover {
		display: block;
		min-height: 0 !important;
		padding: 0;
	}

	/* Default art direction: the same image as a 220px banner. A child theme may swap in a different mobile crop. */
	.bcs-cover .wp-block-cover__image-background {
		position: relative;
		inset: auto;
		display: block;
		width: 100%;
		height: 220px;
		object-fit: cover;
	}

	.bcs-cover .wp-block-cover__background {
		inset: 0 0 auto;
		bottom: auto;
		height: 220px;
	}

	.bcs-cover .wp-block-cover__inner-container {
		display: block;
		position: static;
		padding: 0;
	}

	.bcs-cover .bcs-copy {
		position: absolute;
		top: 24px;
		left: 20px;
		right: 20px;
		z-index: 2;
		max-width: 335px;
	}

	.bcs-page .bcs-cover-line {
		font-size: clamp(2.7rem, 11.3vw, 3.3rem);
		line-height: 1;
		margin: 12px 0;
	}

	.bcs-cover .bcs-copy .bcs-eyebrow {
		font-size: 9px;
	}

	.bcs-cover .bcs-copy .bcs-teasers,
	.bcs-page .bcs-cover-foot {
		display: none;
	}

	.bcs-cover .bcs-card {
		position: relative;
		margin: 20px;
		width: calc(100% - 40px);
		max-width: none;
	}
}
