#wrapper {
  position: relative;
  min-height: 100%;

  > header {
    position: relative;
    padding: 25px 25px 25px 24px;
    z-index: 12;
    background: #fff;
    color: #393940;
    @include opacity(0);
    @include vendor(transform, translate3d(0,-200px,0));
    @include vendor(transition, color 1s 0s);

    &.start {
      @include vendor(animation, fromTop 0.55s 0.6s forwards);
    }

    &::after,
    &::before {
      content: '';
      display: block;
      clear: both;
    }

    > h1 {
      margin: 0;
      float: left;
      font-size: 18px;
      line-height: 18px;
    }
  }

  > footer {
    position: relative;
    padding: 39px 25px 30px;
    z-index: 4;
    font-size: 12px;
    color: $greyLight;
    @include opacity(0);

    &:not(.ng-hide) {
      display: block !important;
    }

    &::after,
    &::before {
      content: '';
      display: block;
      clear: both;
    }

    #footer-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #393940 url('/img/bg-footer.jpg') center no-repeat;
      background-size: cover;
      z-index: -1;
    }

    > img {
      display: block !important;
    }

    .badge {
      display: block;
      margin-bottom: 26px;
    }

    &.start {
      @include vendor(animation, fade 0.9s 0s forwards);
    }

    .heading {
      font-size: 32px;
      line-height: 1;
      margin-bottom: -1px;
      font-family: 'NHaasGroteskTXW02-75Bd';
      font-weight: normal;
    }

    p {
      margin: 0 0 2.5rem;
      line-height: 1.7;
    }

    > small {
      display: block;
      margin-top: 65px;
    }

    > .row {
      > div {
        margin-bottom: 36px;
      }
    }

    hr {
      margin: 44px 0 14px;
    }
  }
}

.container {
  position: relative;
  z-index: 1;

  &.dark {
    background: $bgDark;
    color: $grey;
  }

  &.home {
    background: transparent;
    color: #fff;

    > .inner {
      padding-top: 30px !important;
      padding-bottom: 25px !important;
    }
  }

  @media screen and (min-height: 400px) {
    &.home {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  &.intro-overlay {
    position: relative;
    top: 65px;
    background: rgba(0,0,0,0.8);
    color: #fff;
  }
}

.inner {
  margin: 0 auto;
  padding: 58px 25px 38px;
}

.dark {
  .inner {
    padding: 45px 25px 34px;
  }
}

body.home #wrapper > header {
  background: transparent;
  color: #fff;

  #menu-trigger {
    color: #fff;
  }

  .menu-icon {
    &:before,
    &:after,
    .menu-icon-text {
      background: #fff;
    }
  }
}

#menu-trigger {
  float: right;
  height: 18px;
  font-size: 14px;
  line-height: 18px;
  color: #393940;
  @include vendor(transition, all 1s 0s);
  cursor: pointer;

  .menu-icon {
    display: inline-block;
    width:16px;
    @include vendor(transform, translate3d(0,0,0));
    vertical-align: middle;
    margin: -4px 4px 0;

    &:before,
    &:after,
    .menu-icon-text {
      background: #393940;
      content:'';
      display:block;
      height:3px;
      margin:2px 0;
      @include vendor(transition, all .2s ease-out);
      width:100%;
    }

    .menu-icon-text {
      text-indent:-9999px;
    }
  }

  &.close {
    color: #fff;

    .menu-icon {
      &:before,
      &:after,
      .menu-icon-text {
        background: #fff;
      }

      &:before {
        @include vendor(transform, rotate(45deg) translate3d(3px,3px,0));
      }

      .menu-icon-text {
        @include opacity(0);
      }

      &:after {
        @include vendor(transform, rotate(-45deg) translate3d(4px,-4px,0));
      }
    }
  }
}
