.flcf-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(320px, 50vh, 640px);
	padding-block: var(--flcf-section-spacing-y, var(--flcf-section-spacing-default));
	background-color: var(--flcf-color-bg);
	background-image: var(--flcf-hero-bg-image, none);
	background-size: cover;
	background-position: center;
	color: var(--flcf-hero-text-color, var(--flcf-color-text));
	text-align: center;
}
 
.flcf-hero .flcf-btn {
	font-size: var(--flcf-fs-400);
}

/*
--flcf-hero-bg-image-mobile only exists when Background Image (Mobile) is
actually set (render.php) -- falling through this var()'s own fallback to
--flcf-hero-bg-image otherwise, the same photo desktop already uses,
rather than this rule ever needing its own separate blank/none case.
*/
@media (max-width: 767px) {
	.flcf-hero {
		background-image: var(--flcf-hero-bg-image-mobile, var(--flcf-hero-bg-image, none));
	}
}

/*
The dark scrim an Image background needs for legible text (render.php
only ever prints this element when Background = Image) -- its own
element rather than a second layer stacked inside --flcf-hero-bg-image,
so it can stay a plain full-bleed inset:0 regardless of whatever
background-size/-position the photo itself needs. z-index:0 is enough to
sit above the section's own background-image (an unpositioned background
paints below any positioned descendant by default) while staying below
every actual content element, all of which get z-index:1 below.
*/
.flcf-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

/*
Hidden (opacity:0, not display:none) until assets/src/js/modules/hero-
video.js adds --video-playing (below) -- the poster attribute already
shows the same photo in its place until then, so there's nothing to
reveal here except the actual moving video once played.
*/
.flcf-hero__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.flcf-hero--video-playing .flcf-hero__video {
	opacity: 1;
	pointer-events: auto;
}

/*
z-index:2, not 1 -- .flcf-hero__inner and .flcf-hero__badge-bounds (both
z-index:1, further down) come after this in the DOM, so at an equal
z-index they'd paint (and catch taps) on top of it wherever their own
box happens to overlap this button's centered position -- .inner's own
box grows taller as its text wraps across more lines on a narrow mobile
viewport specifically, which is what actually let it start covering this.
*/
.flcf-hero__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 0;
	border-radius: 50%;
	background-color: var(--flcf-color-bg);
	color: var(--flcf-color-teal);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.flcf-hero__play:hover {
	transform: translate(-50%, -50%) scale(1.05);
}

.flcf-hero__play svg {
	margin-left: 4px;
}

.flcf-hero--video-playing .flcf-hero__play {
	opacity: 0;
	pointer-events: none;
}

/*
Only the page's opening Hero gets this (see flc_forge_is_first_block() in
render.php) — pulling the section up by the header's own rendered height
(measured by header-overlap-height.js, since it varies with the utility
bar/sticky state/logo size) lets its background bleed up behind the
header instead of starting below it, while the equal padding-top pushes
.flcf-hero__inner back down to where it would have rendered anyway — only
the background moves, not the actual content position.
*/
.flcf-hero--overlap-header {
	margin-top: calc((var(--flcf-header-overlap-height, 0px) - 15px )*-1);
	padding-top: calc(var(--flcf-header-overlap-height, 0px) + var(--flcf-section-spacing-y, var(--flcf-section-spacing-default)));

	/*min-height: calc(100vh - (var(--flcf-header-overlap-height, 0px) - var(--flcf-utility-bar-height)));*/
	min-height: 92vh;
}

/*
A flat/gradient/pale-* opening Hero (no photo) doesn't need — and looks
oddly empty at — the same near-full-viewport height a background photo
earns; capped shorter instead, min() so it also comes down further on a
short viewport rather than sitting at a fixed 550px regardless.
*/
.flcf-hero--overlap-header.flcf-hero--no-image {
	min-height: min(550px, 60vh);
}

/*
render.php only ever adds this class once it's actually read the
Background Image's own dimensions (falling back to Default otherwise),
so --flcf-hero-aspect-ratio is always set whenever this class is —
the 16/9 fallback only matters if that custom property is somehow
missing, not as a real fallback for a missing image.
*/
.flcf-hero--height-image {
	min-height: 0;
	aspect-ratio: var(--flcf-hero-aspect-ratio, 16 / 9);
}

.flcf-hero--overlap-header.flcf-hero--height-image {
	min-height: 0;
}

.flcf-hero--height-standard,
.flcf-hero--overlap-header.flcf-hero--height-standard {
	min-height: min(550px, 60vh);
}

/*
Content Position — a 3x3 grid via the same `place-items` shorthand this
section already uses for its default centered case (align-items then
justify-items). .flcf-hero__inner's own flex alignment/text-align need
their own matching override so multi-line text and the CTA button align
the same way as the block itself, not just the block's single grid cell.
*/
.flcf-hero--content-top-left {
	place-items: start start;
}

.flcf-hero--content-top-center {
	place-items: start center;
}

.flcf-hero--content-top-right {
	place-items: start end;
}

.flcf-hero--content-center-left {
	place-items: center start;
}

.flcf-hero--content-center-right {
	place-items: center end;
}

.flcf-hero--content-bottom-left {
	place-items: end start;
}

.flcf-hero--content-bottom-center {
	place-items: end center;
}

.flcf-hero--content-bottom-right {
	place-items: end end;
}

.flcf-hero--content-top-left .flcf-hero__inner,
.flcf-hero--content-center-left .flcf-hero__inner,
.flcf-hero--content-bottom-left .flcf-hero__inner {
	align-items: flex-start;
	text-align: left;
	padding: 80px 20px;
}

.flcf-hero--content-top-right .flcf-hero__inner,
.flcf-hero--content-center-right .flcf-hero__inner,
.flcf-hero--content-bottom-right .flcf-hero__inner {
	align-items: flex-end;
	text-align: right;
}

/*
Compound selectors (not a separate stylesheet) so this always wins over
the base rule above regardless of whether this per-block stylesheet or
the shared main.min.css happens to load first — WordPress doesn't
guarantee an order between them.
*/
.flcf-hero.flcf-section--dark {
	background-color: var(--flcf-color-teal);
	color: var(--flcf-color-bg);
}

.flcf-hero.flcf-section--gradient {
	background-image: linear-gradient(135deg, var(--flcf-color-primary), var(--flcf-color-secondary));
	color: var(--flcf-color-bg);
}

.flcf-hero--border-radius {
	overflow: hidden;
	border-radius: 20px;
	border: 1.5px solid var(--flcf-color-teal);
}

.flcf-hero--border-radius.flcf-section--dark {
	border-color: var(--flcf-color-pale-sage);
}

.flcf-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--flcf-space-20);
	max-width: 720px;
}

/* Wider column so a 100px gap (below) leaves both columns some real room. */
.flcf-hero__inner--two-column.flcf-container {
	padding: 60px 0;
	max-width: var(--flcf-container-max);
}

/*
Same gap the Heading/Subheading used to get from .flcf-hero__inner's own
gap above, back when they were its direct children -- now that both are
wrapped in this div instead (so --two-column below can lay them out as
columns without disturbing .inner's own gap to the CTA button), that
spacing has to be reproduced here instead.
*/
.flcf-hero__content-columns {
	display: flex;
	flex-direction: column;
	gap: var(--flcf-space-20);
}

.flcf-hero__content-columns--two-column {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: self-end;
	gap: var(--flcf-space-8);

}

.flcf-hero__heading {
	/*
	No font-size/line-height here deliberately — this heading renders as
	either h1 or h2 depending on page position (see
	flc_forge_next_heading_tag()), so with no Heading Size override
	(below) it falls through to the base h1/h2 element rule in base.css
	(which reads the correct --flcf-fs-h1 or --flcf-fs-h2 for whichever
	tag this instance actually is) rather than hardcoding one fixed size
	here that would win by specificity regardless of the actual tag.
	*/
	margin: 0;
}

/*
Font size only -- fields.php's "Heading Size" is deliberately independent
of the actual tag above (h1 or h2, picked for correct document
structure, not visual size). Reuses the same per-level scale every real
h1-h6 already uses (base.css), so "H2 Size" here always matches what an
actual <h2> looks like elsewhere on the page.
*/
.flcf-hero__heading--h1 {
	font-size: var(--flcf-fs-h1);
}

.flcf-hero__heading--h2 {
	font-size: var(--flcf-fs-h2);
}

.flcf-hero__heading--h3 {
	font-size: var(--flcf-fs-h3);
}

.flcf-hero__heading--h4 {
	font-size: var(--flcf-fs-h4);
}

.flcf-hero__heading--h5 {
	font-size: var(--flcf-fs-h5);
}

.flcf-hero__heading--h6 {
	font-size: var(--flcf-fs-h6);
}

.flcf-hero__eyebrow {
	color: inherit;
	font-family: var(--Font-Family-Supporting, "Geist Mono");
	font-size: var(--Font-Size-Body-Overline-Extra-Small, 10px);
	font-style: normal;
	font-weight: 600;
	line-height: var(--Font-Line-Height-Body-Overline-Extra-Small, 18px);
	letter-spacing: var(--Font-Letter-Spacing-Body-Overline, 1.8px);
	text-transform: uppercase;
}

/*
2-column content nests this inside the heading tag itself (render.php),
right after the heading text -- block, not the plain inline a <span>
defaults to, so it reads as its own line below that text rather than
running directly into it.
*/
.flcf-hero__heading .flcf-hero__eyebrow {
	display: block;
	margin-top: var(--flcf-space-2);
}

.flcf-hero__subheading {
	font-size: var(--flcf-fs-18);
	color: inherit;
	margin: 0 0 20px;
	max-width: 960px;
}

.flcf-hero__content-columns .flcf-hero__subheading {
	margin-bottom: 0;
}

/*
render.php always wraps the subheading text in its own <p> here, plus a
second <p> around the CTA button when 2-column content nests it inside
this wrapper -- resetting the browser's default <p> margin so the two
stack with exactly the gap set below, not that default plus it.
*/
.flcf-hero__subheading p {
	margin: 0;
}

.flcf-hero__subheading p + p {
	margin-top: var(--flcf-space-3);
}

/*
Fills the Hero's full box (top/bottom 0, like .flcf-hero__badge below is
absolute), but width-capped/centered via the shared .flcf-container class
— .flcf-hero itself may render alignfull (100vw), so without this the
badge's own position:absolute (further down) would anchor to that full
viewport width instead of the theme's normal content column.
*/
.flcf-hero__badge-bounds {
	position: absolute;
	z-index: 1;
	inset: 0;
	max-width: var(--flcf-container-max);
	margin-inline: auto;
	pointer-events: none;
}

.flcf-hero__badge {
	position: absolute;
	width: clamp(98px, 10vw, 167px);
	height: auto;
	pointer-events: auto;
}

/*
Badge Position — corner variants use the two matching inset properties
directly; the three center-row/column variants also need a translate to
actually center on their anchor point rather than align flush to it.
Offset (render.php's inline margin-left/-top) composes independently of
either, since margin shifts the box after these are resolved.
*/
.flcf-hero__badge--top-left {
	top: var(--flcf-space-4);
	left: var(--flcf-space-4);
}

.flcf-hero__badge--top-center {
	top: var(--flcf-space-4);
	left: 50%;
	transform: translateX(-50%);
}

.flcf-hero__badge--top-right {
	top: var(--flcf-space-4);
	right: var(--flcf-space-4);
}

.flcf-hero__badge--center-left {
	top: 50%;
	left: var(--flcf-space-4);
	transform: translateY(-50%);
}

.flcf-hero__badge--center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.flcf-hero__badge--center-right {
	top: 50%;
	right: var(--flcf-space-4);
	transform: translateY(-50%);
}

.flcf-hero__badge--bottom-left {
	bottom: var(--flcf-space-4);
	left: var(--flcf-space-4);
}

.flcf-hero__badge--bottom-center {
	bottom: var(--flcf-space-4);
	left: 50%;
	transform: translateX(-50%);
}

.flcf-hero__badge--bottom-right {
	bottom: var(--flcf-space-4);
	right: var(--flcf-space-4);
}

@media (max-width: 1023px) {
	.flcf-hero {
		--flcf-section-spacing-y: 68px!important;
	}
	
	.flcf-hero.alignfull {
		padding-inline: 20px;
	}

	.flcf-hero__inner.flcf-container {
		padding-inline: 0;
	}

	.flcf-hero__inner.flcf-container.flcf-hero__inner--two-column {
		padding-inline: var(--flcf-container-pad);
	}

    .flcf-hero .flcf-btn {
        font-size: var(--flcf-fs-18);
        line-height: 24px;
    }

    .flcf-hero__inner {
        gap: 12px;
    }

	.flcf-hero__inner--two-column {
		max-width: 720px;
	}

	.flcf-hero__content-columns {
		gap: 12px;
	}

	/* Always stacks on mobile regardless of the Enable 2 Column Content field. */
	.flcf-hero__content-columns--two-column {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.flcf-hero__subheading {
		margin: 0 0 12px;
	}

	.flcf-hero--overlap-header {
		min-height: 85dvh;
	}

	.flcf-hero--overlap-header.flcf-hero--height-image {
		min-height: 0;
	}

	.flcf-hero--height-standard,
	.flcf-hero--overlap-header.flcf-hero--height-standard {
		min-height: min(450px, 60vh);
	}

	/*
	Guarantees enough room for Heading/Subheading/CTA regardless of which
	Hero Height this instance picked -- Image Height's own aspect-ratio is
	measured from the Background Image (used as the video's poster when one
	is set), and a wide/landscape photo's ratio applied to a narrow mobile
	screen can come out too short to fit all of that content, pushing the
	Subheading below the fold/behind whatever section follows this one.
	This risk is exactly the same with or without a video actually playing
	over that image -- :not(--no-image) (added whenever Background = Image,
	render.php), not --has-video specifically, so a plain photo background
	gets the same guarantee a video one already did.
	*/
	.flcf-hero:not(.flcf-hero--no-image),
	.flcf-hero--overlap-header:not(.flcf-hero--no-image) {
		min-height: min(600px, 85dvh);
	}

	.flcf-hero--height-image:not(.flcf-hero--no-image) {
		aspect-ratio: auto;
	}

	.flcf-hero {
		margin-top: calc((var(--flcf-header-overlap-height, 0px) - 35px) * -1);
		padding-block: var(--flcf-section-spacing-y-mobile, var(--flcf-section-spacing-y, var(--flcf-section-spacing-default)));
	}

	.flcf-hero__play {
		width: 56px;
		height: 56px;
	}

	.flcf-hero--content-top-left .flcf-hero__inner,
	.flcf-hero--content-center-left .flcf-hero__inner,
	.flcf-hero--content-bottom-left .flcf-hero__inner {
		align-items: flex-start;
		text-align: left;
		padding: 40px 10px;
	}	
}
