/* LLH Hero Media - front end */
.llh-hero {
	--llh-radius: 24px;
	--llh-gap: 12px;
	--llh-maxw: 1200px;
	--llh-ratio-d: 16/9;
	--llh-ratio-m: 4/5;
	--llh-accent: #1f4e8c;
	--llh-text: #1f4e8c;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.llh-hero *,
.llh-hero *::before,
.llh-hero *::after { box-sizing: border-box; }

.llh-hero--card { max-width: var(--llh-maxw); padding-inline: 20px; }
.llh-hero--full { max-width: none; padding-inline: 0; }

.llh-hero-notice {
	padding: 14px 18px; margin: 16px; border: 1px dashed #c3c4c7;
	border-radius: 8px; background: #fff8e5; color: #50575e; font-size: 14px;
}

/* ---------- Text ---------- */
.llh-hero__text { text-align: center; max-width: 860px; margin: 0 auto; }
.llh-hero__text--above { padding-bottom: 32px; }
.llh-hero__text--below { padding-top: 32px; }
.llh-hero__eyebrow { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--llh-accent); }
.llh-hero__heading { margin: 0 0 14px; color: var(--llh-text); font-size: clamp(28px, 4.2vw, 56px); line-height: 1.12; font-weight: 700; }
.llh-hero__sub { margin: 0 auto; max-width: 680px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #3c434a; }
.llh-hero__btn {
	display: inline-block; margin-top: 22px; padding: 15px 34px; border-radius: 999px;
	background: var(--llh-accent); color: #fff !important; text-decoration: none !important;
	font-weight: 600; line-height: 1.2; transition: transform .2s ease, filter .2s ease;
}
.llh-hero__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.llh-hero__btn:focus-visible { outline: 3px solid var(--llh-accent); outline-offset: 3px; }

/* ---------- Video ---------- */
.llh-hero__media {
	position: relative; overflow: hidden; width: 100%;
	border-radius: var(--llh-radius);
	aspect-ratio: var(--llh-ratio-d);
	background: #e9eef5;
}
.llh-hero__poster,
.llh-hero__poster img,
.llh-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.llh-hero__poster img,
.llh-hero__video { object-fit: cover; }
.llh-hero__video { opacity: 0; transition: opacity .6s ease; background: transparent; }
.llh-hero__media.is-ready .llh-hero__video { opacity: 1; }

.llh-hero__toggle {
	position: absolute; right: 20px; bottom: 20px; z-index: 3;
	width: 52px; height: 52px; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1.5px solid rgba(255, 255, 255, .92); border-radius: 50%;
	background: rgba(0, 0, 0, .22); color: #fff; cursor: pointer;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	transition: background .2s ease, transform .2s ease;
}
.llh-hero__toggle:hover { background: var(--llh-accent); transform: scale(1.06); }
.llh-hero__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--llh-accent); }
.llh-hero__toggle svg { width: 20px; height: 20px; fill: currentColor; }
.llh-ico-play { display: none; }
.llh-hero__toggle.is-paused .llh-ico-pause { display: none; }
.llh-hero__toggle.is-paused .llh-ico-play { display: block; margin-left: 2px; }

/* ---------- Image grid ---------- */
.llh-grid { display: grid; gap: var(--llh-gap); width: 100%; }
.llh-grid__item {
	position: relative; margin: 0; overflow: hidden; min-height: 0;
	border-radius: var(--llh-radius); background: #e9eef5;
}
.llh-grid__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; display: block; max-width: none;
	transition: transform .8s ease;
}
.llh-hero--hover .llh-grid__item:hover .llh-grid__img { transform: scale(1.05); }

/* Feature + 4: big left, 2x2 right (square tiles) */
.llh-grid--feature { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 2 / 1; }
.llh-grid--feature .llh-grid__item:first-child { grid-row: 1 / 3; }

/* Split: one tall + two stacked */
.llh-grid--split { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.llh-grid--split .llh-grid__item:first-child { grid-row: 1 / 3; }

/* Equal grid */
.llh-grid--trio { grid-template-columns: repeat(3, 1fr); }
.llh-grid--trio .llh-grid__item { aspect-ratio: 4 / 3; }

/* Reveal on scroll (only when JS is running) */
.llh-hero--anim.llh-js-ready .llh-grid__item {
	opacity: 0; transform: translateY(20px);
	transition: opacity .7s ease, transform .7s ease;
	transition-delay: calc(var(--i, 0) * 90ms);
}
.llh-hero--anim.llh-js-ready .llh-grid__item.is-in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.llh-hero--card { padding-inline: 16px; }
	.llh-hero__media { aspect-ratio: var(--llh-ratio-m); }
	.llh-hero__toggle { right: 14px; bottom: 14px; width: 46px; height: 46px; }

	.llh-grid--feature,
	.llh-grid--split { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
	.llh-grid--feature .llh-grid__item,
	.llh-grid--split .llh-grid__item { aspect-ratio: 1 / 1; }
	.llh-grid--feature .llh-grid__item:first-child,
	.llh-grid--split .llh-grid__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }

	.llh-grid--trio { grid-template-columns: 1fr 1fr; }
	.llh-grid--trio .llh-grid__item { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
	.llh-hero--anim.llh-js-ready .llh-grid__item { opacity: 1; transform: none; transition: none; }
	.llh-grid__img, .llh-hero__video { transition: none; }
	.llh-hero--hover .llh-grid__item:hover .llh-grid__img { transform: none; }
}
