/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background-color: var(--color-primary);
}

.site-header__topbar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__topbar-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0.75rem var(--container-padding);
	display: flex;
	justify-content: flex-end;
}

.header-info-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;

	li {
		font-family: var(--font-secondary);
		font-size: 0.875rem;
		font-weight: 600;
		line-height: 1.2;
		color: #ebe6dd;

		&:not(:last-child)::after {
			content: '|';
			margin: 0 0.625rem;
			font-weight: 400;
		}
	}

	a {
		color: #ebe6dd;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 1rem var(--container-padding);
}

.site-header__logo img {
	width: 89px;
	height: auto;
}

.site-header__slogan {
	font-family: var(--font-primary);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-text-light);
	text-align: center;

	strong {
		font-weight: 800;
	}
}

.site-header__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	align-self: flex-end;
	gap: 1rem;
}

.site-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 2.5rem;
	background-color: var(--color-accent);
	color: var(--color-text-light);
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	border-radius: 1.5rem;
	text-decoration: none;
	transition: opacity 0.2s;

	&:hover {
		opacity: 0.9;
	}
}

.site-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;

	span {
		display: block;
		width: 1.5rem;
		height: 2px;
		background-color: var(--color-white);
		border-radius: 4px;
	}
}

.site-header__nav {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;

	&.is-open {
		max-height: 500px;
	}
}

.site-header__nav-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding) 2rem;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;

	a {
		color: var(--color-text-light);
		font-family: var(--font-primary);
		font-size: 1.125rem;
		font-weight: 700;
		line-height: 1.5;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

	.sub-menu {
		list-style: none;
		padding: 0 0 0 1.25rem;
		margin: 0.25rem 0 0;

		a {
			font-weight: 400;
			font-size: 1rem;
		}
	}
}

/* ==========================================================================
   Header – Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.site-header__slogan {
		font-size: 1.5rem;
		line-height: 1.25;
	}

	.site-header__cta {
		padding: 0.5rem 1.75rem;
		font-size: 1rem;
		line-height: 1.5;
	}
}

@media (max-width: 768px) {
	.site-header__topbar {
		display: none;
	}

	.site-header__inner {
		grid-template-columns: auto auto;
		justify-content: space-between;
		padding-block: 1.25rem;
		gap: 0.75rem;
	}

	.site-header__logo img {
		width: 60px;
	}

	.site-header__slogan {
		display: none;
	}

	.site-header__cta {
		padding: 0.375rem 1.25rem;
		font-size: 0.875rem;
		line-height: 1.4;
		border-radius: 1.25rem;
	}

	.site-header__toggle {
		gap: 5px;
	}

	.site-header__nav {
		position: fixed;
		inset: 0;
		z-index: 999;
		max-height: none;
		background-color: var(--color-primary);
		display: flex;
		flex-direction: column;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		overflow-y: auto;
	}

	.site-header__nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.site-header__nav-inner {
		padding: 5rem var(--container-padding) 2rem;
		display: flex;
		flex-direction: column;
		justify-content: center;
		flex: 1;
	}

	.site-header__nav .primary-menu {
		gap: 1.25rem;
		align-items: center;
	}

	.site-header__nav .primary-menu a {
		font-size: 1.5rem;
	}

	.site-header__nav-close {
		position: absolute;
		top: 1.25rem;
		right: var(--container-padding);
		background: none;
		border: none;
		color: var(--color-text-light);
		font-size: 2rem;
		cursor: pointer;
		padding: 0.5rem;
		line-height: 1;
	}
}
