/**
 * Kestara hero columns (default) — portable styles.
 *
 * Scoped to .hero-columns-default so the pattern works on any demo and any page,
 * independent of the .default body class. Loaded on every front-end request;
 * the selectors never match outside the hero itself.
 */

.hero-columns-default {
	--hero-gutter: clamp(20px, 4vw, 48px);
	position: relative;
	isolation: isolate;
	/* The theme flow gap used to sit above the hero; it lives in the padding now. */
	padding-top: calc(clamp(13px, 1.44vw, 25px) + var(--wp--preset--spacing--40, 24px));
	padding-bottom: 0;
}

/* ---- Layout the pattern relies on --------------------------------------- */
.hero-columns-default .wrap {
	width: min(1320px, calc(100% - 2 * var(--hero-gutter)));
	margin-inline: auto;
}

.hero-columns-default .wrap > .grid12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	align-items: center;
	row-gap: 40px;
}

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

.hero-columns-default .kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

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

.hero-columns-default .meta {
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

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

.hero-columns-default .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(--wp--preset--color--contrast);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	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-columns-default .btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

.hero-columns-default .btn--primary .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.hero-columns-default .btn--primary .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--contrast));
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
}

.hero-columns-default .btn--ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.hero-columns-default .copy > .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}
/*
 * Soft veil anchored to the section edges: the glows rise from the left and
 * bottom borders and fade out well before the centre, so no panel edge shows.
 */
.hero-columns-default::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(35deg, color-mix(in srgb, var(--wp--preset--color--primary) 3%, transparent) 0%, transparent 58%),
		radial-gradient(150% 170% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--primary) 9%, transparent) 0%, transparent 55%),
		radial-gradient(60% 80% at 12% 55%, color-mix(in srgb, var(--wp--preset--color--secondary) 5%, transparent) 0%, transparent 60%);
	-webkit-mask-image: linear-gradient(to top, transparent 0, transparent 40px, #000 104px);
	mask-image: linear-gradient(to top, transparent 0, transparent 40px, #000 104px);
	pointer-events: none;
}

/* ---- Copy column --------------------------------------------------------- */
.hero-columns-default .copy {
	grid-column: 1 / 7;
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: relative;
	z-index: 2;
}

.hero-columns-default .copy h1 {
	margin: 0;
	font-size: clamp(46px, 6.4vw, 92px);
	letter-spacing: -0.055em;
	line-height: 0.9;
}

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

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

.hero-columns-default .hero-tag {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
	color: var(--wp--preset--color--muted);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---- Slider panel -------------------------------------------------------- */
.hero-columns-default .visual {
	grid-column: 7 / 13;
	position: relative;
	z-index: 2;
	opacity: 0;
	transform: translateY(26px);
	animation: kestara-hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s forwards;
}

.hero-columns-default .visual .wp-block-kestara-hero-slider,
.hero-columns-default .visual .kestara-hero-slider {
	height: clamp(420px, 42vw, 580px);
	border-radius: 6px;
	box-shadow: 0 30px 80px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

/* The slider image must cover the whole panel, not its natural ratio. */
.hero-columns-default .visual .kestara-hero-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* In-image caption: the block uses the 14px small size, the mockup is 10px. */
.hero-columns-default .kestara-hero-slider__cap {
	font-size: 10px;
	letter-spacing: 0.14em;
}

/* ---- Meta row ------------------------------------------------------------ */
.hero-columns-default .wrap > .hero-foot {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: clamp(28px, 4vw, 44px);
	padding: 16px 0;
	border-top: 1px solid var(--wp--preset--color--surface-2);
}

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

.hero-columns-default .hero-foot a:hover,
.hero-columns-default .hero-foot a:focus-visible {
	border-bottom-color: currentColor;
}

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

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

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

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

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

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

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

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

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1023px) {
	.hero-columns-default .copy,
	.hero-columns-default .visual {
		grid-column: 1 / -1;
	}

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

	.hero-columns-default .visual .kestara-hero-slider {
		height: clamp(380px, 56vw, 520px);
	}
}

@media (max-width: 640px) {
	.hero-columns-default .visual .kestara-hero-slider {
		height: 360px;
	}
}

