/* ============================================================
   HEADER — From countonsheep.com module_Header.min.css
   ============================================================ */

#header {
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.5);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  transition: all 0.3s ease;
}

#header.sticky {
  background-color: #fff;
  box-shadow: 0 4px 12px hsla(0, 0%, 100%, 0.8);
}

#header .logo img {
  max-width: 100%;
}

#header .logo-white img {
  height: auto;
  width: 237px;
}

#header .logo-dark {
  display: none;
}

#header.sticky .logo-white {
  display: none;
}

#header.sticky .logo-dark {
  display: inline-block;
}

#header.sticky .logo-dark img {
  height: auto;
  width: 237px;
}

.header-logo-container {
  margin-right: 40px;
  flex-shrink: 0;
}

#header .container {
  max-width: 100%;
  width: 1500px;
}

.header-row {
  gap: 80px;
  min-height: 110px;
  padding: 0;
  position: relative;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#nav {
  align-items: center !important;
  display: flex !important;
  gap: 0 !important;
  padding-right: 0 !important;
  flex: 1;
  justify-content: center;
}

#nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

#nav ul li {
  position: relative;
}

#nav ul li a {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

#header.sticky #nav ul li a {
  color: #0c2124;
}

#nav ul li a:hover,
#header.sticky #nav ul li a:hover {
  color: #B1E358;
}

#nav ul li.hs-item-has-children > a:after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  margin-left: 6px;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

#header .hs-menu-children-wrapper {
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: none;
  left: 0;
  min-width: 300px;
  opacity: 0;
  padding: 15px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  z-index: 99;
}

#header .hs-menu-item.hs-item-has-children .hs-menu-children-wrapper a {
  color: #0f3a3a;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 22px;
  display: block;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

#header .hs-menu-item.hs-item-has-children .hs-menu-children-wrapper a:hover {
  color: #B1E358;
  background: rgba(177, 227, 88, 0.08);
}

#header .hs-menu-item.hs-item-has-children:hover .hs-menu-children-wrapper {
  display: block;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#header a.btn-white {
  align-items: center !important;
  background: #fff !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  height: 110px !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 237px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  margin-left: 30px !important;
  position: relative !important;
  z-index: 1 !important;
  bottom: auto !important;
  right: auto !important;
}

#header a.btn-white:hover {
  background: #B1E358 !important;
  color: #0c2124 !important;
  opacity: 1 !important;
}

/* Mobile nav */
.mobile-nav {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 110;
  background: none;
  border: none;
  cursor: pointer;
}

#header.sticky .menu-toggle {
  color: #0c2124;
}

.menu-toggle .icon--close {
  display: none;
}

.menu-toggle.active .icon--menu {
  display: none;
}

.menu-toggle.active .icon--close {
  display: block;
}

/* Header social */
#header ul.header-social {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header ul.header-social li a {
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  transition: color 0.2s ease;
}

#header ul.header-social li a:hover {
  color: #B1E358;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  #nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  #header a.btn-white {
    display: none;
  }
  
  #nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 105;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }
  
  #nav.open {
    right: 0;
  }
  
  #nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  #nav ul li a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid #e2e8ea;
    color: #0c2124;
  }
  
  .hs-menu-children-wrapper {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .hs-item-has-children:hover .hs-menu-children-wrapper {
    display: block;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8ea;
    width: 100%;
  }
  
  .mobile-nav .nav-text {
    font-size: 13px;
    color: #5a6b6d;
  }
  
  .mobile-nav .nav-text a {
    color: #02454e;
    font-weight: 600;
  }
  
  .header-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
  }
  
  .header-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f5f6;
    color: #02454e;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  
  .header-social a:hover {
    background: #B1E358;
    color: #02454e;
  }
}

/* Mobile overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 104;
}

.nav-overlay.active {
  display: block;
}
