/*** Header */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 2px solid rgba(255,255,255,0.2);
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* WP admin bar is also fixed at top:0 (32px, or 46px below its own 782px
   breakpoint) — without this offset our fixed header sits underneath it
   for logged-in users. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

/* Pushes page content down by the fixed header's own height, on every page
   except the homepage (whose hero is meant to sit directly under the
   transparent header with no gap — see header.php). 24px + 24px padding +
   66px logo = 114px at this (desktop) tier; responsive.css adjusts this to
   match the header's height at each breakpoint where it shrinks. */
.has-fixed-header { padding-top: 114px; }

/* Scrolled state (assets/js/main.js toggles this past a scroll threshold) —
   only meaningful on the default (homepage) variant, which starts as a
   transparent glass overlay on the hero and needs to become legible once
   that hero has scrolled out from underneath it. .site-header--static is
   already solid/dark from the start (see below), so this has no additional
   effect there. */
.site-header.is-scrolled {
	background: var(--skin-white);
	border-bottom-color: var(--skin-grey-20);
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* Compound class selectors (not single-class) so these beat
   .site-header__logo img's own display:block below regardless of source
   order — that rule is 1 class + 1 element (more specific than a single
   class alone), so a plain .site-header__logo-img--dark{display:none} was
   silently losing to it and both logos rendered stacked at once. */
.site-header__logo-img.site-header__logo-img--dark { display: none; }
.site-header.is-scrolled .site-header__logo-img.site-header__logo-img--light { display: none; }
.site-header.is-scrolled .site-header__logo-img.site-header__logo-img--dark { display: block; }
.site-header.is-scrolled .skin-btn-glass {
	background: var(--skin-gradient);
	border-color: rgba(1,169,157,0.05);
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.2), inset 0 2px 15px rgba(1,169,157,0.4);
}
.site-header.is-scrolled .skin-btn-glass:hover { filter: brightness(1.08); background: var(--skin-gradient); }
.site-header .skin-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	padding-bottom: 24px;
	gap: 24px;
}
.site-header__logo img { width: 207.29px; height: auto; display: block; }

.site-header__nav {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-header__nav .menu-item > a {
	font-family: var(--font-heading);
	font-size: var(--font-size);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--skin-white);
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.9;
	transition: opacity 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.site-header__nav .menu-item > a:hover,
.site-header__nav .menu-item.current-menu-item > a { opacity: 1; }
.site-header__nav .menu-caret { font-size: .65em; }

/* Dropdown support — not used by the current 5-item nav, but the shared nav
   walker always emits nested <ul class="sub-menu"> for menu items with
   children, so this needs a real (if understated) style. */
.site-header__nav .menu-item-has-children { position: relative; }
.site-header__nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	background: var(--skin-white);
	border-radius: 18px;
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.05), 0 12px 32px rgba(0,0,0,0.16);
	padding: 0;
	list-style: none;
	margin: 12px 0 0;
	z-index: 10;
}
.site-header__nav .menu-item-has-children:hover > .sub-menu,
.site-header__nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-header__nav .sub-menu .menu-item > a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--skin-dark); opacity: 1; font-size: 15px; letter-spacing: 1px; }
.site-header__nav .sub-menu .menu-item > a:hover { background: var(--skin-teal-10); color: var(--skin-teal); }

/* Tier-3 (a sub-menu nested inside another sub-menu, e.g. Solutions > Materials
   > Felt) flies out to the right of its parent row instead of stacking below
   it — the tier-2 panel already opens downward from the nav bar, so a tier-3
   panel using the same top:100%/left:0 rule lands under its parent row inside
   that panel rather than beside it. */
.site-header__nav .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin: 0;
}
.site-header__nav .sub-menu .menu-item-has-children > a .menu-caret { transform: rotate(-90deg); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }

.lang-pill {
	display: flex;
	align-items: center;
	padding: 8px;
	border: 1px solid rgba(255,255,255,1);
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 1000px;
	gap: 0;
}
.lang-pill button {
	border: none;
	background: transparent;
	color: var(--skin-white);
	font-family: var(--font-heading);
	font-size: 17px;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	padding: 12px 22px;
	border-radius: 1000px;
	cursor: pointer;
}
.lang-pill button.is-active {
	background: var(--skin-gradient);
	border: 1px solid rgba(1,169,157,0.05);
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.2), inset 0 2px 15px rgba(1,169,157,0.4);
}

/* Mobile hamburger */
.mobile-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.mobile-nav-toggle-line {
	display: block;
	width: 26px; height: 2px;
	background: var(--skin-white);
	border-radius: 2px;
	transition: background 0.2s, transform 0.25s, opacity 0.2s;
}
body.mobile-nav-open .mobile-nav-toggle .mobile-nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-nav-open .mobile-nav-toggle .mobile-nav-toggle-line:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-nav-toggle .mobile-nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───── Light/static variant — pages with no hero underneath (e.g. product details) ─────
   The default .site-header is a glass overlay with white text, built to sit on top of the
   homepage's dark hero video/photo until it scrolls out from underneath (.is-scrolled above).
   Pages without a hero have nothing to overlay, so this variant is solid/dark from the very
   start instead of transitioning into it — same fixed position as the default variant (see
   base .site-header rule), just always in its "scrolled" look. */
.site-header--static {
	background: var(--skin-white);
	border-bottom: 1px solid var(--skin-grey-20);
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
/* Shared "dark mode" treatment — the static variant's permanent look, and
   what the default variant transitions into once .is-scrolled is toggled. */
.site-header--static .site-header__nav .menu-item > a,
.site-header.is-scrolled .site-header__nav .menu-item > a { color: var(--skin-dark); opacity: 1; }
.site-header--static .site-header__nav .menu-item > a:hover,
.site-header.is-scrolled .site-header__nav .menu-item > a:hover { color: var(--skin-teal); }
.site-header--static .lang-pill,
.site-header.is-scrolled .lang-pill { border-color: var(--skin-teal); }
.site-header--static .lang-pill button:not(.is-active),
.site-header.is-scrolled .lang-pill button:not(.is-active) { color: var(--skin-teal); }
.site-header--static .mobile-nav-toggle-line,
.site-header.is-scrolled .mobile-nav-toggle-line { background: var(--skin-dark-60); }

/* ───── Off-canvas mobile nav ───── */
.mobile-nav-overlay {
	position: fixed; inset: 0;
	background: rgba(21,19,18,.5);
	opacity: 0; visibility: hidden;
	transition: opacity .25s ease;
	z-index: 200;
}
.mobile-nav {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(360px, 85vw);
	background: var(--skin-white);
	transform: translateX(100%);
	transition: transform .3s ease;
	z-index: 201;
	padding: 100px 32px 32px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.mobile-nav .nav-inner { list-style: none; margin: 0; padding: 0; }
.mobile-nav .menu-item > a {
	display: block;
	padding: 16px 0;
	text-decoration: none;
	color: var(--skin-dark-60);
	font-family: var(--font-heading);
	font-size: 20px;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 1px solid var(--skin-grey-20);
}
.mobile-nav .menu-item > a:hover { color: var(--skin-teal); }
.mobile-nav .sub-menu { list-style: none; margin: 0; padding-left: 16px; }
.mobile-nav__cta .skin-btn { width: 100%; justify-content: center; }
.mobile-nav__social { display: flex; align-items: center; gap: 16px; }
.mobile-nav__social a {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 1000px;
	background: var(--skin-teal-10);
	color: var(--skin-teal);
	font-size: 18px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.mobile-nav__social a:hover { background: var(--skin-teal); color: var(--skin-white); }

body.mobile-nav-open .mobile-nav-overlay { opacity: 1; visibility: visible; }
body.mobile-nav-open .mobile-nav { transform: translateX(0); }
