/* Everest Custom Elements — home.css
   Hero, stats band, card grid, CTA band. Shares .ehf-cta base from header.css. */

/* ---- CTA button modifiers (base .ehf-cta lives in header.css) ---- */
.ehf-cta--lg {
	font-size: 16px;
	padding: 16px 28px;
	border-radius: 12px;
}

.ehf-cta--light,
.ehf-cta--light:link,
.ehf-cta--light:visited {
	background: #ffffff;
	color: #0b6993 !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.ehf-cta--light:hover,
.ehf-cta--light:focus,
.ehf-cta--light:focus-visible,
.ehf-cta--light:active {
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
	color: #0b6993 !important;
}

/* ================= HERO ================= */
.ehf-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 72vh;
	padding: 0;
	background: #084f70;
}

.ehf-hero__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	animation: ehf-hero-kenburns 32s ease-out 2s forwards;
}

@keyframes ehf-hero-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.06); }
}

.ehf-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(8, 79, 112, 0.72) 0%, rgba(8, 79, 112, 0.42) 42%, transparent 78%);
}

.ehf-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1140px;
	margin: 0 auto;
	min-height: 72vh;
	padding: 64px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.ehf-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 640px;
	padding: 36px 32px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
}

.ehf-hero__badge {
	position: absolute;
	right: 24px;
	bottom: 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 18px;
	box-shadow: 0 16px 36px rgba(11, 41, 61, 0.22);
	max-width: 260px;
	z-index: 3;
}

.ehf-hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0b6993, #17a2c9);
	color: #fff;
	flex-shrink: 0;
}

.ehf-hero__badge-icon svg,
.ehf-hero__badge-icon i {
	font-size: 18px;
	width: 18px !important;
	height: 18px !important;
	fill: currentColor;
}

.ehf-hero__badge-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ehf-hero__badge-copy strong {
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.ehf-hero__badge-copy span {
	font-family: "Nunito Sans", sans-serif;
	font-size: 12px;
	color: #5c6570;
}

.ehf-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Nunito", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.18);
	padding: 6px 14px;
	border-radius: 999px;
}

.ehf-hero__title {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 52px;
	font-weight: 800;
	line-height: 1.08;
	color: #ffffff;
}

.ehf-hero__desc {
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	max-width: 46ch;
}

.ehf-hero__desc a,
.ehf-hero__desc a:link,
.ehf-hero__desc a:visited {
	color: #ffffff !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ehf-hero__desc a:hover,
.ehf-hero__desc a:focus-visible,
.ehf-hero__desc a:active {
	color: #ffffff !important;
}

.ehf-hero__actions {
	margin-top: 8px;
}

/* ================= STATS BAND ================= */
.ehf-stats {
	background: #f4f8fa;
	padding: 72px 24px 56px;
}

.ehf-stats__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
}

.ehf-stats__numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 56px;
}

.ehf-stats__number {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.ehf-stats__value {
	font-family: "Nunito", sans-serif;
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #0b6993, #17a2c9);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ehf-stats__value::after {
	content: "+";
}

.ehf-stats__label {
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	color: #5c6570;
	max-width: 22ch;
}

.ehf-stats__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
}

/* ---- Shared badge-tile component: normalizes wildly different logo aspect
   ratios (wide horizontal marks vs. tall vertical seals vs. square crests)
   into one consistent visual unit, used by both the stats band and the
   footer. Every tile is the SAME fixed box; the logo scales to fit inside
   via object-fit:contain (never cropped, never stretched) regardless of its
   real aspect ratio. Fixed box size (not just min-width) is what actually
   makes a row of unrelated logos read as one deliberate, uniform group
   instead of a jumble of different-width chips. ---- */
.ehf-badge-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 72px;
	padding: 12px;
	border-radius: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.ehf-badge-tile img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(10%);
	transition: filter 0.2s ease;
}

.ehf-badge-tile:hover,
.ehf-badge-tile:focus-visible {
	transform: translateY(-3px);
}

.ehf-badge-tile:hover img,
.ehf-badge-tile:focus-visible img {
	filter: grayscale(0%);
}

.ehf-badge-tile--light {
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(11, 41, 61, 0.08);
	border: 1px solid #eef1f3;
}

.ehf-stats__features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	width: 100%;
}

.ehf-stats__feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 8px;
}

.ehf-stats__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #eaf4f9;
	color: #0b6993;
	font-size: 22px;
	margin-bottom: 4px;
}

.ehf-stats__feature-icon svg,
.ehf-stats__feature-icon i {
	width: 22px !important;
	height: 22px !important;
	font-size: 22px;
	fill: currentColor;
}

.ehf-stats__feature h3 {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

.ehf-stats__feature p {
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #5c6570;
}

/* ================= CARD GRID ================= */
.ehf-grid {
	background: #ffffff;
	padding: 80px 24px;
}

.ehf-grid__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ehf-grid__heading {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.15;
	color: #111827;
	text-align: center;
}

.ehf-grid__desc {
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #5c6570;
	text-align: center;
	max-width: 60ch;
}

.ehf-grid__desc a,
.ehf-grid__desc a:link,
.ehf-grid__desc a:visited {
	color: #0b6993 !important;
	font-weight: 600;
}

.ehf-grid__cards {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

.ehf-grid__card,
.ehf-grid__card:link,
.ehf-grid__card:visited {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	min-height: 280px;
	overflow: hidden;
	border-radius: 16px;
	background: #084f70;
	color: #ffffff !important;
	text-decoration: none;
	opacity: 1;
	transform: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ehf-grid__card-media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.8s ease;
}

a.ehf-grid__card:hover .ehf-grid__card-media,
a.ehf-grid__card:focus-visible .ehf-grid__card-media {
	transform: scale(1.06);
}

.ehf-grid__card-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(8, 79, 112, 0.55) 0%, rgba(8, 79, 112, 0.08) 48%, transparent 70%);
}

.ehf-grid__card-icon {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	color: #0b6993;
	font-size: 18px;
}

.ehf-grid__card-icon svg,
.ehf-grid__card-icon i {
	width: 18px !important;
	height: 18px !important;
	font-size: 18px;
	fill: currentColor;
}

.ehf-grid__card-plate {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	background: rgba(8, 79, 112, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	color: #ffffff;
}

.ehf-grid__card-plate h3,
.ehf-grid__card h3 {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.ehf-grid__card-plate p,
.ehf-grid__card p {
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #ffffff;
}

a.ehf-grid__card:hover,
a.ehf-grid__card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(11, 41, 61, 0.18);
}

.ehf-grid__cards:has(.ehf-grid__card.is-current) .ehf-grid__card:not(.is-current) {
	opacity: 0.72;
}

.ehf-grid__card.is-current {
	opacity: 1;
}

.ehf-grid__card.is-current::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #17a2c9;
	z-index: 3;
}

.ehf-grid__cta {
	margin-top: 16px;
}

/* ================= CTA BAND ================= */
.ehf-ctaband {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #0b6993 0%, #084f70 55%, #063a52 100%);
	padding: 80px 24px;
}

.ehf-ctaband__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.18;
	pointer-events: none;
}

.ehf-ctaband__blob--a {
	width: 420px;
	height: 420px;
	background: #17a2c9;
	top: -160px;
	left: -100px;
}

.ehf-ctaband__blob--b {
	width: 360px;
	height: 360px;
	background: #ffffff;
	bottom: -180px;
	right: -100px;
	opacity: 0.08;
}

.ehf-ctaband__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.ehf-ctaband__inner h2 {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 38px;
	font-weight: 800;
	color: #ffffff;
}

.ehf-ctaband__desc {
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #eaf6fc;
}

.ehf-ctaband__desc a,
.ehf-ctaband__desc a:link,
.ehf-ctaband__desc a:visited {
	color: #ffffff !important;
	font-weight: 600;
}

.ehf-ctaband__desc a:hover,
.ehf-ctaband__desc a:focus-visible,
.ehf-ctaband__desc a:active {
	color: #ffffff !important;
}

.ehf-ctaband__actions {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}

.ehf-ctaband__phone,
.ehf-ctaband__phone:link,
.ehf-ctaband__phone:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff !important;
	text-decoration: none;
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 700;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	padding-bottom: 2px;
}

.ehf-ctaband__phone:hover,
.ehf-ctaband__phone:focus-visible,
.ehf-ctaband__phone:active {
	color: #ffffff !important;
}

.ehf-ctaband__phone svg {
	width: 16px;
	height: 16px;
	fill: #ffffff;
}

/* ================= ICON SLOGANS ================= */
.ehf-slogans {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 24px;
}

.ehf-slogans--center {
	justify-content: center;
}

.ehf-slogans--left {
	justify-content: flex-start;
}

.ehf-slogans__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #111827;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 700;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ehf-slogans--pill .ehf-slogans__item {
	background: #eaf4f9;
	border-radius: 999px;
	padding: 10px 18px;
}

a.ehf-slogans--pill .ehf-slogans__item:hover,
.ehf-slogans--pill a.ehf-slogans__item:hover,
.ehf-slogans--pill a.ehf-slogans__item:focus-visible {
	background: #dcedf5;
	transform: translateY(-2px);
}

.ehf-slogans__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b6993;
	flex-shrink: 0;
}

.ehf-slogans__icon svg,
.ehf-slogans__icon i {
	width: 15px !important;
	height: 15px !important;
	font-size: 15px;
	fill: currentColor;
}

.ehf-slogans--plain .ehf-slogans__item {
	color: #eaf6fc;
}

.ehf-slogans--plain .ehf-slogans__icon {
	color: #ffffff;
}

/* ================= Reveal-on-scroll (not cards — those paint with the heading) ================= */
.ehf-hero__content,
.ehf-hero__badge,
.ehf-stats__number,
.ehf-stats__feature,
.ehf-ctaband__inner {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.ehf-hero__content.is-visible,
.ehf-hero__badge.is-visible,
.ehf-stats__number.is-visible,
.ehf-stats__feature.is-visible,
.ehf-ctaband__inner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
	.ehf-hero__title {
		font-size: 38px;
	}

	.ehf-hero__content {
		padding: 28px 24px;
	}

	.ehf-stats__features,
	.ehf-grid__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.ehf-hero,
	.ehf-hero__inner {
		min-height: 56vh;
	}

	.ehf-hero__inner {
		padding: 40px 24px 88px;
	}

	.ehf-hero__badge {
		right: 16px;
		bottom: 16px;
		max-width: calc(100% - 32px);
	}

	.ehf-stats,
	.ehf-grid,
	.ehf-ctaband {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ehf-hero__title {
		font-size: 32px;
	}

	.ehf-stats__features,
	.ehf-grid__cards {
		grid-template-columns: 1fr;
	}

	.ehf-stats__numbers {
		gap: 32px;
	}

	.ehf-ctaband__inner h2,
	.ehf-grid__heading {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ehf-hero__bg {
		animation: none;
	}

	.ehf-hero__content,
	.ehf-hero__badge,
	.ehf-stats__number,
	.ehf-stats__feature,
	.ehf-ctaband__inner {
		opacity: 1;
		transform: none;
		transition: none;
	}

	a.ehf-grid__card:hover .ehf-grid__card-media,
	a.ehf-grid__card:focus-visible .ehf-grid__card-media {
		transform: none;
	}

	.ehf-grid__cards:has(.ehf-grid__card.is-current) .ehf-grid__card:not(.is-current) {
		opacity: 0.72;
	}
}
