
body{
    min-height: 100%;
    background: var(--blue);
}

header{
    background: white;
    color: #333;
    height: 200px;
    display: flex;
    justify-content: center;
}

.large header .wrapper {
    display: flex;
    justify-content: center;
    align-content: space-around;
    width: 1024px;
}

.large .navigation, .Home.mb {
    display: none;
}

.large nav.dt a {
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 3.5%;
    color: var(--grey);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins';
    display: block;
}

.small nav.dt,
.medium nav.dt {
    display:none;
}

.large nav.dt{
    display:flex;
}

.small .mb,
.medium .mb{
    background: url(../assets/Deployed_Logo.svg) center no-repeat;
    background-size: contain;
    display: block;
    height: 120px;
    width: 160px;
    text-indent: -5000px;
    margin: auto;
}

.large nav.dt a.Home{
    background: url(../assets/Deployed_Logo.svg) center no-repeat;
    background-size: contain;
    display: block;
    height: 120px;
    width: 160px;
    text-indent: -5000px;
    /* margin: auto; */
    border-bottom: none;
}

nav.dt {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
}

.large nav.dt a:not(.Home) {
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.large [data-active] {
    color: #777!important;
    border-bottom: 2px solid #333;
}

.small [data-active],
.medium [data-active] {
    color: #101010!important;
    border-bottom: 2px solid #bbb;
}



.small .navigation__nav,
.medium .navigation__nav{
    display: none;
}

.hero-section {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.1rem;
    background: white;
    background-size: 100%;
}

.hero-section h1{color: var(--blue);}

.hero-section h1 span {
    opacity: 0;
    right:20px;
    margin-right: 30px;
}

.featured-info h2 {
    line-height: 1.4;
    text-shadow: 0 2px 2px black;
    font-size: 2.4rem;
    padding: 0 30px;
    max-width: 880px;
}

.hero-section h1 span:last-of-type{margin-right: 0;}

@keyframes fadein { 
	100% { opacity: 1; right:-20px}
}
.hero-section h1 span{
	animation: fadein 1s ease-out forwards;
}
.hero-section h1 span:nth-of-type(1){
	animation-delay: .5s;
}
.hero-section h1 span:nth-of-type(2){
	animation-delay: 1.5s;
}
.hero-section h1 span:nth-of-type(3){
	animation-delay: 2.5s;
}

section.featured {
    height: 120vh;
    display: flex;
    align-items: center;
    background-color: #333;
    justify-content: center;
    background-size: cover!important;
}

.case-study-section {
    background: #4a73d4;
}

img.cloud {
    top: 4px;
    width: 100%;
}

.svcs-cloud {
    background: white;
    padding-top: 60px;
}

.contact-cloud .cloud {
    top:-1px;
}

.testimonial-cloud {
    background: #4a73d4;
}

.testimonial-container {
    padding-bottom: 20vw;
    background: #fff;
    color: #333;
}

.slide .row {
    display: flex;
    align-items: center;
}

.slide p.col-11 {
    font-size: 1.2rem;
}

.Home-page .casestudies-grid li {
    width: 100%;
    padding: 0 5rem;
}

.Home-page .casestudies-grid li a{
    width: 100%;
    display:block;
    color:#fff
}  

.Home-page .casestudies-grid li a img{
    width: 100%;
    display:block;
    border-radius: 10px;
} 

.Home-page .casestudies-grid li a p{
    font-size:1rem
}

ul.categories {
    display: flex;
    width: calc(100% - 10rem);
    margin: 50px auto 0;
}

.categories li {
    padding: 0 30px 0px 0;
    width: 33.3%;
}

.categories .icon {
    height: 40px;
    display: block;
    margin-bottom: 30px;
}

#next {
    display: inline-block;
    background: url(/assets/next-arrow.svg) no-repeat;
    text-indent: -5000px;
    width: 32px;
    background-size: contain;
}

#previous {
    display: inline-block;
    background: url(/assets/prev-arrow.svg) no-repeat;
    text-indent: -5000px;
    width: 32px;
    background-size: contain;
}

.what-we-do h3 {
    text-align: center;
    margin: 20px 0;
}

.categories h3 {
    text-align: left;
}

.view-case-study {
    background: white;
    color: #5c8cff!important;
    display: inline-block!important;
    width: 160px!important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 50px;
}

.arrows button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
}

.slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin: 60px auto 0;
  padding-bottom: 70px;
  display: block;
}

.slide {
  width: 100%;
  height: 500px;
  position: absolute;
  transition: 0.6s ease;
  transform: translate(-100%, 0);
  padding: 0 60px;
}
.slide.active {
  transform: translate(0, 0);
}
.slide.active ~ .slide {
  transform: translate(100%, 0);
}

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

.case-study figure img {
    width: 100%;
}

.case-study figcaption {
    margin-top: 5px;
}

section.featured:before {
    content: '';
    display: block;
    height: 16.6vw;
    background: url(../assets/cloud-top-positive.svg) top center no-repeat;
    background-size: 100%;
    width: 100%;
    position: absolute;
    top: -1px;
}

section.featured:after {
    content: '';
    display: block;
    height: 16.6vw;
    background: url(../assets/cloud-bottom.svg) bottom -2px center no-repeat;
    background-size: 100%;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.casestudy-container {
    display: flex;
    padding: 20px;
}

.casestudy-menu {
    width: 25%;
}

.case-study {
    margin-bottom: 20vw;
    width: 78%;
}

.small .casestudy-menu {
    display: none;
}

.small .case-study {
    width: 100%;
}
.feat-proj {
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.proj-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
}

ul.proj-nav a {
    color: #fff;
    line-height: 2;
}

.prev-next span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #333;
}

.next-proj {
    float: right;
    color: white;
    font-size: 1.2rem;
    text-align: right;
    background: url(/assets/next-arrow.svg) right no-repeat;
    padding-right: 50px;
}

.prev-proj {
    float: left;
    color: white;
    font-size: 1.2rem;
    background: url(/assets/prev-arrow.svg) left no-repeat;
    padding-left: 50px;

}

.small .prev-next {
    height: 120px;
    display: flex;
}

.small .prev-next a {
    float: none;
    height: 60px;
    display: block;
    margin: auto;
}

html {
  scroll-behavior: smooth;
}

.featured-info a {
    display: block;
    color: #fff;
    background: var(--blue);
    width: 50%;
    margin: auto;
    height: 34px;
    line-height: 34px;
    border-radius: 40px;
    font-family:'Poppins', sans-serif;
    letter-spacing:.08rem;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    transition: all .3s ease;
}

.featured-info a:hover{
    font-size: 1.05rem;
    text-shadow: 0 2px 3px rgba(0,0,0,.4);

}

.panel {
    min-height: 20vw;
    background: url(../assets/cloud-top-negative.svg) top -2px center no-repeat;
    background-size: 100%;
    display: flex;
}

.panel .wrapper {
    top: 0px;
    margin-top: 50px;
}

.content .wrapper {
    padding: 0 20px 20vw;
}

.testimonial-container {
    padding-bottom: 20px;
}

.testimonials blockquote {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.testimonials {
    max-width: 670px;
    margin: 0 auto 30px;
}


/* Contact form */

form {
    min-width: 320px;
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

form label {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

form input, textarea {
    height: 44px;
    border: none;
    font-size: 1.2rem;
    padding: 5px 10px;
}

form textarea {
    height: 120px;
    font-size: 1.2rem;
    padding: 5px 10px;
    font-family: inherit;
    border: none;
}

button[type=submit] {
    height: 44px;
    font-size: 1.1rem;
    margin-top: 10px;
    font-family: 'Poppins';
    letter-spacing: 0.1rem;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50px;
}

.Contact-page {
    background: var(--ltgrey);
    color: var(--blue);
}

#successMessage, #errorMessage {
    text-align: center;
    font-size: 2rem;
    height: 400px;
    align-items: center;
    display: flex;
    justify-content: center;

}

#successMessage p,
#errorMessage p{
    background:white;
    padding: 8px 16px;
    border-radius:80px
}

#errorMessage p{
    color: red
}

/* Services */

.intro {
    margin: auto;
    line-height: 1.6;
    font-size: 1.2rem;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.medium .intro .col-6,
.large .intro .col-6 {
    width: 48%;
}

.Services-page .intro {
    max-width: 660px;
}

.small .intro {
    max-width: 660px;
    margin: auto;
    line-height: 1.2;
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 0px 16px;
    display: block;
}

.services li {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-header{
    max-width: 660px;
    margin: 0 auto 20px;
    border-bottom:1px solid white;
    padding-bottom:10px;
}

.small .service-header{
    max-width: 660px;
    margin: 0 auto 20px;
    border-bottom:1px solid white;
    padding-bottom:10px;
}

.services {
    line-height: 1;
    max-width: 660px;
    column-count: 2;
    margin: 0 auto 60px;
}

.small .services {
    line-height: 1;
    max-width: 660px;
    column-count:1;
    margin: 0 auto 60px;
}

/* Footer */

footer {
    background: #333;
    height: 300px;
    width: 100%;
    position: absolute;
}

.Home-page .top-cloud {
    background-color: white;
}

.top-cloud img {
    width: 100%;
    bottom: -4px;
}

footer a {
    color: white;
    font-family: 'Poppins';
    font-size: 1.3rem;
    line-height: 2;
    text-decoration: none;
    transition: all .3s ease;
}

footer ul {
    column-count: 2;
    width: 390px;
}

footer a:hover {
    color: #cac9c9;
}

.small .footer-logo img {
    width: 70%;
    display: block;
    margin: 0px auto 90px;
}

.large .footer-logo img {
    width: 50%;
    display: block;
    margin: 0px auto 90px;
}

.credits {
    bottom: 8px;
    position: absolute;
    width: 100%;
    opacity: .5;
    color:white;
}


@media only screen and (max-width: 769px) {
    /* For mobile phones: */
    [class*="col-"] {
        width: 100%;
    }

    .categories li {
        padding: 0 30px 0px 0;
        width: 100%;
    }

    header{height: 200px;}

    .hero-section h1{
        line-height: 1.7;
        width: 60%;
    }

    ul.categories {
        display: block;
        width: 90%;
        margin: 30px auto 0;
    }

    .testimonials {
        width: 100%;
        padding: 5%;
    }
    footer{height: auto;}
    footer .offset-2{left:5%}

    .col-6.offset-2.footer-logo {
        left: 0;
        top: 40px;
    }

    .Home-page .casestudies-grid li {
        padding: 5%;
    }

    li.slide .row {
        /* display: block; */
        flex-direction: column-reverse;
    }

    ul.casestudies-grid.slider {
        height: 707px;
    }
}