/* Buttons used by the theme header and footer (Elementor pages use the btn global classes) */
.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 28px;
	border-radius: var(--radius-sm, 4px);
	background-color: var(--brand, #6528c6);
	font-weight: 700;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.site-btn:hover {
	opacity: 0.88;
}

.site-btn--sm {
	height: 48px;
	padding: 0 22px;
	font-size: 16px;
}

.site-btn--xs {
	height: 44px;
	padding: 0 20px;
	font-size: 15px;
}

/* Header: the Elementor Theme Builder header, or the theme's fallback header */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Open state of the Elementor header's mobile menu (toggled by critical.js) */
body .is-menu-open .js-mobile-menu {
	display: flex;
}

body .is-menu-open .js-menu-icon-open {
	display: none;
}

body .is-menu-open .js-menu-icon-close {
	display: block;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--white, #ffffff);
	border-bottom: 1px solid var(--gray-200, #e8e8e8);
	color: var(--gray-900, #1e1e1e);
}

.site-header--brand {
	background-color: var(--brand, #6528c6);
	border-bottom-color: transparent;
	color: var(--white, #ffffff);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
	height: 87px;
	padding-inline: max(var(--page-gutter, 24px), calc((100% - var(--content-width, 1248px)) / 2));
}

.site-header__logo {
	display: flex;
	color: inherit;
}

.site-header--light .site-header__logo {
	color: var(--brand, #6528c6);
}

.site-header__logo svg {
	width: 150px;
	height: 26px;
}

.site-header__nav {
	margin-left: auto;
}

.site-header__menu {
	display: flex;
	align-items: center;
	gap: 36px;
}

.site-header__menu li {
	font-size: 16px;
	line-height: normal;
}

.site-header__menu a {
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item > a {
	opacity: 0.72;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header--brand .site-header__cta {
	background-color: var(--white, #ffffff);
}

.site-header__cta-label--short,
.site-header__toggle,
.site-header__toggle-close {
	display: none;
}

/* Mobile menu panel */
.site-mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: calc(100vh - 100%);
	height: calc(100dvh - 100%);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 24px var(--page-gutter, 24px) 40px;
	background-color: inherit;
	color: inherit;
}

.site-mobile-menu[hidden] {
	display: none;
}

.site-mobile-menu__list a {
	display: block;
	padding: 16px 0;
	border-bottom: 1px solid var(--gray-200, #e8e8e8);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.site-header--brand .site-mobile-menu__list a {
	border-bottom-color: rgba(255, 255, 255, 0.24);
}

.site-mobile-menu__cta {
	width: 100%;
	height: 52px;
}

.site-header--brand .site-mobile-menu__cta {
	background-color: var(--white, #ffffff);
}

@media (max-width: 1024px) {
	.site-header__nav {
		display: none;
	}

	.site-header__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		background: none;
		color: inherit;
		cursor: pointer;
	}

	.site-header.is-menu-open .site-header__toggle-open {
		display: none;
	}

	.site-header.is-menu-open .site-header__toggle-close {
		display: block;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		height: 63px;
	}

	.site-header__logo svg {
		width: 116px;
		height: 20px;
	}

	.site-btn--sm {
		height: 44px;
		padding: 0 16px;
		font-size: 15px;
	}

	.site-header__cta-label {
		display: none;
	}

	.site-header__cta-label--short {
		display: inline;
	}
}

/* Sit below the WordPress admin bar when logged in (it stops being fixed under 600px) */
.admin-bar .site-header,
.admin-bar .elementor-location-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .elementor-location-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header,
	.admin-bar .elementor-location-header {
		top: 0;
	}
}

/* Keep the page from scrolling behind the open menu */
body.has-menu-open {
	overflow: hidden;
}

/*
 * Link colors. The Elementor kit styles every link with `.elementor-kit-6 a` and
 * `.elementor-kit-6 a:hover`, so these selectors start with `body` to win over them.
 */
body .site-header a,
body .site-header a:hover,
body .site-footer a,
body .site-footer a:hover {
	color: inherit;
}

body a.site-btn,
body a.site-btn:hover {
	color: var(--white, #ffffff);
}

body .site-header--brand a.site-header__cta,
body .site-header--brand a.site-header__cta:hover,
body .site-header--brand a.site-mobile-menu__cta,
body .site-header--brand a.site-mobile-menu__cta:hover {
	color: var(--brand, #6528c6);
}
