/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,
button,
input,
select,
textarea {
    color: #222;
}
html {
    font-size: 1em;
/*    line-height: 1.4;*/
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
/*::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}
::selection {
    background: #b3d4fc;
    text-shadow: none;
}*/
/*
 * A better looking default horizontal rule
 */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */
audio,
canvas,
img,
video {
    vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    resize: vertical;
}
/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */
.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
header, nav, main, footer {
 /*   min-width: 940px; */
}
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}


/* ==========================================================================
	Contains main css code
	@Author: Yura Heiko
   ========================================================================== */

body {
    font-family:'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1054px;
    margin: 0 auto;
}

#main-wrapper {

}
#main-wrapper #main-slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
}
#main-wrapper #main-slider ul li {
    outline: none;
}
#main-wrapper #main-slider ul li .slider-image img {
    width: 100%;
    object-fit: cover;
    height: 990px;
}
header#header {
    z-index: 1000;
    position: relative;
    padding: 30px 0;
}
header#header #logo-wrapper {
    float: left;
}

header#header #logo-wrapper a img {
    width: 250px;
}
header#header #mob-trigger {
    display: none;
    float: right;
}
header#header #main-menu {
    padding: 24px 0 20px 0;
    float: right;
}
header#header #main-menu nav ul li {
    display: inline-block;
    background: url("../img/menu-line.png") no-repeat;
    background-position: 100% 50%;
}
header#header #main-menu nav ul li a {
    text-decoration: none;
    color: #F9F4F4;
    font-size: 14px;
    padding: 20px;
    line-height: 30px;
}
header#header #main-menu nav ul .menu-item-has-children .sub-menu {
    visibility: hidden;
    background: #900000;
    position: absolute;
    z-index: 100;
    /*margin: 10px 172px 0;*/
    padding: 5px;
}
header#header #main-menu nav ul .menu-item-has-children:hover > .sub-menu,
header#header #main-menu nav ul .menu-item-has-children:active > .sub-menu {
    visibility: visible;
}
header#header #main-menu nav ul .menu-item-has-children .sub-menu li,
header#header #main-menu nav ul .menu-item-has-children .sub-menu li {
    background: none;
    display: block;
    padding-bottom: 10px;
}
header#header #main-menu nav ul .menu-item-has-children .sub-menu li a,
header#header #main-menu nav ul .menu-item-has-children .sub-menu li a {
    background: none;

}

header#header #main-menu nav ul li a:hover,
header#header #main-menu nav ul li a:active {
    background: url("../img/arrow-hover.png") no-repeat;
    background-position: 50% 100%;
    color: #250101;
}

header#header #banner {
    padding: 80px 0 55px;
}
header#header #banner .main-title {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
}
header#header #banner .main-title h1 {
    font-size: 50px;
    color: #000000;
    font-weight: 900;
}
header#header #banner .main-title h2 {
    font-size: 41px;
    color: #A60303;
    font-weight: 500;
}
#main-wrapper main#main {
    position: relative;
}
main#main {
    padding-top: 25px;
}
main#main .left-container {
    width: 598px;
    float: left;
    max-height: 530px;
}
main#main .section-title h3,
main#main .caption h1,
main#main .caption h1 a
{
    text-align: center;
    font-size: 28px;
    color: #000000;
    text-transform: uppercase;
    padding-bottom: 15px;
    background: url("../img/title-bottom-line.png") no-repeat;
    background-position: 50% 100%;
    margin-bottom: 25px;
    text-decoration: none;
}
main#main .section-title h3 span {
    color: #8C0000;
}
main#main .section-par {
    margin-top: 24px;
}
main#main .section-par p {
    font-size: 14px;
    text-align: center;
    color: #000000;
}

main#main #services #images {
    margin-top: 35px;
}
main#main #services #images .image-block {
    width: 199px;
    height: 183px;
    /*display: inline-block;*/
    float: left;
    text-decoration: none;
    background-size: cover;
}
main#main #services #images .image-block .image-title {
    text-decoration: none;
    color: #ECF3EE;
    text-transform: uppercase;
    font-size: 16px;
    text-align: center;
    position: relative;
    top: 78%;
}
main#main #services #images #water-damage {
    background-image: url("../img/water-house-icon.jpg");
}
main#main #services #images #fire-damage {
    background-image: url("../img/fire-house-icon.jpg");
}
main#main #services #images #tree-help {
    background-image: url("../img/tree-icon.jpg");
}
main#main #services #images #emergency-help {
    background-image: url("../img/emergency-icon.jpg");
}
main#main #services #images #mold-damage {
    background-image: url("../img/mold-icon.jpg");
}
main#main #services #images #reconstruction-help {
    background-image: url("../img/reconstruction-icon.jpg");
}

footer#footer {
    background: url("../img/footer-bg.png") no-repeat;
    background-size: cover;
    width: 385px;
    height: 183px;
    float: right;
    padding: 65px 0;
    position: relative;
    left: 64.1%;
    bottom: 183px;
}
footer#footer #copyright {
    margin: 0 15px;
    font-size: 11px;
    color: #ffffff;
}

footer#footer #copyright a {
    font-size: 11px;
    color: #ffffff;
}

footer#footer .social {
    margin: 10px 5px;
}
footer#footer .social a {
    padding: 10px;
    text-decoration: none;
}
footer#footer .social a .fa {
    font-size: 16px;
    color: #ffffff;
    display: inline-block;
}
footer#footer .social a:hover,
footer#footer .social a:active {
    opacity: 0.6;
}

@media only screen and (max-width : 1053px) {
    .container {
        width: 100%;
    }
    #main-wrapper {
        background: none;
        padding: inherit;
    }
    #main-wrapper #main-slider {
        display: none;
    }
    main#main #services {
        padding: 0 15px;
    }
    header#header {
        background: url("../img/header-bg-responsive.jpg") no-repeat top scroll #F3F3F3;
        padding-top: 20px;
        background-position: 50% 0%;
        background-repeat: repeat-x;
    }
    header#header #logo-wrapper {
        float: none;
        text-align: center;
    }
    header#header #logo-wrapper a img {
        width: 155px;
        height: 45px;
    }
    header#header #mob-trigger {
        background: url("../img/mobile-trigger.png") no-repeat;
        display: block;
        width: 42px;
        height: 37px;
        text-align: center;
        font-size: 21px;
        line-height: 44px;
        cursor: pointer;
        color: #fff;
        top: 143px;
        position: relative;
        float: none;
        margin: 0 auto;
    }
    header#header #main-menu {
        top: 143px;
        position: relative;
        text-align: center;
        padding: inherit;
        /*margin-top: 37px;*/
        display: none;
        float: none;
        padding: 15px 0;
    }
    header#header #main-menu nav ul li {
        background: none;
        display: block;
    }
    header#header #main-menu nav ul li a {
        color: #000;
        display: inline-block;
        padding: 5px;
        font-size: 21px;
    }
    header#header #main-menu nav ul .menu-item-has-children .sub-menu {
        background: transparent;
        display: block;
        position: relative;
        margin: 0;
        top: 100%;
        visibility: visible;
        width: 100%;
        left: 0;
        right: 0;
        padding: inherit;
        border: none;
    }
    header#header #main-menu nav ul .menu-item-has-children .sub-menu li,
    header#header #main-menu nav ul .menu-item-has-children .sub-menu li {
        padding: inherit;
    }
    header#header #main-menu nav ul .menu-item-has-children .sub-menu li a,
    header#header #main-menu nav ul .menu-item-has-children .sub-menu li a {
        font-size: 15px;
        /*padding: inherit;*/
        padding: 5px 0;
    }
    header#header #main-menu nav ul li a:hover,
    header#header #main-menu nav ul li a:active {
        background: none;
    }
    header#header #banner {
        background: url("../img/banner-bg-responsive.jpg") no-repeat;
        background-size: cover;
        width: 100%;
        height: 195px;
        position: relative;
        top: 143px;
    }
    header#header #banner .main-title {
        display: none;
    }

    main#main .left-container {
        width: 100%;
        float: none;
        margin: 0 auto;
        position: relative;
        top: 143px;
    }
    main#main #services #images {
        margin: 0 auto;
        padding-top: 10px;
    }
    main#main #services #images .image-block {
        width: 100%;
        max-width: 420px;
        height: 265px;
        display: block;
        float: none;
        margin: 20px auto;
    }
    main#main #services #images .image-block .image-title {
        font-size: 22px;
        top: 80%;
    }
    main#main #services #images #water-damage {
        background-position: 50% 50%;
        background-size: cover;
    }
    main#main #services #images #fire-damage {
        background-position: 50% 50%;
        background-size: cover;
    }
    main#main #services #images #tree-help {
        background-position: 50% 50%;
        background-size: cover;
    }
    main#main #services #images #emergency-help {
        background-position: 50% 50%;
        background-size: cover;
    }
    main#main #services #images #mold-damage {
        background-position: 50% 50%;
        background-size: cover;
    }
    main#main #services #images #reconstruction-help {
        background-position: 50% 50%;
        background-size: cover;
    }

    footer#footer {
        background: url("../img/footer-bg-responsive.png");
        background-size: cover;
        padding: 25px 0 20px;
        height: inherit;
        width: 100%;
        text-align: center;
        position: inherit;
    }
}







    /* ========================================================================== */


/* ==========================================================================
   Helper classes
   ========================================================================== */
.row.no-gutter {
    margin-left: 0;
    margin-right: 0;
}
.row.no-gutter [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}
#text-content .text > ul {
    list-style-type: disc;
    margin-left: 20px;
}
.left {
    float: left;
}
.right {
	float: right;
}
.inline {
	display: inline-table;
}
/*
 * Image replacement
 */
.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
}
.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
    display: none !important;
    visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
    visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.col:before,
.clearfix:after,
.col:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.clearfix:after,
.col:after {
    clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}
@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

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