/* CSS crunched with Crunch - http://crunchapp.net/ */
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined in IE 8/9.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
/**
 * Correct `inline-block` display not defined in IE 8/9.
 */
audio,
canvas,
video {
  display: inline-block;
}
/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}
/**
 * Address `[hidden]` styling not present in IE 8/9.
 * Hide the `template` element in IE, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none;
}
/* ==========================================================================
   Base
   ========================================================================== */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif;
  /* 1 */

  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* 2 */

}
/**
 * Remove default margin.
 */
body {
  margin: 0;
}
/* ==========================================================================
   Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background: transparent;
}
/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */
a:focus {
  outline: thin dotted;
}
/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0;
}
/* ==========================================================================
   Typography
   ========================================================================== */
/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
/**
 * Address styling not present in IE 8/9, Safari 5, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}
/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */
b,
strong {
  font-weight: bold;
}
/**
 * Address styling not present in Safari 5 and Chrome.
 */
dfn {
  font-style: italic;
}
/**
 * Address differences between Firefox and other browsers.
 */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}
/**
 * Correct font family set oddly in Safari 5 and Chrome.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}
/**
 * Improve readability of pre-formatted text in all browsers.
 */
pre {
  white-space: pre-wrap;
}
/**
 * Set consistent quote types.
 */
q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}
/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
/* ==========================================================================
   Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9.
 */
img {
  border: 0;
}
/**
 * Correct overflow displayed oddly in IE 9.
 */
svg:not(:root) {
  overflow: hidden;
}
/* ==========================================================================
   Figures
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari 5.
 */
figure {
  margin: 0;
}
/* ==========================================================================
   Forms
   ========================================================================== */
/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
/**
 * 1. Correct `color` not being inherited in IE 8/9.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0;
  /* 1 */

  padding: 0;
  /* 2 */

}
/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 */
button,
input,
select,
textarea {
  font-family: inherit;
  /* 1 */

  font-size: 100%;
  /* 2 */

  margin: 0;
  /* 3 */

}
/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
button,
input {
  line-height: normal;
}
/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */
button,
select {
  text-transform: none;
}
/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /* 2 */

  cursor: pointer;
  /* 3 */

}
/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}
/**
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */

  padding: 0;
  /* 2 */

}
/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */
input[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */

  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */

  box-sizing: content-box;
}
/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */
textarea {
  overflow: auto;
  /* 1 */

  vertical-align: top;
  /* 2 */

}
/* ==========================================================================
   Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*
 LESS DSS (dynamic stylesheet) 1.8.5 (for less.js 1.3+)
 MORE INFO: http://cl.ly/Dqnr

 LESS mixins by Chris Krupski
*/
/* Backgrounds Group
========================== */
/* @group gradient-veritical() */
/* @end */
/* @group background-clip() */
/* @end */
/* Box Group
========================== */
/* @option: box-display() */
/* @end */
/* @group box-shadow() */
/* @end */
/* Border Group
========================== */
/* @group rounded() */
/* @end */
/* Transform Group
========================== */
/* @group matrix() */
/* @end */
/* @group rotate() */
/* @end */
/* @group scale() */
/* @end */
/* @group translate() */
/* @end */
/* @group skew() */
/* @end */
/* Transition
========================== */
/* Animation Group
========================== */
/* Column
========================== */
/* Misc Group
========================== */
/* Devices */
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
}
::selection {
  color: #fff;
  background: #c01f49;
}
::-moz-selection {
  color: #fff;
  background: #c01f49;
}
h1,
h2,
h3,
h4,
h5,
h6,
legend {
  font-size: 1.5em;
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  color: #333333;
  text-transform: uppercase;
  margin: 16px 0 0;
}
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span,
legend span {
  color: #c01f49;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
legend:first-child {
  margin-top: 0;
}
h2,
legend {
  font-size: 1.4em;
}
h3 {
  font-size: 1.25em;
}
h4 {
  font-size: 1.2em;
}
h5 {
  font-size: 1.1em;
}
h6 {
  font-size: 1em;
}
p {
  margin: 16px 0 0;
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
}
p span {
  color: #c01f49;
}
p:first-child {
  margin-top: 0;
}
a {
  color: #c01f49;
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  color: #333333;
}
.button {
  display: inline-block;
  padding: 16px 32px;
  background: #c01f49;
  color: #fff;
  margin: 64px 16px 64px 0;
  font-size: 1.4em;
  text-align: center;
}
@media only screen and (max-width: 529px) {
  .button {
    width: 100%;
    margin: 16px 0;
  }
}
header {
  background-image: url('../images/header-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 32px;
}
header h1 {
  font-weight: normal;
  text-transform: none;
  font-size: 3em;
  margin: 0 0 40px 0;
}
@media only screen and (max-width: 529px) {
  header h1 {
    text-align: center;
    font-size: 2.5em;
  }
}
header article {
  width: 50%;
  display: inline-block;
}
@media only screen and (max-width: 529px) {
  header article {
    width: 100%;
    padding: 0 16px 0;
  }
}
@media only screen and (min-width: 530px) and (max-width: 949px) {
  header article {
    width: 75%;
    padding: 0 16px 0;
  }
}
section {
  max-width: 1000px;
  margin: 64px auto;
}
section > h2 {
  margin: 0 0 0 16px;
}
section:first-child {
  margin-top: 0;
}
section article {
  padding: 16px 16px 0;
}
section article img {
  width: 38.2%;
  float: right;
  margin-left: 16px;
}
@media only screen and (max-width: 529px) {
  section article img {
    width: 100%;
    margin: 0 0 16px 0;
  }
}
section .portfolio {
  padding: 32px 0 0 0;
  list-style: none;
  text-align: center;
  margin: 0 auto;
}
section .portfolio > li {
  -webkit-user-select: none;
  display: inline-block;
  margin: 0 16px 32px;
  padding: 0;
  border-bottom: 3px solid #cccccc;
  cursor: pointer;
}
@media only screen and (max-width: 529px) {
  section .portfolio > li {
    margin: 0 0 32px;
  }
}
section .portfolio figure {
  position: relative;
  margin: 0;
  padding: 0;
}
section .portfolio figure div {
  overflow: hidden;
  height: 224px;
}
section .portfolio figure:hover figcaption,
section .portfolio figure.hover figcaption {
  zoom: 1;
  opacity: 1;
  filter: alpha(opacity=100);
}
section .portfolio figure img {
  -webkit-transition: all 0.3s ease-out 0;
  -moz-transition: all 0.3s ease-out 0s;
  -o-transition: all 0.3s ease-out 0;
  /* Opera 10.5+ */

  transition: all 0.3s ease-out 0;
}
section .portfolio figure:hover img {
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: url(blur.svg#blur);
  filter: blur(5px);
  filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='5');
  -webkit-transform: scale(1.01);
  -moz-transform: scale(1.01);
  -ms-transform: scale(1.01);
  -o-transform: scale(1.01);
  transform: scale(1.01);
}
section .portfolio figure figcaption {
  position: absolute;
  top: 0;
  padding: 32px 0;
  background: rgba(192, 31, 73, 0.5);
  zoom: 1;
  opacity: 0;
  filter: alpha(opacity=0);
  width: 100%;
  height: 224px;
  -webkit-transition: all 0.3s ease-out 0;
  -moz-transition: all 0.3s ease-out 0s;
  -o-transition: all 0.3s ease-out 0;
  /* Opera 10.5+ */

  transition: all 0.3s ease-out 0;
}
section .portfolio figure figcaption ul {
  color: #fff;
  text-shadow: 0px 0px 5px rgba(192, 31, 73, 0.5);
  padding: 0;
}
section .portfolio figure figcaption ul li {
  display: block;
  line-height: 1.5;
  margin: 2px 0;
}
section .portfolio h3 {
  margin: 16px 0 0;
  line-height: 1;
}
section .portfolio p {
  line-height: 1;
  margin: 8px 0 16px;
}
section .paging-nav {
  text-align: center;
}
section .paging-nav ul {
  margin: 0;
  padding: 0;
}
section .paging-nav ul li {
  display: block;
  height: 12px;
  width: 12px;
  display: inline-block;
  background: #cccccc;
  margin-left: 30px;
  cursor: pointer;
  -webkit-border-radius: 12px;
  border-radius: 12px;
}
section .paging-nav ul li:first-child {
  margin-left: 0;
}
section .paging-nav ul li.active {
  background: #c01f49;
}
section .paging-nav ul li a {
  display: block;
  width: 12px;
  height: 12px;
  cursor: pointer;
}
section .testimonials {
  list-style: none;
  padding: 32px 0 0 0;
  margin: 0 auto;
}
section .testimonials li {
  text-align: right;
  padding: 16px 96px;
  background: url(../images/left-speech.png) left top no-repeat, url(../images/right-speech.png) right 50% no-repeat;
}
@media only screen and (max-width: 529px) {
  section .testimonials li {
    padding: 8px 50px;
    background-size: 10%;
  }
}
section .testimonials li p {
  text-align: left;
}
section .testimonials li small {
  color: #b3b3b3;
  display: block;
  margin-top: 16px;
}
footer {
  font-size: 0.9em;
  margin: 32px auto 0;
  padding: 8px 16px;
  max-width: 1000px;
  border-top: 3px solid #cccccc;
}
footer p {
  text-align: left;
  display: inline-block;
  width: 50%;
  font-size: 0.8em;
}
@media only screen and (max-width: 529px) {
  footer p {
    width: 100%;
  }
}
footer nav {
  display: inline-block;
  text-align: right;
  width: 50%;
}
@media only screen and (max-width: 529px) {
  footer nav {
    display: none;
  }
}
footer nav ul {
  padding: 0;
  margin: 0;
}
footer nav ul li {
  display: inline-block;
  padding-left: 16px;
}
footer nav ul li:first-child {
  padding-left: 0;
}
footer nav ul li a {
  text-decoration: none;
  color: #333333;
}
footer nav ul li a:hover {
  color: #c01f49;
}
.modal-wrapper {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
}
.modal-wrapper .modal {
  position: absolute;
  top: 12.5%;
  left: 12.5%;
  width: 75%;
  height: auto;
  max-height: 75%;
  padding: 32px;
  background: white;
  z-index: 1002;
  overflow: auto;
}
@media only screen and (min-width: 530px) and (max-width: 949px), only screen and (max-width: 529px) {
  .modal-wrapper .modal {
    width: 90%;
    height: auto;
    max-height: 90%;
    top: 5%;
    left: 5%;
    padding: 16px;
  }
}
.modal-wrapper .modal .media {
  margin: 16px auto 0;
  width: 65%;
  position: relative;
  height: 0;
  padding-bottom: 36.75%;
}
@media only screen and (min-width: 530px) and (max-width: 949px), only screen and (max-width: 529px) {
  .modal-wrapper .modal .media {
    width: 100%;
    padding-bottom: 56.25%;
  }
}
.modal-wrapper .modal .media * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.modal-wrapper .modal > a {
  float: right;
  cursor: pointer;
}
.modal-wrapper .modal .testimonial {
  text-align: right;
  padding: 16px 96px;
  margin-top: 16px;
  background: url(../images/left-speech.png) left top no-repeat, url(../images/right-speech.png) right 50% no-repeat;
}
@media only screen and (max-width: 529px) {
  .modal-wrapper .modal .testimonial {
    display: none;
  }
}
.modal-wrapper .modal .testimonial p {
  text-align: left;
}
.modal-wrapper .modal .testimonial small {
  color: #b3b3b3;
  display: block;
  margin-top: 16px;
}
.form-wrapper {
  width: 50%;
  display: inline-block;
  padding: 0 16px;
  vertical-align: top;
  margin-top: -500px;
}
@media only screen and (min-width: 530px) and (max-width: 949px), only screen and (max-width: 529px) {
  .form-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
}
.form-wrapper form {
  width: 100%;
  background: #fff;
  text-align: right;
  padding: 16px;
  margin-top: 16px;
}
.form-wrapper form fieldset {
  border: none;
  position: relative;
}
.form-wrapper form fieldset p,
.form-wrapper form fieldset label,
.form-wrapper form fieldset span,
.form-wrapper form fieldset legend {
  text-align: left;
}
.form-wrapper form fieldset .loading {
  display: none;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.form-wrapper form fieldset .loading img {
  position: absolute;
  top: 47%;
  left: 47%;
}
.form-wrapper form fieldset .email-message {
  display: none;
}
.form-wrapper form fieldset > span {
  display: block;
}
.form-wrapper form fieldset > span.error {
  font-size: 0.8em;
  color: #808080;
  line-height: 2;
}
.form-wrapper form fieldset label {
  display: block;
  margin: 24px 0 0;
  color: #333333;
  display: none;
}
.form-wrapper form fieldset label:first-child {
  margin-top: 0;
}
.form-wrapper form fieldset input[type="text"],
.form-wrapper form fieldset textarea {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  display: block;
  width: 100%;
  padding: 4px;
  margin-top: 16px;
  color: #666666;
  outline: none;
  border: 1px solid #b3b3b3;
  background: #f7f7f7;
}
.form-wrapper form fieldset input[type="text"]:focus,
.form-wrapper form fieldset textarea:focus {
  border: 1px solid #666666;
  background: #fff;
}
.form-wrapper form fieldset textarea {
  display: block;
  height: 80px;
  /* ( horizontal | vertical | both ) */

  resize: none;
  overflow: auto;
}
.form-wrapper .btn {
  background: #333333;
  border: none;
  color: #fff;
  display: inline-block;
  margin-top: 16px;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 16px;
  outline: none;
  vertical-align: top;
  -webkit-border-radius: 0;
  border-radius: 0;
}
.form-wrapper .btn.pri {
  background: #c01f49;
}
.form-wrapper .btn.pri:hover {
  color: #333333;
}
.form-wrapper .btn.pri:active {
  background: #941838;
}
.form-wrapper .btn:hover {
  color: #c01f49;
}
.form-wrapper .btn:active {
  background: #1a1a1a;
}
