/* Header overrides / extracted header styles */
.content-row-header { position: relative; z-index: 50; }
.burgerBTNRightnav { cursor: pointer; }
/* =========================================================
   FW HEADER (new class system)
   ========================================================= */

.fw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

/* Container alignment (works even without rubikon layout css) */
.fw-header__container {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

.fw-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

/* Logo */
.fw-header__logo {
  flex: 0 0 auto;
}
.fw-logo__img {
  display: block;
  height: 34px;
  width: auto;
}

/* Nav layout */
.fw-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

/* left + right columns */
.fw-nav__left,
.fw-nav__right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.fw-nav__left {
  flex: 1 1 auto;
}
.fw-nav__right {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Base menu styling */
.fw-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Top-level links */
.fw-menu__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  padding: 10px 2px;
}

/* Submenus */
.fw-menu__list li {
  position: relative;
}

.fw-menu__list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  padding: 14px;
  margin: 0;
  list-style: none;
  z-index: 60;
}

/* Desktop hover */
@media (min-width: 980px) {
  .fw-menu__list li.menu-item-has-children:hover > .sub-menu {
    display: block;
  }
}

/* Images in mega menu (optional) */
.fw-menu__list .sub-menu img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Social */
.fw-header__social {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.fw-social__link {
  font-size: 14px;
  text-decoration: none;
}

/* Burger */
.fw-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.fw-burger__close {
  display: none;
}

/* Mobile layout */
@media (max-width: 979px) {
  .fw-header__inner {
    min-height: 72px;
  }

  .fw-header__social {
    display: none;
  }

  .fw-burger {
    display: inline-flex;
  }

  /* hide desktop nav until opened */
  .fw-nav {
    display: none;
  }

  /* When nav open (class set by JS) */
  body.burgerBTNRightnavON .fw-nav {
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    overflow: auto;
    padding: 18px 20px 30px;
    z-index: 80;
  }

  body.burgerBTNRightnavON .fw-nav__left,
  body.burgerBTNRightnavON .fw-nav__right {
    display: block;
  }

  body.burgerBTNRightnavON .fw-menu__list {
    display: block;
  }

  body.burgerBTNRightnavON .fw-menu__list > li > a {
    width: 100%;
    padding: 14px 8px;
    font-size: 18px;
  }

  /* submenus in mobile: open via .open-sub-menu (your app.js toggles this) */
  body.burgerBTNRightnavON .fw-menu__list .sub-menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 10px 8px 16px;
  }
  body.burgerBTNRightnavON .fw-menu__list .sub-menu.open-sub-menu {
    display: block;
  }

  /* Burger icon swap */
  body.burgerBTNRightnavON .fw-burger__open {
    display: none;
  }
  body.burgerBTNRightnavON .fw-burger__close {
    display: inline-flex;
  }
}

/* Reduce “giant images” if your menu has thumbnails */
.fw-menu__list .menu-image {
  max-width: 260px;
}
