/* Ethan Hero 1.4.3 — Gutenberg body with restored 1.4.1 highlight input. */
.etb-hero-block,
.etb-hero,
.etb-hero__container,
.etb-hero__content,
.etb-hero__body { box-sizing: border-box; }

.etb-hero-block {
	position: relative;
	clear: both;
	width: 100%;
	overflow: visible;
}

.etb-hero {
	position: relative;
	width: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.etb-hero__overlay,
.etb-hero__video-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.etb-hero__overlay { z-index: 1; pointer-events: none; }
.etb-hero__video-bg { z-index: 0; object-fit: cover; pointer-events: none; }

.etb-hero__container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--eth-space-l, 2.5rem);
	align-items: center;
	width: 100%;
	max-width: var(--eth-container, 1350px);
	min-height: var(--etb-hero-min-height, auto);
	margin-inline: auto;
	padding-block: var(--eth-section-space-y, var(--eth-space-2xl, 4rem));
	padding-inline: var(--eth-section-space-x, var(--eth-space-m, 1.5rem));
}

.etb-hero--width-full .etb-hero__container { max-width: none; }
.etb-hero--layout-centered .etb-hero__container { min-height: var(--etb-hero-min-height, clamp(32rem, 62vh, 46rem)); }
.etb-hero--has-bg .etb-hero__container,
.etb-hero--has-video .etb-hero__container { min-height: var(--etb-hero-min-height, 60vh); }

.etb-hero__content {
	display: flex;
	flex-direction: column;
	gap: var(--eth-space-m, 1.5rem);
	min-width: 0;
}

.etb-hero__heading {
	max-inline-size: min(100%, var(--eth-container, 1350px));
	margin: 0;
	color: var(--etb-heading-color, var(--eth-text-title, #111));
	font-size: calc(var(--eth-fs-hero, 2.4rem) * var(--etb-heading-scale, 0.8));
	font-weight: var(--eth-fw-heading, 600);
	line-height: var(--eth-lh-tight, 1.1);
}

.etb-hero__body {
	max-inline-size: var(--eth-container-narrow, 720px);
	color: var(--eth-text-body, #333);
	font-size: var(--eth-fs-l, 1.15rem);
	line-height: var(--eth-lh-body, 1.65);
}

.etb-hero__body > :first-child { margin-top: 0; }
.etb-hero__body > :last-child { margin-bottom: 0; }
.etb-hero__body :is(p, ul, ol) { margin-block: 0 1rem; }
.etb-hero__body :is(ul, ol) { padding-inline-start: 1.35em; }
.etb-hero__body li + li { margin-top: 0.35em; }
.etb-hero__body a:not(.etb-button-block__button) {
	color: inherit;
	font-weight: var(--eth-fw-semibold, 600);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

/* Direct Ethan buttons remain a compact row after any paragraphs/lists. */
.etb-hero__body > .etb-button-block {
	margin-block: 0.5rem 0;
	margin-inline: 0 var(--eth-space-s, 1rem);
}

.etb-hero--align-center .etb-hero__content { align-items: center; text-align: center; }
.etb-hero--align-center :is(.etb-hero__heading, .etb-hero__body) { margin-inline: auto; }
.etb-hero--align-center .etb-hero__body > .etb-button-block { margin-inline: calc(var(--eth-space-s, 1rem) / 2); }

.etb-hero--align-right .etb-hero__content { align-items: flex-end; text-align: right; }
.etb-hero--align-right :is(.etb-hero__heading, .etb-hero__body) { margin-inline: auto 0; }
.etb-hero--align-right .etb-hero__body > .etb-button-block { margin-inline: var(--eth-space-s, 1rem) 0; }

/* 1.4.1 content model, refined as a sibling bridge between Hero and the next section. */
.etb-hero__highlights-bridge {
	--etb-hero-highlights-overlap: clamp(3.75rem, 5vw, 5.25rem);
	position: relative;
	z-index: 6;
	box-sizing: border-box;
	width: 100%;
	margin-block: calc(var(--etb-hero-highlights-overlap) * -1);
	padding-inline: var(--eth-section-space-x, clamp(1rem, 3vw, 1.5rem));
}

.etb-hero__highlights {
	display: grid;
	grid-template-columns: repeat(var(--etb-hero-highlights-cols, 4), minmax(0, 1fr));
	width: 100%;
	max-width: var(--eth-container, 1350px);
	min-height: calc(var(--etb-hero-highlights-overlap) * 2);
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--eth-border, rgba(17, 24, 39, 0.08));
	border-radius: var(--etb-hero-highlights-radius, 0.25rem);
	background: var(--eth-light, #fff);
	box-shadow: var(--eth-shadow-l, 0 1.75rem 4rem rgba(17, 24, 39, 0.18));
}

.etb-hero__highlights-bridge--cols-3 .etb-hero__highlights { --etb-hero-highlights-cols: 3; }
.etb-hero__highlights-bridge--width-full .etb-hero__highlights { max-width: none; }
.etb-hero__highlights-bridge--radius-none .etb-hero__highlights { --etb-hero-highlights-radius: 0; }
.etb-hero__highlights-bridge--radius-subtle .etb-hero__highlights { --etb-hero-highlights-radius: 0.25rem; }
.etb-hero__highlights-bridge--radius-rounded .etb-hero__highlights { --etb-hero-highlights-radius: 0.5rem; }

.etb-hero__highlights-bridge--items-1 .etb-hero__highlights {
	grid-template-columns: minmax(0, 1fr);
	max-width: min(var(--eth-container, 1350px), 34rem);
}

.etb-hero__highlights-bridge--items-2 .etb-hero__highlights {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: min(var(--eth-container, 1350px), 68rem);
}

.etb-hero__highlight {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: clamp(0.9rem, 1.35vw, 1.3rem);
	align-content: center;
	align-items: start;
	min-width: 0;
	margin: 0;
	padding: clamp(1.5rem, 2.4vw, 2.25rem);
	color: var(--eth-text-body, #3f4145);
	text-align: left;
	transition: background-color 220ms ease;
}

.etb-hero__highlight:not(:first-child) { border-inline-start: 1px solid var(--eth-border, rgba(17, 24, 39, 0.08)); }
.etb-hero__highlight:not(:has(.etb-hero__highlight-visual)) { grid-template-columns: minmax(0, 1fr); }
.etb-hero__highlight:hover { background: var(--eth-dark-5, rgba(17, 24, 39, 0.025)); }

.etb-hero__highlight-visual {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	color: var(--eth-primary, #ef4937);
}

.etb-hero__highlight-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.etb-hero__highlight--image .etb-hero__highlight-visual img {
	border-radius: var(--eth-radius-xs, 0.25rem);
	object-fit: cover;
}

.etb-hero__highlight:hover .etb-hero__highlight-visual img { transform: translateY(-3px); }
.etb-hero__highlight-content { min-width: 0; }
.etb-hero__highlight-title {
	margin: 0;
	color: var(--eth-text-title, #292b2f);
	font-size: clamp(1.05rem, 1.25vw, 1.2rem);
	font-weight: var(--eth-fw-bold, 700);
	line-height: 1.3;
}

.etb-hero__highlight-title a { color: inherit; text-decoration: none; }
.etb-hero__highlight-title a:hover,
.etb-hero__highlight-title a:focus-visible { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.etb-hero__highlight-description {
	margin-top: 0.65rem;
	color: var(--eth-text-body, #44464b);
	font-size: var(--eth-fs-body, 1rem);
	line-height: 1.6;
}
.etb-hero__highlight-description > :first-child { margin-top: 0; }
.etb-hero__highlight-description > :last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
	.etb-hero__highlights-bridge { --etb-hero-highlights-overlap: 3rem; }
	.etb-hero__highlights,
	.etb-hero__highlights-bridge--cols-3 .etb-hero__highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.etb-hero__highlight:nth-child(odd) { border-inline-start: 0; }
	.etb-hero__highlight:nth-child(n + 3) { border-top: 1px solid var(--eth-border, rgba(17, 24, 39, 0.08)); }
}

@media (max-width: 600px) {
	.etb-hero__highlights-bridge {
		--etb-hero-highlights-overlap: 1.5rem;
		margin-block: calc(var(--etb-hero-highlights-overlap) * -1) 0;
		padding-inline: min(var(--eth-section-space-x, 1rem), 1rem);
	}
	.etb-hero__highlights,
	.etb-hero__highlights-bridge--cols-3 .etb-hero__highlights,
	.etb-hero__highlights-bridge--items-2 .etb-hero__highlights { grid-template-columns: minmax(0, 1fr); max-width: none; min-height: 0; }
	.etb-hero__highlight { padding: 1.4rem 1.25rem; }
	.etb-hero__highlight:not(:first-child) { border-inline-start: 0; border-top: 1px solid var(--eth-border, rgba(17, 24, 39, 0.08)); }
}

.etb-hero__breadcrumb { margin-bottom: var(--eth-space-2xs, 0.6rem); }
.etb-hero__breadcrumb :is(a, .eth-breadcrumb__sep, .eth-breadcrumb__current) {
	color: var(--eth-text-muted, #555);
	font-size: var(--eth-fs-small, 0.9rem);
	text-decoration: none;
}
.etb-hero__breadcrumb a:hover { color: var(--eth-primary, #4f46e5); }

.etb-hero--layout-split .etb-hero__container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.etb-hero__media { min-width: 0; }
.etb-hero__image,
.etb-hero__video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--eth-radius-l, 1.25rem);
	box-shadow: var(--eth-shadow-l, 0 8px 24px rgba(0, 0, 0, 0.12));
}
.etb-hero__video { aspect-ratio: 16 / 9; border: 0; }
.etb-hero__media-placeholder {
	padding: var(--eth-space-m, 1.5rem);
	border: 1px dashed var(--eth-border, rgba(0, 0, 0, 0.12));
	border-radius: var(--eth-radius-m, 0.8rem);
	color: var(--eth-text-muted, #555);
	word-break: break-all;
}

.etb-hero.theme-inverted { background-color: var(--eth-dark-40, rgba(0, 0, 0, 0.4)); }
.etb-hero--has-bg .etb-hero__heading,
.etb-hero--has-video .etb-hero__heading,
.etb-hero.theme-inverted .etb-hero__heading { color: var(--etb-heading-color, var(--eth-light, #fff)); }

.etb-hero--has-bg .etb-hero__body,
.etb-hero--has-video .etb-hero__body,
.etb-hero.theme-inverted .etb-hero__body { color: var(--eth-light, #fff); }

.etb-hero:is(.etb-hero--has-bg, .etb-hero--has-video, .theme-inverted) .etb-button-block .etb-button-block__button.eth-btn--primary {
	border-color: var(--eth-light, #fff);
	background: var(--eth-light, #fff);
	color: var(--eth-primary, #4f46e5);
}
.etb-hero:is(.etb-hero--has-bg, .etb-hero--has-video, .theme-inverted) .etb-button-block .etb-button-block__button:is(.eth-btn--outline, .eth-btn--ghost) {
	border-color: var(--eth-light, #fff);
	background: transparent;
	color: var(--eth-light, #fff);
}
.etb-hero:is(.etb-hero--has-bg, .etb-hero--has-video, .theme-inverted) .etb-button-block .etb-button-block__button:hover,
.etb-hero:is(.etb-hero--has-bg, .etb-hero--has-video, .theme-inverted) .etb-button-block .etb-button-block__button:focus-visible {
	border-color: var(--eth-light-80, rgba(255, 255, 255, 0.82));
	background: var(--eth-light-80, rgba(255, 255, 255, 0.82));
	color: var(--eth-primary-d-1, #3730a3);
}

.etb-hero__heading,
.etb-hero__body,
.etb-hero__media {
	transition: opacity 360ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
:where(html.etb-has-js) .etb-hero.etb-reveal :is(.etb-hero__heading, .etb-hero__body, .etb-hero__media) { opacity: 0; transform: translateY(10px); }
.etb-hero:is(.etb-reveal--visible, .etb-no-anim) :is(.etb-hero__heading, .etb-hero__body, .etb-hero__media) { opacity: 1; transform: none; }
.etb-hero.etb-reveal--visible .etb-hero__body,
.etb-hero.etb-reveal--visible .etb-hero__media { transition-delay: 80ms; }

@media (max-width: 992px) {
	.etb-hero--layout-split .etb-hero__container { grid-template-columns: minmax(0, 1fr); }
	.etb-hero--layout-centered .etb-hero__container { min-height: var(--etb-hero-min-height, 28rem); }
}

@media (prefers-reduced-motion: reduce) {
	.etb-hero__heading,
	.etb-hero__body,
	.etb-hero__media { opacity: 1 !important; transform: none !important; transition: none !important; }
	.etb-hero__highlight,
	.etb-hero__highlight-visual img { transition: none; }
	.etb-hero__highlight:hover .etb-hero__highlight-visual img { transform: none; }
}
