/* Juhaus multi-level navigation. Load after style.css and motion.css. */
.header-inner { gap: clamp(20px, 2vw, 32px); }
.site-nav { gap: clamp(16px, 1.35vw, 24px); font-size: 13px; letter-spacing: .005em; flex-shrink: 0; }
.site-nav > a { white-space: nowrap; }
.site-nav .nav-cta { gap: 15px; margin-left: 8px; }
.products-nav-wrap { display: flex; align-items: center; gap: 4px; }
.products-nav-link { padding: 7px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.products-nav-link:hover, .products-nav-link[aria-current="page"] { border-color: currentColor; }
.products-menu-toggle { display: none; align-items: center; justify-content: center; width: 26px; height: 32px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.navigation-ready > .products-menu-toggle { display: inline-flex; }
.products-menu-toggle > span { display: inline-block; font-size: 15px; line-height: 1; transition: transform .2s ease; }
.products-menu-toggle[aria-expanded="true"] > span { transform: rotate(180deg); }
.products-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100svh - 124px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 45px;
  padding: 36px var(--gutter, 48px) 43px;
  border-top: 1px solid var(--line, #c8cdcf);
  border-bottom: 1px solid var(--line, #c8cdcf);
  background: #fff;
  color: var(--ink, #202427);
  box-shadow: 0 18px 26px #0000000c;
  text-align: left;
  letter-spacing: 0;
}
.products-mega-menu[hidden] { display: none !important; }
.nav-category { min-width: 0; }
.nav-category > a { display: block; padding: 0 0 11px; margin-bottom: 10px; border-bottom: 1px solid var(--line, #c8cdcf); font-size: 14px; line-height: 1.5; font-weight: 400; }
.nav-category > a:hover { color: #575d61; }
.nav-category ul { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.nav-category li { margin: 0; }
.nav-category li a { display: block; padding: 6px 0; color: var(--muted, #575d61); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.nav-category li a:hover, .nav-category li a[aria-current="page"] { color: var(--ink, #202427); text-decoration: underline; text-underline-offset: 4px; }
.is-home.products-menu-open .site-header { background: #fff; color: var(--ink, #202427); border-bottom: 0; box-shadow: inset 0 -1px var(--line, #c8cdcf), 0 8px 24px #00000006; }
.is-home.products-menu-open .brand img { filter: none; }
.is-home.products-menu-open .site-header a:focus-visible,
.is-home.products-menu-open .products-menu-toggle:focus-visible { outline-color: #652c3b; }

/* Readable desktop labels keep their size; narrower screens use disclosure. */
@media (max-width: 1200px) {
  .header-inner, .has-scrolled .header-inner { min-height: 82px; }
  .brand { width: 133px; flex-basis: 133px; }
  .brand img { max-height: 55px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
  .menu-toggle span { height: 1px; width: 23px; background: currentColor; color: var(--ink, #202427); }
  .is-home .menu-toggle span { color: #fff; }
  .is-home.nav-open .site-header { background: #fff; color: var(--ink, #202427); }
  .is-home.nav-open .brand img { filter: none; }
  .is-home.has-scrolled .menu-toggle span,
  .is-home.nav-open .menu-toggle span,
  .is-home.products-menu-open .menu-toggle span { color: var(--ink, #202427); }
  .is-home.nav-open .site-header a:focus-visible,
  .is-home.nav-open .menu-toggle:focus-visible { outline-color: #652c3b; }
  .site-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    max-height: calc(100svh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: var(--ink, #202427);
    padding: 27px var(--gutter, 26px) 38px;
    border-top: 1px solid var(--line, #c8cdcf);
    border-bottom: 1px solid var(--line, #c8cdcf);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 16px;
    letter-spacing: -.01em;
  }
  .site-nav.is-open { display: flex; }
  .has-scrolled .site-nav { top: 82px; max-height: calc(100svh - 82px); }
  .site-nav > a { padding: 12px 0; border-bottom: 0; }
  .site-nav > a[aria-current="page"] { color: inherit; text-decoration: underline; text-underline-offset: 7px; }
  .site-nav .nav-cta { padding: 16px 0 8px; margin: 15px 0 0; font-size: 14px; justify-content: space-between; border-top: 1px solid var(--line, #c8cdcf); border-bottom: 0; }
  .products-nav-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 12px; align-items: center; }
  .products-nav-link { padding: 12px 0; border-bottom: 0; }
  .products-nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
  .products-menu-toggle { width: 44px; height: 44px; }
  .products-menu-toggle > span { font-size: 19px; }
  .products-mega-menu {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 26px;
    padding: 16px 0 28px;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
  .nav-category > a { font-size: 14px; padding-bottom: 9px; margin-bottom: 9px; }
  .nav-category li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 13px; line-height: 1.65; }
}
@media (max-width: 540px) {
  .products-mega-menu { gap: 25px 18px; }
  .nav-category > a { line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .products-menu-toggle > span { transition: none; }
}
.site-nav > a[aria-current="location"] { border-color: currentColor; }
