/* FILE: TEMPLATE.CSS */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}
html{
    font-size: 16px;
    line-height: 150%;
}
html,
body,
form {
    height: 100%;
    padding: 0;
    margin: 0;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}
body{
    padding-right: 0%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
}

h1,
h2 {
    font-size: 2.5rem;
    line-height: 2.75rem;
    margin: 5rem 0 2rem 0;
    padding: 0;
}

h3 {
    font-size: 2rem;
    line-height: 2.25rem;
    margin: 4rem 0 1.5rem 0;
    padding: 0;
}

h2 + h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-top: -.25rem;
    font-weight: 600;
}

p + h1,
p + h2,
p + h3,
p + h4,
p + h5,
p + h6,
blockquote + h1,
blockquote + h2,
blockquote + h3,
blockquote + h4,
blockquote + h5,
blockquote + h6 {
    margin-top: 3rem;
}
a:link,
a:visited,
a:active {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p a {
    text-decoration: underline;
}

hr {
    width: 100%;
    height: 0.0625rem;
    border: 0px;
    margin: 3.125rem 0 3.125rem 0;
    padding: 0;
}

input[type="text"],
textarea,
select {
    padding: 1.25rem 1rem 1.25rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    border: none;
    transition: all 0.3s ease-out;
    border-radius: 0.25rem;
}

input[type="button"],
input[type="submit"],
.button {
    display: inline-block;
    margin: 0 auto 0 auto;
    padding: 1.25rem 1rem 1.25rem 1rem;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
    font-size: 0.85rem;
    line-height: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.25rem;
}

blockquote {
    display: block;
    background: #fff;
    padding: 1.75rem 1.75rem 1.75rem 2.8rem;
    margin: 2.5rem 0 2.5rem 0;
    position: relative;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.4rem;
    text-align: justify;
}

blockquote::before {
    content: "\201C";
    /*Unicode for Left Double Quote*/
    
    font-family: Georgia, serif;
    font-size: 3.125rem;
    font-weight: bold;
    position: absolute;
    left: 0.625rem;
    top: 0.32rem;
}

blockquote::after {
    /*Reset to make sure*/
    
    content: "";
}

img {
    max-width: 100%;
}

.clear {
    clear: both;
}

#top-bar{
    background-color: #f0f0f0;
    padding: 0.32rem 0.32rem 0.32rem 0.32rem;
    font-size: 0.7rem;
    color: #525252;
    font-weight: 600;
    text-align: center;
}
#top-bar a{
    color: #525252;
}

#header{
    position: relative;
    z-index: 1;
}
#logo{
  text-align: center;
  padding: 0 10% 0 10%;
  margin: 1.25rem 0 1.25rem;
}
#navigation ul li ul li a {
    color: #fff;
}
#logo img {
    max-width: 100%;
    max-height: 130px;
}

#content-outer{
    background-color: #f8f8f8;
}

#footer {
    font-size: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    width: 100%;
}

#credits {
    font-size: 0.65rem;
}

#top-outer{
    z-index: 0;
    position: relative;
    -webkit-box-shadow: inset 0px 0px 35px 9px rgba(0,0,0,0.3);
    -moz-box-shadow: inset 0px 0px 35px 9px rgba(0,0,0,0.3);
    box-shadow: inset 0px 0px 35px 9px rgba(0,0,0,0.3);
}
#top-outer,
#top-outer h1{
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    font-size: 1.3rem;
}
#top-outer h1 {
    font-size: 2.75rem;
    line-height: 3rem;
}
#top-outer input[type="button"], #top-outer .button{
    text-shadow: none;
}
#main-outer{
    background-color: #f5f5f5;
}
#right-bar{ 
    padding: 7% 5% 7% 5%;
    text-align: center;
}
#right-bar.contact-page{
    display: none;
}
#right-bar-phone, 
#free-quote-header-flap {
    display: none;
}
#free-quote-header{
    font-size: 2rem;
    line-height: 2.25rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: #fff;
    font-weight: 300;
}

.content-block-outer {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.content-block-outer img.background {
    width: 100%;
}
.content-block-outer.fixed {
    background-attachment: fixed;
}

.bg-image-overlay{
    display: none;
}
.content-block-outer.image,
.content-block-outer.image h1{
    color: #fff;
}
.content-block-outer.image.light,
.content-block-outer.image.light h1{
    color: #252525;
}
.content-block-outer.image .bg-image-overlay{
    background: rgba(0,0,0,.3);
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.content-block-inner {
    position: relative;
    z-index: 2;    
    padding: 7% 5% 7% 5%;
    margin-left: auto;
    margin-right: auto;
}

.content-block-inner .first-headline {
    margin-top: 0;
    padding-top: 0;
}
.content-block-inner img {
    padding: 0.375rem 0.375rem 0.375rem 0.375rem;;
    border: solid 1px #EFEFEF;
    transition: all 0.3s ease-in;
    border: solid 1px #CCC;
    -moz-box-shadow: 1px 1px 5px #999;
    -webkit-box-shadow: 1px 1px 5px #999;
    box-shadow: 1px 1px 5px #999;
    background-color: #fff;
}
.content-block-inner > img,
.content-block-inner p img {
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
}

.content-block-inner img.plain {
    padding: 0;
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: transparent;
}

.content-block-inner img.background {
    display: none;
}

.content-split {
    display: table;
    text-align: center;
    margin: 0 auto 0 auto;
}

.content-left {
    display: block;
}

.content-right {
    display: block;
    margin-top: 40px;
}

.social-links a {
    border: solid 1px #fff;
    line-height: normal;
    display: inline-block;
    padding: 8px 8px 2px 8px;
}
.social-links a img{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

#tbl-contact {
    font-size: 1.5rem;
}

#tbl-contact a {
    text-decoration: none;
}

.highlight-service{
    text-align: center;
    max-width: 350px;
    margin: 0 auto 0 auto;
}
.highlight-service .service-wrapper {
    display: block;
    margin-top: 2.5rem;
}
.highlight-service .img-wrapper {
    text-align: center;
}
.highlight-service .text-wrapper {
    text-align: center;
    margin-top: .5em;
}
.highlight-service .text-wrapper a {
    display: block;
    padding-top: .85rem;
    padding-bottom: .85rem;
}
.highlight-service .text-wrapper a span{
    display: block;
    text-transform: lowercase;
    font-size: .75rem;
    font-weight: 300;
    margin-bottom: .2rem;
}

/* RESPONSIVE STUFF */

@media (min-width:360px) {
    html { font-size: 16.1px; }
    #logo img { max-width: 280px; }
}

@media (min-width: 420px) {
    html { font-size: 16.25px; }
    .content-block-inner > img,
    .content-block-inner p img {
        max-width: 40% !important;
        height: auto !important;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width:640px) {
    html { font-size: 16.8px; }
    #top-bar{
        display: table;
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }
    #top-bar-left{
        display: table-cell;
        text-align: left;
    }
    #top-bar-right{
        display: table-cell;
        text-align: right;
    }
    .highlight-service{
        text-align: left;
        max-width: none;
    }
    .highlight-service .service-wrapper {
        display: inline-block;
        max-width: 47%;
        margin: 2% 1% 2% 1%;
    }
    .highlight-service .img-wrapper img{
        width: 100%;
    }
}

@media (min-width:768px) {
    html { font-size: 17.12px; }
    .content-block-inner {  padding: 7% 6% 7% 6%; }
    #top-bar{ padding-left: 6%; padding-right: 6%; }
    #right-bar{ padding: 7% 6% 7% 6%; }
}

@media (min-width:1024px) {
    html { font-size: 17.76px; }
    .content-block-inner {  padding: 7% 7% 7% 7%; }
    #top-bar{ padding-left: 7%; padding-right: 7%; }
    #right-bar{ padding: 7% 7% 7% 7%; }
    .content-split {
        text-align: left;
    }
    .content-left {
        display: table-cell;
        padding-right: 20px;
        vertical-align: top;
    }
    .content-right {
        display: table-cell;
        padding-left: 20px;
        vertical-align: top;
    }
    .highlight-service .service-wrapper {
        max-width: 30.5%;
        margin: 2% 1% 2% 1%;
    }
}

@media (min-width:1280px) {
    html { font-size: 18.4px; }
    body{ padding-right: 23%; }
    .content-block-inner {  padding: 7% 8% 7% 8%; }
    #top-bar{ padding-left: 8%; padding-right: 8%; }
    
    #right-bar{
        position: fixed;
        z-index: 2;
        right: 0;
        top: 0;
        padding: 0;
        height: 100%;
        -webkit-box-shadow: -10px 0px 21px -6px rgba(0,0,0,0.1);
        -moz-box-shadow: -10px 0px 21px -6px rgba(0,0,0,0.1);
        box-shadow: -10px 0px 21px -6px rgba(0,0,0,0.1);
        width: 23%;
        background-color: #fff;
        text-align: left;
    }
    #right-bar.contact-page{
        display: block;
    }
    #right-bar-content{
        padding: 1.3rem;
    }
    #free-quote-header{
        font-size: 1.4rem;
        line-height: 1.7rem;
        font-weight: 600;
        text-transform: uppercase;
        width: 110%;
        padding: 0.9em 0.9em 0.9em 1.7em;
        margin: 0 0 0 -1em;
    }
    #free-quote-header-flap{
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 1.4em 1em 0;
        position: absolute;
        margin-left: -1.4em;
        display: block;
    }
    #right-bar-phone{
        text-align: center;
        margin: 0.5em auto 0.5em auto;
        display: table;
    }
    #right-bar-phone div{
        display: table-cell;
        vertical-align: middle;
    }
    #right-bar-phone div:first-of-type{
        padding-right: 0.3rem;
    }
    #right-bar-phone div:last-of-type{
        padding-left: 0.3rem;
    }
    #right-bar-phone a{
        font-weight: 700;
        font-size: 1.5rem;
    }
}

@media (min-width:1360px) {
    html { font-size: 18.6px; }
    .content-block-inner {  padding: 7% 9% 7% 9%; }
    #top-bar{ padding-left: 9%; padding-right: 9%; }
}

@media (min-width:1440px) {
    html { font-size: 18.8px; }
}

@media (min-width:1600px) {
    html { font-size: 19.2px; }
    #header{
        padding: 1rem 9% 1rem 9%;
        display: table;
        width: 100%;
    }
    #logo{
        display: table-cell;
        vertical-align: middle;
        width: 20%;
        padding: 0;
    }
    #logo img {
        max-width: 260px;
        max-height: 130px;
    }
    #navigation{
        display: table-cell;
        vertical-align: middle;
        text-align: right;
    }
}

@media (min-width:1920px) {
    html { font-size: 20px; }
}