/* Header layout and navigation. All colors come from the shared palette. */
.gc-header {
	position: relative;
	z-index: 20;
	background: var(--gc-color-surface);
	color: var(--gc-color-text);
	border-bottom: 1px solid var(--gc-color-border);
	font-family: "Segoe UI", Arial, sans-serif;
}

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

.gc-header [hidden] { display: none !important; }

.gc-header__inner {
	max-width: 1200px;
	min-height: 96px;
	margin-inline: auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.gc-header__brand { display: inline-flex; flex: 0 0 auto; border-radius: 4px; }
.gc-header__logo { display: block; width: 224px; height: auto; }
.gc-header__nav { margin-left: auto; }

.gc-header .gc-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gc-header__menu > li { margin: 0; padding: 0; }
.gc-header__menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 6px;
	color: var(--gc-color-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 150ms ease, background-color 150ms ease;
}

.gc-header__menu > li > a:hover {
	color: var(--gc-color-link);
	background: var(--gc-color-surface-subtle);
}

.gc-header__menu > .gc-menu-cta > a {
	padding-inline: 24px;
	color: var(--gc-color-action-text);
	background: var(--gc-color-action);
}

.gc-header__menu > .gc-menu-cta > a:hover {
	color: var(--gc-color-action-text);
	background: var(--gc-color-action-hover);
}

.gc-header a:focus-visible,
.gc-header button:focus-visible {
	outline: 3px solid var(--gc-color-focus);
	outline-offset: 4px;
}

.gc-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--gc-color-border-control);
	border-radius: 6px;
	background: var(--gc-color-surface);
	color: var(--gc-color-text);
	font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
	cursor: pointer;
}

.gc-header__toggle:hover,
.gc-header__toggle:focus {
	background: var(--gc-color-surface-subtle);
	color: var(--gc-color-text);
}

.gc-header__toggle-line { transform-origin: 12px 12px; }
.gc-header__toggle[aria-expanded="true"] .gc-header__toggle-line:first-child { transform: translateY(4px) rotate(45deg); transform-origin: 12px 8px; }
.gc-header__toggle[aria-expanded="true"] .gc-header__toggle-line:last-child { transform: translateY(-4px) rotate(-45deg); transform-origin: 12px 16px; }

@media (max-width: 900px) {
	.gc-header__inner { min-height: 80px; padding: 16px 24px; flex-wrap: wrap; gap: 0 20px; }
	.gc-header__logo { width: 204px; }
	.gc-header__nav { flex-basis: 100%; margin: 16px 0 0; border-top: 1px solid var(--gc-color-border); padding-top: 12px; }
	.gc-header .gc-header__menu { flex-direction: column; align-items: stretch; gap: 4px; }
	.gc-header__menu > li > a { justify-content: flex-start; min-height: 48px; padding: 12px 14px; }
	.gc-header__menu > .gc-menu-cta > a { justify-content: center; margin-top: 4px; }
}

@media (max-width: 380px) {
	.gc-header__inner { padding-inline: 16px; gap: 0 12px; }
	.gc-header__logo { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
	.gc-header__menu > li > a { transition: none; }
}
