html{
    scroll-behavior: smooth;
}
#logo{
    position: relative;
    top: 25px;
}

.carousel-inner span{
    text-shadow: 0px 2px 14.4px rgba(76, 30, 78, 0.5);
    background-color: rgba(132,40,140,0.8);
    display: inline-block;
    margin-bottom: 10px;
    padding: 0 10px;
}
#carousel-tour{
    margin: 0 -30px -1px;
}
#down{
    z-index: 1036;
    top: auto;
    bottom: 20px;
}
/* CLIENTS LIST */
#carousel-clients .item{
    line-height: 0;
}
#carousel-clients .item img{
    width: 20%;
    display: inline-block;
}
@media only screen and (max-width: 640px) {
    #carousel-clients .item img{
        width: 33.3%;
    }
}
@media only screen and (max-width: 550px) {
    #links{
        display: none;
    }

}
@media only screen and (max-width: 480px) {
    #carousel-clients .item img{
        width: 50%;
    }
}

/* WORK SECTION */

/*
https://css-tricks.com/aspect-ratios-grid-items
*/
.grid {
  background-color: #333;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: start;
  box-shadow: 0px 10px 16px 0px rgba(0,0,0,0.15);
}
@media only screen and (max-width: 1190px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }   
}
@media only screen and (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }   
}

.grid > * {
  width: 100%;
}
.grid .square::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0;
  padding-bottom: calc(100% / (434/457));
}
.grid .square{
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}
.inner{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    display: flex;
}
.description{
    z-index: 10;
    color: #fff;
    text-align: center;
    position: absolute;
    padding: 0 5%;
    align-self: center;
}

@media only screen and (max-width: 740px) {
    .description{
        line-height: 16px;
    }  
}

.bg{
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: #84288c;
}

.inner h3{
    display: inline;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 38px;
    font-style: italic;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    line-height: 48px;
    text-shadow: 0px 2px 14.4px rgba(76, 30, 78, 0.5);
}
.inner h3 span{
    display: inline-block;
    background-color: rgba(132,40,140,0.8);
    padding: 0 10px;
    margin-top: 0;
}
.inner h3 span:first-child{
    margin-bottom: 5px;
}
@media only screen and (max-width: 740px) {
    .inner h3{
        font-size: 26px;
        line-height: 36px;
    }  
}
@media only screen and (max-width: 520px) {
    .inner h3{
        font-size: 38px;
        line-height: 48px;
    }  
}
.inner span, .inner a{
    display: inline-block;
    margin-top: 2em;
}

@media only screen and (max-width: 740px) {
    .inner span, .inner a{
        margin-top: 0;
    }  
}

.inner a:link,
.inner a:visited,
.inner a:hover,
a.highlight{
    color: #fff;
  text-decoration: none;
  background-image: linear-gradient(to right, rgba(255,255,255,0) 0%,#fff 100%);
  background-position: 0 24px;
  background-repeat: repeat-x;
  padding-bottom: 5px;
}
/* Services List */
.glue-cell{
    margin-bottom: 2em;
}
.icon-list{
    width: 33.3%;
    float: left;
    display: flex;
    height: 122px;
    justify-content: center;
    flex-direction: column;
}
@media only screen and (max-width: 992px) {
    .icon-list{
        width: 50%;
        height: auto;
    }
}
@media only screen and (max-width: 640px) {
    .icon-list{
        width: 100%;
        height: auto;
    }
}
/* Square */ 
.inner .description{
    margin-top: 40%;
    transition: all 0.3s ease-out;
}
.square .inner .description span{
    opacity: 0;
    transition-delay: 0.2s;
    transition: all 0.3s ease-out;
}
.square .inner .bg{
    opacity: 0;   
    transition: all 0.4s ease-out;
    transition-delay: 0.3s;
}
/* Square Hover State */ 
.square:hover .inner .bg{
    opacity: 0.8;
}
.square:hover .inner .description{
    margin-top: 0;
}
.square:hover .inner .description span{
    opacity: 1;
}

.square:nth-child(1){background: url(../img/squares/dymista.jpg); background-size: cover;}
.square:nth-child(2){background: url(../img/squares/optune.jpg); background-size: cover;}
.square:nth-child(3){background: url(../img/squares/schweiger.jpg); background-size: cover;}
.square:nth-child(4){background: url(../img/squares/nets.jpg); background-size: cover;}
.square:nth-child(5){background: url(../img/squares/euflexxa.jpg); background-size: cover;}
.square:nth-child(6){background: url(../img/squares/flower.jpg); background-size: cover;}
.square:nth-child(7){background: url(../img/squares/aerospan.jpg); background-size: cover;}
.square:nth-child(8){background: url(../img/squares/midnite.jpg); background-size: cover;}
.square:nth-child(9){background: url(../img/squares/procto.jpg); background-size: cover;}

/* Clients */
#clients{
    margin: 2em 1em;
}
#clients h2{
    color: #84288c;
    text-transform: uppercase;
    font-size: 38px;
    line-height: 44px;
    font-family: "DIN Next W06 Bold Italic";
}
.infinite-window {
    overflow: hidden;
    height: 140px;
  }
  
  .infinite-slider {
    height: 140px;
    width: 11700px;
    animation: slide 30s linear infinite;
  }
  .infinite-slider img{
    float:left;
  }
  
  @keyframes slide{
    0%{
      transform: translate3d(0, 0, 0);
    }
    100%{
      transform: translate3d(-3900px, 0, 0);
    }
  }

/* CTA */
.cta{
    color:#fff;
    background-color: #84288c;
    padding: 5em 0;
}
.cta h2{
    text-transform: uppercase;
    font-size: 38px;
    line-height: 44px;
    font-family: "DIN Next W06 Bold Italic";
    margin: 0;
}
.cta p{
    font-size: 32px;
    line-height: 36px;
    font-family: "DIN Next W06 Bold Italic";
    margin: 0;
}
}
.cta-message{
    padding: 4em 2em;
}

/* Footer */
#primary-footer > div{
    padding: 40px 0;
}
#footer-link{
    height: 40px;
    display: flex;
    align-items: center;
}
.social-media ul{
    margin: 0;
    padding: 0;
}
.social-media li{
    display:inline-block;
    margin: 0.2em;
}
.social-media a{
    display: inline-block;
    width: 35px;
    height: 35px;
}


#ent_award{
    width: 400px;
    bottom: 40px;
}
#ent_award a{
    width: 136px;
    float: right;
    margin-right: 20px;
}
#ent_award a img{
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 550px) {
    #ent_award{
        width: 100%;
        display: flex;
        justify-content: center;
        right: 0;
    }
    #ent_award img{
        width: 136px;
        float: none;
    }
    #ent_award a{
        width: 136px;
        float: none;
        margin: 0 10px;
    }
}


/* EXPOSED MENU */
@media only screen and (min-width: 1190px) {
    #main-header{
        pointer-events: none;
    }
  .hamburger{
    display: none;
  }
  #menu.collapse{
    display: block;
    background: transparent;
  }
  #overlay{
    pointer-events: none;
    display: none;
  }
  #menu{
      height: 50px;
  }
  #menu ul {
    display: block;
    font-size: 18px;
    top: 195px;
    right: 40px;
    font-family: "DIN Next W06 Regular";
  }
  #menu a:hover, #menu a:focus{
      padding-left: 0;
  }
  #menu ul li {
    display: inline-block;
    margin-left: 45px;
  }
  #desktop-overlay{
    pointer-events: none;
    background-color: rgba(0,0,0,0.8);
    height: 50px;
  }
}
