/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	border-top: 7px solid #dedede;
	border-right: 7px solid #dedede;
	border-left: 7px solid #dedede;
	background: #ffffff;
}

.site-header__container {
	display: grid;
	grid-template-columns: 250px 1fr auto;
	align-items: center;
	width: min(calc(100% - 80px), 1760px);
	min-height: 106px;
	margin-inline: auto;
	gap: 40px;
}

.site-header__logo {
	display: flex;
	align-items: center;
}

.site-header__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-header__logo .custom-logo {
	display: block;
	width: auto;
	max-width: 165px;
	max-height: 78px;
	object-fit: contain;
}

.site-header__site-name {
	color: #222a62;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.site-header__navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.site-header__menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.site-header__menu > li:not(:last-child)::after {
	content: "|";
	display: inline-block;
	margin: 0 13px;
	color: #5b5b5b;
	font-size: 21px;
	font-weight: 300;
	line-height: 1;
}

.site-header__menu a {
	color: #555555;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item > a {
	color: #b58f42;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-icon-button,
.header-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #464646;
}

.header-icon-button:hover,
.header-menu-toggle:hover {
	color: #b58f42;
}

.header-icon-button svg {
	width: 31px;
	height: 31px;
}

.header-menu-toggle {
	flex-direction: column;
	width: 39px;
	height: 34px;
	gap: 7px;
}

.header-menu-toggle span {
	display: block;
	width: 34px;
	height: 4px;
	border-radius: 4px;
	background: currentColor;
	transition:
		transform 250ms ease,
		opacity 250ms ease;
}

.header-menu-toggle.is-active span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}

.header-menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.header-menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

/* Search */

.header-search {
	border-top: 1px solid #eeeeee;
	background: #ffffff;
	box-shadow: 0 8px 18px rgb(0 0 0 / 8%);
}

.header-search .site-header__container {
	display: block;
	min-height: auto;
	padding-block: 20px;
}

.header-search .search-form {
	display: flex;
	width: min(100%, 750px);
	margin-left: auto;
}

.header-search .search-field {
	width: 100%;
	min-height: 48px;
	padding: 11px 15px;
	border: 1px solid #d4d4d4;
	border-right: 0;
	border-radius: 0;
	outline: 0;
}

.header-search .search-field:focus {
	border-color: #b58f42;
}

.header-search .search-submit {
	min-width: 120px;
	border: 1px solid #b58f42;
	background: #b58f42;
	color: #ffffff;
	font-weight: 500;
}

/* ==========================================================================
   Off-canvas overlay
   ========================================================================== */

.offcanvas-overlay {
	position: fixed;
	inset: 0;
	z-index: 1190;
	background: rgb(0 0 0 / 35%);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 350ms ease,
		visibility 350ms ease;
}

.offcanvas-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* ==========================================================================
   Off-canvas menu
   ========================================================================== */

.offcanvas-menu {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1200;
	width: min(100%, 510px);
	height: 100dvh;
	background: #b4914a;
	color: #ffffff;
	transform: translateX(100%);
	visibility: hidden;
	transition:
		transform 430ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 430ms;
}

.offcanvas-menu.is-open {
	transform: translateX(0);
	visibility: visible;
}

.offcanvas-menu__inner {
	position: relative;
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgb(255 255 255 / 28%) transparent;
}

.offcanvas-menu__inner::-webkit-scrollbar {
	width: 4px;
}

.offcanvas-menu__inner::-webkit-scrollbar-thumb {
	background: rgb(255 255 255 / 28%);
}

.offcanvas-menu__close {
	position: absolute;
	top: 25px;
	right: 28px;
	z-index: 2;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
}

.offcanvas-menu__close span {
	position: absolute;
	top: 20px;
	left: 6px;
	width: 31px;
	height: 2px;
	background: currentColor;
}

.offcanvas-menu__close span:first-child {
	transform: rotate(45deg);
}

.offcanvas-menu__close span:last-child {
	transform: rotate(-45deg);
}

.offcanvas-menu__content {
	position: relative;
	width: 330px;
	min-height: 515px;
	margin: 58px 0 40px 33px;
	padding-right: 15px;
	border-right: 4px solid rgb(255 255 255 / 24%);
}

.offcanvas-menu__content::after {
	content: "";
	position: absolute;
	top: 61px;
	right: -4px;
	width: 4px;
	height: 60px;
	background: rgb(255 255 255 / 20%);
}

.offcanvas-menu__section {
	padding-bottom: 14px;
	border-bottom: 1px solid rgb(255 255 255 / 19%);
}

.offcanvas-menu__section + .offcanvas-menu__section {
	padding-top: 11px;
}

.offcanvas-menu__heading {
	margin: 0 0 4px;
	color: #ffffff;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}

.offcanvas-menu__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.offcanvas-menu__sublist li {
	margin: 0;
}

.offcanvas-menu__sublist a {
	display: inline-block;
	color: rgb(255 255 255 / 78%);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.28;
}

.offcanvas-menu__sublist a:hover {
	color: #ffffff;
	transform: translateX(3px);
}

.offcanvas-menu__main-links {
	display: flex;
	flex-direction: column;
}

.offcanvas-menu__main-links > a {
	display: flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid rgb(255 255 255 / 19%);
	color: #ffffff;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.offcanvas-menu__main-links > a:hover {
	padding-left: 5px;
	color: #ffffff;
}

/* Prevent page scroll while menu is open */

body.offcanvas-open {
	overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
	.site-header__container {
		grid-template-columns: 210px 1fr auto;
		width: min(calc(100% - 50px), 1760px);
	}

	.site-header__menu a {
		font-size: 17px;
	}

	.site-header__menu > li:not(:last-child)::after {
		margin-inline: 9px;
	}
}

@media (max-width: 1024px) {
	.site-header {
		border-top-width: 4px;
		border-right-width: 4px;
		border-left-width: 4px;
	}

	.site-header__container {
		grid-template-columns: 1fr auto;
		width: calc(100% - 34px);
		min-height: 82px;
		gap: 20px;
	}

	.site-header__navigation {
		display: none;
	}

	.site-header__logo .custom-logo {
		max-width: 140px;
		max-height: 65px;
	}
}

@media (max-width: 600px) {
	.site-header__container {
		width: calc(100% - 24px);
		min-height: 72px;
	}

	.site-header__logo .custom-logo {
		max-width: 125px;
	}

	.site-header__actions {
		gap: 9px;
	}

	.header-icon-button {
		width: 30px;
		height: 30px;
	}

	.header-icon-button svg {
		width: 27px;
		height: 27px;
	}

	.header-menu-toggle {
		width: 34px;
	}

	.header-menu-toggle span {
		width: 31px;
		height: 3px;
	}

	.offcanvas-menu {
		width: min(100%, 365px);
	}

	.offcanvas-menu__content {
		width: calc(100% - 67px);
		margin-top: 58px;
		margin-left: 33px;
	}

	.offcanvas-menu__heading,
	.offcanvas-menu__main-links > a {
		font-size: 20px;
	}
}