/**
 * @project        Hackmanstl
 * @description    Website for Hackman Lumber
 * @author         Stephen Flannery Jr. - Captiva Marketing
 * @build          Tue, Mar 27, 2018 9:08 AM ET
 * @copyright      Copyright (c) 2018, 
 *
 */
 
/* Flexnav Base Styles */

.flexnav {
  position: relative;
  list-style: none;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  margin: 0 auto;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  background: #ffffff;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flexnav--show {
  max-height: 2000px;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  opacity: 1;
  padding: 1.5rem;
}

.flexnav li {
  font-size: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
  padding: 0 15px;
}

.flexnav li a {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  font-weight: 400;
  text-align: left;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.25rem;
  line-height: 40px;
  padding-right: 35px;
  color: #303030;
}

.flexnav li a:hover,
.flexnav li a:active,
.flexnav li a:focus {
  color: #303030;
}

.flexnav li > ul {
  width: 100%;
  padding: 0.5rem 1.5rem;
  list-style: none;
  list-style-position: unset;
  margin: 0;
  text-align: left;
  display: none;
}

.flexnav li > ul li {
  font-size: 100%;
  position: relative;
  padding: 0.25rem 0;
  margin: 0;
  background: transparent;
}

.flexnav li > ul li a {
  display: inline-block;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  color: #111111;
  font-weight: 400;
}

.flexnav__touch {
  position: absolute;
  z-index: 999;
  top: 0.5rem;
  right: 0.5rem;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 16px;
  height: 22px;
  text-align: center;
  background: transparent;
}

.flexnav__touch:hover {
  cursor: pointer;
}

.flexnav__touch__icon {
  font-size: 16px;
  font-weight: 900;
  position: relative;
  top: 0;
  color: #303030;
  font-style: normal;
  line-height: 1;
  -webkit-transform: rotateX(180deg) translateY(0);
  transform: rotateX(180deg) translateY(0);
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.flexnav__touch--active .flexnav__touch__icon {
  -webkit-transform: rotateX(0) translateY(10px);
  transform: rotateX(0) translateY(10px);
}

.flexnav__button {
  position: relative;
  height: 2rem;
  width: 2.5rem;
  margin-left: auto;
  color: transparent;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  background: transparent;
}

.flexnav__button__container {
  position: relative;
  height: 100%;
  width: 100%;
  top: auto;
  left: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.flexnav__button__icon {
  position: relative;
  display: block;
  height: 2px;
  width: 100%;
  -webkit-transition: background 0s 0.3s linear;
  -o-transition: background 0s 0.3s linear;
  transition: background 0s 0.3s linear;
  border-radius: 0;
  background: #000000;
  top: auto;
  left: auto;
}

.flexnav__button__icon:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  -webkit-transition: top 0.3s 0.3s, -webkit-transform 0.3s 0s;
  transition: top 0.3s 0.3s, -webkit-transform 0.3s 0s;
  -o-transition: top 0.3s 0.3s, transform 0.3s 0s;
  transition: top 0.3s 0.3s, transform 0.3s 0s;
  transition: top 0.3s 0.3s, transform 0.3s 0s, -webkit-transform 0.3s 0s;
  border-radius: 0;
  background-color: #000000;
}

.flexnav__button__icon:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  -webkit-transition: bottom 0.3s 0.3s, background 0s 0.3s linear, -webkit-transform 0.3s 0s;
  transition: bottom 0.3s 0.3s, background 0s 0.3s linear, -webkit-transform 0.3s 0s;
  -o-transition: bottom 0.3s 0.3s, transform 0.3s 0s, background 0s 0.3s linear;
  transition: bottom 0.3s 0.3s, transform 0.3s 0s, background 0s 0.3s linear;
  transition: bottom 0.3s 0.3s, transform 0.3s 0s, background 0s 0.3s linear, -webkit-transform 0.3s 0s;
  border-radius: 0;
  background-color: #000000;
}

.flexnav__button--active .flexnav__button__icon {
  background: transparent;
}

.flexnav__button--active .flexnav__button__icon:before {
  top: 0;
  -webkit-transition: top 0.3s 0s, bottom 0.3s 0s, -webkit-transform 0.3s 0.3s;
  transition: top 0.3s 0s, bottom 0.3s 0s, -webkit-transform 0.3s 0.3s;
  -o-transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s;
  transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s;
  transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s, -webkit-transform 0.3s 0.3s;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.flexnav__button--active .flexnav__button__icon:after {
  bottom: 0;
  -webkit-transition: top 0.3s 0s, bottom 0.3s 0s, background 0s 0s linear, -webkit-transform 0.3s 0.3s;
  transition: top 0.3s 0s, bottom 0.3s 0s, background 0s 0s linear, -webkit-transform 0.3s 0.3s;
  -o-transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s, background 0s 0s linear;
  transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s, background 0s 0s linear;
  transition: top 0.3s 0s, bottom 0.3s 0s, transform 0.3s 0.3s, background 0s 0s linear, -webkit-transform 0.3s 0.3s;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.flexnav__title {
  color: #303030 !important;
  background-color: #ebe5d9;
  padding: 0 10px;
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 30px;
  height: auto;
  text-transform: uppercase;
  border-bottom: 3px solid #c0baae;
  font-weight: 700;
  text-align: left;
  display: block;
  width: 100%;
}

.flexnav > li > ul {
  display: none;
  list-style: none;
}

@media only screen and (min-width: 64rem) {
  .flexnav {
    overflow: visible;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    height: auto;
    max-height: none;
    width: auto;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    background: transparent;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
  }

  .flexnav li {
    position: relative;
    display: block;
    width: auto;
    overflow: visible;
    list-style: none;
    text-align: center;
    padding: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }

  .flexnav li:first-of-type a,
  .flexnav li:nth-of-type(2) a {
    padding-right: 34px;
  }

  .flexnav li a {
    border-bottom: none;
    position: relative;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.25rem;
    padding: 0 18px;
    text-align: center;
  }

  .flexnav li > ul {
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 200px;
    margin: 0 auto;
    padding: 0;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    max-height: 0;
    overflow: hidden;
    border-radius: 0;
    padding: 5px;
    -webkit-box-shadow: 0px 24px 37.24px 0.76px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 24px 37.24px 0.76px rgba(0, 0, 0, 0.5);
    -webkit-transition: max-height 0.3s ease-out;
    -o-transition: max-height 0.3s ease-out;
    transition: max-height 0.3s ease-out;
    text-align: center;
  }

  .flexnav li > ul li {
    border-bottom: none;
    width: 100%;
    padding: 0 0.75rem;
    font-size: 0.95rem;
    background: #ffffff;
  }

  .flexnav li > ul li:first-child {
    padding-top: 1rem;
  }

  .flexnav li > ul li:first-child:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    /* left arrow slant */
    border-right: 10px solid transparent;
    /* right arrow slant */
    border-bottom: 10px solid #ffffff;
    /* bottom, add background color here */
    font-size: 0;
    line-height: 0;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .flexnav li > ul li:last-child {
    padding-bottom: 1rem;
  }

  .flexnav li > ul li a {
    color: #000000;
    background: #fff;
    text-decoration: none;
    border-bottom: none;
    padding: 5px 0 !important;
    margin-bottom: 0;
    line-height: 15px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    font-size: 13px;
  }

  .flexnav li > ul.flexnav__sub--show {
    max-height: 1000px;
    overflow: visible;
  }

  .flexnav__touch {
    top: 8px;
    right: 16px;
  }

  .flexnav__button {
    display: none;
  }
}