/*=============================================================================
 * FLATSOME CHILD: REFACTORED CUSTOM HEADER
 *=============================================================================*/

.header-main {
  background-color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.header-main .top-divider {
  display: none !important;
}

.header-main .header-inner {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.header-main .flex-left,
.header-main .flex-right {
  flex: 1 1 0% !important;
}

.header-main .logo {
  flex: 0 0 auto;
}

/*-----------------------------------------------------------------------------
 * 2. MAIN NAVIGATION MENU (LEFT SIDE)
 *---------------------------------------------------------------------------*/

.header-main .flex-left ul.header-nav {
  display: flex !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  margin: 0;
  padding: 0;
}

.header-main .flex-left ul.header-nav li {
  white-space: nowrap;
}

.header-main .nav>li>a {
  color: #000000 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: color 0.3s ease;
}

.header-main .nav>li>a:hover,
.header-main .nav>li.active>a,
.header-main .nav>li.current-menu-item>a {
  color: #3974ba !important;
}

.header-main .custom-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  gap: 15px;
  flex-wrap: nowrap;
  width: 100%;
}

.header-main .custom-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000000 !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.header-main .custom-header-phone .phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  background-color: rgba(6, 143, 53, 0.11) !important;
  border-radius: 50% !important;
}

.header-main .custom-header-phone .phone-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

a.button.btn-primary-custom,
.header-main .custom-header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1b5e20 0%, #2757a0 100%) !important;
  padding: 10px 24px !important;
  border-radius: 55px !important;
  border: none !important;

  color: #ffffff !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-decoration: none;
  text-shadow: none !important;
  box-shadow: none !important;
  text-transform: none !important;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease !important;
}

a.button.btn-primary-custom:hover,
.header-main .custom-header-cta:hover {
  color: #ffffff !important;
  opacity: 0.95;
  transform: translateY(-2px);
}

a.button.btn-primary-custom .arrow-wrapper,
.header-main .custom-header-cta .arrow-wrapper,
.header-main .custom-header-cta i,
.header-main .custom-header-cta svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  color: #2757a0 !important;
  fill: #2757a0 !important;
}

.header-main .custom-header-phone,
a.button.btn-primary-custom,
.header-main .custom-header-cta {
  white-space: nowrap !important;
}

/*=============================================================================
 * RESPONSIVE HEADER (TABLET & MOBILE)
 *=============================================================================*/

@media (min-width: 850px) and (max-width: 1199px) {

  .header-main .flex-left,
  .header-main .flex-right {
    flex: 0 1 auto !important;
  }

  .header-main .nav>li>a {
    font-size: 14px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .header-main .logo img {
    max-width: 160px !important;
  }

  .header-main .custom-header-right {
    gap: 10px !important;
  }

  .header-main .custom-header-phone {
    font-size: 14px !important;
    gap: 4px !important;
  }

  .header-main .custom-header-phone {
    font-size: 14px !important;
    gap: 6px !important;
  }

  .header-main .custom-header-phone .phone-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .header-main .custom-header-phone .phone-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  a.button.btn-primary-custom,
  .header-main .custom-header-cta {
    padding: 8px 16px !important;
    font-size: 14px !important;
    gap: 8px !important;
  }

  a.button.btn-primary-custom .arrow-wrapper,
  .header-main .custom-header-cta .arrow-wrapper,
  .header-main .custom-header-cta i,
  .header-main .custom-header-cta svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {

  .header-main .container,
  .header-main .header-inner {
    padding: 0 10px !important;
    width: 100% !important;
  }

  .header-main .nav-icon {
    margin-left: -5px !important;
  }

  .header-main .custom-header-phone span:not(.phone-icon) {
    display: none !important;
  }

  .header-main .custom-header-right {
    gap: 6px !important;
  }

  .header-main .logo img {
    max-width: 135px !important;
    height: auto !important;
  }

  .phone-icon {
    display: none !important;
  }

  a.button.btn-primary-custom,
  .header-main .custom-header-cta {
    padding: 5px 12px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }

  a.button.btn-primary-custom .arrow-wrapper,
  .header-main .custom-header-cta .arrow-wrapper,
  .header-main .custom-header-cta i,
  .header-main .custom-header-cta svg {
    width: 20px !important;
    height: 20px !important;
  }
}