/**
 * Haris Header for Elementor — frontend styles.
 * All colours, sizes and spacing are controlled from the Elementor Style tab;
 * the values here are structural fallbacks only.
 */

.haris-header {
	--haris-align: center;
	--haris-justify: center;
	--haris-row-gap: 22px;
	--haris-zindex: 999;
	--haris-transition: 0.35s;
	--haris-divider-color: #9a7b3f;
	--haris-divider-color-b: #d9c08a;
	--haris-indicator-offset: 8px;
	--haris-panel-width: 100%;
	--haris-overlay: rgba(0, 0, 0, 0.6);
	position: relative;
	width: 100%;
	z-index: var(--haris-zindex);
}

.haris-header,
.haris-header *,
.haris-header *::before,
.haris-header *::after {
	box-sizing: border-box;
}

.haris-header__bar {
	position: relative;
	width: 100%;
	background-color: #0a0a0a;
	transition: background-color var(--haris-transition) ease,
		padding var(--haris-transition) ease,
		transform var(--haris-transition) ease,
		box-shadow var(--haris-transition) ease;
}

.haris-header__container {
	display: flex;
	flex-direction: column;
	gap: var(--haris-row-gap);
	width: 100%;
	margin-inline: auto;
	text-align: var(--haris-align);
}

/* ------------------------------------------------------------------ Brand */

.haris-header__brand {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: var(--haris-justify);
	width: 100%;
	gap: 16px;
	min-height: 1px;
}

.haris-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: transform var(--haris-transition) ease, opacity 0.3s ease;
	transform-origin: center;
}

.haris-header--layout-inline .haris-header__logo,
.haris-header--layout-inline-center .haris-header__logo {
	transform-origin: left center;
}

.haris-header__logo-text {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	justify-content: var(--haris-justify);
	gap: 12px;
	margin: 0;
	line-height: 1.1;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.haris-header__logo-primary,
.haris-header__logo-secondary {
	display: inline-block;
	color: #f2f0ec;
	transition: color 0.3s ease;
}

.haris-header__logo-primary {
	text-transform: uppercase;
}

.haris-header__logo-secondary {
	font-style: italic;
}

.haris-header__logo-image {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------- Divider */

.haris-header__divider {
	display: block;
	width: 100%;
	height: 1px;
	margin: 18px 0;
	background-color: var(--haris-divider-color);
	transition: opacity var(--haris-transition) ease,
		height var(--haris-transition) ease,
		margin var(--haris-transition) ease;
	align-self: center;
	flex: 0 0 auto;
}

.haris-header--divider-style-fade .haris-header__divider {
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0) 0%,
		var(--haris-divider-color) 18%,
		var(--haris-divider-color) 82%,
		rgba(0, 0, 0, 0) 100%
	);
}

.haris-header--divider-style-gradient .haris-header__divider {
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		var(--haris-divider-color) 0%,
		var(--haris-divider-color-b) 100%
	);
}

/* ------------------------------------------------------------------- Menu */

.haris-header__nav {
	width: 100%;
}

.haris-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--haris-justify);
	gap: 46px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.haris-header__menu li::marker {
	content: none;
}

.haris-header__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.haris-header__link {
	position: relative;
	display: inline-block;
	color: #cfcbc4;
	text-decoration: none;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: 13px;
	line-height: 1.4;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.haris-header__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-1 * var(--haris-indicator-offset));
	height: 1px;
	background-color: #9a7b3f;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
	pointer-events: none;
}

.haris-header--indicator-none .haris-header__link::after {
	display: none;
}

.haris-header--indicator-overline .haris-header__link::after {
	bottom: auto;
	top: calc(-1 * var(--haris-indicator-offset));
}

.haris-header--indicator-dot .haris-header__link::after {
	left: 50%;
	right: auto;
	width: 5px;
	border-radius: 50%;
	transform: translateX(-50%) scale(0);
}

.haris-header__link:hover::after,
.haris-header__link:focus-visible::after,
.haris-header__item.is-active .haris-header__link::after {
	transform: scaleX(1);
}

.haris-header--indicator-dot .haris-header__link:hover::after,
.haris-header--indicator-dot .haris-header__link:focus-visible::after,
.haris-header--indicator-dot .haris-header__item.is-active .haris-header__link::after {
	transform: translateX(-50%) scale(1);
}

.haris-header__link--button {
	background-color: #d9c08a;
	color: #0a0a0a;
	padding: 12px 26px;
}

.haris-header__link--button::after {
	display: none;
}

.haris-header__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* ---------------------------------------------------------------- Layouts */

.haris-header--layout-inline .haris-header__container,
.haris-header--layout-inline-center .haris-header__container,
.haris-header--layout-inline-rtl .haris-header__container {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 32px;
}

.haris-header--layout-inline-rtl .haris-header__container {
	flex-direction: row-reverse;
}

.haris-header--layout-inline .haris-header__brand,
.haris-header--layout-inline-center .haris-header__brand,
.haris-header--layout-inline-rtl .haris-header__brand {
	width: auto;
	flex: 0 0 auto;
	justify-content: flex-start;
}

.haris-header--layout-inline .haris-header__nav,
.haris-header--layout-inline-rtl .haris-header__nav {
	width: auto;
	flex: 0 1 auto;
}

.haris-header--layout-inline-center .haris-header__nav {
	flex: 1 1 auto;
	width: auto;
}

.haris-header--layout-inline .haris-header__menu,
.haris-header--layout-inline-rtl .haris-header__menu {
	justify-content: flex-end;
}

.haris-header--layout-inline .haris-header__divider,
.haris-header--layout-inline-center .haris-header__divider,
.haris-header--layout-inline-rtl .haris-header__divider {
	order: 10;
	width: 100%;
	flex-basis: 100%;
}

/* ----------------------------------------------------------------- Sticky */

.haris-header.is-sticky .haris-header__bar,
.haris-header.is-panel-open .haris-header__bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: calc(var(--haris-zindex) + 2);
}

.haris-header.is-sticky .haris-header__bar {
	background-color: rgba(10, 10, 10, 0.92);
}

.haris-header.is-sticky.is-hidden .haris-header__bar {
	transform: translateY(-105%);
}

.haris-header.is-panel-open .haris-header__bar {
	background-color: transparent;
}

/* --------------------------------------------------------------- Toggle */

.haris-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border: 0;
	background: none;
	color: #f2f0ec;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.haris-header--toggle-left .haris-header__toggle {
	right: auto;
	left: 0;
}

.haris-header--layout-inline .haris-header__toggle,
.haris-header--layout-inline-center .haris-header__toggle,
.haris-header--layout-inline-rtl .haris-header__toggle {
	position: static;
	transform: none;
	margin-left: auto;
}

.haris-header__toggle i,
.haris-header__toggle svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.haris-header__toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.haris-header__toggle-icon--close {
	display: none;
}

.haris-header__toggle.is-open .haris-header__toggle-icon--open {
	display: none;
}

.haris-header__toggle.is-open .haris-header__toggle-icon--close {
	display: flex;
}

/* ----------------------------------------------------------- Mobile panel */

.haris-header__panel {
	position: fixed;
	inset: 0;
	z-index: calc(var(--haris-zindex) + 1);
	background-color: var(--haris-overlay);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.haris-header.is-panel-open .haris-header__panel {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.haris-header__panel-inner {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: var(--haris-panel-width);
	max-width: 100%;
	padding: 110px 32px 40px;
	background-color: #0a0a0a;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.haris-header--panel-slide-left .haris-header__panel-inner {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.haris-header--panel-slide-down .haris-header__panel-inner {
	right: 0;
	left: 0;
	bottom: auto;
	width: 100%;
	height: auto;
	max-height: 100%;
	transform: translateY(-100%);
}

.haris-header--panel-fade .haris-header__panel-inner {
	transform: none;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.haris-header.is-panel-open .haris-header__panel-inner {
	transform: translate(0, 0);
	opacity: 1;
}

.haris-header__panel-logo {
	margin-bottom: 40px;
	display: flex;
	justify-content: center;
}

.haris-header__panel-menu {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	width: 100%;
}

.haris-header__panel-item {
	width: 100%;
	border-bottom: 0 solid transparent;
}

.haris-header--panel-divider .haris-header__panel-item {
	border-bottom-width: 1px;
	border-bottom-color: rgba(255, 255, 255, 0.12);
	padding-bottom: 26px;
}

.haris-header--panel-divider .haris-header__panel-item:last-child {
	border-bottom-width: 0;
	padding-bottom: 0;
}

.haris-header__panel .haris-header__link {
	display: inline-block;
	font-size: 20px;
	letter-spacing: 4px;
	color: #e8e5df;
}

.haris-header__panel .haris-header__link::after {
	display: none;
}

body.haris-scroll-locked {
	overflow: hidden !important;
}

/* ------------------------------------------------------------ Collapsing */

.haris-header--collapse-always .haris-header__nav {
	display: none;
}

.haris-header--collapse-always .haris-header__toggle {
	display: flex;
}

.haris-header--collapse-always.haris-header--layout-stacked .haris-header__brand {
	padding-inline: 48px;
}

.haris-header--collapse-none .haris-header__panel {
	display: none;
}

@media (max-width: 1024px) {
	.haris-header--collapse-tablet .haris-header__nav {
		display: none;
	}

	.haris-header--collapse-tablet .haris-header__toggle {
		display: flex;
	}

	.haris-header--collapse-tablet.haris-header--layout-stacked .haris-header__divider {
		margin-bottom: 0;
	}

	.haris-header--collapse-tablet.haris-header--layout-stacked .haris-header__brand {
		padding-inline: 48px;
	}
}

@media (max-width: 767px) {
	.haris-header--collapse-mobile .haris-header__nav {
		display: none;
	}

	.haris-header--collapse-mobile .haris-header__toggle {
		display: flex;
	}

	.haris-header--collapse-mobile.haris-header--layout-stacked .haris-header__divider {
		margin-bottom: 0;
	}

	.haris-header--collapse-mobile.haris-header--layout-stacked .haris-header__brand {
		padding-inline: 48px;
	}

	.haris-header__menu {
		gap: 20px;
	}
}

/* -------------------------------------------------- Per-item visibility */

@media (min-width: 1025px) {
	.haris-header .haris-hide-desktop {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.haris-header .haris-hide-tablet {
		display: none;
	}
}

@media (max-width: 767px) {
	.haris-header .haris-hide-mobile {
		display: none;
	}
}

/* ------------------------------------------------------------ A11y / RM */

@media (prefers-reduced-motion: reduce) {
	.haris-header *,
	.haris-header *::before,
	.haris-header *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
