/* =========================================
   HEADER
========================================= */

.site-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	background: var(--color-secondary, #fff);
	box-shadow: rgba(33, 35, 38, 0.1) 0 10px 10px -10px;

	border: 0;

	z-index: 99998 !important;
}

/* WordPress Admin Bar */
body.admin-bar .site-header {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px !important;
	}
}

/* =========================================
   HEADER CONTAINER
========================================= */

.site-header__container {
	width: 100% !important;
	max-width: 1540px !important;
	margin: 0 auto !important;
	padding: 20px 150px !important;
	box-sizing: border-box !important;
}


/* =========================================
   DESKTOP HEADER
========================================= */

.site-header__desktop {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}


/* =========================================
   LOGO ROW
========================================= */

.site-header__logo {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header__logo .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-header__logo .custom-logo {
	display: block;

	width: auto;
	max-width: 340px;
	height: auto;
}

.site-header__logo .site-title {
	display: inline-block;

	color: var(--color-heading, #363542);

	font-family: var(--font-heading, sans-serif);
	font-size: 48px !important;
	font-weight: 700;
	line-height: 1;

	text-decoration: none;
}


/* =========================================
   DESKTOP SEARCH BUTTON
========================================= */

.site-header__search {
	position: relative;

	z-index: 10002;

	flex: 0 0 40px;

	width: 40px;
	height: 40px;

	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search-toggle {
	position: relative;

	z-index: 10003;

	width: 40px;
	height: 40px;

	display: flex !important;
	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0 !important;

	border: 0 !important;

	background: transparent !important;

	color: var(--color-heading, #222);

	cursor: pointer;

	box-sizing: border-box;

	pointer-events: auto !important;

	transition: color 0.2s ease;
}

.header-search-toggle:hover {
	color: var(--color-primary, #222);
}

.header-search-toggle:focus {
	outline: none;
}

.header-search-toggle:focus-visible {
	outline: 2px solid var(--color-primary, #3264d6);
	outline-offset: 3px;
}

.header-search-toggle svg {
	display: block !important;

	width: 24px;
	height: 24px;

	pointer-events: none;
}


/* =========================================
   NAVIGATION
========================================= */

.site-header__nav {
	display: flex;
	align-items: center;
}

.site-menu {
	display: flex;
	align-items: center;
	gap: 30px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.site-menu > li {
	margin: 0;
	padding: 0;
}

.site-menu > li > a {
	display: block;

	padding: 15px 0;

	color: var(--color-heading, #111);

	font-family: var(--font-body, sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.5px;

	text-decoration: none;
	text-transform: uppercase;

	transition:
		color 0.2s ease,
		background 0.2s ease;
}

.site-menu > li > a:hover {
	color: var(--color-accent, #3264d6);
}


/* =========================================
   ACTIVE MENU ITEM
========================================= */

.site-menu > li.current-menu-item > a,
.site-menu > li.current_page_item > a,
.site-menu > li.current-menu-ancestor > a {
	color: var(--color-accent, #3264d6);
}


/* =========================================
   SEARCH PANEL
========================================= */

.site-search {
	position: absolute;

	top: 20px;
	right: 50px;

	width: 0;
	height: 50px;

	overflow: hidden;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;

	background: #fff;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	z-index: 9000;

	box-sizing: border-box;

	transition:
		width 0.35s ease,
		opacity 0.2s ease,
		visibility 0.2s ease;
}


/* =========================================
   SEARCH OPEN STATE
========================================= */

.site-search.is-open {
	width: 650px;

	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* =========================================
   SEARCH INNER
========================================= */

.site-search__inner {
	position: relative;

	width: 77%;
	height: 50px;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;

	background: #fff;

	box-sizing: border-box;

	pointer-events: auto;
}


/* =========================================
   SEARCH FORM
========================================= */

.site-search__form {
	width: 100%;
	height: 50px;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;

	gap: 0;

	box-sizing: border-box;
}


/* =========================================
   SEARCH INPUT
========================================= */

.site-search__form input {
	flex: 1 1 auto;

	width: 100%;
	height: 50px;

	min-width: 0;

	margin: 0;
	padding: 0 18px;

	border: 1px solid #777;
	border-right: 0;

	border-radius: 0;

	background: #fff;

	color: #222;

	font-family: var(--font-body, sans-serif);
	font-size: 16px;
	font-weight: 400;

	line-height: 1;

	outline: none;

	box-shadow: none;

	box-sizing: border-box;

	-webkit-appearance: none;
	appearance: none;
}

.site-search__form input::placeholder {
	color: #687080;
	opacity: 1;
}

.site-search__form input:focus {
	border-color: #444;

	outline: none;
	box-shadow: none;
}


/* =========================================
   SEARCH SUBMIT
========================================= */

.site-search__submit {
	flex: 0 0 60px;

	width: 60px;
	height: 50px;

	display: flex;
	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 0;

	background: #00bc98;
	color: #fff;

	cursor: pointer;

	box-sizing: border-box;
}

.site-search__submit:hover {
	background: #48113d;
}

.site-search__submit:focus {
	outline: none;
}

.site-search__submit:focus-visible {
	outline: 2px solid #5d174f;
	outline-offset: 2px;
}


/* =========================================
   MOBILE HEADER
========================================= */

.site-header__mobile-row,
.mobile-navigation {
	display: none;
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 1200px) {

	.site-header__container {
		padding-left: 50px;
		padding-right: 50px;
	}

	.site-search.is-open {
		width: min(550px, 60vw);
	}
}


/* =========================================
   SMALL DESKTOP
========================================= */

@media (min-width: 1201px) and (max-width: 1500px) {

	.site-header__container {
		padding-left: 80px;
		padding-right: 80px;
	}

	.site-search.is-open {
		width: 600px;
	}
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

	/* -----------------------------------------
	   HEADER
	----------------------------------------- */
	
	.site-header {
		display: block !important;
		box-shadow: rgba(33, 35, 38, 0.1) 0px 8px 8px -8px;
	}

	 .site-header__container {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		min-height: 70px;
		padding: 15px 20px !important;
		box-sizing: border-box;
	}


	/* -----------------------------------------
	   HIDE DESKTOP
	----------------------------------------- */

	.site-header__desktop {
		display: none;
	}


	/* -----------------------------------------
	   MOBILE ROW
	----------------------------------------- */

	.site-header__mobile-row {
		position: relative;
		width: 100%;
		min-height: 40px;
		display: flex;
		align-items: center;
	}


	/* -----------------------------------------
	   HAMBURGER
	----------------------------------------- */

	.site-header__mobile-menu {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.mobile-menu-toggle {
		position: relative;

		width: 40px;
		height: 40px;

		display: flex;
		flex-direction: column;

		align-items: flex-start;
		justify-content: center;

		gap: 5px;

		margin: 0;
		padding: 0 4px;

		border: 0;
		background: transparent;

		color: var(--color-heading, #222);

		cursor: pointer;

		box-sizing: border-box;
	}

	.mobile-menu-toggle span {
		display: block;

		width: 24px;
		height: 2px;

		background: currentColor;

		border-radius: 999px;

		transform-origin: center;

		transition:
			transform 0.25s ease,
			opacity 0.2s ease,
			width 0.25s ease;
	}

	.mobile-menu-toggle.is-open span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.mobile-menu-toggle.is-open span:nth-child(2) {
		opacity: 0;
	}

	.mobile-menu-toggle.is-open span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}


	/* -----------------------------------------
	   MOBILE LOGO
	----------------------------------------- */

	.site-header__mobile-logo {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-header__mobile-logo .custom-logo-link {
		display: block;
		line-height: 0;
	}

	.site-header__mobile-logo .custom-logo {
		display: block;
		width: auto;
		max-width: 180px;
		height: auto;
		max-height: 40px;
		object-fit: contain;
	}

	.site-header__mobile-logo .site-title {
		display: block;
		color: var(--color-heading, #363542);
		font-family: var(--font-heading, sans-serif);
		font-size: 30px !important;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}


	/* -----------------------------------------
	   MOBILE SEARCH BUTTON
	----------------------------------------- */

	.site-header__mobile-search {
		position: relative;

		width: 40px;
		height: 40px;

		display: flex;
		align-items: center;
		justify-content: flex-end;

		z-index: 10002;
	}

	.site-header__mobile-search .header-search-toggle {
		width: 40px;
		height: 40px;
	}


	/* -----------------------------------------
	   MOBILE NAVIGATION
	----------------------------------------- */

	.mobile-navigation {
		position: absolute;

		top: 70px;
		left: 0;

		width: 100%;

		display: block;

		background: #fff;

		border-top: 1px solid var(--color-border, #e5e5e5);

		box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);

		opacity: 0;
		visibility: hidden;
		pointer-events: none;

		transform: translateY(-10px);

		transition:
			opacity 0.25s ease,
			visibility 0.25s ease,
			transform 0.25s ease;

		z-index: 8000;
	}

	.mobile-navigation.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;

		transform: translateY(0);
	}

	.mobile-navigation__inner {
		width: 100%;
	}

	.mobile-menu {
		display: flex;
		flex-direction: column;

		width: 100%;

		margin: 0;
		padding: 10px 20px 20px;

		list-style: none;

		box-sizing: border-box;
	}

	.mobile-menu > li {
		margin: 0;
		padding: 0;

		border-bottom: 1px solid #ededed;
	}

	.mobile-menu > li:last-child {
		border-bottom: 0;
	}

	.mobile-menu > li > a {
		display: block;

		padding: 16px 0;

		color: var(--color-heading, #111);

		font-family: var(--font-body, sans-serif);
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0.4px;

		text-decoration: none;
		text-transform: uppercase;
	}

	.mobile-menu > li > a:hover {
		color: var(--color-accent, #3264d6);
	}

	.mobile-menu > li.current-menu-item > a,
	.mobile-menu > li.current_page_item > a,
	.mobile-menu > li.current-menu-ancestor > a {
		color: var(--color-accent, #3264d6);
	}


	/* -----------------------------------------
	   SEARCH PANEL
	----------------------------------------- */

	.site-search {
		top: 10px;
		right: 45px;

		width: 0;
		height: 50px;

		z-index: 9000;
	}

	.site-search.is-open {
		width: calc(100vw - 105px);
	}

	.site-search__inner {
		width: 100%;
		height: 50px;
	}

	.site-search__form {
		height: 50px;
	}

	.site-search__form input {
		height: 50px;
		font-size: 15px;
		padding: 0 14px;
	}

	.site-search__submit {
		flex: 0 0 50px;

		width: 50px;
		height: 50px;
	}
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

	.site-header__container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.site-header__mobile-logo .custom-logo {
		max-width: 145px;
	}

	.site-header__mobile-logo .site-title {
		font-size: 26px !important;
	}

	.site-search.is-open {
		width: calc(100vw - 95px);
	}
}


/* =========================================
   FULL WIDTH HEADER
========================================= */

/* .site-header {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
} */

/* .site-header__container {
	width: 100% !important;
	max-width: 1540px !important;

	margin: 0 auto !important;

	box-sizing: border-box;
} */