/* Structure only.
 *
 * Colour, type, border, shadow and decorative treatment were stripped when
 * this became the blank starter. The design comes from the build's own
 * Figma / Claude Design work, not from here.
 *
 * Spacing and sizing are exposed as --fw-<selector>-<property> tokens that
 * default to 0, so the starter asserts nothing and the design layer sets
 * them. Everything left is layout mechanics the block needs to function.
 */

.fw-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	min-height: var(--fw-hero-min-height, 0);
}

.fw-hero__slide {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.8s ease;
	position: relative;
}

.fw-hero__slide.is-active {
	opacity: 1;
}

/* Slide image — a real <img> (not a CSS background) so the browser can
   discover, prioritise and lazy-load it. Right-aligned at full height to match
   the former background-size:auto 100%; background-position:right center. */
.fw-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 50%;
	max-width: none;
	object-fit: cover;
	object-position: center 22%;
	display: block;
	z-index: 0;
}

.fw-hero__slide::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	/* keep the legibility gradient above the slide image */
	pointer-events: none;
}
.fw-hero__content {
	grid-area: 1 / 1;
	box-sizing: border-box;
	width: 100%;
	/* Align the text's left edge to the centred 1440px content container (same
	   as the header logo) on wide screens, with a 20px gutter on narrow ones.
	   The slide image stays full-bleed behind, on the right. */
	padding: var(--fw-hero-content-padding, 0);
	padding-left: var(--fw-hero-content-padding-left, 0);
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 2;
	position: relative;
}
.fw-hero__content h1 {
	margin: var(--fw-hero-content-margin, 0);
}

.fw-hero__content p {
	margin-bottom: var(--fw-hero-content-margin-bottom, 0);
	max-width: var(--fw-hero-content-max-width, 0);
}

.fw-hero__content p:last-of-type {
	margin-bottom: var(--fw-hero-content-margin-bottom, 0);
}

/* ----- CTA button (core/button rendered via the inner block) ----- */
.fw-hero__content .wp-block-button {
	margin: 0;
}

.fw-hero__content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: var(--fw-wp-block-button-link-gap, 0);
	padding: var(--fw-wp-block-button-link-padding, 0);
	transition: background 0.25s ease, color 0.25s ease;
}
/* Arrow slides right on hover (Figma button hover state). */
.fw-hero__content .wp-block-button__link::after {
	transition: transform 0.25s ease;
}
.fw-hero__content .wp-block-button__link:hover::after {
	transform: translateX(6px);
}

/* Right-arrow icon appended to the CTA — drawn as an SVG mask so it inherits
   the button's text color (so :hover, theme overrides, etc. all "just work"). */
.fw-hero__content .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: var(--fw-wp-block-button-link-width, 0);
	height: var(--fw-wp-block-button-link-height, 0);
	flex-shrink: 0;
}

/* ----- Slide nav dots ----- */
.fw-hero__dots {
	display: flex;
	gap: var(--fw-hero-dots-gap, 0);
	margin-top: var(--fw-hero-dots-margin-top, 0);
}

.fw-hero__dot {
	-webkit-appearance: none;
	appearance: none;
	width: var(--fw-hero-dot-width, 0);
	height: var(--fw-hero-dot-height, 0);
	margin: 0;
	padding: 0;
	cursor: pointer;
	transition: background 0.25s ease;
}

