/* Header-specific styling for 'NGHIA HUE' XUÂN NGHĨA HỒ */

.shell-header {
	position: sticky;
	top: 0;
	z-index: 40;
}

.shell-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

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

.shell-header__logo-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--color-text);
}

.shell-header__logo-mark {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background:
		radial-gradient(
			circle at 20% 20%,
			rgba(212, 177, 90, 0.75),
			transparent 55%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(42, 179, 167, 0.7),
			transparent 55%
		),
		linear-gradient(135deg, rgba(154, 46, 63, 0.9), rgba(106, 25, 38, 0.9));
	box-shadow: var(--shadow-soft);
	position: relative;
}

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

.shell-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.shell-header__logo-title {
	font-family: var(--font-serif);
	font-size: 1rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-heading);
}

.shell-header__logo-subtitle {
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

/* Navigation */

.shell-header__nav {
	transition:
		transform var(--transition-base),
		opacity var(--transition-base),
		visibility var(--transition-base);
}

.shell-header__nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-6);
}

.shell-header__nav-link {
	position: relative;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding-bottom: 0.35rem;
}

.shell-header__nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		var(--color-highlight),
		var(--color-accent)
	);
	transform: translateX(-50%);
	transition: width var(--transition-base);
}

.shell-header__nav-link:hover,
.shell-header__nav-link:focus-visible,
.shell-header__nav-link[aria-current="page"] {
	color: var(--color-text);
}

.shell-header__nav-link:hover::after,
.shell-header__nav-link[aria-current="page"]::after {
	width: 60%;
}

.shell-header__nav-item--cta .shell-header__nav-link--cta {
	padding: 0.5rem 1.2rem;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(212, 177, 90, 0.5);
	background:
		radial-gradient(circle at 0 0, rgba(208, 180, 90, 0.25), transparent 55%),
		linear-gradient(135deg, rgba(15, 19, 26, 0.95), rgba(25, 33, 46, 0.95));
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.shell-header__nav-item--cta .shell-header__nav-link--cta:hover,
.shell-header__nav-item--cta .shell-header__nav-link--cta:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-text);
	box-shadow: var(--shadow-medium);
}

/* Mobile toggle */

.shell-header__toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 32px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(245, 241, 231, 0.12);
	background-color: rgba(15, 19, 26, 0.9);
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.shell-header__toggle-bar {
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		var(--color-highlight),
		var(--color-accent)
	);
	transition:
		transform var(--transition-base),
		opacity var(--transition-base);
}

.shell-header__toggle:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* Toggle animation */

.shell-header--menu-open .shell-header__toggle-bar:first-child {
	transform: translateY(3.5px) rotate(42deg);
}

.shell-header--menu-open .shell-header__toggle-bar:last-child {
	transform: translateY(-3.5px) rotate(-42deg);
}

/* Responsive layout */

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

	.shell-header__nav {
		position: fixed;
		inset: var(--header-height) 0 auto 0;
		background: radial-gradient(
			circle at top,
			rgba(26, 32, 44, 0.96),
			rgba(11, 15, 20, 0.98)
		);
		border-bottom: 1px solid rgba(245, 241, 231, 0.09);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.shell-header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--space-5) var(--space-4) var(--space-6);
		gap: var(--space-4);
	}

	.shell-header--menu-open .shell-header__nav {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

@media (max-width: 600px) {
	.shell-header__logo-subtitle {
		display: none;
	}
}
