/**
 * MICROBA Living Hero Component v1.0.3.
 *
 * Shared by all primary landing pages.
 * Hero artwork contains imagery only.
 * Typography belongs to HTML.
 */

/* =========================================================
   HERO FOUNDATION
   ========================================================= */

.mo-living-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(680px, 100svh, 860px);
	overflow: hidden;
	background-color: #0b0e0c;
	background-image: var(--mo-hero-image, none);
	background-position: var(--mo-hero-position, center center);
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.mo-living-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			rgba(4, 7, 6, .42) 0%,
			rgba(4, 7, 6, .26) 40%,
			rgba(4, 7, 6, .10) 72%,
			rgba(4, 7, 6, .02) 100%
		),
		linear-gradient(
			180deg,
			rgba(4, 7, 6, .03) 0%,
			rgba(4, 7, 6, .05) 68%,
			rgba(4, 7, 6, .18) 100%
		);
}

.mo-living-hero.has-overlay-strong .mo-living-hero-overlay {
	background:
		linear-gradient(
			90deg,
			rgba(4, 7, 6, .54) 0%,
			rgba(4, 7, 6, .34) 42%,
			rgba(4, 7, 6, .14) 72%,
			rgba(4, 7, 6, .03) 100%
		),
		linear-gradient(
			180deg,
			rgba(4, 7, 6, .05) 0%,
			rgba(4, 7, 6, .08) 68%,
			rgba(4, 7, 6, .24) 100%
		);
}

.mo-living-hero.has-overlay-soft .mo-living-hero-overlay {
	background:
		linear-gradient(
			90deg,
			rgba(4, 7, 6, .32) 0%,
			rgba(4, 7, 6, .18) 45%,
			rgba(4, 7, 6, .06) 75%,
			rgba(4, 7, 6, 0) 100%
		),
		linear-gradient(
			180deg,
			rgba(4, 7, 6, .02) 0%,
			rgba(4, 7, 6, .04) 70%,
			rgba(4, 7, 6, .16) 100%
		);
}

.mo-living-hero.has-overlay-none .mo-living-hero-overlay {
	display: none;
}


/* =========================================================
   HERO THEMES
   ========================================================= */

.mo-living-hero.is-dark {
	color: #fff;
}

.mo-living-hero.is-light {
	color: var(--mo-text);
}


/* =========================================================
   HERO LAYOUT
   ========================================================= */

.mo-living-hero-inner {
	display: flex;
	align-items: center;
	width: min(calc(100% - 2rem), var(--mo-container));
	min-height: inherit;
	margin-inline: auto;
	padding-top: clamp(8rem, 13vw, 10rem);
	padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}

.mo-living-hero-content {
	width: min(100%, 680px);
}


/* =========================================================
   HERO TYPOGRAPHY
   ========================================================= */

.mo-living-hero-eyebrow {
	margin: 0 0 1.25rem;
	color: var(--mo-accent, #c9a45d);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mo-living-hero.is-light .mo-living-hero-eyebrow {
	color: var(--mo-accent, #9b7435);
}

.mo-living-hero-title {
	max-width: 13ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.7rem, 4.4vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.04em;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.mo-living-hero.is-light .mo-living-hero-title {
	color: var(--mo-text);
	text-shadow: none;
}

.mo-living-hero-description {
	max-width: 610px;
	margin: 1.5rem 0 0;
	color: rgba(255, 255, 255, .84);
	font-size: clamp(1.05rem, 1.55vw, 1.22rem);
	line-height: 1.6;
}

.mo-living-hero.is-light .mo-living-hero-description {
	color: var(--mo-muted);
}


/* =========================================================
   HERO ACTIONS
   ========================================================= */

.mo-living-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 2.25rem;
}

.mo-living-hero-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition:
		transform .2s ease,
		background-color .2s ease,
		color .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}

.mo-living-hero-action:hover,
.mo-living-hero-action:focus-visible {
	transform: translateY(-2px);
}

.mo-living-hero-action.is-primary {
	padding: .95rem 1.55rem;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: #111;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.mo-living-hero-action.is-primary:hover,
.mo-living-hero-action.is-primary:focus-visible {
	border-color: var(--mo-accent, #c9a45d);
	background: var(--mo-accent, #c9a45d);
	color: #111;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}

.mo-living-hero.is-light .mo-living-hero-action.is-primary {
	border-color: var(--mo-text);
	background: var(--mo-text);
	color: #fff;
}

.mo-living-hero-action.is-secondary {
	min-height: auto;
	padding: .4rem 0;
	border-bottom: 1px solid currentColor;
	color: #fff;
}

.mo-living-hero-action.is-secondary:hover,
.mo-living-hero-action.is-secondary:focus-visible {
	color: var(--mo-accent, #c9a45d);
}

.mo-living-hero.is-light .mo-living-hero-action.is-secondary {
	color: var(--mo-text);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 782px) {
	.mo-living-hero {
		min-height: 700px;
	}

	.mo-living-hero-inner {
		padding-top: 8rem;
		padding-bottom: 4rem;
	}

	.mo-living-hero-title {
		font-size: clamp(2.4rem, 6vw, 3.4rem);
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
	.mo-living-hero {
		min-height: 620px;
		background-position:
			var(
				--mo-hero-position-mobile,
				var(--mo-hero-position, 68% center)
			);
	}

	.mo-living-hero-overlay,
	.mo-living-hero.has-overlay-soft .mo-living-hero-overlay,
	.mo-living-hero.has-overlay-strong .mo-living-hero-overlay {
		background:
			linear-gradient(
				90deg,
				rgba(4, 7, 6, .62) 0%,
				rgba(4, 7, 6, .40) 64%,
				rgba(4, 7, 6, .16) 100%
			),
			linear-gradient(
				180deg,
				rgba(4, 7, 6, .08) 0%,
				rgba(4, 7, 6, .12) 58%,
				rgba(4, 7, 6, .40) 100%
			);
	}

	.mo-living-hero-inner {
		width: min(calc(100% - 2rem), var(--mo-container));
		padding-top: 7rem;
		padding-bottom: 3.5rem;
	}

	.mo-living-hero-content {
		width: 100%;
	}

	.mo-living-hero-title {
		max-width: 12ch;
		font-size: clamp(2.2rem, 8vw, 2.9rem);
	}

	.mo-living-hero-description {
		max-width: 34ch;
	}

	.mo-living-hero-actions {
		align-items: flex-start;
		flex-direction: column;
	}
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.mo-living-hero-action {
		transition: none;
	}
}