/*
    CONTENTS
    --------
    1. Typography
    2. Layout
    3. Header
    4. Small Screens
    5. Mobile Screens

    COLOURS
    -------
    - Body background: #D3DFE5
    - Main background: #EEEEEE
    - Font: #000000
    - Navigation: #49A0CC
    - Navigation shadow: #000000
    - Navigation seperators: #277eaa
    - Footer and menu hover: #182F3A
    - Footer border: #49A0CC
*/

/* === TYPOGRAPHY === */
body, h1, h2, h3, h4, h5, p, span {
    font-size: 14px;
    font-family: Arial;
    color: #000000;
}

h1 { font-size: 26px; }
h2 { font-size: 24px; }
h3 {  }
h4 { font-size: 16px; }
h5 {  }
p { font-size: 14px; }
a, a:visited {
    color: #000000;
    text-decoration: none;
}
a:hover, a:active {
    color: #49A0CC;
}

#navigation li a, #navigation a:visited {
    font-size: 20px;
    text-decoration: none;
    color: #FFFFFF;
}
#navigation li a:hover, #navigation a:active {
    text-decoration: underline;
}

#footer h4, #footer p { color: #FFFFFF; }
#footer a, #footer a:visited { color: #FFFFFF; text-decoration: none; }
#footer a:hover, #footer a:active { color: #FFFFFF; text-decoration: underline; }

/* === LAYOUT === */
body { background-color: #182F3A; margin: 0; padding: 0; }
body > div { background-color: #D3DFE5 }
h1 { border-bottom: 2px solid #49a0cc; text-align: center; }
h2 { margin: 17px; }
h3 {  }
h4 { border-bottom: solid 1px #B9B9B9; }
h5 {  }

.content {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px 20px 120px 20px;
    background-color:#FFFFFF;

}
.no-padding { padding: 0; }

.container {
    overflow: hidden;
    width:835px;
}
.container::after {
    content: " ";
    clear: both;
    display: block;
    width: 0;
}

/* === HEADER === */
#navigation {
    position: relative;
    min-height: 80px;
    background-color: #49A0CC;
    box-shadow: 0px 1px 8px #000000;
    z-index: 800;
}

#navigation > div { margin: 0 auto; overflow: hidden; }
#navigation .nav-logo {
    float: left;
    height: 70px;
    padding-top: 14px;
}
#navigation ul {
    float: right;
    overflow: hidden;
    margin: 0;
	padding: 0;
    width: 345px;
	list-style: none;
}

#navigation li {
    border-right: 1px solid #277eaa;
    box-sizing: border-box;
    float: left;
    position: relative;
    text-align: center;
    width: 33.3%;
}
#navigation li:last-child {
    border: none;
}
#navigation li .overlay {
    background-color: #FFFFFF;
    bottom: 0;
    height: 100%;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 10;

    transition: opacity 350ms;
    -moz-transition: opacity 350ms;
    -webkit-transition: opacity 350ms;
}
#navigation li:hover .overlay,
#navigation li:active .overlay {
    opacity: 0.5;
}
#navigation li.b-domestic {
    background-image: url('/images/nav-domestic.jpg');
    background-size: auto 97px;
    background-position: 50%;
}
#navigation li.b-cleaning {
    background-image: url('/images/nav-cleaning.jpg');
    background-position: 0 100%;
}
#navigation li.b-contact {
    background-image: url('/images/nav-contact.png');
    background-position: 0 80%;
    background-size: 115px 97px;
    background-repeat: no-repeat;
}

#navigation li a, #navigation a:visited {
    display:block;
    padding: 65px 10px 7px;
    position: relative;
    text-shadow: 0px 0px 4px #000000;
    z-index: 20;
}
#navigation .menu { display: none; }

/* === FOOTER === */
#footer {
    background-color: #182F3A;
    border-top: 4px solid #49A0CC;
    min-height: 80px;
    padding-bottom: 11px;
}
#footer ul {
    margin: 0 auto;
    padding: 0px;
 }
#footer ul li {
    display: block;
    float: left;
    margin: 7px 24px;
    min-width: 230px;
}
#footer p { margin: 7px 0; }

@media only screen and (max-width: 970px) {
    .container { width: 87%; }
}

/* === MOBILE SCREENS === */
@media only screen and (max-width: 700px) {
    /* == LAYOUT MOBILE == */
    .container { width: 100%; }
    /* == HEADER MOBILE == */
    #navigation .nav-logo {
        float: none;
        display: block;
        margin: 0 auto;
    }
    #navigation ul {
        float: none;
        /* display: none; */
        width: 100%;
    }
    #navigation ul li {
        float: none;
        text-align: center;
        width :100%;
        border: none;
    }
    #navigation li a, #navigation li a:visited { padding: 22px 0; }
    #navigation .menu { display: block; }
    #navigation li.b-domestic { background: inherit; }
    #navigation li.b-cleaning { background: inherit; }
    #navigation li.b-contact { background: inherit; }

    /* == FOOTER MOBILE == */
    #footer ul { margin: 0; }
    #footer ul li { margin: 18px 6% 0; }
}

/* === GENERAL === */
.underline { text-decoration: underline; }
.bold { font-weight: bold; }
.bold-underline { text-decoration: underline; font-weight: bold; }

/* === PAGE SPECIFIC === */


/* GENERAL */
.instruct {
    color: #939393;
}
.center {
    text-align: center;
}
.contain {
    overflow: hidden;
}
.contain::after {
    content: " ";
    clear: both;
    display: block;
    width: 0;
}
