html,
button,
input,
select,
textarea {
    color: #222;
}

a:hover{
    text-decoration: none;
}

a:focus{
    outline: none;
}

.main a{
    color: #5189c1;
    text-decoration: none;
}

.main a:hover{
    text-decoration: underline;
}

html {
    font-size: 1em;
    line-height: 1.4;
    position: relative;
    min-height: 100%;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

.no-offerte{
    margin: -200px 0 0 0;
}

body {
    font: 16px/26px 'Open Sans', sans-serif;
    margin: 0 0 255px 0; /* bottom = footer height */
    background-image: url("../img/agsquare.png");
    background-repeat: repeat;
}

strong.alinia{
    margin: 1em 0;
    display: inline-block;
}

strong.alinia-index{
    margin: 1em 0 0 0;
    display: inline-block;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 50px solid #5189C1;
}

.footer-container,
.main aside {
    border-top: 20px solid #5189C1;
}

.footer-container .quote{
    font-size: 0.9em;
    font-style: italic;
    margin: 1em 0;
}

.header-container,
.footer-container,
.main aside {
    background: #262E36;
}

.title {
    color: white;
    margin: 0;
    line-height: 105px;
    font-size: 2.8em;
    font-family: 'Josefin Sans', sans-serif;
    font-style: italic;
    text-shadow:
        2px 2px 0 #262E36,
        3px 3px 0 #5D7082;
}

.title a{
    color: white;
    text-decoration: none;
}

.title a:hover{
    color: white;
}

/* ==============
    MOBILE: Menu
   ============== */

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

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 12px 0;

    text-align: left;
    text-decoration: none;

    color: white;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover,
nav li.active a {
    border-bottom: 3px solid #262E36;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */

.sub-title,
.tel-header{
    color: white;
    display: inline-block;
    font-size: 1.2em;
    font-style: italic;
    margin: 26px 0 0 20px;
    text-shadow: 1px 1px 0 #5D7082;
}

.tel-header{
    float: right;
    font-style: normal;
    margin: 38px 0 0 10px;
    font-size: 1.4em;
}

.tel-header i,
.contact .fa-phone{
    margin: 0 10px 0 0;
    font-size: 0.9em;
}

ul.contact{
    margin: 0 0 30px 0;
}

.social-header{
    float: right;
    padding: 12px;
    font-size: 1.5em;
}

.social-header a{
    color: white;

    -webkit-transition: all 300ms ease 0s;
    -moz-transition: all 300ms ease 0s;
    -o-transition: all 300ms ease 0s;
    transition: all 300ms ease 0s;
}

.social-header a:hover{
    color: #262e36;
}

.left,
.right{
    width: 49%;
    float: left;
    text-align: center;
}

.right{
    float: right;
}

.footer-container{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

footer ul{
    font-size: 0.85em;
    list-style: outside none none;
    padding: 0;
}

footer ul a{
    color: white;
    text-decoration: none;
    -webkit-transition: all 200ms ease 0s;
    -moz-transition: all 200ms ease 0s;
    -o-transition: all 200ms ease 0s;
    transition: all 200ms ease 0s;
}

footer ul a:hover{
    color: #5189C1;
}

footer .footer-title{
    font-size: 1.6em;
    margin: 15px 0 0 0;
    text-shadow: 1px 1px 0 #5d7082;
    color: white;
}

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

aside h3{
    font-size: 1.13em;
}

aside ul{
    list-style: none;
    padding: 0 0 0 0;
    font-size: 0.85em;
}

aside ul .fa-check{
    color: #8cc63e;
    font-size: 1.4em;
}

.main ul{
    list-style: none;
    padding: 0;
}

.main ul a{
    color: #222222;
    text-decoration: none;
}

.main ul a:hover{
    color: #5189C1;
}

.image{
    width: 100%;
    height: auto;
    margin: 0 0 20px 0;
    border: 1px solid #c2c2c2;
    padding: 8px;
    background-color: #E0DFE4;
    box-sizing: border-box;
}

.home{
    width: 80%;
}

img.default{
    width: 24%;
    margin: 0 6% 0 0;
}

img.result{
    width: 20%;
    margin: 0 6% 0 0;
}

img.result-big,
img.result-sub{
    width: 46%;
    margin: 0 6% 0 0;
}

img.default:nth-child(4n-6),
img.result:nth-child(4n-6),
img.last{
    margin: 0 0 0 0;
}

aside.img img{
    width: 100%;
    height: auto;
    margin: 40px 0 30px 0;
}

article ul{
    margin: 0 0 30px 30px;
}

article section,
article header{
    margin-bottom: 40px;
}

.main article .fa-times{
    color: #EB6160;
}

.main article .fa-check{
    color: #8cc63e;
}

section.trigger{
    margin: 20px 0 40px 0;
}

section.trigger .contact{
    font-size: 1.5em;
    color: #222222;
    font-weight: bold;
}

section.links a{
    width: auto;
    color: #222222;
    display: table;
    -webkit-transition: all 200ms ease 0s;
    -moz-transition: all 200ms ease 0s;
    -o-transition: all 200ms ease 0s;
    transition: all 200ms ease 0s;
}

section.links a:hover{
    color: #5189C1;
}

section.offerte{
    background-color: #81b9f1;
    color: white;
    left: 0;
    padding: 50px 0;
    width: 100%;
    text-shadow: 1px 1px 0 #5D7082;
}

section.offerte .wrapper{
    margin: 0 auto;
    width: 40%;
    max-width: 540px;
}

section.offerte .wrapper h2,
section.offerte .wrapper p{
    text-align: center;
}

section.offerte .wrapper #submit{
    width: 100%;
    margin: 20px 0 15px;
}

section.offerte .wrapper .g-recaptcha{
    margin: 30px 0 10px 0;
}

section.offerte .wrapper p.offerte-sub-title{
    margin: 0 0 2em 0;
}

section.offerte .wrapper h2{
    margin: 1em 0 0.3em 0;
    font-weight: 600;
}

section.offerte .alert{
    text-align: center;
    margin: 40px 0 30px 0;
}

#inputSubject{
    padding: 6px 12px 6px 8px;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-device-width : 1px) and (max-device-width : 585px) {

    .title{
        font-size: 2.0em;
        display: block;
        line-height: normal;
        margin: 20px 0 0 0;
        text-align: center;
    }

    .tel-header{
        margin: 0 0 30px;
        text-align: center;
        width: 100%;
        float: none;
    }

    article ul{
        text-align: left;
    }

    .main article h1{
        font-size: 1.8em;
    }

    .sub-title{
        font-size: 1em;
        margin: 0 0 20px;
        text-align: center;
        width: 100%;
    }

    nav{
        margin: 0 0 20px 0;
    }

    nav a {
        background-color: #5189C1;
        text-align: center;
    }

    nav a:hover{
        border-bottom: none;
    }

    nav li.active a {
        border: none;
        background-color: #829BB5;
    }
    
    body{
        margin: 0 0 480px;
    }

    header{
        text-align: left;
    }

    footer .left,
    footer .right{
        width: 100% !important;
        margin: 20px 0;
    }

    img.result,
    img.result-big,
    img.default{
        width: 100%;
        margin: 0 0 20px 0;
    }

    section.offerte .wrapper{
        margin: 0 auto;
        width: 90%;
    }

}

@media only screen and (min-device-width : 585px) and (max-device-width : 770px) {

    .social-header{
        position: absolute;
        right: 20px;
        top: 95px;
    }

    .title{
        display: inline-block;
    }

    .tel-header{
        margin: 0 0 30px 0;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    header.wrapper{
        text-align: center;
    }

    .sub-title{
        font-size: 0.94em;
        text-align: left;
    }

    nav a {
        font-size: 0.63em;
    }

    img.result,
    img.default{
        width: 100%;
        margin: 0 0 20px 0;
    }

    section.offerte .wrapper{
        margin: 0 auto;
        width: 90%;
    }
}

@media only screen and (min-device-width : 770px) and (max-device-width : 930px) {

    .title{
        display: inline-block;
        float: none !important;
    }

    .tel-header{
        margin: 0 0 30px 0;
        display: block;
        text-align: center;
        width: 100%;
    }

    header.wrapper{
        text-align: center;
    }

    .sub-title{
        font-size: 0.94em;
        text-align: left;
    }

    nav a {
        font-size: 0.8em;
    }

    img.result
    img.default{
        width: 100%;
        margin: 0 0 20px 0;
    }

    section.offerte .wrapper{
        margin: 0 auto;
        width: 90%;
    }

}

@media only screen and (min-width: 585px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        margin: 0 3% 0 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        /*-webkit-box-shadow: 0 5px 10px #aaa;*/
           /*-moz-box-shadow: 0 5px 10px #aaa;*/
                /*box-shadow: 0 5px 10px #aaa;*/
    }

/* ============
    WIDE: Menu
   ============ */

    .title {
        float: left;
    }

    nav {
        float: left;
        width: 100%;
    }

/* ============
    WIDE: Main
   ============ */

    .main article {
        float: left;
        width: 100%;
    }

    .main article.sub-article{
        width: 55%;
    }

    .main aside {
        float: right;
        width: 40%;
    }
}

@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.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;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        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) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]: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;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}