/* FulGaz site header — technique & look ported from members.fulgaz.com
   (#mainnavbar / .newNavItem / .dropdown-content, measured computed styles),
   menu structure preserved from the original fulgaz.com header.
   Original header behavior kept: sticky top on all devices. */

.fg-header {
  position: sticky;
  top: 0;
  z-index: 999999;
  background-color: #14264a; /* rgb(20,38,74) — members bar color */
  font-family: Degular, Arial, sans-serif;
}

.fg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 89px; /* members bar height */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.fg-logo img {
  width: 135px;
  height: 37px;
}

/* --- desktop menu --- */
.fg-nav {
  height: 100%;
}

.fg-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
}

.fg-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 1px;
}

.fg-nav-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 20px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 20px;
  cursor: pointer;
}

.fg-nav-item > a:hover {
  color: #fff;
  opacity: 0.85;
}

.fg-arrow {
  height: 15px;
  width: auto;
  margin-left: 9px; /* members: two &nbsp; */
}

/* --- dropdowns (members .dropdown-content) --- */
.fg-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 9999999;
  padding: 5px 0 12px;
}

.fg-nav-item:hover > .fg-dropdown,
.fg-nav-item:focus-within > .fg-dropdown,
.fg-nav-item.fg-open > .fg-dropdown {
  display: block;
}

/* p.fg-sub-item + .fg-dropdown ancestor outspecifies the Elementor kit's
   `.elementor-kit-XXXX p` margin rules */
.fg-dropdown p.fg-sub-item {
  margin: 0;
  padding: 0;
}

.fg-sub-item a {
  display: block;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 20px;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
}

.fg-sub-item a:hover {
  background-color: #f1f1f1;
  color: #000;
}

/* --- burger --- */
.fg-burger {
  display: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 10px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

/* ID selectors beat the Elementor kit's `button:focus` border/radius rules */
#fg-burger,
#fg-burger:hover,
#fg-burger:focus,
#fg-burger:active {
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

#fg-burger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.fg-burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.fg-nav-open .fg-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.fg-nav-open .fg-burger span:nth-child(2) {
  opacity: 0;
}
body.fg-nav-open .fg-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- mobile / tablet (Elementor tablet breakpoint: the original menu
       collapsed to a burger at <=1024px) --- */
@media (max-width: 1024px) {
  .fg-header-inner {
    height: 64px;
  }

  .fg-burger {
    display: block;
  }

  .fg-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    background-color: #14264a;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  body.fg-nav-open .fg-nav {
    display: block;
  }

  .fg-menu {
    display: block;
    height: auto;
    padding: 8px 0 16px;
  }

  .fg-nav-item {
    display: block;
    height: auto;
    margin: 0;
  }

  .fg-nav-item > a {
    height: auto;
    padding: 14px 24px;
    justify-content: space-between;
  }

  .fg-dropdown {
    position: static;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 0 0 6px;
  }

  .fg-sub-item a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 40px;
  }

  .fg-sub-item a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}
