/**
 * LawNest hero — full-bleed photo behind copy (HubSpot-aligned).
 */

.lawnest-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-top: 120px;
	padding-bottom: clamp(60px, 9vw, 120px);
	overflow: hidden;
	background: var(--lawnest-bg, #0e1719);
}

.lawnest-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			90deg,
			var(--lawnest-bg, #0e1719) 8%,
			rgba(14, 23, 25, 0.86) 42%,
			rgba(14, 23, 25, 0.3) 78%,
			rgba(14, 23, 25, 0.55)
		),
		linear-gradient(
			180deg,
			rgba(14, 23, 25, 0.7),
			transparent 30%,
			rgba(14, 23, 25, 0.55) 78%,
			var(--lawnest-bg, #0e1719)
		);
}

.lawnest-hero__bg {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	margin: 0 !important;
	width: 100%;
	height: 100%;
	max-width: none !important;
}

.lawnest-hero__bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
	transform: scale(1.06);
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.lawnest-hero > * {
	margin-block: 0;
}

.lawnest-hero__inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: 880px;
	margin-inline: auto !important;
	padding-inline: var(--lawnest-gutter, clamp(20px, 5vw, 64px));
}

.lawnest-hero__heading {
	margin-top: 1.4rem;
	font-family: var(--wp--preset--font-family--fraunces, "Fraunces", Georgia, serif);
	font-weight: 500;
	font-size: 80px;
	line-height: 84px;
	letter-spacing: -0.02em;
	color: var(--lawnest-text, #f5f0e6);
	text-wrap: wrap;
}

.lawnest-hero__slogan {
	margin-top: 1.6rem;
	max-width: 40ch;
	font-family: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif) !important;
	font-size: clamp(1.15rem, 2.1vw, 1.6rem) !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	color: var(--lawnest-text-soft, #e2ddd2);
}

.lawnest-hero__slogan strong {
	color: var(--lawnest-text, #f5f0e6);
	font-weight: 600;
}

p.lawnest-hero__desc {
	margin-top: 2.4rem;
	max-width: 52ch;
	padding-top: 1.8rem;
	border-top: 1px solid var(--lawnest-border, rgba(143, 160, 166, 0.16));
	font-size: 16.3px;
	font-weight: 400;
	line-height: 26px;
	color: #9aa8ae;
}

.lawnest-hero .lawnest-pills {
	display: flex;
	flex-wrap: nowrap !important;
	gap: 0.7rem;
	margin-top: 2.2rem;
}

.lawnest-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	height: 40px;
	padding: 0 0.95rem;
	border-radius: var(--lawnest-radius-pill, 999px);
	background: rgba(245, 240, 230, 0.05);
	border: 1px solid var(--lawnest-border, rgba(143, 160, 166, 0.16));
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--lawnest-text-soft, #e2ddd2);
	backdrop-filter: blur(8px);
	white-space: nowrap;
	box-sizing: border-box;
}

.lawnest-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lawnest-accent, #dda85c);
	box-shadow: 0 0 10px var(--lawnest-accent, #dda85c);
	flex: 0 0 auto;
}

.lawnest-hero__cta {
	margin-top: 2.4rem;
	gap: 1rem;
}

.lawnest-scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 2;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lawnest-text-muted, #9aa8ae);
}

.lawnest-scroll-cue::before {
	content: "";
	box-sizing: border-box;
	width: 22px;
	height: 36px;
	border: 1.5px solid var(--lawnest-border-strong, rgba(143, 160, 166, 0.3));
	border-radius: var(--lawnest-radius-pill, 999px);
	position: relative;
}

.lawnest-scroll-cue::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	width: 3px;
	height: 7px;
	border-radius: 2px;
	background: var(--lawnest-accent, #dda85c);
	transform: translateX(-50%);
	animation: lawnest-scroll-dot 1.8s var(--lawnest-ease, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}

.lawnest-scroll-cue a {
	color: inherit;
	text-decoration: none;
}

.lawnest-scroll-cue a:hover {
	color: var(--lawnest-text-soft, #e2ddd2);
}

@keyframes lawnest-scroll-dot {
	0% {
		opacity: 0;
		transform: translate(-50%, 0);
	}
	40% {
		opacity: 1;
	}
	80% {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
	100% {
		opacity: 0;
	}
}

.lawnest-hero .reveal {
	animation: lawnest-hero-reveal 0.8s var(--lawnest-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.lawnest-hero h1.reveal {
	animation: none;
	opacity: 1;
	transform: none;
}

.lawnest-hero .reveal.d1 {
	animation-delay: 0.08s;
}

.lawnest-hero .reveal.d2 {
	animation-delay: 0.16s;
}

.lawnest-hero .reveal.d3 {
	animation-delay: 0.24s;
}

@keyframes lawnest-hero-reveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 781px) {
	.lawnest-hero {
		padding-top: calc(75px + 2.5rem);
	}

	.lawnest-hero__inner {
		max-width: 100% !important;
		padding-inline: 20px;
	}

	.lawnest-hero__heading {
		font-size: min(41.6px, 9.2vw);
		line-height: 1.1;
		max-width: 100%;
	}

	.lawnest-hero .lawnest-pills {
		flex-wrap: wrap !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lawnest-hero .reveal {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.lawnest-scroll-cue::after {
		animation: none;
		opacity: 1;
		transform: translate(-50%, 0);
	}
}
