//  ==========
//  = Responsiveness for the Carpress HTML template =
//  ==========

@media (min-width: 1679px) {
  .main-content {
    min-height: 200px;
  }
}

@media (min-width: 1200px) {
  .navbar .nav > li a,
  .navbar .nav > li.active > a {
    padding-left: 25px;
    padding-right: 25px;
  }
  body.boxed > .boxed-container {
    width: 1200px;
  }
}


@media (max-width: 979px) {
  .nav-collapse {
    float: none;
  }
  .jumbotron--slider {
    .carousel-indicators {
      display: none;
    }
  }

  // navigation
  .nav-collapse .dropdown-menu {
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;

    .dropdown-menu {
      margin-left: 20px;
    }
  }
  .dropdown-submenu > a:after,
  .navbar .nav > li a:before {
    display: none;
  }
  .navbar {
    font-size: 14px;

    .container {
      width: 724px;
    }
  }
  .navbar .btn-featured {
    width: auto;
    float: none;
    display: block;
    margin: 0 0 20px;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 10px;

    &:before {
      display: none;
    }
  }
  .navbar .nav > li {
    // border-bottom: 1px solid #414141;

    &.active > a {
      background: none;
      border-bottom: none;
      padding: 9px 14px;
    }
    &.dropdown > a,
    &.dropdown > a:hover {
      background-position: 97% center;
      background-repeat: no-repeat;
    }
  }
  .navbar .dropdown-menu > li {
    border: none;

    > a {
      font-size: 12px;
      font-family: $sansFontFamily;
      color: darken($white, 10%);
      text-transform: none !important;
      font-weight: normal !important;
    }
  }
  .nav-collapse .dropdown-menu a {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .navbar-inverse .nav-collapse .nav > li > a,
  .navbar-inverse .nav-collapse .dropdown-menu a {
    color: $white;
  }
  .navbar .btn-large {
    width: auto;
    float: none;
    display: block;
    font-size: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: bold;
  }

  .title-area {
    padding-top: 0;
    padding-bottom: 0;

    h1 {
      font-size: 44px;
    }
    .social-icons {
      margin-top: 9px;
    }
  }
  .navbar .nav > li.dropdown > a:after {
    display: none;
  }
  body.boxed > .boxed-container {
    width: 744px;
  }

  .jumbotron {
    [class*="span"] {
      width: auto;
      float: none;
      clear: both;
      margin-left: 0;
    }
    .header-padding {
      margin-bottom: 20px;
    }
    .social-icons {
      text-align: center;
    }
    .opening-time {
      margin-left: 20%;
      margin-right: 20%;
    }
  }
  .navbar .nav > li > a {
    padding: 8px 0;
  }

  .navbar-fixed-top {
    position: static;
    z-index: 1;
    margin-bottom: 0;

    .container {
      margin-left: 0;
      margin-right: 0;
      width: auto;
    }
  }
  .jumbotron {
    padding-top: 30px;
  }
}


@media (max-width: 767px) {
  // pictures
  .picture {
    max-width: 50%;
  }
  .gallery-widget {
    .picture {
      float: left;
      width: 31%;
      margin-left: 1%;
      margin-right: 1%;
    }
  }

  // rows
  div[class*="span"] {
    margin-bottom: 33px;
  }

  //footer
  %to-the-edge {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .foot,
  footer,
  .tap-to-call {
    @extend %to-the-edge;
  }
  footer .pull-right {
    float: none;
  }

  // title area
  .title-area,
  .breadcrumbs-container {
    @extend %to-the-edge;
  }
  .title-area {
    h1 {
      font-size: 40px;
      text-align: center;
      display: block;
    }
    .social-icons {
      text-align: center;
      margin-top: 0;
    }
  }

  .breadcrumbs-container [class*="span"] {
    margin-bottom: 0;
  }

  //forms
  .input-large,
  .input-xlarge,
  .input-xxlarge,
  input[class*="span"],
  select[class*="span"],
  textarea[class*="span"],
  .uneditable-input {
    @include box-sizing(content-box);
    min-height: 20px;
  }

  .widget-single-service {
    margin-bottom: 30px;
  }

  body.boxed {
    padding-left: 10px;
    padding-right: 10px;

    > .boxed-container {
      width: auto;
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  .navbar {
    .header-padding {
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  .jumbotron {
    @extend %to-the-edge;

    .jumbotron-title {
      font-size: 40px;
    }
    .bottom-widgets {
      margin-top: 0;
    }
  }
  .team-members-list {
    li {
      float: none;
      clear: both;
      margin: 0 0 10px;
      width: auto;

      &:after {
        display: table;
        clear: both;
        content: "";
        line-height: 0;
      }
    }
  }
}

@media (max-width: 480px) {
  // pictures
  .picture {
    max-width: 100%;
  }
  .jumbotron {
    .opening-time {
      margin-left: 0;
      margin-right: 0;
    }
    .bottom-widgets {
      .widget {
        width: 100%;
        float: none;

        &:last-of-type .widget-inner {
          border-bottom: none;
          margin-bottom: 0;
        }
      }
      .widget-inner {
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(0,0,0,0.15);
        padding-left: 15px;
        padding-right: 15px;

        &:after {
          display: none;
        }
      }
    }
  }
}

@media (max-width: 600px) {
  #wpadminbar {
    margin-top: -46px;
  }
}

@media (max-width: 782px) {

}