/* ==========================================================================
   master.css
   ========================================================================== */

/*
 * master.css
 *
 * Contains all template styling
 */

body {
  background: #fff;
  color: #242424;
  font-size: 18px;
  font-family: "Droid Serif", Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Typegraphy
   ========================================================================== */

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lora", Georgia , Helvetica, Arial, sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 2.8571em;
  line-height: 1.3500em;
  margin-top: 1.2500em;  margin-bottom: 0.0000em;
}

h2 {
  font-size: 2.0000em;
  line-height: 1.2857em;
  margin-top: 0.6429em;  margin-bottom: 0.0000em;
}

h3 {
  font-size: 1.4286em;
  line-height: 1.8000em;
  margin-top: 0.9000em;  margin-bottom: 0.0000em;
  font-weight: 300;
}

h4 {
  font-size: 1.2857em;
  line-height: 1.0000em;
  margin-top: 1.0000em;  margin-bottom: 0.0000em;
}

h5 {
  font-size: 1.1429em;
  line-height: 1.1250em;
  margin-top: 1.1250em;  margin-bottom: 0.0000em;
}

h6 {
  font-size: 1.0000em;
  line-height: 1.2857em;
  margin-top: 1.2857em;  margin-bottom: 0.0000em;
}

.lead-title {
  margin: 0.55em 0 0.3em;
}

p, li {
  font-size: 1em;
  line-height: 1.2857em;
}

p {
  margin: 0 0 1.2857em 0;
  text-indent: 50px;
}

p.lead {
  margin-top: 1em;
}

a {
  transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  color: #477b96;
}

a:hover {
  cursor: pointer;
  text-decoration: none;
}

blockquote {
  font-size: 22px;
  line-height: 1.6em;
  padding-left: 20px;
  border-left-width: 2px;
  border-left-style: solid;
  border-color: #333;
  margin-left: 0;
}


/* ==========================================================================
   Forms
   ========================================================================== */

input,
textarea,
button {
  transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
  font-family: 'Lato', sans-serif;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
}

input,
textarea {
  background: #fff;
  border: 1px solid #D0D3D5;
  border-radius: 5px;
  font-size: 16px;
  padding: 15px;
}

input:focus,
textarea:focus {
  border-color: #333;
}

button:hover,
input[type="submit"]:hover {
  cursor: pointer;
}

.form {
  font-family: 'Lato', sans-serif;
  text-align: left;
}

.form-grey {
  font-family: 'Lato', sans-serif;
  background: #F8F9F9;
  border: solid 1px #EAEAEA;
  border-radius: 5px;
  padding: 30px;
  margin-bottom: 3em;
}

.contact-form {
  margin-bottom: 3em;
}

/* ==========================================================================
   containers
   ========================================================================== */

.container {
  max-width: 960px;
  margin: 0 auto;
}

.blog-container {
  zoom: 1;
  margin: 0 auto;
  position: relative;
  max-width: 660px;
  width: 90%;
}

/* ==========================================================================
   Main nav
   ========================================================================== */

.main-nav {
  height: 70px;
  background: #1A1C1F;
  padding: 0 30px;
  position: relative;
  font-family: 'Lato', sans-serif;
  z-index: 5;
}

.nav-links {
  padding: 24px 0;
  font-weight: 500;
  text-align: right;
  float: right;
}

.nav-links a {
  text-decoration: none;
  color: #516572;
}

.nav-links a:hover {
  color: #98AAB6;
}

.nav-links li {
  display: inline;
  font-size: 14px;
}

.nav-links li a {
  padding: 10px;
}

.logo {
  padding: 18px;
  width: 240px;
  position: relative;
  z-index: 0;
}

.logo a {
  text-decoration: none;
}

.logo img {
  vertical-align: middle;
  width: 35px;
}

.logo-text {
  font-size: 22px;
  color: #fff;
  margin-left: 10px;
  vertical-align: middle;
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.mobile-burger-menu-container {
  position: relative;
  float: right;
  z-index: 1;
  padding: 35px 20px 0;
  height: 70px;
}

.mobile-burger-menu {
  display: none;
  margin: 0;
  position: relative;
  z-index: 2;
  width: 30px;
  height: 2px;
}

.mobile-burger-menu .menu-line {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
}

.mobile-burger-menu .top-line {
  top: -8px;
}

.mobile-burger-menu .bottom-line {
  top: 8px;
}

.mobile-burger-menu.open .top-line {
  top: 0;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.mobile-burger-menu.open .middle-line {
  opacity: 0;
}

.mobile-burger-menu.open .bottom-line {
  top: 0;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* ==========================================================================
   Author
   ========================================================================== */

.author {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  width: 300px;
  margin: 60px auto 0;
  text-align: center;
  text-indent: 0;
}

.author-info {
  text-indent: 0;
}

.avatar {
  border-radius: 50%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero,
.hero-1 {
  font-family: 'Lato', sans-serif;
  background-repeat: no-repeat;
  background-image: url(../img/hero-1.jpg);
  background-size: cover;
  background-position: center center;
  height: 540px;
  text-align: center;
  margin-bottom: 100px;
  color: #fff;
  padding: 10px;
}

.hero-2 {
  background-repeat: no-repeat;
  background-image: url(../img/hero-2.jpg);
  background-size: cover;
}

.hero-3 {
  background-repeat: no-repeat;
  background-image: url(../img/hero-3.jpg);
  background-size: cover;
}

.hero-4 {
  background-repeat: no-repeat;
  background-image: url(../img/hero-4.jpg);
  background-size: cover;
}

.hero__content {
  width: 100%;
}

.hero__header {
  font-family: 'Lato', sans-serif;
  margin-top: 0;
  color: #fff;
  font-weight: 400;
  font-size: 70px;
  text-transform: uppercase;
}

.hero__subheader {
  text-indent: 0;
  font-size: 22px;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: #F8F9F9;
  border: solid 1px #EAEAEA;
  border-radius: 5px;
  text-align: center;
  padding: 30px;
  margin-bottom: 3em;
}

.newsletter__header {
  margin-top: 0;
}

.newsletter__text {
  font-family: 'Lato', sans-serif;
  text-indent: 0;
}

.newsletter__input {
  font-family: 'Lato', sans-serif;
  width: 80%;
}

.newsletter__btn {
  background: #2264A9;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  width: 80%;
}

input[type="submit"].newsletter__btn:hover,
newsletter__btn:hover {
  background: #22568C;
}

.feature {
  font-family: 'Lato', sans-serif;
  padding-left: 30px;
  position: relative;
}

.feature-title {
  margin-bottom: 10px;
}

.feature-icon {
  color: #fff;
  background: #4D5053;
  padding: 5px;
  border-radius: 50%;
  font-size: 14px;
  position: absolute;
  left: 0;

}


/* ==========================================================================
   Footer
   ========================================================================== */


.footer {
  margin-bottom: 3em;
}

.footer-links {
  text-align: center;
  border-top: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
  padding: 30px 0;
}

.footer-links ul {
  margin: 0;
  padding: 0;
}

.footer-links li {
  display: inline-block;
  padding: 5px;
}

.footer-links__header {
  color: #999;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 18px;
  margin: 0 0 10px;
}

.footer-sns {
  text-align: center;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.btn-rounded,
button,
input[type="submit"]:hover,
.btn-grey {
  font-family: 'Lato', sans-serif;
  border-radius: 5px;
  background: #C0C0C0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 15px;
  display: inline-block;
  text-decoration: none;
  text-indent: 0;
  padding: 15px 30px;
}

.btn:hover,
.btn-rounded:hover,
button:hover,
input[type="submit"]:hover,
.btn-grey:hover {
  background: #A9ABAC;
}

.btn-rounded {
  border-radius: 25px;
}

.btn-blue {
  background: #2264A9;
}

.btn-blue:hover {
  background: #22568C;
}

.btn-yellow {
  background: #EDA813;
}

.btn-yellow:hover {
  background: #c7830d;
}

.btn-green {
  background: #44C5A8;
}

.btn-green:hover {
  background: #24a286;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
  position: relative;
  min-height: 210px;
  clear: both;
  margin: 25px 0;
}

.tab {
  float: left;
}

.tab label {
  color: #999;
  font-family: 'Lato', sans-serif;
  background: #fff;
  border-radius: 5px 5px 0 0;
  padding: 10px 20px;
  border-width: 1px 1px 0px 1px;
  border-color: #ccc;
  border-style: solid;
  margin: 0 6px 5px -1px;
  position: relative;
  font-weight: normal;
  left: 1px;
  bottom: -1px;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
  box-shadow: inset 0px 1px 0px #fff;
  transition-timing-function: ease-out;
  transition-duration: 300ms;
  -webkit-transition-timing-function: ease-out;
  -webkit-transition-duration: 300ms;
  -moz-transition-timing-function: ease-out;
  -moz-transition-duration: 300ms;
}

.tab [type=radio] {
  display: none;
}

.content {
  position: absolute;
  top: 30px;
  left: 0;
  text-align: left;
  background: #fff;
  right: 0;
  bottom: 0;
  box-shadow: inset 0px 1px 0px #fff;
  padding: 30px;
  border: 1px solid #ccc;
  overflow: hidden;
}

.content > * {
  opacity: 0;
}

[type=radio]:checked ~ label {
  background: #fff;
  z-index: 2;
  color: #242424;
  box-shadow: inset 0px 1px 0px #fff;
}

[type=radio]:checked ~ label ~ .content {
  z-index: 1;
}

[type=radio]:checked ~ label ~ .content > * {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}

/* ==========================================================================
   misc
   ========================================================================== */

.note {
  font-family: 'Lato', sans-serif;
  background: #F8F9F9;
  border: solid 1px #EAEAEA;
  border-radius: 5px;
  font-size: 14px;
  font-weight: normal;
  padding: 30px;
  margin-bottom: 3em;
}

.sidebar {
  font-family: 'Lato', sans-serif;
  background: #F8F9F9;
  border: solid 1px #EAEAEA;
  border-radius: 5px;
  font-weight: normal;
  padding: 30px;
  margin-bottom: 3em;
}

.nav {
  margin: 0;
  padding: 0;
}

.nav li {
  list-style: none;
  margin-bottom: 0.5em;
}

.vertical-middle {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -ms-flex-align: center;
  -webkit-align-items: center;
  -webkit-box-align: center;

  align-items: center;
}

.full-img,
.video {
  width: 100%;
  padding: 30px 0;
}

.no-indent,
.no-indent p {
  text-indent: 0;
}

p.copyright {
  font-family: 'Lato', sans-serif;
  font-weight: normal;
  font-size: 16px;
  text-align: center;
  text-indent: 0;
  padding: 30px 0;
}

.address {
  text-indent: 0;
}

.text-center {
  text-align: center;
}

.type-label {
  font-family: 'Lato', sans-serif;
  color: #999;
  display: block;
  font-size: 14px;
  margin: 10px 0;
}

.bar-grey {
  background: #F5F6F7;
  padding: 60px;
  margin: 30px 0;
}

code,
.code {
  font-family: monospace;
   word-wrap: break-word;
}

.code {
  text-align: center;
  font-size: 13px;
  background: #F8F9F9;
  border: solid 1px #EAEAEA;
  border-radius: 5px;
  padding: 30px;
  margin: 3em 0;
}

.feature-section {
  padding: 50px;
}

.older,
.newer {
  display: block;
  margin: 40px auto 50px;
}

.older:before {
  content: '« ';
}

.newer:after {
  content: ' »';
}


/* ==========================================================================
   nav-phone
   ========================================================================== */

.main-nav-phone {
  font-family: 'Lato', sans-serif;
  -webkit-transform: translateY(-100%); /* starting point for the anitmation */
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  display: none;
  margin: 0;
  z-index: 4;
  position: absolute;
  width: 100%;
  background: rgba(0,0,0,0.9);
}

.main-nav-phone.forward {
  -webkit-transform: translateY(0%);
  -moz-transform: translateY(0%);
  -ms-transform: translateY(0%);
  -o-transform: translateY(0%);
  transform: translateY(0%);
}

.main-nav-phone a {
  text-decoration: none;
  color: #fff;
  line-height: 45px;
  display: block;
  padding-left: 15px;
  border-bottom: solid 1px #2A2A2A;
}

/* ==========================================================================
   media-queries
   ========================================================================== */

@media (max-width: 860px) {
  .hero__header {
    font-size: 40px;
  }

  .container {
    padding: 5px 15px;
  }

  .feature-section,
  .bar-grey {
    padding: 0;
  }

  p,
  ul,
  .blog-container .blog-wrap p {
    font-size: 15px;
  }

  .mobile-burger-menu {
    box-sizing: border-box;
    display: block;
  }

  .main-nav-phone {
    display: block;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  h3 {
    font-size: 1.1em;
    line-height: 1.3em;
  }
  .hero {
    margin-bottom: 0;
  }
  .blog-wrap .blog-title {
    margin: 0;
  }
  .blog-wrap .blog-title a {
    font-size: 32px;
  }
  blockquote {
    font-size: 18px;
  }
}