/* TRU Premium Mega Menu and mobile drawer. */
.tru-nav {
	--tru-nav-h: var(--tru-header-h);
	--tru-nav-bg: rgb(245 244 240 / 0.97);
	--tru-panel-bg: var(--tru-white);
	--tru-nav-indicator: var(--tru-bronze);
	position: relative;
	background: var(--tru-nav-bg);
	border-bottom: 1px solid rgb(215 210 202 / 0.7);
	color: var(--tru-ink);
	transition: box-shadow var(--tru-dur) var(--tru-ease);
}

.tru-site-header.is-scrolled .tru-nav {
	box-shadow: 0 14px 34px -26px rgb(41 40 39 / 0.55);
}

.tru-nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tru-s5);
	height: var(--tru-nav-h);
	max-width: calc(var(--tru-maxw) + 2 * var(--tru-gutter));
	margin-inline: auto;
	padding-inline: var(--tru-gutter);
}

/* Logo */
.tru-site a.tru-nav__logo {
	--tru-logo-w: 66px;
	display: inline-flex;
	align-items: center;
	flex: none;
	min-height: 44px;
	color: var(--tru-ink);
	text-decoration: none;
}

.tru-nav__logo--lockup {
	--tru-logo-w: 132px;
}

.tru-nav__logo svg,
.tru-nav__logo img {
	display: block;
	width: var(--tru-logo-w);
	height: auto;
	max-height: calc(var(--tru-nav-h) - 24px);
}

.tru-logo-intro .tru-nav__logo[data-tru-logo-intro]:not(.tru-brand) svg {
	animation: tru-logo-wipe 1100ms var(--tru-ease) both;
}

/* Brand lockup: TRU mark + hairline + two-line description, both inline SVG with fixed proportions (no shift). */
.tru-site a.tru-brand {
	gap: clamp(10px, 0.9vw, 14px);
}

.tru-brand .tru-brand__mark {
	overflow: visible;
}

.tru-brand .tru-brand__mark path {
	stroke: currentColor;
	stroke-width: 0;
	stroke-linejoin: round;
}

/* The description is a little taller than the mark so its small print stays legible (≥ 9 px on phones). */
.tru-site .tru-nav__logo svg.tru-brand__desc {
	width: auto;
	height: calc(var(--tru-logo-w) * 1046 / 2071 * 1.18);
	max-height: none;
	overflow: visible;
}

.tru-brand__rule {
	stroke: var(--tru-taupe);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	transform-box: fill-box;
	transform-origin: center;
	transition: stroke var(--tru-dur) var(--tru-ease);
}

.tru-brand__line {
	font-family: var(--tru-font-text);
	fill: currentColor;
}

/* "SALON" set in the display serif beside the TRU mark; the small line underneath carries the trade. */
.tru-brand__line--1 {
	font-family: var(--tru-font-display);
	font-size: 21px;
	font-weight: 600;
}

.tru-brand__line--2 {
	font-size: 10.5px;
	font-weight: 500;
	fill: var(--tru-accent-text);
}

.tru-site a.tru-brand:is(:hover, :focus-visible) .tru-brand__rule {
	stroke: var(--tru-bronze);
}

/* First visit of the session: letters draw their outline, then fill; the hairline grows; the lines slide in. */
.tru-logo-intro .tru-brand[data-tru-logo-intro] .tru-brand__mark path {
	stroke-width: 26;
	stroke-dasharray: 1;
	animation: tru-brand-draw 1300ms var(--tru-ease-in-out, ease-in-out) both;
}

.tru-logo-intro .tru-brand[data-tru-logo-intro] .tru-brand__mark path + path {
	animation-delay: 140ms;
}

.tru-logo-intro .tru-brand[data-tru-logo-intro] .tru-brand__rule {
	animation: tru-brand-rule 520ms var(--tru-ease) 520ms both;
}

.tru-logo-intro .tru-brand[data-tru-logo-intro] .tru-brand__line {
	animation: tru-brand-line 620ms var(--tru-ease) 780ms both;
}

.tru-logo-intro .tru-brand[data-tru-logo-intro] .tru-brand__line--2 {
	animation-delay: 900ms;
}

@keyframes tru-brand-draw {
	0% {
		stroke-dashoffset: 1;
		fill-opacity: 0;
		stroke-opacity: 1;
	}

	60% {
		stroke-dashoffset: 0;
		fill-opacity: 0;
		stroke-opacity: 1;
	}

	100% {
		stroke-dashoffset: 0;
		fill-opacity: 1;
		stroke-opacity: 0;
	}
}

@keyframes tru-brand-rule {
	from {
		transform: scaleY(0);
	}

	to {
		transform: scaleY(1);
	}
}

@keyframes tru-brand-line {
	from {
		opacity: 0;
		transform: translateX(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tru-logo-wipe {
	from {
		clip-path: inset(0 100% 0 0);
		opacity: 0.2;
		transform: translateY(4px);
	}

	to {
		clip-path: inset(0 0 0 0);
		opacity: 1;
		transform: none;
	}
}

/* Desktop list */
.tru-nav__desktop {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	height: 100%;
}

.tru-nav__list {
	display: flex;
	align-items: stretch;
	gap: clamp(1.1rem, 0.4rem + 1.6vw, 2.6rem);
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tru-nav__item {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.tru-site a.tru-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 100%;
	padding: 0 0.15rem;
	color: var(--tru-ink);
	font: 500 0.8125rem / 1 var(--tru-font-text);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.tru-site a.tru-nav__link::after {
	content: "";
	position: absolute;
	left: 0.15rem;
	right: 0.15rem;
	bottom: calc(50% - 1.05rem);
	height: 1px;
	background: var(--tru-nav-indicator);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--tru-dur) var(--tru-ease);
}

.tru-site a.tru-nav__link:hover::after,
.tru-site a.tru-nav__link:focus-visible::after,
.tru-site a.tru-nav__link[aria-current="page"]::after,
.tru-nav__item.is-open > a.tru-nav__link::after {
	transform: scaleX(1);
}

.tru-site .tru-nav__toggle,
.tru-site .tru-nav__burger,
.tru-site .tru-drawer__close,
.tru-site .tru-drawer__toggle {
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tru-ink);
	cursor: pointer;
	box-shadow: none;
}

.tru-site .tru-nav__toggle {
	width: 32px;
	height: 32px;
}

.tru-site .tru-nav__toggle:hover,
.tru-site .tru-nav__toggle:focus-visible,
.tru-site .tru-nav__burger:hover,
.tru-site .tru-nav__burger:focus-visible,
.tru-site .tru-drawer__close:hover,
.tru-site .tru-drawer__close:focus-visible,
.tru-site .tru-drawer__toggle:hover,
.tru-site .tru-drawer__toggle:focus-visible {
	background: var(--tru-linen);
	color: var(--tru-ink);
}

.tru-nav__toggle svg {
	width: 16px;
	height: 16px;
	transition: transform var(--tru-dur) var(--tru-ease);
}

.tru-nav__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Mega panel: anchored to the whole header, so there is no hover gap between link and panel. */
.tru-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 5;
	background: var(--tru-panel-bg);
	border-top: 1px solid var(--tru-sand);
	box-shadow: var(--tru-shadow-panel);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--tru-dur) var(--tru-ease), transform var(--tru-dur) var(--tru-ease), visibility 0s linear var(--tru-dur);
}

.tru-nav__item.is-open > .tru-mega,
html:not(.tru-js) .tru-nav__item--parent:hover > .tru-mega,
html:not(.tru-js) .tru-nav__item--parent:focus-within > .tru-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--tru-dur) var(--tru-ease), transform var(--tru-dur) var(--tru-ease), visibility 0s;
}

.tru-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: var(--tru-s8);
	max-width: calc(var(--tru-maxw) + 2 * var(--tru-gutter));
	margin-inline: auto;
	padding: var(--tru-s7) var(--tru-gutter);
}

.tru-mega__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tru-s2) var(--tru-s6);
	align-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tru-site a.tru-mega__link {
	display: flex;
	align-items: center;
	gap: var(--tru-s4);
	min-height: 64px;
	padding: var(--tru-s3);
	border-radius: var(--tru-radius-2);
	color: var(--tru-ink);
	text-decoration: none;
	transition: background-color var(--tru-dur-fast) var(--tru-ease);
}

.tru-site a.tru-mega__link:hover,
.tru-site a.tru-mega__link:focus-visible,
.tru-site a.tru-mega__link[aria-current="page"] {
	background: var(--tru-ivory);
}

.tru-site a.tru-mega__link[aria-current="page"] .tru-mega__title {
	font-style: italic;
}

.tru-mega__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--tru-sand);
	border-radius: 50%;
	color: var(--tru-bronze);
	transition: border-color var(--tru-dur-fast) var(--tru-ease), background-color var(--tru-dur-fast) var(--tru-ease);
}

.tru-mega__icon svg {
	width: 26px;
	height: 26px;
}

.tru-mega__link:hover .tru-mega__icon,
.tru-mega__link:focus-visible .tru-mega__icon {
	border-color: var(--tru-champagne);
	background: var(--tru-white);
}

.tru-mega__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tru-mega__title {
	font-family: var(--tru-font-display);
	font-size: 1.3125rem;
	font-weight: 500;
	line-height: 1.15;
}

.tru-mega__desc {
	font-size: 0.875rem;
	color: var(--tru-muted);
}

.tru-site a.tru-mega__feature {
	display: grid;
	grid-template-rows: auto 1fr;
	background: var(--tru-linen);
	color: var(--tru-ink);
	text-decoration: none;
	overflow: hidden;
}

.tru-mega__feature-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: center 35%;
	transition: transform 900ms var(--tru-ease);
}

.tru-mega__feature:hover img,
.tru-mega__feature:focus-visible img {
	transform: scale(1.04);
}

.tru-mega__feature-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--tru-s5);
}

.tru-mega__feature-eyebrow {
	font: 500 0.6875rem / 1.4 var(--tru-font-text);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tru-bronze);
}

.tru-mega__feature-title {
	font-family: var(--tru-font-display);
	font-size: 1.6rem;
	line-height: 1.1;
}

.tru-mega__feature-text {
	font-size: 0.875rem;
	color: var(--tru-muted);
}

.tru-mega__feature-cue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: var(--tru-s2);
	font: 500 0.75rem / 1 var(--tru-font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tru-mega__feature-cue svg {
	width: 1.05rem;
	height: 1.05rem;
	transition: transform var(--tru-dur) var(--tru-ease);
}

.tru-mega__feature:hover .tru-mega__feature-cue svg {
	transform: translateX(4px);
}

/* Actions */
.tru-nav__actions {
	display: flex;
	align-items: center;
	gap: var(--tru-s3);
	flex: none;
}

.tru-site .tru-nav__burger {
	display: none;
	width: 48px;
	height: 48px;
}

.tru-burger {
	width: 28px;
	height: 28px;
	overflow: visible;
}

.tru-burger path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	transition: transform var(--tru-dur) var(--tru-ease), opacity var(--tru-dur-fast) var(--tru-ease);
}

.tru-burger__top {
	transform-origin: 16px 10px;
}

.tru-burger__mid {
	transform-origin: 16px 16px;
}

.tru-burger__bot {
	transform-origin: 16px 22px;
}

.tru-nav__burger[aria-expanded="true"] .tru-burger__top {
	transform: translateY(6px) rotate(45deg);
}

.tru-nav__burger[aria-expanded="true"] .tru-burger__mid {
	opacity: 0;
	transform: scaleX(0.2);
}

.tru-nav__burger[aria-expanded="true"] .tru-burger__bot {
	transform: translateY(-6px) rotate(-45deg);
}

/* Drawer */
.tru-drawer[hidden] {
	display: none;
}

.tru-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--tru-z-drawer);
}

.tru-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgb(41 40 39 / 0.5);
	opacity: 0;
	transition: opacity var(--tru-dur) var(--tru-ease);
}

.tru-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(92vw, 440px);
	background: var(--tru-ivory);
	color: var(--tru-ink);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform var(--tru-dur-slow) var(--tru-ease);
}

.tru-drawer.is-open .tru-drawer__scrim {
	opacity: 1;
}

.tru-drawer.is-open .tru-drawer__panel {
	transform: none;
}

.tru-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--tru-nav-h);
	padding-inline: var(--tru-s5);
	border-bottom: 1px solid var(--tru-sand);
}

.tru-site .tru-drawer__close {
	width: 48px;
	height: 48px;
}

.tru-drawer__close svg {
	width: 22px;
	height: 22px;
}

.tru-drawer__nav {
	padding: var(--tru-s4) var(--tru-s5);
}

.tru-drawer__list,
.tru-drawer__sub,
.tru-drawer__contacts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tru-drawer__list > li {
	border-bottom: 1px solid var(--tru-sand);
}

.tru-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tru-site a.tru-drawer__link {
	display: flex;
	align-items: center;
	min-height: 60px;
	flex: 1;
	color: var(--tru-ink);
	font-family: var(--tru-font-display);
	font-size: 1.75rem;
	line-height: 1.1;
	text-decoration: none;
}

.tru-site a.tru-drawer__link[aria-current="page"] {
	color: var(--tru-bronze);
	font-style: italic;
}

.tru-site .tru-drawer__toggle {
	width: 48px;
	height: 48px;
}

.tru-drawer__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform var(--tru-dur) var(--tru-ease);
}

.tru-drawer__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.tru-drawer__sub {
	padding: 0 0 var(--tru-s4);
}

.tru-site a.tru-drawer__sublink {
	display: flex;
	align-items: center;
	gap: var(--tru-s3);
	min-height: 48px;
	color: var(--tru-ink);
	font-size: 1rem;
	text-decoration: none;
}

.tru-drawer__sublink svg {
	width: 22px;
	height: 22px;
	color: var(--tru-bronze);
}

.tru-site a.tru-drawer__sublink[aria-current="page"] {
	color: var(--tru-accent-text);
	font-style: italic;
}

.tru-drawer__foot {
	display: flex;
	flex-direction: column;
	gap: var(--tru-s4);
	margin-top: auto;
	padding: var(--tru-s5);
	background: var(--tru-linen);
}

.tru-drawer__foot .tru-btn-wrap,
.tru-drawer__foot .tru-btn {
	width: 100%;
}

.tru-drawer__contacts {
	display: grid;
	gap: 0.25rem;
}

.tru-site .tru-drawer__contacts a {
	display: inline-flex;
	align-items: center;
	gap: var(--tru-s3);
	min-height: 44px;
	color: var(--tru-ink);
	text-decoration: none;
}

.tru-drawer__contacts svg {
	width: 20px;
	height: 20px;
	color: var(--tru-bronze);
}

html.tru-scroll-lock {
	overflow: hidden;
}

/* Breakpoints: the mobile menu replaces the desktop list below the chosen width. */
@media (max-width: 1199px) {
	.tru-nav--bp-1199 .tru-nav__desktop {
		display: none;
	}

	.tru-site .tru-nav--bp-1199 .tru-nav__burger {
		display: inline-grid;
	}
}

@media (max-width: 1024px) {
	.tru-nav--bp-1024 .tru-nav__desktop {
		display: none;
	}

	.tru-site .tru-nav--bp-1024 .tru-nav__burger {
		display: inline-grid;
	}
}

@media (max-width: 767px) {
	.tru-nav--bp-767 .tru-nav__desktop {
		display: none;
	}

	.tru-site .tru-nav--bp-767 .tru-nav__burger {
		display: inline-grid;
	}

	.tru-nav__actions .tru-btn-wrap {
		display: none;
	}

	.tru-site a.tru-nav__logo {
		--tru-logo-w: 56px;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.tru-site .tru-nav--bp-1024 a.tru-nav__link {
		letter-spacing: 0.1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tru-nav__logo svg,
	.tru-nav__logo svg * {
		animation: none !important;
	}

	.tru-drawer__panel,
	.tru-mega {
		transition: none;
	}
}

/* Mobile drawer motion: when the drawer opens its items ease in one after another; a sub-menu expands smoothly
   (height in mega-menu.js) while its items slide in with a short stagger. Reduced motion: instant. */
@keyframes tru-drawer-item-in {
	from { opacity: 0; transform: translate3d(14px, 0, 0); }
	to { opacity: 1; transform: none; }
}
@keyframes tru-drawer-sub-in {
	from { opacity: 0; transform: translate3d(0, -6px, 0); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.tru-drawer.is-open .tru-drawer__list > li {
		animation: tru-drawer-item-in 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
		animation-delay: 140ms;
	}
	.tru-drawer.is-open .tru-drawer__list > li:nth-child(2) { animation-delay: 190ms; }
	.tru-drawer.is-open .tru-drawer__list > li:nth-child(3) { animation-delay: 240ms; }
	.tru-drawer.is-open .tru-drawer__list > li:nth-child(4) { animation-delay: 290ms; }
	.tru-drawer.is-open .tru-drawer__list > li:nth-child(5) { animation-delay: 340ms; }
	.tru-drawer.is-open .tru-drawer__list > li:nth-child(n+6) { animation-delay: 390ms; }

	.tru-drawer__sub:not([hidden]) > li {
		animation: tru-drawer-sub-in 420ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
		animation-delay: 60ms;
	}
	.tru-drawer__sub:not([hidden]) > li:nth-child(2) { animation-delay: 110ms; }
	.tru-drawer__sub:not([hidden]) > li:nth-child(3) { animation-delay: 160ms; }
	.tru-drawer__sub:not([hidden]) > li:nth-child(4) { animation-delay: 210ms; }
	.tru-drawer__sub:not([hidden]) > li:nth-child(5) { animation-delay: 260ms; }
	.tru-drawer__sub:not([hidden]) > li:nth-child(n+6) { animation-delay: 310ms; }

	.tru-drawer__sublink svg {
		transition: transform var(--tru-dur) var(--tru-ease);
	}
	.tru-site a.tru-drawer__sublink:is(:hover, :focus-visible) svg {
		transform: translateX(3px);
	}
}

/* Tru Salon logo (horizontal SVG: TRU | SALON). Width-led so the header height never changes. */
.tru-site a.tru-nav__logo.tru-nav__logo--horizontal {
	--tru-logo-w: 170px;
}

@media (max-width: 767px) {
	.tru-site a.tru-nav__logo.tru-nav__logo--horizontal {
		--tru-logo-w: 138px;
	}
}
