/* Base */

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
 }

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

body {
  text-rendering: optimizeLegibility;
  font-family: 'Ubuntu', sans-serif;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

::-webkit-input-placeholder {
  color: #cccccc;
}

:-moz-placeholder {
  color: #cccccc;
  opacity: 1;
}

::-moz-placeholder {
  color: #cccccc;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #cccccc;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Helpers */

.no-focus:focus {
  outline-width: 0;
}

.hidden {
  display: none !important;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* Home */

header {
  width: 100%;
  height: 143px;
  font-weight: 300;
}

.topheader {
  padding-top: 20px;
}

.logo {
  float: left;
}

.maxwidth {
  width: 984px;
  margin: 0 auto;
}

.welcome {
  font-size: 18px;
  float: left;
  margin-left: 18px;
  padding-left: 15px;
  border-left: 1px solid #c5c5c5;
  padding-top: 15px;
}

.welcome strong {
  font-weight: 700;
}

.welcome span {
  font-size: 14px;
}

.contact {
  float: left;
  font-size: 18px;
  margin-left: 18px;
  padding-left: 15px;
  border-left: 1px solid #c5c5c5;
  padding-top: 18px;
}

.contact strong {
  font-weight: 700;
}

.contact a {
  display: block;
  text-decoration: none;
  color: #222;
  font-size: 14px;
}

nav {
  clear: left;
  width: 100%;
  margin-top: 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
}

nav a {
  text-decoration: none;
  color: #323232;
  border-bottom: 3px solid transparent;
  padding-bottom: 3px;
  font-weight: 300;
}

nav li.active a,
nav li:hover a {
  color: #9d1e1e;
  border-bottom: 3px solid #9d1e1e;
}

nav li:after {
  content: " | ";
  padding: 0 5px;
}

nav li:last-child:after {
  content: "";
}

.slider {
  width: 100%;
  height: 659px;
  background: url('../img/slider_01.jpg') top center no-repeat;
  text-align: center;
}

.slider a {
  margin-top: 50px;
  display: inline-block;
}

blockquote {
  margin: 0 auto;
  width: 725px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  padding-top: 180px;
}

blockquote span {
  display: block;
  text-align: right;
  font-size: 24px;
  font-weight: 300;
}

.services {
  background: #e8e8e8;
  height: 378px;
  text-align: center;
  padding-top: 60px;
  font-size: 0;
}

.service {
  display: inline-block;
  width: 200px;
  margin: 0 30px;
}

.service:first-child {
  margin-left: 0;
}

.service:last-child {
  margin-right: 0;
}

.service-text {
  display: table-cell;
  width: 200px;
  height: 50px;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 700;
  color: #323232;
}

.main-content {
  margin: 0 auto;
  width: 984px;
  padding: 40px 0;
}

.sub-content {
  width: 100%;
  padding: 40px 0;
  background: #e8e8e8;
  min-height: 580px;
}

.maxwidth {
  margin: 0 auto;
  width: 984px;
}

.sub-content h2:first-child {
  margin-top: 0;
}

.main-content h2,
.sub-content h2 {
  font-size: 18px;
  font-weight: 700;
}

.contact-line {
  width: 100%;
  background: #be3434;
  border-bottom: 5px solid #9d1e1e;
  height: 55px;
  line-height: 55px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}

.contact-line a {
  text-decoration: none;
  color: #fff;
}

.sep {
  display: inline-block;
  margin: 0 10px;
}

.map {
  height: 520px;
  width: 100%;
}

footer {
  border-top: 5px solid #919191;
  width: 100%;
  height: 215px;
  background: #333333;
  padding-top: 5px;
  color: #919191;
}

.noborder {
  border-top: 0;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  display: inline-block;
  color: #919191;
}

footer a {
  text-decoration: none;
  color: #919191;
}

footer li:after {
  content: " | ";
  margin: 0 5px;
}

footer li:last-child:after {
  content: "";
}

.infoline {
  width: 100%;
  padding-top: 20px;
}

.infoline .logo {
  float: left;
  width: 125px;
}

.footer-contact {
  float: left;
  padding-left: 20px;
  border-left: 1px solid #919191;

}

.footer-contact strong {
  font-size: 30px;
  font-weight: 700;
  display: block;
  margin-top: -5px;
}

.footer-services {
  float: right;
}

.footer-services .service {
  width: 91px;
  margin: 0 0 0 13px;
}

.footer-services .service-text {
  font-size: 12px;
  color: #919191;
  font-weight: 300;
  text-align: center;
  height: auto;
}

.copyright {
  text-align: center;
  font-size: 14px;
  color: #919191;
  padding-top: 10px;
}

table.service-list {
  width: 100%;
}

table.service-list td {
  width: 328px;
  text-align: center;
}

table.service-list th {
  padding-bottom: 20px;
}

.gallery a {
  float: left;
  margin-right: 21px;
  margin-bottom: 21px;
}

.gallery a:nth-child(5n+5) {
  margin-right: 0;
}


/* Print */

@media print {
  *,
  *:before,
  *:after {
      background: transparent !important;
      color: #000 !important;
      box-shadow: none !important;
      text-shadow: none !important;
  }

  a,
  a:visited {
      text-decoration: underline;
  }

  a[href]:after {
      content: " (" attr(href) ")";
  }

  abbr[title]:after {
      content: " (" attr(title) ")";
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
      content: "";
  }

  pre,
  blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
  }

  thead {
      display: table-header-group;
  }

  tr,
  img {
      page-break-inside: avoid;
  }

  img {
      max-width: 100% !important;
  }

  p,
  h2,
  h3 {
      orphans: 3;
      widows: 3;
  }

  h2,
  h3 {
      page-break-after: avoid;
  }
}

/* Main */

@media (max-width: 1000px) {
    header {
        padding: 0 20px;
    }

    .main-content {
      padding: 0 20px;
    }

    .sub-content {
      padding: 20px;
    }

    .maxwidth {
      width: auto;
    }

    .gallery a:nth-child(5n+5) {
      margin-right: 21px;
    }

    .services {
      min-height: 378px;
      height: auto;
    }

    .service {
      margin: 10px;
    }

    .service:first-child {
      margin-left: 10px;
    }

    .service:last-child {
      margin-right: 10px;
    }
}