/**
 * Site header (template-parts/header/site-header.php), block gloorst-header.
 *
 * Transparent bar over the page hero (pulled up by a negative margin) with a
 * dark gradient, logo on the start side and the main menu on the end side.
 * Tablet/mobile (<=1024px): burger toggle + full-width dropdown (header.js).
 * Menu item layout: assets/css/nav-menu.css (block gloorst-menu).
 *
 * Selectors use two classes to win over the base element rules
 * ("a:hover", "ul", "button" ...).
 */

.gloorst-header {
	--gloorst-header-color: #fff;
	--gloorst-header-max-width: 1140px;
	--gloorst-header-dropdown-bg: #000000ba;
	--gloorst-header-dropdown-active-bg: #000;
	--gloorst-header-font: "Helvetica", sans-serif;
	--gloorst-header-dropdown-font: "Helvetica Neue", sans-serif;
	position: relative;
	z-index: 10;
	margin: 0 0 -130px;
	padding: 20px 0;
}

.gloorst-header--ar {
	--gloorst-header-font: "Helvetica Neue", sans-serif;
}

/* Gradient overlay */
.gloorst-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(180deg, #000000c4 19%, #f2295b00 100%);
	opacity: 0.7;
}

.gloorst-header .gloorst-header__inner {
	position: relative;
	display: flex;
	max-width: var(--gloorst-header-max-width);
	margin-inline: auto;
}

.gloorst-header .gloorst-header__col {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	min-height: 1px;
	padding: 10px;
}

.gloorst-header .gloorst-header__col--brand {
	width: 20%;
}

.gloorst-header .gloorst-header__col--nav {
	width: 80%;
}

/* Logo */
.gloorst-header .gloorst-header__logo {
	width: 100%;
	text-align: start;
}

.gloorst-header--ar .gloorst-header__logo {
	text-align: end;
}

.gloorst-header .gloorst-header__logo-link {
	display: inline-block;
}

.gloorst-header .gloorst-header__logo-img {
	display: inline-block;
	width: 85%;
	vertical-align: middle;
	transition: transform 0.3s;
}

.gloorst-header .gloorst-header__logo-img:hover,
.gloorst-header .gloorst-header__logo-img:focus,
.gloorst-header .gloorst-header__logo-img:active {
	transform: scale(1.1);
}

/* Menu column */
.gloorst-header .gloorst-header__nav {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Desktop menu */
.gloorst-header .gloorst-header__menu .gloorst-menu__list {
	justify-content: flex-end;
	margin-inline-start: auto;
}

.gloorst-header .gloorst-header__menu .gloorst-menu__link,
.gloorst-header .gloorst-header__menu .gloorst-menu__link:hover,
.gloorst-header .gloorst-header__menu .gloorst-menu__link:focus {
	padding-inline: 12px;
	font-family: var(--gloorst-header-font);
	font-size: 14px;
	font-weight: normal;
	text-transform: uppercase;
	color: var(--gloorst-header-color);
}

/* Burger toggle */
.gloorst-header .gloorst-header__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	margin-inline-start: auto;
	padding: 0.25em;
	border: 0;
	border-radius: 3px;
	background-color: rgba(0, 0, 0, 0.05);
	box-shadow: none;
	font-size: 22px;
	line-height: inherit;
	color: var(--gloorst-header-color);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.gloorst-header .gloorst-header__toggle:hover,
.gloorst-header .gloorst-header__toggle:focus {
	background-color: rgba(0, 0, 0, 0.05);
	color: var(--gloorst-header-color);
}

/* Keep the browser focus ring (base.css removes it on button:focus). */
.gloorst-header .gloorst-header__toggle:focus-visible {
	outline: 1px auto Highlight;
	outline: 1px auto -webkit-focus-ring-color;
}

.gloorst-header .gloorst-header__toggle-icon {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.gloorst-header .gloorst-header__toggle[aria-expanded="true"] .gloorst-header__toggle-icon--open,
.gloorst-header .gloorst-header__toggle:not([aria-expanded="true"]) .gloorst-header__toggle-icon--close {
	display: none;
}

/* Dropdown (stretched to the viewport width by header.js) */
.gloorst-header .gloorst-header__dropdown {
	position: absolute;
	z-index: 9997;
	max-height: 0;
	margin-top: 10px;
	overflow: hidden;
	background-color: var(--gloorst-header-dropdown-bg);
	font-size: 13px;
	transform: scaleY(0);
	transform-origin: top;
	transition: max-height 0.3s, transform 0.3s;
}

.gloorst-header .gloorst-header__toggle[aria-expanded="true"] + .gloorst-header__dropdown {
	max-height: var(--menu-height, 100vh);
	overflow-x: hidden;
	overflow-y: auto;
	transform: scaleY(1);
	animation: gloorst-hide-scroll 0.3s backwards;
}

.gloorst-header .gloorst-header__dropdown .gloorst-menu__link,
.gloorst-header .gloorst-header__dropdown .gloorst-menu__link:hover,
.gloorst-header .gloorst-header__dropdown .gloorst-menu__link:focus {
	font-family: var(--gloorst-header-dropdown-font);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--gloorst-header-color);
}

.gloorst-header .gloorst-header__dropdown .gloorst-menu__link:hover,
.gloorst-header .gloorst-header__dropdown .gloorst-menu__link:focus,
.gloorst-header .gloorst-header__dropdown .gloorst-menu__link--active {
	background-color: var(--gloorst-header-dropdown-active-bg);
}

@keyframes gloorst-hide-scroll {
	0%,
	to {
		overflow: hidden;
	}
}

@media (min-width: 1025px) {
	.gloorst-header .gloorst-header__toggle,
	.gloorst-header .gloorst-header__dropdown {
		display: none;
	}
}

@media (max-width: 1024px) {
	.gloorst-header .gloorst-header__inner {
		max-width: 1024px;
	}

	.gloorst-header .gloorst-header__menu {
		display: none;
	}
}

@media (max-width: 767px) {
	.gloorst-header {
		padding: 20px;
	}

	.gloorst-header--ar {
		padding: 20px 10px;
	}

	.gloorst-header .gloorst-header__inner {
		flex-wrap: wrap;
		max-width: 767px;
	}

	.gloorst-header .gloorst-header__col--brand {
		width: 60%;
	}

	.gloorst-header .gloorst-header__col--nav {
		width: 40%;
	}

	.gloorst-header--ar .gloorst-header__logo {
		text-align: start;
	}

	.gloorst-header .gloorst-header__dropdown {
		margin-top: 20px;
	}
}

/* Current menu item in bold. Was the custom CSS of the old header menu
   widget, printed unscoped: it applies to every menu of the site. */
.current-menu-item a {
	font-weight: bold !important;
}
