/* 1B.7A header + hero only. Does not restyle lower homepage sections. */

.yepx-home-v2 .yepx-preview,
.site-main.yepx-home-v2 {
	overflow-x: visible;
}

.yepx-container {
	width: min(1240px, calc(100% - 64px));
	max-width: 1240px;
	margin-inline: auto;
}

.yepx-site-header,
.yepx-site-header.yepx-header,
.yepx-site-header.yepx-header--sticky {
	position: sticky;
	top: 0;
	z-index: var(--yepx-z-header);
	width: 100%;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: #fff;
	border: 0;
	border-bottom: 1px solid rgba(8, 42, 61, 0.08);
	box-shadow: none;
	height: auto;
}

.admin-bar .yepx-site-header,
.admin-bar .yepx-site-header.yepx-header--sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.yepx-site-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(8, 42, 61, 0.06), 0 8px 24px rgba(8, 42, 61, 0.06);
}

.yepx-site-header.is-away,
.yepx-site-header.yepx-header--sticky.is-away {
	position: sticky;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.admin-bar .yepx-site-header.yepx-header--sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.yepx-site-header__inner,
.yepx-site-header .yepx-header__inner {
	width: min(1240px, calc(100% - 64px));
	max-width: 1240px;
	margin-inline: auto;
	height: 72px;
	min-height: 72px;
	padding-inline: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.yepx-site-header .yepx-logo,
.yepx-site-header .custom-logo {
	width: 162px;
	max-width: 170px;
	height: auto;
}

.yepx-site-header .yepx-nav--primary > ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.yepx-site-header .yepx-nav--primary > ul > li > a {
	font-size: 0.90625rem;
	font-weight: 650;
	min-height: 44px;
	position: relative;
	padding: 0;
}

.yepx-site-header .yepx-nav--primary > ul > li > a .yepx-icon-well {
	display: none;
}

.yepx-site-header .yepx-nav--primary > ul > li.current-menu-item > a::after,
.yepx-site-header .yepx-nav--primary > ul > li.current-menu-ancestor > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 2px;
	background: var(--yepx-color-primary);
}

.yepx-site-header .yepx-header__cta .yepx-btn {
	min-height: 48px;
	height: 48px;
	padding: 0 1.6rem;
	border-radius: 9999px;
}

.yepx-site-header .yepx-header__cta .yepx-btn:hover {
	transform: translateY(-2px);
}

.yepx-site-header .yepx-mega,
.yepx-nav--primary .yepx-mega {
	transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.yepx-site-header .yepx-mega[hidden] {
	opacity: 0;
	transform: translateX(-50%) translateY(4px);
}

.yepx-site-header .yepx-mega:not([hidden]) {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.yepx-nav--primary .yepx-mega__links {
	transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.yepx-nav--primary .yepx-mega__group:not(.is-cat-active) > .yepx-mega__links {
	opacity: 0;
	transform: translateY(4px);
}

.yepx-nav--primary .yepx-mega__group.is-cat-active > .yepx-mega__links {
	opacity: 1;
	transform: translateY(0);
}

.yepx-mega__rail-btn {
	min-height: 50px;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	background: transparent;
	border: 0;
	text-align: left;
	font-weight: 650;
}

.yepx-mega__rail-btn:hover {
	background: rgba(6, 186, 243, 0.1);
	color: var(--yepx-color-navy);
}

.yepx-mega__rail-btn:hover .yepx-icon-well {
	background: var(--yepx-color-primary-soft);
}

.yepx-mega__rail-btn:hover .yepx-mega__rail-chevron {
	transform: translateX(3px);
}

.yepx-mega__rail-btn[aria-selected="true"] {
	background: rgba(6, 186, 243, 0.16);
	box-shadow: inset 3px 0 0 var(--yepx-color-primary);
	font-weight: 700;
}

.yepx-mega__links a {
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 0.75rem;
	border-radius: 14px;
}

.yepx-mega__links .yepx-nav__label {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yepx-nav__desc {
	display: none;
}

.yepx-mega__all a {
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 0.85rem;
	border-radius: 14px;
}

.yepx-mega__all a:hover,
.yepx-mega__all a:focus-visible {
	background: rgba(6, 186, 243, 0.12);
}

.yepx-drawer {
	transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.yepx-hero {
	width: 100vw;
	max-width: 100vw;
	margin: 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0;
	border-radius: 0;
	min-height: 640px;
	background:
		radial-gradient(circle at 78% 22%, rgba(6, 186, 243, 0.22), transparent 34%),
		radial-gradient(circle at 12% 88%, rgba(10, 124, 168, 0.12), transparent 40%),
		linear-gradient(180deg, #f4f9fc 0%, #eef6fb 56%, #f7fafc 100%);
	position: relative;
}

.yepx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(11, 44, 61, 0.06) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 86%);
}

.yepx-hero__inner {
	width: min(1240px, calc(100% - 64px));
	max-width: 1240px;
	margin-inline: auto;
	min-height: 640px;
	position: relative;
	display: flex;
	align-items: center;
	padding-block: 2.25rem 2.5rem;
}

.yepx-hero .yepx-slider,
.yepx-hero .yepx-slider.is-desktop,
.yepx-home-v2 .yepx-hero .yepx-slider {
	width: 100%;
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	padding-block: 0;
	overflow: visible;
}

.yepx-hero .yepx-slider.is-desktop .yepx-slider__slide,
.yepx-hero .yepx-slider-noscript .yepx-slider__slide {
	grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
	gap: clamp(3.5rem, 5vw, 5rem);
	align-items: center;
}

.yepx-hero .yepx-slider__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.90625rem;
	font-weight: 700;
	padding: 0.3rem 0.75rem;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid rgba(8, 42, 61, 0.08);
	margin: 0 0 0.85rem;
}

.yepx-hero .yepx-slider__title,
.yepx-hero h1.yepx-slider__title {
	max-width: 620px;
	font-size: clamp(48px, 4vw, 62px);
	line-height: 1.08;
	margin: 0 0 0.85rem;
}

.yepx-hero__mark {
	color: var(--yepx-color-primary);
}

.yepx-hero .yepx-slider__desc {
	max-width: 600px;
	font-size: 1.125rem;
	line-height: 1.62;
	margin: 0 0 1rem;
}

.yepx-hero .yepx-hero-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1.1rem;
	list-style: none;
	margin: 0 0 1.15rem;
	padding: 0;
	max-width: 36rem;
}

.yepx-hero .yepx-hero-benefits li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 28px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.yepx-hero .yepx-slider__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.yepx-hero .yepx-slider__actions .yepx-btn {
	min-height: 52px;
	height: 52px;
	padding: 0 1.7rem;
	border-radius: 9999px;
}

.yepx-hero .yepx-btn--primary:hover {
	transform: translateY(-2px);
}

.yepx-hero__device {
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid rgba(8, 42, 61, 0.08);
	box-shadow: 0 24px 48px rgba(11, 44, 61, 0.14);
	background: #fff;
	position: relative;
	z-index: 1;
}

.yepx-hero .yepx-slider__img,
.yepx-hero .yepx-slider__media img,
.yepx-hero__device img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	border: 0;
	background: #eef3f6;
}

.yepx-hero .yepx-hero-floats,
.yepx-hero-floats {
	display: block;
	position: absolute;
	inset: 0;
	width: auto;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	flex-direction: unset;
	gap: 0;
	pointer-events: none;
	z-index: 2;
}

.yepx-hero .yepx-float-card,
.yepx-float-card {
	position: absolute;
	z-index: 3;
	margin: 0;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	height: auto;
	width: max-content;
	min-width: 9rem;
	max-width: 12.5rem;
	padding: 0.7rem 0.85rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(11, 44, 61, 0.12);
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	animation: yepx-float-1b7a var(--yepx-float-dur, 6s) var(--yepx-float-delay, 0s) ease-in-out infinite alternate var(--yepx-float-dir, normal);
}

.yepx-hero .yepx-float-card .yepx-icon-well {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 12px;
}

.yepx-hero .yepx-float-card__copy {
	min-width: 0;
}

.yepx-hero .yepx-float-card__copy strong,
.yepx-hero .yepx-float-card__copy span {
	display: block;
}

.yepx-hero .yepx-float-card[data-pos="top-right"] { top: 6%; right: 2%; }
.yepx-hero .yepx-float-card[data-pos="middle-right"] { top: 44%; right: 0; }
.yepx-hero .yepx-float-card[data-pos="bottom-right"] { bottom: 14%; right: 18%; }
.yepx-hero .yepx-float-card[data-pos="bottom-center"] { bottom: 4%; right: 42%; }
.yepx-hero .yepx-float-card[data-pos="top-left"] { top: 8%; left: 0; }
.yepx-hero .yepx-float-card[data-pos="middle-left"] { top: 40%; left: 0; }
.yepx-hero .yepx-float-card[data-pos="top-center"] { top: 4%; left: 46%; }
.yepx-hero .yepx-float-card[data-pos="bottom-left"] { bottom: 8%; left: 4%; }

.yepx-float-card__eye {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--yepx-color-hover);
	margin-bottom: 0.15rem;
}

@keyframes yepx-float-1b7a {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(3px, -8px, 0); }
}

@media (min-width: 1280px) {
	.yepx-site-header .yepx-nav-toggle {
		display: none;
	}

	.yepx-hero .yepx-hero-floats {
		display: block;
		inset: 0;
		width: auto;
		flex-direction: unset;
	}

	.yepx-hero .yepx-float-card:nth-child(4) {
		display: block;
	}
}

@media (max-width: 1279px) {
	.yepx-container,
	.yepx-site-header__inner,
	.yepx-site-header .yepx-header__inner,
	.yepx-hero__inner {
		width: calc(100% - 36px);
		padding-inline: 0;
	}

	.yepx-site-header__inner,
	.yepx-site-header .yepx-header__inner {
		height: 64px;
		min-height: 64px;
	}

	.yepx-site-header .yepx-logo,
	.yepx-site-header .custom-logo {
		width: 136px;
		max-width: 145px;
	}

	.yepx-site-header .yepx-header__cta .yepx-btn {
		min-height: 44px;
		height: 44px;
		padding: 0 0.95rem;
	}

	.yepx-hero {
		min-height: 0;
	}

	.yepx-hero__inner {
		min-height: 0;
		display: block;
		padding-block: 1.5rem 2rem;
	}

	.yepx-hero .yepx-slider-noscript .yepx-slider__slide,
	.yepx-hero .yepx-slider.is-desktop .yepx-slider__slide {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.yepx-hero .yepx-slider__title,
	.yepx-hero h1.yepx-slider__title {
		font-size: clamp(2rem, 8vw, 2.6rem);
	}

	.yepx-hero .yepx-slider__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.yepx-hero .yepx-slider__actions .yepx-btn {
		min-height: 48px;
		width: 100%;
	}

	.yepx-hero .yepx-hero-benefits {
		flex-direction: column;
	}

	.yepx-hero .yepx-hero-floats {
		top: auto;
		height: 42%;
		bottom: 0;
	}

	.yepx-hero .yepx-float-card[data-pos="bottom-center"],
	.yepx-hero .yepx-float-card:nth-child(n + 4) {
		display: none;
	}

	.yepx-hero .yepx-float-card {
		max-width: 8.5rem;
		padding: 0.45rem 0.55rem;
	}

	.yepx-hero .yepx-float-card[data-pos="top-right"] { top: 6%; right: 2%; }
	.yepx-hero .yepx-float-card[data-pos="middle-right"] { top: auto; bottom: 22%; left: 2%; right: auto; }
	.yepx-hero .yepx-float-card[data-pos="bottom-right"] { bottom: 4%; right: 2%; }

	.yepx-site-header .yepx-header__inner {
		justify-content: space-between;
		gap: 0.5rem;
	}

	.yepx-site-header .yepx-branding {
		flex: 0 1 auto;
		max-width: 42%;
	}

	.yepx-site-header .yepx-header__cta {
		display: flex;
		flex: 0 0 auto;
		margin-inline-start: auto;
	}

	.yepx-site-header .yepx-header__cta .yepx-btn__full {
		display: none;
	}

	.yepx-site-header .yepx-header__cta .yepx-btn__short {
		display: inline;
	}

	.yepx-site-header,
	.yepx-hero {
		overflow-x: clip;
	}

	.yepx-drawer:not(.is-open) {
		display: none;
		width: 0;
	}
}

@media (max-width: 360px) {
	.yepx-hero .yepx-float-card:nth-child(n + 3) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yepx-float-card,
	.yepx-mega,
	.yepx-drawer,
	.yepx-hero .yepx-btn--primary {
		animation: none;
		transition: none;
		transform: none;
	}
}

.no-js .yepx-hero,
.no-js .yepx-float-card,
.no-js .yepx-slider__slide {
	opacity: 1;
	transform: none;
}
