.tn-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0.5rem 0;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
	backdrop-filter: none;
	transition:
		transform 0.3s ease,
		background 0.3s ease,
		box-shadow 0.3s ease,
		backdrop-filter 0.3s ease;
}

.tn-header.is-hidden {
	transform: translateY(-100%);
}

.tn-header__inner {
	width: 80%;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	position: relative;
	align-items: center;
	gap: 1.25rem;
	padding: 0.5rem 1.4rem;
	border-radius: 999px;
	background: transparent;
	border: none;
	box-shadow: none;
	transition:
		padding 0.3s ease,
		background 0.3s ease,
		box-shadow 0.3s ease,
		border-radius 0.3s ease;
}

.tn-header__nav {
	margin-left: 0;
}

.tn-header.is-scrolled {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(30px);
	box-shadow: 0 22px 36px rgba(0, 0, 0, 0.14);
}

.tn-header.is-scrolled .tn-header__inner {
	border-radius: 0;
	padding: 0.6rem 1.6rem;
	background: transparent;
	box-shadow: none;
}

.tn-header__slot {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tn-header__slot--nav {
	justify-content: center;
}

.tn-header__slot--cta {
	justify-content: flex-end;
}

.tn-header__slot--logo {
	width: clamp(280px, 22vw, 420px);
}

.tn-header__logo {
	display: inline-flex;
	align-items: center;
	width: clamp(280px, 22vw, 420px);
}

.tn-header__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
}

.tn-header__logo-text {
	max-height: 84px;
	height: 84px;
	width: auto;
	transition: transform 0.3s ease, max-height 0.3s ease;
}

.tn-header.is-scrolled .tn-header__logo img,
.tn-header.is-scrolled .tn-header__logo-text {
	transform: none;
}

.tn-header__menu {
	display: inline-flex;
	align-items: center;
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	font-weight: 600;
	color: #141414;
}

.tn-header__menu > li > a {
	color: #141414;
	position: relative;
	padding: 0.25rem 0;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.tn-header__menu > li > a:hover,
.tn-header__menu > li > a:focus,
.tn-header__menu > li.current-menu-item > a {
	color: #000;
	border-color: rgba(0, 0, 0, 0.2);
}

.tn-header__menu .tn-menu-book {
	display: none;
}

.tn-header__menu .tn-menu-social__link {
	width: auto;
	height: auto;
	background: transparent;
	padding: 0;
}

.tn-header__menu .tn-menu-social__link img {
	width: 28px;
	height: 28px;
}

.tn-header__menu .tn-menu-book > a {
	background: linear-gradient(135deg, #0d4dd7, #4364f7);
	padding: 0.55rem 1.6rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	border-radius: 999px;
	box-shadow: 0 16px 30px rgba(13, 77, 215, 0.28);
}

.tn-header__menu .tn-menu-book > a:hover {
	background: linear-gradient(135deg, #0b3daf, #3956d5);
}

.tn-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	border-radius: 999px;
	background: linear-gradient(135deg, #0d4dd7, #4364f7);
	color: #fff;
	box-shadow: 0 18px 32px rgba(13, 77, 215, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tn-header__cta:hover,
.tn-header__cta:focus-visible {
	background: linear-gradient(135deg, #0b3daf, #3956d5);
	box-shadow: 0 18px 32px rgba(13, 77, 215, 0.4);
	transform: translateY(-1px);
	color: #fff;
}

.tn-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(255, 255, 255, 0.85);
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tn-header__toggle:hover,
.tn-header__toggle:focus-visible {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.tn-header__toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	background: #161616;
	border-radius: 999px;
}

.tn-header__toggle[aria-expanded='true'] .tn-header__toggle-bar:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

.tn-header__toggle[aria-expanded='true'] .tn-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.tn-header__toggle[aria-expanded='true'] .tn-header__toggle-bar:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

.tn-header__inner::before,
.tn-header__inner::after {
	display: none;
}

@media (max-width: 1024px) {
	.tn-header__inner {
		padding: 0.5rem 1.25rem;
		gap: 1rem;
	}

	.tn-header.is-scrolled .tn-header__inner {
		padding: 0.75rem 1.5rem;
	}

	.tn-header__menu {
		gap: 1.1rem;
		font-size: 0.95rem;
	}

	.tn-header__nav {
		margin-left: 0;
	}

	.tn-header__inner {
		padding-left: 1.75rem;
	}
}

@media (max-width: 768px) {
	.tn-header {
		padding: 0.3rem 0;
	}

	.tn-header__inner,
	.tn-header.is-scrolled .tn-header__inner {
		width: 90%;
		max-width: 90%;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding: 0.4rem 1rem;
	}

	.tn-header__slot {
		width: 100%;
		justify-content: flex-start;
	}

	.tn-header__slot--nav {
		flex-direction: column;
		align-items: flex-start;
	}

	.tn-header__slot--cta {
		align-items: stretch;
	}

.tn-header__slot--logo {
    order: 1;
    width: clamp(200px, 55vw, 300px);
}

	.tn-header__slot--cta {
		order: 2;
	}

	.tn-header__slot--nav {
		order: 3;
		width: 100%;
	}

	.tn-header__logo {
		width: clamp(220px, 48vw, 300px);
	}

	.tn-header__logo img,
	.tn-header__logo-text {
		width: 100%;
		height: auto;
		max-height: none;
	}

	.tn-header__cta {
		width: 100%;
		justify-content: center;
		align-self: flex-start;
	}

	.tn-header__toggle {
		align-self: flex-end;
		margin-left: auto;
	}

	.tn-header__nav {
		margin-left: 0;
		width: 100%;
	}

	.tn-header__menu {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.75rem;
	}
}

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

	.tn-header__nav {
		position: absolute;
		left: 1.5rem;
		right: 1.5rem;
		top: calc(100% + 12px);
		margin-left: 0;
		padding: 1.5rem;
		border-radius: 24px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
		border: 1px solid rgba(0, 0, 0, 0.05);
		opacity: 0;
		transform: translateY(-10px);
		pointer-events: none;
		transition:
			opacity 0.25s ease,
			transform 0.25s ease;
	}

	.tn-header__nav.is-open {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}

	.tn-header__menu {
		flex-direction: column;
		width: 100%;
		gap: 0.75rem;
	}

	.tn-header__menu > li > a {
		width: 100%;
		display: block;
		padding: 0.5rem 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}

	.tn-header__menu > li:last-child > a {
		border-bottom: none;
	}

	.tn-header__menu .tn-menu-book {
		display: none;
	}

	.tn-header__cta {
		margin-left: auto;
	}
}

body.home .tn-header {
	background: transparent;
}

body.home .tn-header__inner {
	width: 100%;
	padding: 0.75rem 2rem;
}

body.home .tn-header.is-scrolled {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(30px);
}

body.tn-nav-open {
	overflow: hidden;
}
