/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* GLOBAL TEXT STYLES */

html,
body {
    height: 100%;
    min-width: 320px;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 23px;
    color: #161616;
    font-size: 90%;
}

h1 {
    font-weight: 300;
    font-size: 40px;
    line-height: 40px;
    padding-top: 75px;
    margin: 0 0 43px 0;
    max-width: 75%;
}

h2 {
    width: 100%;
    float: left;
    clear: both;
    font-weight: 300;
    font-size: 25px;
    line-height: 26px;
    text-transform: uppercase;
    margin: 50px 0 20px 0;
    padding-top: 55px;
    border-top: 1px solid #dedede;
}

h3 {
    font-weight: 700;
}

p {
    margin-bottom: 24px;
}

ul {
    padding: 0;
    margin: 0 0 10px 0;
}

li {
    position: relative;
    margin-bottom: 14px;
    list-style-type: none;
    padding: 0 0 0 20px;
    margin: 0;
}

li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2c73a1;
}

a,
a:link,
a:visited,
a:hover,
a:focus {
    color: #2c73a1;
    text-decoration: none;
    -webkit-transition: color 0.5s;
    transition: color 0.5s;
}

a:hover,
a:focus {
    color: #203747;
    text-decoration: none;
}


a:after {
    content: " →";
    color: #2c73a1;
    display: inline;
    margin: 0 0 0 10px;
}


.FullClick {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.FullClick:after {
    display: none;
}


/* HERO AREA */

.HeroContent {
    position: fixed;
    left: 0;
    top: 0;
    width: 30vW;
    height: 100vH;
    background-image: url(../images/loading.gif);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: none;
}

.HeroImage {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.HeroContent .Gradient {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 70%;
    background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%, rgba(255,255,255,1) 100%);
    z-index: 1;
}

.HeroFooter {
	position: fixed;
	left: 0;
	bottom: 15px;
	width: 50vW;
	z-index: 2;	
    display: none;
}

.HeroFooter  ul {
	margin: 0;
	padding: 3px 1px 5px 20px;
	width: auto;
	background: rgba(255,255,255,0.7);
	
}

.HeroFooter  ul li {
	display: inline-block;
	margin: 0 20px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 13px;
	text-transform: uppercase;
	font-weight: 400;
	color: #333;
}

.HeroFooter  ul li:before {
	display: none;
}


/* MAIN CONTENT AREA */

.ScrollingContent {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1;
}


/* STICKY HEADER */

.Navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 99;
    background-image: linear-gradient(to top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 100%);
    padding-bottom: 50px;
}

.Navigation a:after,
.Navigation ul li:before {
    display: none;
}

.Logo {
    width: 60px;
    height: 60px;
    margin: 25px 0 0 30px;
    background: url(../images/dma-logo-60x60.jpg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    float: left;
}

.Navigation ul {
    float: right;
    margin: 42px 25px 0 0;
    text-transform: lowercase;
    text-align: right;
}

.Navigation ul li {
    display: inline-block !important;
    padding: 0;
    margin: 0 5px 0 0;
}

.Navigation ul li a:link,
.Navigation ul li a:visited,
.Navigation ul li a:hover,
.Navigation ul li a:focus {
    font-size: 12px;
    line-height: 12px;
    margin: 0;
    padding: 0;
}

.Content {
    margin: 80px 30px 30px 30px;
    min-height: 500px;
}


/* STAND FIRSTS */

.StandFirst {
	font-size: 19px;
	line-height: 25px;
}

.SmallHero {
    width: 30%;
    float: right;
    clear: right;
    margin: 0 0 30px 5%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}


/* TAXONOMY ICON BLOCKS */

.ShortList {
    width: calc(100% + 15px);
    margin: 0 0 0 -15px;
    float: left;
    clear: both;
}

.IconLink {
    display: inline-block;
    position: relative;
    width: 102px;
    min-height: 170px;
    overflow: hidden;
    margin: 9px;
    padding: 0;
    text-align: center;
    font-size: 11px;
    line-height: 11px;
}

.IconLink h3 {
    font-size: 12px;
    line-height: 13px;
    margin: 15px 0 0 0;
    font-weight: 700;
    color: #2c73a1;
}

.IconLink img {
    width: 100px;
    height: 100px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin: 0 0 12px 0;
    float: left;
    border: 1px solid rgba(0,0,0,0.25);
}

.IconLink:hover img,
.IconLink:focus img {
    width: 100px;
    height: 100px;
    margin: 0 0 12px 0;
    float: left;
}

.IconLink p {
	display: none;
}

.LongTitle {
	display: none;
}


/* Projects and Services landing pages */

.FullList .ShortTitle {
	display: none;
}

.FullList .LongTitle {
	display: block;
}

.FullList .IconLink {
    text-align: left;
    width: 100%;
    font-weight: 300;
    font-size: 19px;
    line-height: 27px;
    margin: 30px 0 0 0;
}

.FullList .IconLink img {
    width: 100px;
    height: 100px;
    float: left;
    margin: 0 30px 0 0;
}

.FullList .IconLink h3 {
    position: absolute;
    left: 120px;
    top: 53px;
    height: auto;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
    color: #2c73a1;
    width: calc( 100% - 120px);
    margin: 0 0 3px 0;
    padding: 0;
}

.FullList  .IconLink h3:after {
    content: " →";
    color: #2c73a1;
    display: inline;
}




/* CASE STUDIES GRID */

.CaseStudiesHeading {
	padding-top: 0;
	border-top: none;
}

.CaseStudiesGrid {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.CaseStudy {
    position: relative;
    padding-bottom: 30px;
    display: inline-block;
    float: left;
    width: 100%;
}

.CaseStudy img {
	width: 30%;
    height: auto;
    float: left;
    margin: 0 5% 15px 0;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.CaseStudySummary {
    width: 65%;
    float: left;
}

.CaseStudy h3 {
	font-size: 22px;
	line-height: 22px;
	font-weight: 300;
	color: #161616;
	padding: 0;
	margin: 0 0 5px 0;
}

.CaseStudy p {
	font-size: 13px;
	line-height: 15px;
	margin: 0 0 5px 0;
}

div.CaseStudyProjectsList {
	font-size: 14px;
	line-height: 16px;
	color: #203747;
	font-weight: 400;
	margin: 0 0 5px 0;
}

.CaseStudyServicesList, .CaseStudyServicesList div {
	font-size: 11px;
	line-height: 13px;
	color: #2c73a1;
	margin: 0;
	display: inline-block;
	width: auto;
	padding: 0;
	font-weight: 400;
}


.CaseStudyProjectsList h2,
.CaseStudyServicesList h2 {
	display: none;
}


/* CONTACT FORM */

#Contact {
    margin: 50px 30px 30px 30px;
    padding-top: 55px;
    border-top: 1px solid #dedede;
    width: calc(66% - 60px);
    float: left;
    clear: both;
}

.ContactDetails {
    width: calc(100% - 210px);
    min-width: 175px;
    float: left;
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 20px;
}

.ContactDetails h2 {
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
}

.ContactForm {
    width: 210px;
    float: left;
}

input, textarea, select, button, .Button {
    font-family: 'Lato', sans-serif;
    width: 190px;
    margin: 0 0 9px 0 !important;
    background-color: #f8f8f8;
    border: 1px solid #2e4453;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 13px;
    padding: 10px;
}

.Button {
    width: 210px;
    background-color: #2c73a1;
    border-color: #2c73a1;
    text-align: center;
    text-transform: uppercase;
    color: white;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

.Button:link,
.Button:visited,
.Button:hover,
.Button:focus {
    color: white;
}

.Button:after {
    display: none;
}

/* MODAL WINDOWS */

/* jquery.modal styles, modified */

.blocker {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    overflow: auto;
    z-index: 2001;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.5);
    text-align: center;
}

.blocker:before{
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}

.blocker.behind {
    background-color: transparent;
}

.modal {
    display: none;
    vertical-align: middle;
    position: relative;
    z-index: 2002;
    max-width: 500px;
    box-sizing: border-box;
    background-color: #f0f0f0;
    width: 98%;
    max-width: 410px;
    padding: 0;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    text-align: left;
}

.modal h2 {
    width: calc(100% - 50px);
    margin: 0;
    border: none;
    background-color: #2c73a1;
    color: #fff;
    font-size: 28px;
    line-height: 28px;
    font-weight: 300;
    text-transform: none;
    padding: 15px 25px 15px 25px;
}

.modal a.close-modal {
    position: absolute;
    top: 15px;
    right: 10px;
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
    opacity: 1;
    text-indent: -9999px;
    background: url(../images/close-icon.png);
    background-repeat: no-repeat;
}

.modal-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 101px;
    height: 101px;
    background-color: rgba(255,255,255,0.8);
    background-image: url(../images/loading.gif);
    background-repeat: no-repeat;
    background-position: center center;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.modal-spinner div {
    display: none;
}

.modal .Content {
    margin: 15px 25px 25px 25px;
    min-height: 0;
}

.modal a:after,
.modal li:before {
    display: none;
} 

/* Case Study/Additional Info modal */

.BannerImage {
    width: 100%;
    height: auto;
}

.CaseInfo {
    width: 100%;
    float: left;
    clear: none;
}

.Gallery {
    float: left;
    clear: none;
    width: 100%;
    text-align: left;
    margin: 0 0 25px -5px;
}

.Gallery img {
    width: 100px;
    height: auto;
    display: inline-block;
    -moz-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.3);
    -webkit-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.3);
    box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.3);
}

.VideoPlayer {
    position: relative;
    float: left;
    clear: none;
    width: 100%;
    height: 0;
    padding-top: 52.6%;
    margin: -20px 0 45px 0;
    background: white;
    -webkit-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.3);
    box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.3);
}

.VideoPlayer iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.ProjectType {
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    color: #2c73a1;
    margin-bottom: 20px;
}

.ProvisionTitle {
    float: left;
    clear: left;
    width: 140px;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 3px;
}

.ProvisionList {
    float: left;
    clear: left;
    font-size: 13px;
    line-height: 17px;
    margin-bottom: 20px;
}


/* RESPONSIVE ADJUSTMENTS */



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

    .Logo {
        width: 75px;
        height: 75px;
        background: url(../images/dma-logo-75x75.jpg);
    }

    .Navigation ul {
        margin: 50px 20px 0 0;
    }

    .Navigation ul li {
        margin: 0 20px 0 0;
    }

    .Navigation ul li a:link,
    .Navigation ul li a:visited,
    .Navigation ul li a:hover,
    .Navigation ul li a:focus {
        font-size: 14px;
        line-height: 14px;
    }

    .CaseStudy {
        width: 48%;
        max-width: 200px;
    }

    .CaseStudy img {
        width: 100%;
        float: left;
        margin-right: 0;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    .CaseStudySummary {
        width: 100%;
    }

    .CaseStudiesGrid::after {
        content: "";
        flex: 0 0 48%;
    }

    .CaseStudy h3 {
        margin: 0 0 13px 0;
    }

    .CaseStudy p {
        margin: 0 0 10px 0;
    }

    div.CaseStudyProjectsList {
         margin: 0 0 10px 0;
    }
}



@media only screen and (min-width: 480px) {
    
    .FullList .IconLink h3 {
        left: 180px;
        top: 78px;
        height: auto;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        font-size: 24px;
        line-height: 26px;
        width: calc( 100% - 180px);
    }

    .FullList .IconLink img {
        width: 150px;
        height: 150px;
        margin: 0 30px 0 0;
    }

    .CaseStudy {
        width: 30%;
    }

    .CaseStudiesGrid::after {
    flex: 0 0 30%;
    }

    .modal .Content {
        margin: 35px 45px 45px 45px;
    }

    .CaseInfo {
        margin-bottom: 21px;
    }


    .Gallery {
        width: 330px;
        margin-bottom: 45px;
    }

    .Gallery img {
        margin: 5px 5px 0 5px;
    }

    .VideoPlayer {
        margin: -40px 0 45px 0;
    }
    
    .modal {
        width: 93.75%;
    }

    .modal h2 {
        width: calc(100% - 90px);
        padding: 21px 45px 21px 45px;
    }

    .modal a.close-modal {
        top: 20px;
        right: 20px;
    }
}

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

    h1 {
        font-weight: 100;
        font-size: 64px;
        line-height: 64px;
        padding-top: 195px;
    }

    .HeroContent {
        display: block;
    }

    .SmallHero {
        display: none;
    }

    .ScrollingContent {
        position: absolute;
        left: 30vW;
        top: 0;
        width: calc( 70vW - 30px );
    }

    .Navigation {
        left: 30vW;
        top: 0;
        width: calc( 70vW - 30px );   
        padding-bottom: 100px;
        background-image: linear-gradient(to top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,1) 100%);
    }

    .Navigation ul {
        margin: 55px 20px 0 0;
    }

    .Logo {
        width: 100px;
        height: 100px;
        background: url(../images/dma-logo-100x100.jpg);
    }

    .CaseStudy {
        width: 45%;
    }
    
    .CaseStudiesGrid::after {
        flex: 0 0 45%;
    }

    .modal {
        max-width: 1075px;
    }

    .modal h2 {
        font-size: 40px;
        line-height: 40px;
    }

    .modal a.close-modal {
        top: 25px;
    }

    .CaseInfo {
        width: calc(100% - 255px);
        padding-right: 40px;
    }

    .Gallery {
        width: 220px;
        margin: 0px -5px 45px 0;
    }


}

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

    .Navigation {
        padding-bottom: 100px;
    }

    .CaseStudy {
        width: 30%;
    }

    .CaseStudiesGrid::after {
        flex: 0 0 30%;
    }    
}

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

    body {
        font-size: 17px;
        line-height: 25px;
    }

    .CaseInfo {
        width: calc(100% - 365px);
        padding-right: 40px;
    }

    .Gallery {
        width: 330px;
    }

    .VideoPlayer {
        padding: 0;
        width: 320px;
        height: 180px;
        margin: -40px 0 45px 5px;
    }

    .VideoPlayer iframe {
        width: 320px;
        height: 180px;
    }


}


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

    h1 {
        font-size: 72px;
        line-height: 72px;
    }

    .HeroContent {
        width: 50vW;
    }

    .HeroFooter {
    	display: block;
    }

    .ScrollingContent {
        left: 50vW;
        width: calc( 50vW - 30px );
    }

    .Navigation {
        left: 50vW;
        width: calc( 50vW - 30px );   
    }

    h1,
	.StandFirst {
		width: 75%;
		margin-right: 25%;
	}

    .CaseStudy {
        width: 45%;
    }
    
    .CaseStudiesGrid::after {
        flex: 0 0 45%;
    }
}

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

    .CaseStudy {
        width: 30%;
    }
    .CaseStudiesGrid::after {
        flex: 0 0 30%;
    }
}

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

    .CaseStudy {
        width: 22%;
    }
    .CaseStudiesGrid::after {
        flex: 0 0 22%;
    }
}

@media only screen and (max-width: 479px) {

    .Gallery {
        width: 100%;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        margin: 0 0 25px 0;
    }

    .Gallery img {
        width: 30%;
        margin: 0 0 8px 0;
    }
}
