/* ==========================================
   Oryzias Common Header v1
   File: /css/header.css
   ========================================== */

:root {
	--ory-header-height: 92px;
	--ory-header-text-dark: #17202a;
	--ory-header-gold: #c7a45d;
	--ory-header-border: rgba(255, 255, 255, .18);
}

.ory-global-header {
	position: relative;
	z-index: 999;
	width: 100%;
	transition:
		background-color .25s ease,
		box-shadow .25s ease,
		color .25s ease,
		transform .25s ease;
}

.ory-global-header--transparent {
	position: absolute;
	top: 0;
	left: 0;
	color: #fff;
	background: transparent;
	border-bottom: 1px solid var(--ory-header-border);
}

.admin-bar .ory-global-header--transparent {
	top: 32px;
}

.ory-global-header--solid {
	color: var(--ory-header-text-dark);
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ory-global-header.is-scrolled {
	position: fixed;
	top: 0;
	left: 0;
	color: #fff;
	background: rgba(6, 9, 11, .9);
	border-bottom-color: rgba(255, 255, 255, .1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	backdrop-filter: blur(14px);
}

.admin-bar .ory-global-header.is-scrolled {
	top: 32px;
}

.ory-global-header__inner {
	width: min(1320px, calc(100% - 64px));
	min-height: var(--ory-header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.ory-global-header__brand {
	flex: 0 0 auto;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
}

.ory-global-header__logo-image {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 58px;
	object-fit: contain;
}

.ory-global-header__logo-text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 29px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
}

.ory-global-header__company-name {
	margin-top: 6px;
	font-size: 10px;
	letter-spacing: .08em;
	opacity: .74;
}

.ory-global-header__panel {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 34px;
}

.ory-global-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2vw, 32px);
}

.ory-global-header__nav a,
.ory-global-header__languages a {
	position: relative;
	color: inherit;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: color .2s ease;
}

.ory-global-header__nav a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -9px;
	left: 0;
	height: 1px;
	background: var(--ory-header-gold);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .22s ease;
}

.ory-global-header__nav a:hover,
.ory-global-header__languages a:hover,
.ory-global-header__languages a.is-current {
	color: var(--ory-header-gold);
}

.ory-global-header__nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.ory-global-header__languages {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	font-size: 12px;
}

.ory-global-header__languages span {
	color: var(--ory-header-gold);
}

.ory-global-header__toggle {
	display: none;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 10px;
	border: 1px solid currentColor;
	border-radius: 0;
	color: inherit;
	background: transparent;
	cursor: pointer;
}

.ory-global-header__toggle span {
	display: block;
	width: 100%;
	height: 1px;
	margin: 6px 0;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.ory-global-header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ory-global-header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ory-global-header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Prevent content from hiding below the solid header. */
.ory-global-header--solid + #content,
.ory-global-header--solid + .site-content {
	margin-top: 0;
}

@media (max-width: 1100px) {
	.ory-global-header__inner {
		width: min(100% - 40px, 1320px);
	}

	.ory-global-header__toggle {
		display: block;
	}

	.ory-global-header__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 30px 24px 34px;
		color: #fff;
		background: rgba(6, 9, 11, .97);
		border-top: 1px solid rgba(255, 255, 255, .1);
		box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
	}

	.ory-global-header__panel.is-open {
		display: block;
	}

	.ory-global-header__nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}

	.ory-global-header__nav a {
		padding: 17px 10px;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.ory-global-header__nav a::after {
		display: none;
	}

	.ory-global-header__languages {
		margin-top: 26px;
		padding-left: 10px;
	}
}

@media (max-width: 782px) {
	.admin-bar .ory-global-header--transparent,
	.admin-bar .ory-global-header.is-scrolled {
		top: 46px;
	}
}

@media (max-width: 640px) {
	:root {
		--ory-header-height: 76px;
	}

	.ory-global-header__inner {
		width: calc(100% - 28px);
	}

	.ory-global-header__logo-image {
		max-width: 145px;
		max-height: 44px;
	}

	.ory-global-header__logo-text {
		font-size: 23px;
	}

	.ory-global-header__company-name {
		display: none;
	}

	.ory-global-header__nav {
		grid-template-columns: 1fr;
	}
}
