/*
 * WelHire Elementor components.
 * Brand values come from Elementor Site Settings (global colors / fonts);
 * the hex fallbacks below are the Figma values.
 */

:root {
	--wh-navy: var(--e-global-color-primary, #23226e);
	--wh-accent: var(--e-global-color-secondary, #2aa7d2);
	--wh-text: var(--e-global-color-text, #3c3b3d);
	--wh-ink: var(--e-global-color-whink, #101010);
	--wh-bg: var(--e-global-color-whbg, #f7f7f5);
	--wh-line: var(--e-global-color-whline, #f3f3f3);
	--wh-font: var(--e-global-typography-text-font-family, "Figtree"), "Figtree", system-ui, sans-serif;
	--wh-font-label: var(--e-global-typography-accent-font-family, "Lexend"), "Lexend", system-ui, sans-serif;
	--wh-ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Badge ---------- */

.wh-badge-wrap {
	display: flex;
}

.wh-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 50px;
	background-color: var(--wh-navy);
	color: #fff;
	font-family: var(--wh-font-label);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.wh-badge--upper {
	text-transform: uppercase;
}

/* ---------- Highlight heading ---------- */

.wh-heading {
	margin: 0;
	color: var(--wh-ink);
	font-family: var(--wh-font);
	font-weight: 600;
}

/* Lead paragraph (Text Editor widget with the "wh-lead" CSS class). */
.wh-lead p {
	margin: 0;
}

.wh-lead p + p {
	margin-top: 1em;
}

.wh-heading--display {
	font-size: 45px;
	line-height: 54px;
	letter-spacing: -1.5px;
}

.wh-heading--section {
	font-size: 36px;
	line-height: 44px;
	letter-spacing: -1px;
}

.wh-heading--card {
	font-size: 26px;
	line-height: 32px;
	letter-spacing: -0.6px;
}

.wh-heading__hl {
	color: var(--wh-accent);
}

@media (max-width: 1024px) {
	.wh-heading--display {
		font-size: 40px;
		line-height: 48px;
	}
}

@media (max-width: 767px) {
	.wh-heading--display {
		font-size: 32px;
		line-height: 38px;
		letter-spacing: -1px;
	}

	.wh-heading--section {
		font-size: 28px;
		line-height: 34px;
		letter-spacing: -0.6px;
	}
}

/* ---------- Button ---------- */

.wh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 24px;
	border: 1px solid #fff;
	border-radius: 50px;
	background-color: var(--wh-navy);
	color: #fff;
	font-family: var(--wh-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wh-btn:hover,
.wh-btn:focus-visible {
	background-color: color-mix(in srgb, var(--wh-navy) 82%, #000);
	color: #fff;
}

.wh-btn:active {
	transform: translateY(1px);
}

.wh-btn:focus-visible,
.wh-header a:focus-visible,
.wh-header__toggle:focus-visible {
	outline: 2px solid var(--wh-accent);
	outline-offset: 3px;
}

/* ---------- Header ---------- */

.wh-header {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 40px;
	font-family: var(--wh-font);
}

.wh-header__logo {
	justify-self: start;
	display: inline-flex;
	line-height: 0;
}

.wh-header__logo img {
	width: 92px;
	height: auto;
}

.wh-header__nav ul {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wh-header__nav a {
	color: var(--wh-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
	letter-spacing: -0.48px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wh-header__nav a:hover {
	color: var(--wh-navy);
}

.wh-header__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wh-header__cta-mobile,
.wh-header__toggle {
	display: none;
}

.wh-header__toggle {
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #e6e8ec;
	border-radius: 50%;
	background: #fff;
	color: var(--wh-ink);
	cursor: pointer;
}

.wh-header__bars,
.wh-header__bars::before,
.wh-header__bars::after {
	position: absolute;
	left: 50%;
	width: 16px;
	height: 1.5px;
	margin-left: -8px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s var(--wh-ease), opacity 0.2s ease;
}

.wh-header__bars {
	top: 50%;
}

.wh-header__bars::before,
.wh-header__bars::after {
	content: "";
	left: 0;
	margin-left: 0;
}

.wh-header__bars::before {
	transform: translateY(-5px);
}

.wh-header__bars::after {
	transform: translateY(5px);
}

.wh-header.is-open .wh-header__bars {
	background: transparent;
}

.wh-header.is-open .wh-header__bars::before {
	transform: rotate(45deg);
}

.wh-header.is-open .wh-header__bars::after {
	transform: rotate(-45deg);
}

@media (max-width: 1024px) {
	.wh-header {
		grid-template-columns: 1fr auto;
	}

	.wh-header__toggle {
		display: inline-block;
	}

	.wh-header__nav {
		position: absolute;
		top: calc(100% + 12px);
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 20px;
		border: 1px solid #e6e8ec;
		border-radius: 20px;
		background: #fff;
		box-shadow: 0 18px 40px rgba(35, 34, 110, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}

	.wh-header.is-open .wh-header__nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.wh-header__nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.wh-header__nav a {
		display: block;
		padding: 10px 4px;
		font-size: 17px;
	}
}

@media (max-width: 480px) {
	.wh-header__cta {
		display: none;
	}

	.wh-header__cta-mobile {
		display: inline-flex;
		min-height: 46px;
	}
}

/* ---------- Prompt slider ---------- */

.wh-prompts {
	--wh-step: 62px;
	--wh-center: 53.5%;
	--wh-g-top: #05050f;
	--wh-g-mid: #262577;
	--wh-g-bottom: #4fd6fb;
	--wh-pill-color: rgba(255, 255, 255, 0.9);
	--wh-active-bg: #fff;
	--wh-active-color: #101010;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 408px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(110% 80% at 0% 100%, var(--wh-g-bottom) 0%, color-mix(in srgb, var(--wh-g-bottom) 0%, transparent) 62%),
		radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--wh-g-bottom) 85%, #fff) 0%, transparent 55%),
		linear-gradient(200deg, var(--wh-g-top) 0%, color-mix(in srgb, var(--wh-g-top) 45%, var(--wh-g-mid)) 22%, var(--wh-g-mid) 42%, color-mix(in srgb, var(--wh-g-mid) 40%, var(--wh-g-bottom)) 68%, var(--wh-g-bottom) 100%);
	font-family: var(--wh-font);
}

.wh-prompts__list {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%);
}

.wh-prompt {
	--d: 0;
	position: absolute;
	top: var(--wh-center);
	left: 50%;
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translate(-50%, -50%) translateY(calc(var(--d) * var(--wh-step)));
	transition: transform 0.75s var(--wh-ease), opacity 0.75s var(--wh-ease);
	will-change: transform, opacity;
	pointer-events: none;
}

.wh-prompt[data-d="0"],
.wh-prompt[data-d="1"],
.wh-prompt[data-d="-1"],
.wh-prompt[data-d="2"],
.wh-prompt[data-d="-2"] {
	opacity: 1;
}

.wh-prompt[data-d="3"],
.wh-prompt[data-d="-3"] {
	opacity: 0.6;
}

.wh-prompt.is-jump {
	transition: none;
}

.wh-prompt__pill {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px rgba(4, 14, 48, 0.12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--wh-pill-color);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -0.2px;
	white-space: nowrap;
	transition:
		padding 0.5s var(--wh-ease),
		font-size 0.5s var(--wh-ease),
		background-color 0.5s var(--wh-ease),
		color 0.5s var(--wh-ease),
		border-color 0.5s var(--wh-ease),
		box-shadow 0.5s var(--wh-ease);
}

.wh-prompt__icon {
	flex: none;
	width: 0;
	height: 22px;
	margin-right: 0;
	opacity: 0;
	transition: width 0.5s var(--wh-ease), margin 0.5s var(--wh-ease), opacity 0.4s ease;
}

.wh-prompt.is-active .wh-prompt__pill {
	padding: 17px 24px;
	border-color: transparent;
	background-color: var(--wh-active-bg);
	box-shadow: 0 14px 34px rgba(5, 20, 60, 0.24);
	color: var(--wh-active-color);
	font-size: 17px;
	font-weight: 500;
}

.wh-prompt.is-active .wh-prompt__icon {
	width: 22px;
	margin-right: 10px;
	opacity: 1;
}

@media (max-width: 767px) {
	.wh-prompts {
		--wh-step: 56px;
	}

	.wh-prompt__pill {
		padding: 10px 18px;
		font-size: 14px;
	}

	.wh-prompt.is-active .wh-prompt__pill {
		padding: 14px 20px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wh-prompt,
	.wh-prompt__pill,
	.wh-prompt__icon {
		transition: none;
	}
}

/* ---------- Logo strip ---------- */

.wh-logos {
	font-family: var(--wh-font);
}

.wh-logos__title {
	margin: 0 0 25px;
	color: var(--wh-text);
	font-size: 18px;
	line-height: 28px;
	text-align: center;
	text-transform: capitalize;
}

.wh-logos__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: var(--wh-logo-gap, 32px);
	row-gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wh-logos__item {
	display: flex;
	align-items: center;
	margin: 0;
}

.wh-logos__item a {
	display: inline-flex;
}

.wh-logos__item img {
	display: block;
	width: auto;
	max-width: none;
	height: calc(var(--h, 20px) * var(--wh-logo-scale, 1));
}

/* Infinite slider (Splide + AutoScroll) */
.wh-logos--marquee {
	--wh-logo-gap: 56px;
}

.wh-logos__splide .splide__track {
	padding-block: 6px;
}

.wh-logos-fade-yes .wh-logos__splide .splide__track {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.wh-logos__splide .splide__slide {
	display: flex;
	align-items: center;
	height: 32px;
}

/* Before Splide mounts: one tidy row instead of a vertical list. */
.wh-logos__splide:not(.is-initialized) .splide__list {
	display: flex;
	gap: var(--wh-logo-gap);
	justify-content: center;
	overflow: hidden;
}

.wh-logos-mono-yes .wh-logos__item img {
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.wh-logos-mono-yes .wh-logos__item img:hover {
	filter: none;
	opacity: 1;
}

@media (max-width: 767px) {
	.wh-logos__title {
		margin-bottom: 18px;
		font-size: 16px;
	}

	.wh-logos__row {
		column-gap: 24px;
		row-gap: 18px;
	}
}
