/**
 * Eclipse Hero widget.
 *
 * Uses the theme's --ecl-* tokens with fallbacks, so it still renders
 * correctly if the theme changes.
 */

.ecl-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ecl-navy, #0e1d2e);
	color: var(--ecl-on-dark, #fff);
}

.ecl-hero--home {
	min-height: min(88vh, 860px);
}

/* Photo */
.ecl-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

/* Two classes, to beat Elementor's `.elementor img { height: auto; max-width: 100% }`. */
.ecl-hero .ecl-hero__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
}

.ecl-hero--inner .ecl-hero__img {
	object-position: center 65%;
}

/* Overlays */
.ecl-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.ecl-hero__overlay--home {
	background: linear-gradient(100deg, rgba(10, 21, 33, 0.88) 0%, rgba(10, 21, 33, 0.64) 44%, rgba(10, 21, 33, 0.14) 78%, rgba(10, 21, 33, 0.3) 100%);
}

.ecl-hero__overlay--inner {
	background:
		linear-gradient(90deg, rgba(14, 29, 46, 0.96) 0%, rgba(14, 29, 46, 0.82) 40%, rgba(14, 29, 46, 0.35) 100%),
		linear-gradient(180deg, rgba(14, 29, 46, 0.55) 0%, rgba(14, 29, 46, 0) 40%, rgba(14, 29, 46, 0.6) 70%, rgba(14, 29, 46, 0) 100%);
}

/* Content column. Top padding includes the fixed header's height. */
.ecl-hero__inner {
	width: 100%;
	max-width: var(--ecl-container, 1280px);
	margin: 0 auto;
	padding: calc(var(--ecl-header-h, 94px) + clamp(64px, 8vw, 96px)) var(--ecl-gutter, 28px) clamp(72px, 9vw, 104px);
}

.ecl-hero--inner .ecl-hero__inner {
	padding: calc(var(--ecl-header-h, 94px) + clamp(48px, 5vw, 72px)) var(--ecl-gutter, 28px) clamp(64px, 7vw, 96px);
}

/* Eyebrow (Home) */
.ecl-hero__eyebrow {
	margin: 0 0 26px;
	color: var(--ecl-gold, #c4964e);
	font-size: 0.75rem;
	letter-spacing: 0.34em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Label as a pill badge with a gold dot (Inner page) */
.ecl-hero--inner .ecl-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
	padding: 7px 16px 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--ecl-radius-pill, 999px);
	background: rgba(255, 255, 255, 0.06);
	color: var(--ecl-on-dark, #fff);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
}

.ecl-hero--inner .ecl-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ecl-gold, #c4964e);
}

/* Heading */
.ecl-hero__title {
	max-width: 15ch;
	margin: 0 0 24px;
	color: var(--ecl-on-dark, #fff);
	font-size: var(--ecl-fs-h1-home, clamp(2.5rem, 6.4vw, 5.125rem));
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-wrap: pretty;
}

.ecl-hero--inner .ecl-hero__title {
	max-width: 20ch;
	margin-bottom: 20px;
	font-size: var(--ecl-fs-h1, clamp(2.25rem, 5vw, 3.75rem));
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-wrap: balance;
}

/* Text */
.ecl-hero__text {
	max-width: 54ch;
	margin: 0;
	color: #e4e8ed;
	font-size: clamp(1.125rem, 2.1vw, 1.375rem);
	line-height: 1.6;
}

.ecl-hero--inner .ecl-hero__text {
	max-width: 58ch;
	color: var(--ecl-on-dark-lead, #d8dee5);
	font-size: var(--ecl-fs-lead, 1.0625rem);
	line-height: 1.65;
	text-wrap: pretty;
}

/* Tagline */
.ecl-hero__tagline {
	margin: 14px 0 0;
	color: var(--ecl-gold, #c4964e);
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Buttons */
.ecl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 44px;
}

.ecl-hero__btn {
	display: inline-flex;
	align-items: center;
	border-radius: var(--ecl-radius-pill, 999px);
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.ecl-hero__btn--primary {
	gap: 22px;
	padding: 8px 8px 8px 30px;
	background: var(--ecl-white, #fff);
	color: var(--ecl-navy, #0e1d2e);
	font-size: 0.9375rem;
}

.ecl-hero__btn--primary:hover,
.ecl-hero__btn--primary:focus-visible {
	background: #f2e7d5;
	color: var(--ecl-navy, #0e1d2e);
}

.ecl-hero__btn-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ecl-navy, #0e1d2e);
	color: var(--ecl-gold, #c4964e);
	font-size: 1.0625rem;
}

.ecl-hero__btn--secondary {
	padding: 17px 30px;
	border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
	color: var(--ecl-on-dark, #fff);
	font-size: 0.875rem;
	white-space: nowrap;
}

.ecl-hero__btn--secondary:hover,
.ecl-hero__btn--secondary:focus-visible {
	border-color: currentColor;
	color: var(--ecl-gold, #c4964e);
}

.ecl-hero :focus-visible {
	outline: 2px solid var(--ecl-gold, #c4964e);
	outline-offset: 3px;
}
