/* Header styles for ATTILA BAR */

.tlh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(22px);
	background: linear-gradient(
		to bottom,
		rgba(11, 11, 13, 0.96),
		rgba(11, 11, 13, 0.88)
	);
	border-bottom: 1px solid var(--color-border-subtle);
}

.tlh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: var(--space-3);
	padding-bottom: var(--space-3);
	gap: var(--space-6);
}

.tlh-header__brand {
	display: flex;
	align-items: center;
}

.tlh-header__logo-link {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
}

.tlh-header__logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid rgba(182, 139, 42, 0.7);
	background:
		radial-gradient(
			circle at 30% 20%,
			rgba(245, 241, 233, 0.18),
			transparent 55%
		),
		radial-gradient(
			circle at 70% 70%,
			rgba(111, 28, 47, 0.35),
			transparent 60%
		),
		var(--color-graphite);
	box-shadow:
		0 0 0 1px rgba(11, 11, 13, 0.9),
		var(--shadow-soft);
	position: relative;
	margin-bottom: 2px;
}

.tlh-header__logo-mark::after {
	content: "TL";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.tlh-header__logo-text {
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tlh-header__logo-sub {
	font-size: var(--font-size-xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

/* Navigation */

.tlh-header__nav {
	display: flex;
	align-items: center;
}

.tlh-header__nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	list-style: none;
	padding: 0;
	margin: 0;
}

.tlh-header__nav-link {
	font-size: var(--font-size-sm);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.tlh-header__nav-link:hover,
.tlh-header__nav-link:focus-visible {
	color: var(--color-text);
}

.tlh-header__nav-item--highlight {
	margin-left: var(--space-2);
}

.tlh-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.4rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(182, 139, 42, 0.9);
	background: linear-gradient(
		135deg,
		rgba(182, 139, 42, 0.12),
		rgba(182, 139, 42, 0.35)
	);
	box-shadow: var(--shadow-soft);
	font-size: var(--font-size-xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text) !important;
}

.tlh-header__cta:hover,
.tlh-header__cta:focus-visible {
	background: linear-gradient(
		135deg,
		rgba(255, 193, 48, 0.3),
		rgba(255, 179, 0, 0.6)
	);
	box-shadow: var(--shadow-elevated);
}

/* Mobile toggle */

.tlh-header__toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.75rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(245, 241, 233, 0.16);
	background: rgba(12, 12, 13, 0.85);
	color: var(--color-text);
	cursor: pointer;
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tlh-header__toggle-icon {
	position: relative;
	width: 18px;
	height: 14px;
}

.tlh-header__toggle-icon span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--color-text);
	transition:
		transform var(--transition-normal),
		opacity var(--transition-fast),
		top var(--transition-normal),
		bottom var(--transition-normal);
}

.tlh-header__toggle-icon span:first-child {
	top: 2px;
}

.tlh-header__toggle-icon span:last-child {
	bottom: 2px;
}

.tlh-header__toggle[aria-expanded="true"]
	.tlh-header__toggle-icon
	span:first-child {
	top: 6px;
	transform: rotate(45deg);
}

.tlh-header__toggle[aria-expanded="true"]
	.tlh-header__toggle-icon
	span:last-child {
	bottom: 6px;
	transform: rotate(-45deg);
}

.tlh-header__toggle-label {
	font-size: var(--font-size-xs);
}

/* Mobile layout */

@media (max-width: 900px) {
	.tlh-header__toggle {
		display: inline-flex;
	}

	.tlh-header__nav {
		position: fixed;
		inset: 236px 0 0 0;

		background: rgba(5, 5, 7, 0.96);
		backdrop-filter: blur(22px);

		z-index: 1000;

		opacity: 0;
		visibility: hidden;
		pointer-events: none;

		transition: opacity 0.25s ease;
	}

	/* OPEN STATE */
	.tlh-header__nav--open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.tlh-header__nav-list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		background: rgba(5, 5, 7, 0.96);
		width: 100%;
		padding: var(--space-6) var(--space-4);
		gap: var(--space-4);
	}

	.tlh-header__nav-link {
		font-size: var(--font-size-md);
	}

	.tlh-header__nav-item--highlight {
		margin-left: 0;
		margin-top: var(--space-2);
	}
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.tlh-header__nav {
		transition: none;
	}
	.tlh-header__toggle-icon span {
		transition: none;
	}
}
