/*!
 * Start Bootstrap - Stylish Portfolio (http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

/* Global Styles */

html,
body {
    width: 100%;
    height: 100%;
}
a {cursor: pointer;}
body {
    font-family: "Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
    background-color: #0956a5;
}

section,aside,footer {background-color: #fff;}
.bg-primary {background-color: #0956a5;}
.bg-primary a {color: #fff; text-decoration: underline; cursor: pointer;}
.text-primary {color: #0956a5;}

.text-vertical-center {
    display: table-cell;
    text-align: center;
    /*vertical-align: middle;*/
    padding-top: 50px;
}

.hide-text {display: none;}

h1 {
    margin: 0 auto;
    padding: 0;
    font-size: 4.5em;
    font-weight: 700;
    color: #fff;
    text-indent: 0;
    width: 300px;
    height: 92px;       
    background: url(../img/AJP_logo_300.png) no-repeat center center scroll;
}

h2 {margin-top: 10px; padding-top: 0;}
h4 {font-size: 20px; font-weight: 100;}

a.nohref {text-decoration: none !important; color: #333;}

/* Carousel */

.header {
    display: table;
    position: relative;
    height: 100%;
    width: 100%;
}

.logo { display: block;}
.logo h1, .logo a { text-align: center; margin: 0 auto; }
.logo h1 {}
.logo a {margin-top: 10px; display: table;}

/*
  Bootstrap Carousel Fade Transition (for Bootstrap 3.3.x)
  CSS from:       http://codepen.io/transportedman/pen/NPWRGq
  and:            http://stackoverflow.com/questions/18548731/bootstrap-3-carousel-fading-to-new-slide-instead-of-sliding-to-new-slide
  Inspired from:  http://codepen.io/Rowno/pen/Afykb 
*/
.carousel-fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
  opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

.carousel-fade .carousel-control {
  z-index: 2;
}

/*
  WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
  Need to override the 3.3 new styles for modern browsers & apply opacity
*/
@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
      opacity: 1;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
}

.item:nth-child(1) {
    background: url(../img/bg_420.jpg) no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.item:nth-child(2) {
    background: url(../img/bg4_420.jpg) no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.item:nth-child(3) {
    background: url(../img/bg3_420.jpg) no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.item:nth-child(4) {
    background: url(../img/bg2_420.jpg) no-repeat right center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#preload-01 {background: url(../img/bg_420.jpg);}
    #preload-02 {background: url(../img/bg2_420.jpg);}
    #preload-03 {background: url(../img/bg3_420.jpg);}
    #preload-04 {background: url(../img/bg4_420.jpg);}

.carousel {
    z-index: -99;
}
.carousel .item {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Custom Button Styles */

.btn-dark {
    border-radius: 0;
    color: #fff;
    background-color: rgba(0,0,0,0.4);
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    color: #fff;
    background-color: rgba(0,0,0,0.7);
}

.btn-light {
    border-radius: 0;
    color: #333;
    background-color: rgb(255,255,255);
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: #333;
    background-color: rgba(255,255,255,0.8);
}

/* Custom Horizontal Rule */

hr.small { max-width: 180px; margin-top: 0;margin-bottom: 30px;}

.about, .services, .call-to-action {
    padding: 30px 0;
}

.service-item {
    margin-bottom: 30px;
    font-size: 16px; font-weight: 100;
}

/* Callout */

.callout {
    display: table;
    width: 100%;
    height: 100px;
    color: #fff;
    background: url(../img/commercialproperty.jpg) no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

/* Footer */

footer {
    padding: 60px 0;
    border-bottom: 20px #0956a5 solid;
}


#to-top {
  display: none;
  position: fixed;
  bottom: 5px;
  right: 5px;
}

/* Desktop */

@media only screen and (min-width: 420px) {

    h1 {
        background: url(../img/AJP_logo.png) no-repeat center center scroll;
        width: 406px;
        height: 124px;
    }
    
    .logo a {margin-top: 20px;}    

    .bg-primary h3 { font-weight: 100; font-size: 28px;}

    #preload-01 {background: url(../img/bg.jpg);}
    #preload-02 {background: url(../img/bg2.jpg);}
    #preload-03 {background: url(../img/bg3.jpg);}
    #preload-04 {background: url(../img/bg4.jpg);}

    .callout {
        display: table;
        width: 100%;
        height: 160px;
        color: #fff;
        background: url(../img/commercialproperty.jpg) no-repeat center center scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        background-size: cover;
        -o-background-size: cover;
    }

    .item:nth-child(1) {
        background: url(../img/bg.jpg) no-repeat center center scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;        
    }
    .item:nth-child(2) {
        background: url(../img/bg2.jpg) no-repeat center center scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;   
    }
    .item:nth-child(3) {
        background: url(../img/bg4.jpg) no-repeat center center scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;   
    }  
    .item:nth-child(4) {
        background: url(../img/bg3.jpg) no-repeat center center scroll;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;   
    }  

}

