/*****************************************/
/* Start your style declarations here    */
/*****************************************/
  
/* Header */

div.consultationButton{
   position: relative;
}

.consultationButton img{
   margin-top: 24px;
   position: absolute;
   right: 0;
}

/* Main Nav */

.hs-menu-wrapper.hs-menu-flow-horizontal{
    float: right;
    width: 100%;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-menu-depth-1 {
    float: none;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    overflow: visible;
    padding: 10px 0px 10px 28px;
}
  
.main-nav-wrap{
    width: 100%;
    float: none;
}

.main-nav{
    float: right;
    right:0px;
    width: 100%;
    margin-top: 20px;
    padding-right: 15px;
}

.main-nav ul{
    position: relative;
    width: 100%;
    padding-top: 5px;
    text-align: end;
}

.main-nav ul li{
    display: inline-block;
    list-style-type:none;
    font-size: .75em;
    text-transform: uppercase;
    height: auto;
}

.main-nav li:nth-child(4){
    margin-left: 10%;
    text-transform: none;
}

.main-nav li:nth-child(5){
    text-transform: none;
}

.main-nav li:nth-child(6){
    text-transform: none;
}

.main-nav li:nth-child(7){
    text-transform: none;
}

.main-nav li:nth-child(8){
    text-transform: none;
    visibility: hidden;
}

.main-nav ul li:first-child a, .main-nav ul li:nth-child(7) a {
    cursor:default;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children ul.hs-menu-children-wrapper li a{
    cursor:pointer;
}

/*.main-nav ul li:nth-child(7) a {
    pointer-events: none;
}

.main-nav ul > ul > li:first-child a {
    pointer-events: auto;
}

.main-nav ul ul li:nth-child(7) a {
    pointer-events: auto;
}

.main-nav ul > ul > ul > li:first-child a {
    pointer-events: auto !important;
}*/

.main-nav ul li a{
    display:block;
    color: #999;
    max-width: none;
    text-overflow: visible;
}

.main-nav li a:hover{
    color: #fff;
}

.main-nav li.active a, .main-nav li.active a:hover, .main-nav ul ul li.active a, .main-nav ul ul li.active a:hover{
    color: #fff;
    background: transparent;
    border: none;
}

.main-nav li.active ul li a {
    color: #999;
}

.main-nav ul ul{
    padding-top: 0px;
    width: auto;
    text-overflow: visible;
    text-align: left;
}

.main-nav ul ul li{
    display: block;
    background-color: #404040;
    opacity: 0.98;
    text-transform: none;
    font-size: 1em;
    float: none;
    width: auto;
    white-space: nowrap;
    text-align: left;
}

.main-nav ul li:nth-child(4) ul li{
    background-color: #444;
    opacity: 0.99;
    font-size: 1em;
}

.main-nav ul ul li:nth-child(4){
    margin-left: 0px;
}

.main-nav ul ul ul {
    left: 100% !important;
}

.main-nav ul ul ul li{
    background-color: #444;
    opacity: 0.99;
    font-size: 1em;
}

.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
.clearfix {  
    *zoom: 1;  
} 


/* ==========================================================================
Mobile Menu - Toggle Dropdown Menu - Fixed Top
========================================================================== */

/**
* Special Note
*
* When the menu is open, a class of .menu-open is applied to the body. You can 
* use this for custom styling on any element when the menu is in the open position. 
*/

@media (min-width: 1040px){

  a.mobile-trigger, a.child-trigger {
      display: none !important; /* Hide button on Desktop */
  }

}

@media (max-width: 1039px){
    
/* Variables
========================================================================== */

 /* Set Mobile Menu Background Color */
 /* Set Link Color */
 /* Set Link Hover Color */

  /* Menu Reset - Remove styling from desktop version of custom-menu-primary */
  /* Place any additional CSS you want removed from the mobile menu in this reset */
  .custom-menu-primary, .custom-menu-primary *{
    display: block;
    float: none;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0px;
    margin: 0px;
    background-image: none;
    background-color: transparent;
    border: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow:    none;
    box-shadow:         none; 
    max-width: none;
    width: 100%;
    height: auto;
    line-height: 1;  
    font-weight: normal;
    text-decoration: none;
    text-indent: 0px;
    text-align: left;
    color: #fff;
    }


  /* Toggle Button
     ========================================================================== */

  a.mobile-trigger {
      display: inline-block !important; /* Hide button on Desktop */
      cursor: pointer; /* Mouse pointer type on hover */
      position: absolute; /*******************************************/
      top: 24px;          /* Position Button at top right of screen  */
      right: 10px;        /*******************************************/
      width: auto; /* Button width */
      height: auto; /* Button height */      
      padding: 12px 10px;
      background: #404040; /* Background color */
      z-index: 99999999999; /* Z-index to keep button on top of other layers */
      -webkit-transition: background-color 0.2s linear; /* Button color transition effect */
      font-size: 16px;
      font-weight: normal;
      text-align: left;
      text-transform: uppercase;
      -webkit-border-bottom-right-radius: 6px;
      -webkit-border-bottom-left-radius: 6px;
      -moz-border-radius-bottomright: 6px;
      -moz-border-radius-bottomleft: 6px;
      border-bottom-right-radius: 6px;
      border-bottom-left-radius: 6px;
      -webkit-transition:color .2s ease-in; 
      -moz-transition:color .2s ease-in;
      transition:color .2s ease-in;
  }

  a.mobile-trigger:hover {
      text-decoration: none; /* Removes link text underline on button */
      color: #009900;
  }

  a.mobile-trigger span{
      display: inline;
  }

  a.mobile-trigger span:before{
      position: absolute;
      content: 'Menu'; /* Change the text on the closed toggle button */
  }

  a.mobile-trigger span:after{
      position: relative;
      right: 2px;
      content: 'Close'; /* Change the text on the open toggle button */
      background-color: #404040;
      opacity: 0;
      transition: opacity .4s ease-in-out;
      -moz-transition: opacity .4s ease-in-out;
      -webkit-transition: opacity .4s ease-in-out; 
  }

  /* Change button when menu is open */
  .mobile-open a.mobile-trigger{
      -webkit-transition:background-color 0.2s linear; /* Button color transition effect */
      -moz-transition:background-color 0.2s linear; /* Button color transition effect */
      transition:background-color 0.2s linear; /* Button color transition effect */
      background: transparent; /* Changes button background to be slightly darker than open menu color */  
      top: 5px;
  }

  .mobile-open a.mobile-trigger span:after{
     opacity: 1; 
  }


  /* Toggle Button Icon & Animations
     ========================================================================== */

  a.mobile-trigger i {
      display: inline;
      position: relative;
      top: -5px;
      margin-left: 5px;
      -webkit-transition-duration: 0s;
      -webkit-transition-delay: .2s;
      -moz-transition-duration: 0s;
      -moz-transition-delay: .2s;
      transition-duration: 0s;
      transition-delay: .2s;
  }
  a.mobile-trigger  i:before, a.mobile-trigger i:after {
      position: absolute;
      content: '';
  }
  a.mobile-trigger  i, a.mobile-trigger  i:before, a.mobile-trigger  i:after {
      width: 15px; /* Icon line width */
      height: 2px; /* Icon line height */
      background-color: #fff; /* Icon color */
      display: inline-block;
  }
  a.mobile-trigger  i:before {
      margin-top: -6px; /* Position top line */
      -webkit-transition-property: margin, -webkit-transform;
      -webkit-transition-duration: .2s;
      -webkit-transition-delay: .2s, 0;
  }
  a.mobile-trigger  i:after {
      margin-top: 6px; /* Position bottom line */
      -webkit-transition-property: margin, -webkit-transform;
      -webkit-transition-duration: .2s;
      -webkit-transition-delay: .2s, 0;
  }
  .mobile-open a.mobile-trigger i {
      background-color: rgba(0,0,0,0.0);
      -webkit-transition-delay: .2s;
      -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
      -moz-box-shadow:    0px 1px 1px rgba(0, 0, 0, 0);
      box-shadow:         0px 1px 1px rgba(0, 0, 0, 0);
  }
  .mobile-open a.mobile-trigger i:before {
      margin-top: 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
      -webkit-transition-delay: 0, .2s;
      -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
      -moz-box-shadow:    0px 1px 1px rgba(0, 0, 0, 0);
      box-shadow:         0px 1px 1px rgba(0, 0, 0, 0);
  }
  .mobile-open a.mobile-trigger i:after {
      margin-top: 0;
      -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
      -webkit-transition-delay: 0, .2s;
      -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
      -moz-box-shadow:    0px 1px 1px rgba(0, 0, 0, 0);
      box-shadow:         0px 1px 1px rgba(0, 0, 0, 0);
  }

  /* Child Toggle Button
     ========================================================================== */

  a.child-trigger {
      display: block !important; /* Hide button on Desktop */
      cursor: pointer; /* Mouse pointer type on hover */
      position: absolute;
      top: 0px;
      right: 0px;
      width: 55px !important; /* Button width */
      min-width: 55px !important;
      height: 45px !important; /* Button height */  
      padding: 0 !important;
      border-left: 1px dotted rgba(255, 255, 255, .20);
  }
  a.child-trigger:hover {
      text-decoration: none;
  }


  /* Child Toggle Button Icon & Animations
     ========================================================================== */

  a.child-trigger span {
      position: relative;
      top: 50%; /* Centers icon inside button */
      margin: 0 auto !important;
      -webkit-transition-duration: .2s;
      -moz-transition-duration: .2s;
      transition-duration: .2s;
  }
  a.child-trigger span:after {
      position: absolute;
      content: '';
  }
  a.child-trigger span, a.child-trigger span:after {
      width: 10px; /* Icon line width */
      height: 1px; /* Icon line height */
      background-color: #fff; /* Icon color */
      display: block;
  }
  a.child-trigger span:after {
      -webkit-transform: rotate(-90deg);
       -ms-transform: rotate(-90deg);
      transform: rotate(-90deg);
       -webkit-transition-duration: .2s;
       -moz-transition-duration: .2s;
      transition-duration: .2s;
  }
  a.child-trigger.child-open span:after {
      -webkit-transform: rotate(-180deg);
       -ms-transform: rotate(-180deg);
      transform: rotate(-180deg);
       -webkit-transition-duration: .2s;
       -moz-transition-duration: .2s;
      transition-duration: .2s;
  }
  a.child-trigger.child-open span {
      -webkit-transform: rotate(180deg);
       -ms-transform: rotate(180deg);
      transform: rotate(180deg);
       -webkit-transition-duration: .2s;
       -moz-transition-duration: .2s;
      transition-duration: .2s;
  }

    
  /* Menu Styles on Mobile Devices
     ========================================================================== */  


  /* Hide menu on mobile */
  .custom-menu-primary.js-enabled .hs-menu-flow-horizontal,
  .custom-menu-primary.js-enabled .hs-menu-children-wrapper{
      display: none;
  }  

  /* Make child lists appear below parent items */
  .custom-menu-primary ul.hs-menu-children-wrapper {
      visibility: visible !important;
      opacity: 1 !important;
      position: static !important;
      display: none;
  }

  /* Mobile Menu Styles */
  .custom-menu-primary.js-enabled .hs-menu-flow-horizontal{
      position: absolute; /**************************************************************/
      top: 0;             /* Positions the menu to drop from the very top of the screen */
      left: 0px;          /**************************************************************/                                              
      width: 100%;   
      -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.65);
      -moz-box-shadow:    0px 5px 5px 0px rgba(0, 0, 0, 0.65);
      box-shadow:         0px 5px 5px 0px rgba(0, 0, 0, 0.65); 
  }
  .custom-menu-primary .hs-menu-flow-horizontal{
      padding: 40px 0 0 0; /* Padding to add room for close button */
      background-color: #404040; /* Menu background color set off global mobile-menuColor variable */
      width: 100%; /* Full screen width */
      z-index: 8888;
  }

   /* Level 1 Menu List Styles */
  .custom-menu-primary .hs-menu-flow-horizontal > ul > li{
      position: relative;
   }
  .custom-menu-primary .hs-menu-flow-horizontal > ul > li a{
      font-size: 1.25em; /* Font size of top level list items */
      line-height: 45px;
      overflow: visible;
  }

  /* Level 1 and Higher Menu List Styles */
  .custom-menu-primary .hs-menu-flow-horizontal ul li{
      border-top: 1px dotted rgba(255, 255, 255, .35); /* Adds transparent dark highlights to top of top level list items */
  }
  .custom-menu-primary .hs-menu-flow-horizontal ul li a{
      padding: 0 10px;
  }
    .custom-menu-primary .hs-menu-flow-horizontal ul li:nth-child(1) a {
    cursor: default;
}

.custom-menu-primary .hs-menu-flow-horizontal ul li:nth-child(7) a {
    cursor: default;
}
  .custom-menu-primary .hs-menu-flow-horizontal ul li a:hover{
      color: #009900; /* link hover color set by global mobile-aColorHover variable */
  }

  /* Level 2 and Higher Menu List Styles */
  .custom-menu-primary .hs-menu-flow-horizontal > ul ul li{
     background-color: rgba(255, 255, 255, .08);
  }
  .custom-menu-primary .hs-menu-flow-horizontal > ul ul li a{
      text-indent: 10px; /* Indent Child lists */
      font-size: 16px; /* Font size of child lists */
  }

  /* Level 3 and Higher Menu List Styles */
  .custom-menu-primary .hs-menu-flow-horizontal > ul ul ul li a{
      text-indent: 30px; /* Indent Child lists */
  }
  .custom-menu-primary .hs-menu-flow-horizontal > ul ul ul ul li a{
      text-indent: 50px; /* Indent Child lists */
  }
}

/* Media Fixes */

@media (min-width: 1201px) and (max-width: 1270px) {
    .main-nav li:nth-child(4) {
    margin-left: 5% !important;
    text-transform: none;
}
}

/* Large desktop */
@media (min-width: 1200px) {
    .body-container-wrapper {
    padding-top: 89px;
}
}
     
/* Portrait tablet to landscape and desktop */
@media (min-width: 1101px) and (max-width: 1200px) {
    .body-container-wrapper {
    padding-top: 89px;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    overflow: visible;
    padding: 10px 0px 10px 25px;
}

.main-nav li:nth-child(4){
    margin-left: 0;
}

    .footer-menu h3 {
        white-space: normal !important;
    }
}

@media (min-width: 1040px) and (max-width: 1100px) {
    .body-container-wrapper {
    padding-top: 89px;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    overflow: visible;
    padding: 10px 0px 10px 18px;
}

.main-nav li:nth-child(4){
    margin-left: 0;
}
    
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 1039px) {
    .body-container-wrapper {
        padding-top: 89px;
}

div.consultationButton{
   position: relative;
   visibility: hidden;
}

.hs-menu-wrapper.hs-menu-flow-horizontal>ul li a {
    overflow: visible;
    padding: 10px 0px 10px 25px;
}

.main-nav li:nth-child(4){
    margin-left: 0;
    text-transform: none;
}

.main-nav li:nth-child(8){
    text-transform: none;
    visibility: visible;
}
  
.wistia_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

.wistia_socialbar img{
    visibility: hidden;
    display: none;
}

div#wistia_9_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

#wistia_9_socialbar img{
    visibility: hidden;
    display: none;
}

div#wistia_9_socialbar.wistia_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    
.body-container-wrapper {
    padding: 0;
    margin-top: 89px;
}
    
.top-graphic{
        visibility: none;
        display: none;
        }
    
.brand{
    float: left;
    padding: 0 10px;
    margin-right: 0px;
    width: auto;
 }
 
 div.consultationButton{
   position: relative;
   visibility: hidden;
}
 
.main-nav-wrap{
    width: auto;
    display: block;
    clear: right;
    margin: 0px;
    padding: 0px;
}

.main-navbar .span{
   max-height: 0px;
}

.main-nav li:nth-child(4){
    margin-left: 0;
    text-transform: none;
}

.main-nav li:nth-child(8){
    text-transform: none;
    visibility: visible;
}

.wistia_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

.wistia_socialbar img{
    visibility: hidden;
    display: none;
}

div#wistia_9_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

#wistia_9_socialbar img{
    visibility: hidden;
    display: none;
}

div#wistia_9_socialbar.wistia_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

.col1-3,.col2-3,.col3-3{
    float: left;
    display: block;
    width: 100%;
}

.footer-menu{
    float: left;
    width: 100%;
    text-align: center;
    margin-bottom: 3em;
    border-bottom:1px solid #999;
}

.footer-menu h3{
    text-align: center;
}
}
     
/* Landscape phones and down */
@media (max-width: 480px) {
    
/*.body-container-wrapper{
    padding: 70px 5px 5px;
}*/

div.consultationButton{
   position: relative;
   visibility: hidden;
}

.main-nav li:nth-child(4){
    margin-left: 0;
    text-transform: none;
}

.main-nav li:nth-child(8){
    text-transform: none;
    visibility: visible;
}

.col1-3,.col2-3,.col3-3{
    float: left;
    display: block;
    width: 100%;
}
     
.create-nav ul li{
    font-size: .85em;
    padding-right: 0px;
}

.cta{
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 15px 0;
    margin: 0;
/*    border-width: 5px;
    border:thick groove #009900;*/
}

.wistia_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

.wistia_socialbar img{
    visibility: hidden;
    display: none;
}

div#wistia_9_socialbar{
    height: auto;
    overflow: visible;
    line-height: 20px;
}

#wistia_9_socialbar img{
    visibility: hidden;
    display: none;
}
}
