:root {
	--eaks-hero-green: #0e845b;
	--eaks-hero-green-deep: #0a6a49;
	--eaks-hero-gold: #f4b928;
	--eaks-hero-ink: #071713;
	--eaks-hero-cream: #f7f3ea;
}

/* Keep Total header from stretching (sticky wrapper paints this green). */
body.home #site-header-sticky-wrapper,
body.page-id-839 #site-header-sticky-wrapper {
	height: auto !important;
	min-height: 0 !important;
	max-height: none;
}

body.home #site-header,
body.page-id-839 #site-header {
	height: auto !important;
	min-height: 0 !important;
}

body.home #site-header-inner,
body.page-id-839 #site-header-inner {
	height: auto !important;
	min-height: 0 !important;
}

body.home #site-logo .logo-img,
body.page-id-839 #site-logo .logo-img {
	max-height: 64px !important;
	width: auto !important;
	height: auto !important;
}

/* Kill hairline gap between green header and hero. */
body.home #site-header,
body.page-id-839 #site-header {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

body.home #main:has(.eaks-hero),
body.page-id-839 #main:has(.eaks-hero),
body.home #content-wrap:has(.eaks-hero),
body.page-id-839 #content-wrap:has(.eaks-hero),
body.home #primary:has(.eaks-hero),
body.page-id-839 #primary:has(.eaks-hero),
body.home #content:has(.eaks-hero),
body.page-id-839 #content:has(.eaks-hero),
body.home .single-page-article:has(.eaks-hero),
body.page-id-839 .single-page-article:has(.eaks-hero),
body.home .single-page-content:has(.eaks-hero),
body.page-id-839 .single-page-content:has(.eaks-hero),
body.home .wpb-content-wrapper:has(> .vc_row > .wpb_column .eaks-hero),
body.page-id-839 .wpb-content-wrapper:has(> .vc_row > .wpb_column .eaks-hero) {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.home .wpb-content-wrapper > .vc_row:first-child:has(.eaks-hero),
body.page-id-839 .wpb-content-wrapper > .vc_row:first-child:has(.eaks-hero) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	border: 0 !important;
}

/*
 * Full-bleed: open Total .container so the first hero row can span the viewport.
 * Avoid 100vw + calc(50%-50vw) — that causes the left white gap / horizontal scroll
 * when ancestors pad, clip, or when the scrollbar width is included in 100vw.
 */
body.home:has(.eaks-hero),
body.page-id-839:has(.eaks-hero) {
	overflow-x: clip;
}

body.home #content-wrap.container:has(.eaks-hero),
body.page-id-839 #content-wrap.container:has(.eaks-hero) {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow: visible !important;
}

body.home #primary:has(.eaks-hero),
body.page-id-839 #primary:has(.eaks-hero),
body.home #content:has(.eaks-hero),
body.page-id-839 #content:has(.eaks-hero),
body.home .single-page-article:has(.eaks-hero),
body.page-id-839 .single-page-article:has(.eaks-hero),
body.home .single-page-content:has(.eaks-hero),
body.page-id-839 .single-page-content:has(.eaks-hero),
body.home .wpb-content-wrapper:has(.eaks-hero),
body.page-id-839 .wpb-content-wrapper:has(.eaks-hero) {
	max-width: none !important;
	width: 100% !important;
	overflow: visible !important;
}

body.home .vc_row:has(.eaks-hero),
body.page-id-839 .vc_row:has(.eaks-hero) {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
}

body.home .wpb_column:has(.eaks-hero),
body.page-id-839 .wpb_column:has(.eaks-hero),
body.home .vc_column-inner:has(.eaks-hero),
body.page-id-839 .vc_column-inner:has(.eaks-hero),
body.home .wpb_wrapper:has(.eaks-hero),
body.page-id-839 .wpb_wrapper:has(.eaks-hero) {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
	overflow: visible !important;
}

/* Re-introduce readable page gutters for standard rows after the hero. */
body.home .wpb-content-wrapper:has(.eaks-hero) > .vc_row:not(:has(.eaks-hero)):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch),
body.page-id-839 .wpb-content-wrapper:has(.eaks-hero) > .vc_row:not(:has(.eaks-hero)):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch) {
	width: min(1100px, calc(100% - 2.5rem));
	max-width: 1100px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	body.home .wpb-content-wrapper:has(.eaks-hero) > .vc_row:not(:has(.eaks-hero)):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch),
	body.page-id-839 .wpb-content-wrapper:has(.eaks-hero) > .vc_row:not(:has(.eaks-hero)):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch) {
		width: min(1100px, calc(100% - 1.5rem));
	}
}

.eaks-hero {
	/* Fluid height: scales with viewport height & width, not a fixed cap. */
	--hero-h: clamp(420px, 62vh, 640px);
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: none;
	margin: 0;
	left: auto;
	right: auto;
	height: var(--hero-h);
	min-height: var(--hero-h);
	background: var(--eaks-hero-ink);
	overflow: hidden;
	color: #fff;
	box-sizing: border-box;
}

.eaks-hero__viewport {
	position: relative;
	height: 100%;
	min-height: var(--hero-h);
	width: 100%;
}

.eaks-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.7s ease, visibility 0.7s ease;
	z-index: 1;
}

.eaks-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
	/* Stay absolute so inactive slides never reflow/stack. Height comes from --hero-h. */
	position: absolute;
}

.eaks-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.eaks-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transform: scale(1.04);
	transition: transform 6.5s ease;
}

.eaks-hero__slide.is-active .eaks-hero__img {
	transform: scale(1);
}

.eaks-hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 23, 19, 0.78) 0%, rgba(7, 23, 19, 0.45) 42%, rgba(7, 23, 19, 0.2) 68%, rgba(7, 23, 19, 0.35) 100%),
		linear-gradient(180deg, rgba(7, 23, 19, 0.15) 0%, rgba(7, 23, 19, 0.55) 100%);
	pointer-events: none;
}

.eaks-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	align-content: center;
	height: 100%;
	min-height: var(--hero-h);
	width: min(1180px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: clamp(3.5rem, 6vh, 5.5rem) 0 clamp(3rem, 5vh, 4.5rem);
	box-sizing: border-box;
}

.eaks-hero__copy {
	max-width: 38rem;
}

#eaks-home-hero .eaks-hero__eyebrow,
.eaks-hero .eaks-hero__eyebrow {
	margin: 0 0 0.85rem;
	font-family: "Open Sans", "Segoe UI", sans-serif;
	/* Total sets html{font-size:62.5%}; use px so this stays readable */
	font-size: 15px !important;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.94);
}

.eaks-hero__title {
	margin: 0 0 1rem;
	font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
	font-weight: 600;
	font-size: clamp(2.35rem, 5.2vw, 4.1rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.eaks-hero__title-soft {
	display: block;
	color: #fff;
}

.eaks-hero__title-gold {
	display: block;
	color: var(--eaks-hero-gold);
	font-style: italic;
	font-weight: 500;
}

.eaks-hero__lede {
	margin: 0 0 1.55rem;
	max-width: 36rem;
	font-family: "Open Sans", "Segoe UI", sans-serif;
	font-size: clamp(1.12rem, 1.9vw, 1.3rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.eaks-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.35rem;
	margin-bottom: 1.85rem;
}

.eaks-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.55rem;
	border-radius: 999px;
	background: var(--eaks-hero-gold);
	color: var(--eaks-hero-ink) !important;
	font-family: "Open Sans", "Segoe UI", sans-serif;
	font-size: 1.08rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, background 0.2s ease;
}

.eaks-hero__cta:hover,
.eaks-hero__cta:focus-visible {
	background: #ffd45d;
	transform: translateY(-1px);
	color: var(--eaks-hero-ink) !important;
}

.eaks-hero__video {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: #fff !important;
	font-family: "Open Sans", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none !important;
}

.eaks-hero__play {
	display: inline-grid;
	place-items: center;
	width: 2.7rem;
	height: 2.7rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(4px);
}

.eaks-hero__play svg {
	width: 20px;
	height: 20px;
}

.eaks-hero__video:hover .eaks-hero__play,
.eaks-hero__video:focus-visible .eaks-hero__play {
	background: rgba(244, 185, 40, 0.2);
	border-color: var(--eaks-hero-gold);
}

.eaks-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaks-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: "Open Sans", "Segoe UI", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.96);
}

.eaks-hero__fact-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--eaks-hero-gold);
}

.eaks-hero__fact-icon svg {
	width: 32px !important;
	height: 32px !important;
}

.eaks-hero__signature {
	position: absolute;
	right: 0;
	bottom: 3.4rem;
	margin: 0;
	max-width: 14rem;
	font-family: "Great Vibes", "Segoe Script", cursive;
	font-size: clamp(1.55rem, 2.6vw, 2.15rem);
	line-height: 1.15;
	color: rgba(255, 255, 255, 0.92);
	text-align: right;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.eaks-hero__signature::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 2px;
	margin: 0.45rem 0 0 auto;
	background: linear-gradient(90deg, transparent, var(--eaks-hero-gold));
}

.eaks-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(7, 23, 19, 0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.eaks-hero__nav:hover,
.eaks-hero__nav:focus-visible {
	background: var(--eaks-hero-green);
}

.eaks-hero__nav--prev { left: 1rem; }
.eaks-hero__nav--next { right: 1rem; }

.eaks-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	z-index: 5;
	transform: translateX(-50%);
	display: flex;
	gap: 0.45rem;
}

.eaks-hero__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.eaks-hero__dot.is-active {
	width: 1.35rem;
	background: var(--eaks-hero-gold);
}

@media (max-width: 1200px) {
	.eaks-hero {
		--hero-h: clamp(400px, 58vh, 560px);
	}
}

@media (max-width: 900px) {
	.eaks-hero {
		--hero-h: clamp(380px, 56vh, 520px);
	}

	.eaks-hero__inner {
		width: min(1180px, calc(100% - 2rem));
		padding: clamp(3rem, 5vh, 4.5rem) 0 clamp(2.75rem, 4.5vh, 4rem);
	}

	.eaks-hero__signature {
		display: none;
	}

	.eaks-hero__nav--prev { left: 0.65rem; }
	.eaks-hero__nav--next { right: 0.65rem; }
}

@media (max-width: 640px) {
	.eaks-hero {
		/* dvh tracks mobile browser chrome; keep room for copy without a rigid 520px. */
		--hero-h: clamp(420px, 70dvh, 560px);
		height: auto;
		min-height: var(--hero-h);
	}

	.eaks-hero__viewport {
		height: auto;
		min-height: var(--hero-h);
	}

	/* Active slide defines height from content; others stay stacked on top. */
	.eaks-hero__slide.is-active {
		position: relative;
		inset: auto;
		height: auto;
		min-height: var(--hero-h);
	}

	.eaks-hero__inner {
		width: 100%;
		height: auto;
		min-height: var(--hero-h);
		padding: clamp(2.75rem, 5dvh, 3.5rem) 1.15rem clamp(3.5rem, 6dvh, 4.25rem);
		padding-left: max(1.15rem, env(safe-area-inset-left));
		padding-right: max(1.15rem, env(safe-area-inset-right));
		align-content: end;
	}

	.eaks-hero__copy {
		max-width: none;
	}

	.eaks-hero__eyebrow {
		font-size: 12px !important;
		letter-spacing: 0.12em;
		margin-bottom: 0.55rem;
	}

	.eaks-hero__title {
		font-size: clamp(1.85rem, 8.2vw, 2.45rem);
		margin-bottom: 0.7rem;
	}

	.eaks-hero__lede {
		font-size: 1rem;
		line-height: 1.5;
		margin-bottom: 1.15rem;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.eaks-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.85rem 1rem;
		margin-bottom: 1.25rem;
	}

	.eaks-hero__cta {
		padding: 0.85rem 1.25rem;
		font-size: 0.98rem;
	}

	.eaks-hero__video {
		font-size: 0.95rem;
	}

	.eaks-hero__play {
		width: 2.35rem;
		height: 2.35rem;
	}

	.eaks-hero__facts {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.eaks-hero__facts li {
		font-size: 0.95rem;
		gap: 0.55rem;
	}

	.eaks-hero__fact-icon {
		width: 2.4rem;
		height: 2.4rem;
	}

	.eaks-hero__fact-icon svg {
		width: 22px !important;
		height: 22px !important;
	}

	/* Side arrows collide with copy on narrow screens — swipe + dots only. */
	.eaks-hero__nav {
		display: none;
	}

	.eaks-hero__dots {
		bottom: 0.85rem;
	}

	.eaks-hero__veil {
		background:
			linear-gradient(180deg, rgba(7, 23, 19, 0.2) 0%, rgba(7, 23, 19, 0.45) 40%, rgba(7, 23, 19, 0.88) 100%);
	}
}

/* Short viewports (laptop lid / landscape phone): shrink hero further. */
@media (max-height: 720px) and (min-width: 641px) {
	.eaks-hero {
		--hero-h: clamp(340px, 72vh, 480px);
	}

	.eaks-hero__inner {
		padding: 2.75rem 0 2.5rem;
	}

	.eaks-hero__facts li {
		font-size: 1rem;
	}

	.eaks-hero__fact-icon {
		width: 2.5rem;
		height: 2.5rem;
	}
}

@media (max-height: 560px) {
	.eaks-hero {
		--hero-h: clamp(300px, 88vh, 420px);
	}

	.eaks-hero__lede {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.eaks-hero__facts {
		display: none;
	}

	.eaks-hero__signature {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eaks-hero__slide,
	.eaks-hero__img,
	.eaks-hero__cta,
	.eaks-hero__dot {
		transition: none !important;
	}
	.eaks-hero__img {
		transform: none !important;
	}
}

/* Collapse empty VC wrappers around replaced shortcode */
.single-page-content > .vc_row:first-child .wpb_wrapper:empty,
.single-page-content > .vc_row:first-child .vc_column-inner:has(> .wpb_wrapper:empty) {
	min-height: 0;
}
