/* ============================================
   HEADER
   ============================================ */

.header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--primary-color);
	color: var(--primary-text-color);
	padding: var(--spacing-sm) var(--spacing-lg);
	box-shadow: var(--shadow-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-lg);
}

.header-menu {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

.header-button {
	background-color: var(--secondary-color);
	color: var(--primary-text-color);
	border: none;
	padding: var(--spacing-xs) var(--spacing-sm);
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 1rem;
	transition: background-color var(--transition-normal);
	text-decoration: none;
	display: inline-block;
}

.header-button:hover {
	background-color: var(--mountain-blue);
	filter: brightness(1.1);
}

.header-button:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

.header-nav {
	display: flex;
	align-items: center;
	gap: var(--spacing-lg);
}

.header-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.header-logo {
	height: 40px;
	width: auto;
	transition: transform var(--transition-fast);
}

.header-logo:hover {
	transform: scale(1.05);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
	color: var(--primary-text-color);
	text-decoration: none;
	font-family: var(--secondary-font);
	font-weight: 600;
	font-size: 0.95rem;
	display: inline-block;
	position: relative;
	padding: var(--spacing-xs) 0;
	transition: color var(--transition-normal);
	cursor: pointer;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--border-width);
	background-color: var(--accent-color);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-normal);
}

.nav-link:hover {
	color: var(--highlight-color);
}

.nav-link:hover::after {
	transform: scaleX(1);
}

.nav-link:focus-visible {
	outline: var(--border-width) solid var(--accent-color);
	outline-offset: var(--border-width);
	border-radius: var(--border-width);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.mobile-nav {
	display: none;
	flex-direction: column;
	background: var(--primary-color);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: var(--header-height);
	z-index: 998;
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition-normal);
}

.mobile-nav-open {
	max-height: calc(var(--section-height-md) * 0.6);
}

.mobile-nav-link,
.mobile-nav-button {
	color: var(--primary-text-color);
	text-decoration: none;
	padding: var(--spacing-sm) var(--spacing-lg);
	border: none;
	background: transparent;
	text-align: left;
	font-family: var(--secondary-font);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color var(--transition-fast);
	display: block;
}

.mobile-nav-link:hover,
.mobile-nav-button:hover {
	background-color: var(--overlay-white-10);
}

.mobile-nav-link:focus-visible,
.mobile-nav-button:focus-visible {
	outline: var(--border-width) solid var(--accent-color);
	outline-offset: calc(var(--border-width) * -1);
}

.mobile-nav-button {
	background-color: var(--secondary-color);
	margin: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
	padding: 0.75rem var(--spacing-sm);
	border-radius: var(--border-radius);
	text-align: center;
}

.mobile-nav-button:hover {
	background-color: var(--secondary-color);
	filter: brightness(1.1);
}
