/**
 * Shigatse Travels — full-width luxury header
 */

.st-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	pointer-events: none;
}

.st-header__bar {
	pointer-events: auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	width: 100%;
	padding: 0.9rem clamp(1rem, 3vw, 2rem);
	background: rgb(255 255 255 / 0.97);
	border-bottom: 1px solid var(--st-line);
	box-shadow: var(--st-shadow-sm);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transition:
		background var(--st-duration) var(--st-ease),
		border-color var(--st-duration),
		box-shadow var(--st-duration),
		padding var(--st-duration);
}

/* Transparent over dark hero */
.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__bar {
	background: linear-gradient(to bottom, rgb(26 24 20 / 0.72) 0%, rgb(26 24 20 / 0.15) 85%, transparent 100%);
	border-bottom-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.st-header--overlay.st-header--scrolled .st-header__bar,
.st-header--overlay.st-header--menu-open .st-header__bar {
	background: rgb(255 255 255 / 0.97);
	border-bottom-color: var(--st-line);
	box-shadow: var(--st-shadow-sm);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.st-header--menu-open .st-header__logo-name {
	color: var(--st-ink);
}

.st-header--menu-open .st-header__logo-tag {
	color: var(--st-muted);
}

/* ── Logo: emblem + wordmark (real Shigatse brand from old site) ── */
.st-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
	text-decoration: none;
	min-width: 0;
}

.st-header__logo-emblem {
	flex-shrink: 0;
	width: 2.65rem;
	height: 2.65rem;
	object-fit: cover;
	object-position: center 12%;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15);
}

.st-header--overlay.st-header--scrolled .st-header__logo-emblem,
.st-header:not(.st-header--overlay) .st-header__logo-emblem {
	box-shadow: 0 0 0 1px rgb(26 24 20 / 0.06);
}

.st-header__logo-wordmark {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.st-header__logo-name {
	font-family: var(--st-font);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--st-ink);
	white-space: nowrap;
}

.st-header__logo-tag {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-muted);
	white-space: nowrap;
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__logo-name {
	color: #fff;
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__logo-tag {
	color: rgb(255 255 255 / 0.62);
}

@media (max-width: 480px) {
	.st-header__logo-tag {
		display: none;
	}

	.st-header__logo-name {
		font-size: 0.9375rem;
	}
}

/* ── Navigation ── */
.st-header__nav {
	display: none;
	justify-content: center;
	min-width: 0;
}

@media (min-width: 1024px) {
	.st-header__nav {
		display: flex;
	}
}

.st-header__nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-header__nav li {
	position: relative;
}

.st-header__nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 50%;
	transform: translateX(-50%);
	min-width: 12rem;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--st-surface);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow);
	z-index: 20;
}

.st-header__nav .menu-item-has-children:hover > .sub-menu,
.st-header__nav .menu-item-has-children:focus-within > .sub-menu {
	display: grid;
	gap: 0.1rem;
}

.st-header__nav .sub-menu a {
	padding: 0.55rem 0.75rem;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav .sub-menu {
	background: rgb(26 24 20 / 0.94);
	border-color: rgb(255 255 255 / 0.1);
	box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav .sub-menu a {
	color: rgb(255 255 255 / 0.88);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav .sub-menu a:hover {
	color: #fff;
	background: rgb(255 255 255 / 0.1);
}

.st-header__nav a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: var(--st-radius-pill);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--st-muted);
	text-decoration: none;
	transition: color var(--st-duration), background var(--st-duration);
}

.st-header__nav a:hover,
.st-header__nav .current-menu-item > a,
.st-header__nav .current_page_item > a {
	color: var(--st-ink);
	background: rgb(26 24 20 / 0.05);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav a {
	color: rgb(255 255 255 / 0.88);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav a:hover,
.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__nav .current-menu-item > a {
	color: #fff;
	background: rgb(255 255 255 / 0.12);
}

/* Sub-menu indicator */
.st-header__nav .menu-item-has-children > a {
	padding-inline-end: 1.35rem;
}

/* ── Actions ── */
.st-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
}

.st-header__phone {
	display: none;
	padding: 0.45rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--st-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--st-duration);
}

@media (min-width: 1024px) {
	.st-header__phone {
		display: inline-flex;
	}
}

.st-header__phone:hover {
	color: var(--st-accent);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__phone {
	color: rgb(255 255 255 / 0.92);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__phone:hover {
	color: #fff;
}

.st-header__search-wrap {
	position: relative;
	display: none;
	align-items: center;
}

@media (min-width: 1024px) {
	.st-header__search-wrap {
		display: flex;
	}
}

.st-header__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--st-muted);
	cursor: pointer;
	transition: color var(--st-duration), background var(--st-duration);
}

.st-header__search svg {
	width: 1.05rem;
	height: 1.05rem;
}

.st-header__search:hover {
	color: var(--st-ink);
	background: rgb(26 24 20 / 0.05);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__search {
	color: rgb(255 255 255 / 0.88);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__search:hover {
	color: #fff;
	background: rgb(255 255 255 / 0.12);
}

.st-header__search-wrap.is-open .st-header__search {
	color: var(--st-ink);
	background: rgb(26 24 20 / 0.06);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__search-wrap.is-open .st-header__search {
	color: #fff;
	background: rgb(255 255 255 / 0.16);
}

.st-header__search-panel {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	width: min(20rem, calc(100vw - 2rem));
	padding: 0.35rem 0.4rem 0.35rem 0.85rem;
	border: 1px solid var(--st-line-strong);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 40px rgb(26 24 20 / 0.12);
	transform: translateY(-50%) scale(0.96);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.st-header__search-wrap.is-open .st-header__search-panel {
	opacity: 1;
	transform: translateY(-50%) scale(1);
	pointer-events: auto;
}

.st-header__search-panel[hidden] {
	display: none !important;
}

.st-header__search-wrap.is-open .st-header__search-panel[hidden] {
	display: flex !important;
}

.st-header__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
	color: var(--st-ink);
	outline: none;
}

.st-header__search-input::placeholder {
	color: var(--st-muted);
}

.st-header__search-submit {
	flex-shrink: 0;
	min-height: 2rem;
	padding: 0.35rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: var(--st-accent);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s;
}

.st-header__search-submit:hover {
	filter: brightness(1.06);
}

.st-header__actions .st-btn--desktop {
	display: none;
}

@media (min-width: 1024px) {
	.st-header__actions .st-btn--desktop {
		display: inline-flex;
		margin-inline-start: 0.25rem;
	}
}

/* Compact Plan My Trip CTA — phone header bar only */
.st-header__plan {
	display: none;
}

@media (max-width: 1023px) {
	.st-header__plan {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 2.15rem;
		padding: 0.4rem 0.85rem;
		border-radius: var(--st-radius-pill);
		background: var(--st-accent);
		color: #fff;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-decoration: none;
		white-space: nowrap;
	}

	.st-header__plan:hover {
		background: var(--st-accent-2, #5c1822);
		color: #fff;
	}

	.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__plan {
		background: #fff;
		color: var(--st-ink);
	}
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-btn--desktop {
	background: var(--st-accent);
	color: #fff;
	border: 1px solid rgb(255 255 255 / 0.2);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-btn--desktop:hover {
	background: var(--st-accent-2);
	border-color: transparent;
}

.st-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--st-ink);
	cursor: pointer;
	transition: color var(--st-duration), background var(--st-duration);
}

.st-header__toggle:hover {
	background: rgb(20 18 16 / 0.06);
}

.st-header__toggle-box {
	position: relative;
	display: block;
	width: 1.15rem;
	height: 0.75rem;
}

.st-header__toggle-line {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 1.5px;
	border-radius: 999px;
	background: currentColor;
	transition:
		transform 0.28s var(--st-ease),
		opacity 0.2s ease,
		top 0.28s var(--st-ease),
		width 0.28s var(--st-ease);
}

.st-header__toggle-line:nth-child(1) {
	top: 0;
}

.st-header__toggle-line:nth-child(2) {
	top: 50%;
	width: 70%;
	transform: translateY(-50%);
}

.st-header__toggle-line:nth-child(3) {
	top: auto;
	bottom: 0;
	width: 85%;
}

.st-header__toggle.is-open .st-header__toggle-line:nth-child(1) {
	top: 50%;
	width: 100%;
	transform: translateY(-50%) rotate(45deg);
}

.st-header__toggle.is-open .st-header__toggle-line:nth-child(2) {
	opacity: 0;
	width: 100%;
	transform: translateY(-50%) scaleX(0.2);
}

.st-header__toggle.is-open .st-header__toggle-line:nth-child(3) {
	top: 50%;
	bottom: auto;
	width: 100%;
	transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 1024px) {
	.st-header__toggle {
		display: none;
	}
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__toggle {
	color: #fff;
	background: transparent;
}

.st-header--overlay:not(.st-header--scrolled):not(.st-header--menu-open) .st-header__toggle:hover {
	background: rgb(255 255 255 / 0.12);
}

.st-header__toggle.is-open {
	color: var(--st-accent);
	background: rgb(139 36 50 / 0.08);
}

/* ── Mobile menu ── */
.st-header__mobile {
	pointer-events: none;
	visibility: hidden;
	position: fixed;
	inset: var(--st-header-height) 0 0;
	z-index: 101;
	opacity: 0;
	transform: translateY(-0.5rem);
	transition:
		opacity 0.28s var(--st-ease),
		transform 0.32s var(--st-ease),
		visibility 0.28s;
}

.st-header__mobile.is-open {
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
	transform: none;
}

.st-header__mobile-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: calc(100dvh - var(--st-header-height));
	background:
		linear-gradient(180deg, #fff 0%, #f7f2ea 100%);
	border-top: 1px solid rgb(20 18 16 / 0.08);
	box-shadow: 0 24px 48px rgb(20 18 16 / 0.12);
}

.st-header__mobile-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 1.35rem 1.25rem 1.5rem;
}

.st-header__mobile-kicker {
	margin: 0 0 1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-header__mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.st-header__mobile-list > li {
	border-bottom: 1px solid rgb(20 18 16 / 0.08);
}

.st-header__mobile-list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 0.15rem;
	font-family: var(--st-font-display);
	font-size: clamp(1.35rem, 5vw, 1.65rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: var(--st-ink);
	text-decoration: none;
}

.st-header__mobile-list > li > a:hover,
.st-header__mobile-list > .current-menu-item > a,
.st-header__mobile-list > .current_page_item > a {
	color: var(--st-accent);
}

.st-header__mobile-list > .menu-item-has-children > a::after {
	content: "";
	flex-shrink: 0;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.2rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s var(--st-ease);
	opacity: 0.55;
}

.st-header__mobile-list > .menu-item-has-children:not(.is-collapsed) > a::after {
	transform: rotate(225deg);
	opacity: 0.85;
}

.st-header__mobile .sub-menu {
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0 0 0.15rem 0.15rem;
	display: grid;
	gap: 0.15rem;
	overflow: hidden;
	max-height: 24rem;
	opacity: 1;
	transition:
		max-height 0.32s var(--st-ease),
		opacity 0.22s ease,
		margin 0.22s ease;
}

.st-header__mobile-list > .menu-item-has-children.is-collapsed > .sub-menu {
	max-height: 0;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.st-header__mobile .sub-menu a {
	display: block;
	padding: 0.55rem 0.15rem;
	font-family: var(--st-font);
	font-size: 0.9375rem;
	font-weight: 500;
	color: rgb(20 18 16 / 0.72);
	text-decoration: none;
}

.st-header__mobile .sub-menu a:hover,
.st-header__mobile .sub-menu .current-menu-item > a {
	color: var(--st-accent);
}

.st-header__mobile-cta {
	flex: 0 0 auto;
	display: grid;
	gap: 0.75rem;
	padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid rgb(20 18 16 / 0.1);
	box-shadow: 0 -10px 28px rgb(20 18 16 / 0.04);
}

.st-header__mobile-phone {
	display: grid;
	gap: 0.15rem;
	text-decoration: none;
	text-align: left;
}

.st-header__mobile-phone-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-muted);
}

.st-header__mobile-phone-value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--st-ink);
}

.st-header__mobile-enquire {
	width: 100%;
	justify-content: center;
}

html.st-menu-open {
	overflow: hidden;
}

@media (min-width: 1024px) {
	.st-header__mobile {
		display: none !important;
	}
}

/* Offset main content for fixed header */
body:not(.st-home-layout) .site-main > *:first-child:not(.st-page-hero):not(.st-tour-hero):not(.st-tour-hero-wrap):not(.st-ih):not(.st-about-hero):not(.st-blog-hero):not(.st-faqs-hero):not(.st-contact-hero):not(.st-article-hero):not(.st-exp-hero) {
	padding-top: calc(var(--st-header-height) + 1rem);
}

body.st-home-layout .st-home {
	padding-top: 0;
}
