/**
 * Kestara hero full (default) — portable styles.
 *
 * Full-bleed variant of the flagship hero: the slider becomes a cinematic
 * background and the copy sits on a dark scrim. Everything is scoped to
 * .hero-full-default and self-contained, so the pattern can be moved to any
 * demo or page without the light hero stylesheet.
 */

.hero-full-default {
	--hsf-gutter: clamp(20px, 4vw, 48px);
	--hsf-pad-top: clamp(13px, 1.44vw, 25px);
	--hsf-media: clamp(420px, 42vw, 580px);
	--hsf-foot-gap: clamp(28px, 4vw, 44px);
	--hsf-foot: 52px;
	--hsf-controls-inset: 24px;
	--hsf-fg: var(--k-on-dark);
	--hsf-dim: color-mix(in srgb, var(--k-on-dark) 92%, transparent);
	--hsf-line: color-mix(in srgb, var(--k-on-dark) 34%, transparent);
	--hsf-scrim-strong: color-mix(in srgb, var(--k-deep) 74%, transparent);
	--hsf-scrim-mid: color-mix(in srgb, var(--k-deep) 46%, transparent);
	--hsf-scrim-soft: color-mix(in srgb, var(--k-deep) 14%, transparent);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	/* Mirrors the light hero: media + foot gap + meta row + top offset. The
	   offset is not padding here (the image must touch the header), so it only
	   keeps the total height identical to .hero-columns-default. */
	min-height: calc(var(--hsf-media) + var(--hsf-foot-gap) + var(--hsf-foot) + var(--hsf-pad-top));
	padding-top: 0;
	padding-bottom: 0;
	overflow: hidden;
	background: var(--wp--preset--color--contrast);
	color: var(--hsf-fg);
}

/* ---- Background layer ---------------------------------------------------- */
.hero-full-default .hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-full-default .hero-media .wp-block-kestara-hero-slider,
.hero-full-default .hero-media .kestara-hero-slider {
	height: 100%;
	border-radius: 0;
	box-shadow: none;
}

/* The scrim below already darkens the photo; drop the block gradient. */
.hero-full-default .hero-media .kestara-hero-slider__slide::after {
	background: none;
}

/* Demo image resets lower the height; keep the photo covering the full panel. */
.hero-full-default .hero-media .kestara-hero-slider__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-full-default .hero-media .kestara-hero-slider__dot {
	background: color-mix(in srgb, var(--k-on-dark) 62%, transparent);
}

.hero-full-default .hero-media .kestara-hero-slider__dot.is-active {
	background: var(--k-on-dark);
}

/* Keep the dots clear of the meta row ("Scroll ↓") below them. */
.hero-full-default .hero-media .kestara-hero-slider__dots {
	right: var(--hsf-controls-inset);
	bottom: calc(var(--hsf-foot) + 16px);
}

/* Arrows: solid enough to read before hover, primary purple on hover. */
.hero-full-default .hero-media .kestara-hero-slider__arrow {
	border-color: color-mix(in srgb, var(--k-on-dark) 65%, transparent);
	background: color-mix(in srgb, var(--k-on-dark) 92%, transparent);
	color: var(--k-deep);
	font-weight: 600;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--k-deep) 30%, transparent);
	backdrop-filter: none;
}

.hero-full-default .hero-media .kestara-hero-slider__arrow:hover,
.hero-full-default .hero-media .kestara-hero-slider__arrow:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Both arrows sit on the right of the photo, stacked on the vertical centre. */
.hero-full-default .hero-media .kestara-hero-slider__arrow.prev {
	left: auto;
	right: var(--hsf-controls-inset);
	top: calc(50% - 26px);
}

.hero-full-default .hero-media .kestara-hero-slider__arrow.next {
	right: var(--hsf-controls-inset);
	top: calc(50% + 26px);
}

/* Scrim: darkest where the copy starts, lighter on the right of the photo.
   It lives inside the slider so arrows, dots and captions stay above it. */
.hero-full-default .hero-media .kestara-hero-slider::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(0deg, var(--hsf-scrim-strong) 0%, transparent 58%),
		linear-gradient(90deg, var(--hsf-scrim-strong) 0%, var(--hsf-scrim-mid) 46%, var(--hsf-scrim-soft) 78%, transparent 100%);
	pointer-events: none;
}

/* ---- Layout the pattern relies on --------------------------------------- */
.hero-full-default .wrap {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-rows: 1fr auto;
	row-gap: 0;
	flex: 1;
	width: min(1320px, calc(100% - 2 * var(--hsf-gutter)));
	margin-inline: auto;
	/* The overlay must not swallow clicks meant for the slider controls. */
	pointer-events: none;
}

.hero-full-default .wrap a,
.hero-full-default .wrap button {
	pointer-events: auto;
}

.hero-full-default .grid12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	align-items: center;
	/* Floor for the copy/meta-row separation when the free space runs out
	   (mobile): half the rhythm gap top and bottom, so centring stays even. */
	padding-block: calc(var(--hsf-foot-gap) / 2);
}

/* ---- Typography ---------------------------------------------------------- */
.hero-full-default .display {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 0.94;
	letter-spacing: -0.04em;
	color: var(--hsf-fg);
}

/* Demo typography resets are one class deep; .copy keeps the light colours. */
.hero-full-default .copy .kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hsf-dim);
}

.hero-full-default .copy .lede {
	margin: 0;
	max-width: 27.5em;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.55;
	color: var(--hsf-dim);
}

.hero-full-default .meta {
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hsf-dim);
}

/* ---- Buttons ------------------------------------------------------------- */
.hero-full-default .wp-block-buttons {
	margin: 0;
}

.hero-full-default .copy .btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--hsf-fg);
	border-radius: 999px;
	background: transparent;
	color: var(--hsf-fg);
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-full-default .copy .btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

/* On the dark scrim the primary button inverts: light fill, dark label. */
.hero-full-default .copy .btn--primary .wp-block-button__link {
	background: var(--hsf-fg);
	border-color: var(--hsf-fg);
	color: var(--k-deep);
}

.hero-full-default .copy .btn--primary .wp-block-button__link:hover,
.hero-full-default .copy .btn--primary .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.hero-full-default .copy .btn--ghost .wp-block-button__link {
	border-color: color-mix(in srgb, var(--k-on-dark) 55%, transparent);
	background: color-mix(in srgb, var(--k-on-dark) 6%, transparent);
}

.hero-full-default .copy .btn--ghost .wp-block-button__link:hover {
	border-color: var(--hsf-fg);
	background: color-mix(in srgb, var(--k-on-dark) 14%, transparent);
	color: var(--hsf-fg);
}

.hero-full-default .copy > .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ---- Copy column --------------------------------------------------------- */
.hero-full-default .copy {
	grid-column: 1 / 7;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.hero-full-default .copy h1 {
	margin: 0;
	/* Same scale and column as the light hero: the title breaks identically. */
	font-size: clamp(46px, 6.4vw, 92px);
	letter-spacing: -0.055em;
	line-height: 0.9;
}

.hero-full-default .copy h1 em {
	font-style: normal;
	color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--k-on-dark));
	text-shadow: 0 0 42px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
}

.hero-full-default .copy > .hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 0;
}

.hero-full-default .hero-tag {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid color-mix(in srgb, var(--k-on-dark) 46%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--k-on-dark) 14%, transparent);
	color: var(--k-on-dark);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---- Meta row ------------------------------------------------------------ */
.hero-full-default .wrap > .hero-foot {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--hsf-line);
	color: var(--hsf-dim);
}

.hero-full-default .hero-foot a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.hero-full-default .wrap > .hero-foot a:hover,
.hero-full-default .wrap > .hero-foot a:focus-visible {
	color: var(--hsf-fg);
	border-bottom-color: currentColor;
}

/* ---- Entrance motion ----------------------------------------------------- */
.hero-full-default .copy > * {
	opacity: 0;
	transform: translateY(26px);
	animation: kestara-hero-full-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-full-default .copy > *:nth-child(1) {
	animation-delay: 0.06s;
}

.hero-full-default .copy > *:nth-child(2) {
	animation-delay: 0.12s;
}

.hero-full-default .copy > *:nth-child(3) {
	animation-delay: 0.22s;
}

.hero-full-default .copy > *:nth-child(4) {
	animation-delay: 0.3s;
}

.hero-full-default .copy > *:nth-child(5) {
	animation-delay: 0.38s;
}

.hero-full-default .hero-media {
	opacity: 0;
	animation: kestara-hero-full-fade 1.1s ease forwards;
}

@keyframes kestara-hero-full-rise {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes kestara-hero-full-fade {
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-full-default .copy > *,
	.hero-full-default .hero-media {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1023px) {
	.hero-full-default {
		--hsf-media: 420px;
	}

	.hero-full-default .copy {
		grid-column: 1 / -1;
		max-width: none;
	}

	.hero-full-default .copy h1 {
		font-size: clamp(44px, 9vw, 76px);
	}

	/* The copy spans the full width here: arrows would sit on the text.
	   Dots (and drag) remain the controls on small screens. */
	.hero-full-default .hero-media .kestara-hero-slider__arrow {
		display: none;
	}
}

@media (max-width: 640px) {
	.hero-full-default {
		--hsf-media: 360px;
		--hsf-foot: 72px;
	}

	.hero-full-default .copy {
		gap: 18px;
	}

	.hero-full-default .wrap > .hero-foot {
		gap: 12px;
	}
}
