/* Web Insights Header — front-end styles */

.wih-root,
.wih-root *,
.wih-root *::before,
.wih-root *::after {
	box-sizing: border-box;
}

.wih-root {
	font-family: var(--wih-font-body);
	font-size: 16px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
	--wih-ease: cubic-bezier(.22, 1, .36, 1);
	--wih-tab-h: 52px;
	--wih-r: 22px;
}

.wih-root a,
.wih-root button {
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.wih-root ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wih-root li {
	margin: 0;
	padding: 0;
}

html.wih-lock {
	overflow: hidden;
}

/* ---------- Top bar: logo + button ---------- */

.wih-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: var(--wih-bar-pt, 40px) clamp(18px, 4.4vw, 62px) 0;
	pointer-events: none;
}

.wih-all_fixed .wih-bar {
	position: fixed;
}

.wih-bar {
	transition: opacity .3s ease;
}

.wih-bar > * {
	pointer-events: auto;
}

/* Elementor widget: the bar sits inside the widget instead of the page corner */
.wih-widget .wih-bar {
	position: relative;
}

.wih-widget.wih-all_fixed .wih-bar {
	position: fixed;
}

.wih-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	min-height: 34px;
	color: #111;
}

.wih-logo__img {
	display: block;
	height: var(--wih-logo-h);
	width: auto;
	max-width: 100%;
}

.wih-logo__text {
	font-family: var(--wih-font-menu);
	font-size: 26px;
	text-transform: uppercase;
	letter-spacing: .01em;
}

/* ---------- "Book a call" button with rolling text ---------- */

.wih-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 50px;
	padding: 5px 24px 5px 5px;
	border-radius: 999px;
	background: var(--wih-btn-bg);
	color: var(--wih-btn-text);
	font-size: 19px;
	font-weight: 400;
	white-space: nowrap;
	transition: background-color .3s ease, transform .3s var(--wih-ease);
}

.wih-btn:hover {
	color: var(--wih-btn-text);
}

.wih-btn__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	overflow: hidden;
	transition: transform .5s var(--wih-ease);
}

.wih-btn__icon svg,
.wih-btn__icon img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.wih-btn:hover .wih-btn__icon {
	transform: rotate(-12deg) scale(1.06);
}

.wih-btn__label {
	display: inline-flex;
	white-space: pre;
	line-height: 1.35;
}

.wih-char {
	position: relative;
	display: inline-block;
	overflow: hidden;
}

.wih-char__in {
	position: relative;
	display: block;
	transition: transform .5s cubic-bezier(.65, 0, .25, 1);
	transition-delay: calc(var(--i) * 16ms);
}

.wih-char__in::after {
	content: attr(data-c);
	position: absolute;
	left: 0;
	top: 100%;
}

.wih-btn:hover .wih-char__in,
.wih-btn:focus-visible .wih-char__in {
	transform: translateY(-100%);
}

/* ---------- Menu tab (hangs from the top, concave "ears") ---------- */

.wih-tab {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 99999;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 140px;
	height: var(--wih-tab-h);
	padding: 0 26px;
	margin: 0;
	border: 0;
	border-radius: 0 0 var(--wih-r) var(--wih-r);
	background: var(--wih-dark);
	color: #fff;
	font: 500 18px/1 var(--wih-font-body);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	text-transform: none;
	letter-spacing: 0;
}

.wih-tab:hover,
.wih-tab:focus {
	background: var(--wih-dark);
	color: #fff;
	outline: none;
}

.wih-tab:focus-visible {
	outline: 2px solid var(--wih-accent);
	outline-offset: 3px;
}

.wih-tab::before,
.wih-tab::after {
	content: "";
	position: absolute;
	top: 0;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.wih-tab::before {
	right: 100%;
	border-top-right-radius: 20px;
	box-shadow: 5px -5px 0 5px var(--wih-dark);
}

.wih-tab::after {
	left: 100%;
	border-top-left-radius: 20px;
	box-shadow: -5px -5px 0 5px var(--wih-dark);
}

.wih-tab__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: none;
}

.wih-tab__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
	overflow: visible;
}

.wih-dots {
	transform-origin: 8px 8px;
	transition: transform .55s var(--wih-ease);
}

.wih-tab:hover .wih-dots {
	transform: rotate(90deg) scale(1.08);
}

.wih-open .wih-dots {
	transform: rotate(45deg) scale(1.08);
}

.wih-tab__labels {
	position: relative;
	display: inline-grid;
	overflow: hidden;
	height: 1.25em;
	line-height: 1.25;
}

.wih-tab__label {
	grid-area: 1 / 1;
	text-align: left;
	transition: transform .45s var(--wih-ease), opacity .3s ease;
}

.wih-tab__label--close {
	transform: translateY(110%);
	opacity: 0;
}

.wih-open .wih-tab__label--menu {
	transform: translateY(-110%);
	opacity: 0;
}

.wih-open .wih-tab__label--close {
	transform: translateY(0);
	opacity: 1;
}

/* ---------- Overlay ---------- */

.wih-overlay {
	position: fixed;
	inset: 0;
	z-index: 99980;
	background: rgba(18, 18, 18, .42);
	background: color-mix(in srgb, var(--wih-overlay) 42%, transparent);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s linear .35s;
}

.wih-open .wih-overlay {
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease, visibility 0s;
}

/* ---------- Panel ---------- */

.wih-panel {
	position: fixed;
	top: calc(var(--wih-tab-h) + 10px);
	left: 50%;
	z-index: 99985;
	width: min(366px, calc(100vw - 28px));
	max-height: calc(100vh - var(--wih-tab-h) - 24px);
	max-height: calc(100dvh - var(--wih-tab-h) - 24px);
	overflow-y: auto;
	padding: 30px 22px 26px;
	border-radius: 26px;
	background: var(--wih-dark);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -14px) scale(.965);
	transform-origin: 50% 0;
	transition: opacity .3s ease, transform .45s var(--wih-ease), visibility 0s linear .45s;
	scrollbar-width: none;
}

.wih-panel::-webkit-scrollbar {
	display: none;
}

.wih-open .wih-panel {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	transition: opacity .3s ease, transform .5s var(--wih-ease), visibility 0s;
}

/* staggered reveal of items */
.wih-nav li,
.wih-panel__foot {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .3s ease, transform .3s ease;
}

.wih-open .wih-nav li,
.wih-open .wih-panel__foot {
	opacity: 1;
	transform: none;
	transition: opacity .45s ease calc(.08s + var(--d, 0) * .05s), transform .6s var(--wih-ease) calc(.08s + var(--d, 0) * .05s);
}

.wih-nav a {
	display: block;
	padding: 1px 0;
	font-family: var(--wih-font-menu);
	font-size: 48px;
	line-height: 1.12;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0;
	color: var(--wih-link);
	transition: color .3s ease, transform .4s var(--wih-ease);
}

.wih-nav a:hover,
.wih-nav a:focus-visible,
.wih-nav a.is-current {
	color: var(--wih-accent);
	outline: none;
}

.wih-nav a:hover {
	transform: scale(1.03);
}

.wih-panel__foot {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.wih-follow {
	margin: 0 0 14px;
	color: #fff;
	font-size: 15px;
}

.wih-social {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.wih-social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .11);
	color: #fff;
	transition: background-color .3s ease, transform .4s var(--wih-ease), color .3s ease;
}

.wih-social a:hover,
.wih-social a:focus-visible {
	background: var(--wih-accent);
	color: #fff;
	transform: translateY(-3px);
	outline: none;
}

.wih-social svg {
	display: block;
	width: 17px;
	height: 17px;
}

.wih-credit {
	margin: 22px 0 0;
	color: rgba(255, 255, 255, .5);
	font-size: 14px;
	line-height: 1.5;
}

.wih-credit strong,
.wih-credit a,
.wih-credit b {
	color: #fff;
	font-weight: 400;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	/* Mobile: logo on the left, Menu on the right, no "Book a call" button. */
	.wih-root {
		--wih-tab-h: 54px;
	}

	.wih-bar {
		align-items: center;
		min-height: 64px;
		padding: 0 clamp(14px, 4.4vw, 40px);
	}

	.wih-btn {
		display: none !important;
	}

	.wih-logo {
		max-width: calc(100% - 130px);
	}

	.wih-logo__img {
		max-height: 52px;
		max-width: 100%;
		object-fit: contain;
	}

	/* Menu tab becomes a pill on the right, vertically centred with the logo */
	.wih-tab {
		top: 32px;
		left: auto;
		right: clamp(14px, 4.4vw, 40px);
		transform: translateY(-50%);
		min-width: 0 !important;
		height: 44px;
		padding: 0 20px;
		border-radius: 999px;
		font-size: 16px;
	}

	.wih-tab::before,
	.wih-tab::after {
		display: none;
	}

	.wih-panel {
		top: 64px;
		max-height: calc(100vh - 78px);
		max-height: calc(100dvh - 78px);
	}

	.wih-nav a {
		font-size: 42px;
	}

	/* the open panel is centred and covers the bar, so tuck the bar away */
	.wih-open .wih-bar {
		opacity: 0;
		pointer-events: none;
	}

	.wih-open .wih-bar > * {
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wih-root *,
	.wih-root *::before,
	.wih-root *::after {
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}
