/*

Kirby Starterkit

Author: Bastian Allgeier / Sascha Lack
URL:    http://getkirby.com
Email:  support@getkirby.com

*/



/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}


/* Pix
-------------------------------------------------- */
img {
  display: block;
  max-width: 100%;
}


/* Links
-------------------------------------------------- */
a {
  color: #000;
  text-decoration: none;
  transition: color .3s, background .3s, border .3s;
}
a:hover {
  color: #f29720;
}


/* Clearfix
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}

.clear {
clear: both;
}


/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: 'Roboto', sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-weight: 300;
}
body {
  margin: 0 auto;
  font-size: 1em;
  line-height: 1.5em;
  padding: 1.5em;
  max-width: 65em;
  background: #fff;
  color: #555;
}


/* Header
-------------------------------------------------- */
.header {
  margin-bottom: 1em;
}
.logo {
  display: block;
  margin-bottom: 1em;
  font-family: 'Roboto';
  font-weight: 300;
  color: #fff;
  font-size: 1.4em;
  background: #555;
  padding: 0.8em 1.2em;
 
}
.logo img {
  width: 2em;
}

.logo .or {
  color: #999;
}




/* Navigation
-------------------------------------------------- */
.menu a {
  display: block;
  color: #555;
}
.menu a:hover {
  color: #f29720;
  text-decoration: none;
}
.menu .active {
  color: #f29720;
}
.menu li {
  list-style: none;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  padding: .35em 0;
  border-top: 1px solid #ddd;
  font-weight: 300;
  font-size: 1em;
}

.submenu {
  position: absolute;
  z-index: 1;
  display: none;
  left: 1em;
}
.submenu:before {
  position: absolute;
  z-index: -1;
  content: '';
  top: -.5em;
  left: 0;
  border-top: .5em solid transparent;
  border-bottom: .5em solid transparent;
  border-left: .5em solid #222;
}
.submenu li {
  border-bottom: 1px solid #444;
}
.submenu a {
  padding: .5em 1.5em;
  font-size: .9em;
  font-weight: 300;
  color: #fff;
  background: #222;
  white-space: nowrap;
}
.submenu a:hover {
  background: #333;
  color: #fff;
}

@media screen and (min-width: 50em) {
  body {
    padding: 1.5em;
  }
  .logo {
    float: left;
  }
  .menu {
    float: right;
    margin-right: -1em;
  }
  .menu > li {
    float: left;
  }
  .menu > li > a {
    padding: .35em 1em;
    border: 0;
  }
  .menu > li:hover .submenu {
    display: none;
  }
}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 500;
}
h2 {
  font-family: 'Roboto';
  font-size: 1em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .5em;
  color: #555;
}
h3 {
  font-size: 1em;
  line-height: 1.5em;
  font-weight: 500;
  margin-bottom: .5em;
}
h4 {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5em;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: 0 !important;
}


/* Wilf's Wizzardry
-----------------------------------*/

.main div.hometext {
  width: 100%;
  display: none;
}  

.main p.projectintro {
  line-height: 1.25em;
  margin-bottom: 1em;
  height: 2em;
  display: none;
}


.main .teaser h3 {
  line-height: 1.25em;
  font-weight: 500;
  margin-bottom: 0;
}

.images {
  width: 100%;
}

.text {
  width: 100%;
}

.main .images figure {
  float: left;
  margin-right: 12px;
  margin-bottom: 12px;
}


.menu > li > a.projectslink {
display: none;
font-weight: 500;
}

.featuredimg {
max-width: 606px;

}

.featuredimg a img {
  display: inline;
  width: auto;
  height: auto;


  }

.featuredimg a img:hover {
  opacity: 0.5;
}

.main .meta {
  margin-bottom: 1em;
}

.dropshadow {
  -webkit-box-shadow: 2px 2px 10px 0px rgba(61,61,61,0.2);
  -moz-box-shadow: 2px 2px 10px 0px rgba(61,61,61,0.2);
  box-shadow: 2px 2px 10px 0px rgba(61,61,61,0.2);
}

#preload-01 { background: url("../images/back_h.jpg") no-repeat -9999px -9999px; }
#preload-02 { background: url("../images/forward_h.jpg") no-repeat -9999px -9999px; }

  .bloglink, .sloanelink {
  float: left;
  margin-left: 0;
  margin-bottom: 1em;
  width: 100%;
  text-align: left;
}

.contactdeets {
	width: 40%;
	float: left;
}

.hometext, .projectstext {
display: none;
}

.projtitletext {
	padding: 0 0.8em 0.4em 0;
	background-color: #fff;
	position: absolute;
	font-size: 1.2em;
}




/*   RESPONSIVE    */


@media screen and (min-width: 50em) {
  .images {
  width: 40em;
}

.text {
  width: 38em;
}

.hometext, .projectstext {
display: block;
width: 66%;
}


  .teaser li {
    float: left;
    width: 45%;
    margin-left: 5%;
  }
  .teaser li:nth-child(2n+1) {
    margin-left: 0;
  }

  .featuredimg {
  height: 18em;
  overflow: hidden;
  background-color: #f29720;
  }

.featuredimg a img {
  min-width: 100%;
  min-height: 100%;
 }

  .contactpage {
    float: left;
    width: 50%;
  }


}

@media screen and (min-width: 65em) {

  .featuredimg {
  height: 16em;
  overflow: hidden;
  background-color: #f29720;
  }





  .bloglink, .sloanelink {
  float: right;
  margin-left: 1em;
  width: 49%;
  text-align: right;
  border-bottom: 0px;
}

    .teaser li {
    float: left;
    width: 30%;
    margin-left: 5%;
  }
  
    .teaser li:nth-child(2n+1) {
    margin-left: 5%;
  }
  
  .teaser li:nth-child(3n+1) {
    margin-left: 0;
  }
  
}






/*     RESPONSIVE END    */




.Contact .text {
width: 100%;
}



.prev, .next {
  width: 30px;
  height: 30px;
  text-indent: -9999px;
  
}

.prev {
  background-image: url("../images/back.jpg");
}

.prev:hover {
  background-image: url("../images/back_h.jpg");
}

.next {
  background-image: url("../images/forward.jpg");
}

.next:hover {
  background-image: url("../images/forward_h.jpg");
}

/* Contact Form
---------------------------------------------*/

.field input {
  border: solid 1px #ddd;
  width:375px;
  display:block;
  height: 25px;
 }

.field textarea {
  border: solid 1px #ddd;
  width:375px;
  display:block;
  height: 200px;
 }


.clr {
  clear: both;
  }


/* Main
-------------------------------------------------- */
.main {
  padding-bottom: 1em;
  border-bottom: solid 1px #ccc;
}
.main hr {
  margin: 1em 0;
  height: 1px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1em;
}

/*
.main a {
  border-bottom: 1px solid #eee;
}
.main a:hover {
  border-color: #ccc;
}
*/

/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
}
.meta li {
  float: left;
  list-style: none;
  margin-right: 2em;
  color: red;
}
.meta li b {
  font-weight: 300;
  color: #000;
  padding-right: .25em;
}


/* Project teaser
-------------------------------------------------- */
.teaser {
  margin-top: 2em;
  list-style: none;
}
.teaser li {
  margin-bottom: 2em;
  list-style: none;
}





/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
  font-size: 1.5em;
}
.nextprev a {
  border: 0;
}
.nextprev .prev {
  float: left;
}
.nextprev .next {
  float: right;
}


/* Footer
-------------------------------------------------- */
.footer {
  padding: 1em 0 6em;
  line-height: 1.25em;
}
.copyright {
  float: right;
}
.colophon {
  float: left;
  text-align: left;
  width: 50%;
}


.colophon .bold {
  font-weight: 500;
}

.colophon a b {
  color: red;
  padding-left: .25em;
}


/* To The Top
--------------------------------------------------*/

.cd-top {
  display: inline-block;
  height: 40px;
  width: 40px;
  position: fixed;
  bottom: 40px;
  right: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  /* image replacement properties */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: #f29720 url(../images/cd-top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1;
}
.cd-top.cd-fade-out {
  /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
  opacity: .5;
}
.no-touch .cd-top:hover {
  background-color: #f29720;
  opacity: 1;
}
@media only screen and (min-width: 768px) {
  .cd-top {
    right: 20px;
    bottom: 20px;
  }
}
@media only screen and (min-width: 1024px) {
  .cd-top {
    height: 60px;
    width: 60px;
    right: 30px;
    bottom: 30px;
  }
}


