
/* primary menu section */
.elementor-location-header {
  min-height: 140px;
}
.elementor-location-header.sticky-nav-collapsed {
  min-height: 84px;
}

.elementor-location-header section {
  box-shadow: none;
  transition: 0.3s all;
}
.elementor-location-header.sticky-nav-collapsed section {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: 0.3s all;
}




/* Reordering main menu to replace "home" with an image and put it in the center */
/* "home" icon is in first position, and gets an order of 0, everything that needs moved gets a more negative order */
.elementor-location-header .elementor-nav-menu--main span.sub-arrow {
  display: none;
}
@media (min-width: 1025px)
{
    
    .elementor-location-header .elementor-nav-menu--main > ul {
      display: flex;
      align-items: center;
      width: 100%;
    }
    .elementor-location-header .elementor-nav-menu--main > ul li {
      /*flex: 1;*/
    }
    
    /* home item */
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(1) > a {
      height: 120px;
      width: 120px;
      display: block;
      text-indent: -9999px;
      background-image: url(/wp-content/uploads/2018/05/logo-commeunefrancaise.png);
      background-position: center center;
      background-repeat: no-repeat;
      background-size: cover;
      margin-right: 36px;
    }
    /* hover bar */
    .elementor-location-header .elementor-nav-menu--main ul li:nth-of-type(1) > a::after {
        display: none;
    }

    /* Login */
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(6) {
        margin-left: auto;
    }
    
    /* Get my free 10-day course */
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(7) > a {
        border: 3px solid #e42f28;
        border-radius: 5px;
        padding: 8px;
        color: #FFF;
        background-color: #e42f28;
        font-weight: bold;
        transition: 0.13s all;
    }
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(7) > a > span {
        font-weight: normal;
        margin-left: .2em;
    }
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(7) > a:hover {
        background-color: #FFF;
        color: #e42f28 !important;
        transition: 0.13s all;
    }
    .elementor-location-header .elementor-nav-menu--main > ul > li:nth-of-type(7) > a::after {
        display: none;
    }


} /* media query */



/* MOBILE DISPLAY ONLY */
@media (min-width: 1024px) {
    /* menu background logo only shows on mobile */
    .elementor-location-header section .elementor-container .elementor-widget-nav-menu .elementor-widget-container {
      background-image: none;
    }
}


/* container defines size */
.elementor-location-header section .elementor-container {
  min-height: inherit;
  transition: 0.3s all;
}
.elementor-location-header.sticky-nav-collapsed section .elementor-container {
  min-height: 84px;
  transition: 0.3s all;
}

/* central home logo item */
.elementor-location-header.sticky-nav-collapsed .elementor-nav-menu--main ul li.menu-item-99 > a {
  width: 66px;
  height: 66px;
}
.elementor-location-header.sticky-nav-collapsed .elementor-nav-menu--main ul li.menu-item-99 > a::after {
  top: 72px;
  transition: 0.3s all;
  opacity: 0;
}

/* MOBILE DISPLAY ONLY */
@media (max-width: 1024px) {
    
    /* primary menu section */
    .elementor-location-header {
      min-height: 52px !important;
      height: 52px !important;
    }
    
    /* container defines size */
    .elementor-location-header section .elementor-container {
      min-height: 52px !important;
      transition: 0.3s all;
    }
    
    /* menu dropdown positioning */
    .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        position: absolute;
        top: 42px !important;
        margin-top: 0 !important;
    }
    
    /* add drop shadow to mobile menu */
    .elementor-location-header .elementor-nav-menu--dropdown {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    }
    
    /* bring "10 day course" back to left align */
    .elementor-location-header .elementor-nav-menu--dropdown > ul > li:nth-of-type(7) > a {
        justify-content: left;
    }
    .elementor-location-header .elementor-nav-menu--dropdown > ul > li:nth-of-type(7) > a > span {
        margin-left: .3em;
    }
    
    /* reposition hamburger icon */
    .elementor-location-header .elementor-menu-toggle {
        margin: 0 !important;;
        width: 36px;
        font-size: 24px !important;
    }
    
    .elementor-location-header .elementor-top-column .elementor-column-wrap {
        background-image: url(https://www.commeunefrancaise.com/wp-content/uploads/2018/05/logo-cuf-marque.png);
        background-position: 94% center;
        background-repeat: no-repeat;
        background-size: auto;
        padding: 9px !important;
    }
}


/* in between fullwidth and tablet */
@media (min-width: 1024px) and (max-width: 1280px) {
    /* shring header height a bit */
    .elementor-location-header {
        min-height: 70px;
    }
    /* site logo link goes to half size */
    .elementor-location-header .elementor-element .elementor-nav-menu--main > ul > li:nth-of-type(1) > a {
        height: 60px;
        width: 60px;
        margin-right: 0;
    }
    /* all link elements get reduced margins/padding */
    .elementor-location-header .elementor-element .elementor-nav-menu--main > ul > li:not(:last-child) {
        margin-right: 10px !important;
    }
    .elementor-location-header .elementor-element .elementor-nav-menu--main > ul > li > a {
        padding-left: 5px;
        padding-right: 5px;
    }
    /* "10 day course" item splits to two lines */
    .elementor-location-header .elementor-element .elementor-nav-menu--main > ul > li:nth-of-type(7) > a {
        display: block;
        text-align: center;
        padding: 3px 8px;
    }
    .elementor-location-header .elementor-element .elementor-nav-menu--main > ul > li:nth-of-type(7) > a > span {
        display: block;
        text-align: center;
        font-size: 82.5%;
    }
}


