/*
Theme Name: K.C Windscreens
Author: Craig Ramsay
Author URI: http://www.malinkymedia.com
Description: Theme for www.kcwindscreens.co.uk
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

/* ==========================================================================
   Contents
   ========================================================================== */

/*
My Styles - Main Responsive Divs
My Styles - Header
My Styles - Footer
My Styles - Content
My Styles - Random Styles
My Styles - IE Styles
Helper Classes
Media Queries
*/

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #4b4b4b;    
    font-family: Helvetica, Arial, sans-serif;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.9375em; /*15px Base*/
    color: #404041;
    line-height: 1.4;
    text-align: center; /*ie6 check*/
}

/*
 * 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 and the bottom of their containers: h5bp.com/i/440
 */
img {
    vertical-align: middle;
    max-width: 100%;
    height: auto; /*ensure height resizes*/
}

/*
 * Add to non responsive images that don't want shrinking
 */
img.non_responsive {
    max-width: none;
} 

/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    overflow: auto; 
    vertical-align: top;    
    resize: vertical;
}

/*
 * always set my heading text and color
 */
h1, h2, h3, h4, h5, h6 {
}

/*
 * always 0 heading margin from normalize.css
 */
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

h1 {
    margin-top: 0.67em;
    font-size: 1.33333333333333em; /*20/15*/
}

h3 {
    font-size: 1.2em; /*18/15*/
}

/*
 * always set my own links
 */
a,
a:visited {
    color: #00aeef;
    font-weight: bold;
    text-decoration: none;
}

/*
 * always set my own links
 */
a:hover {
    text-decoration: underline;
}

/*
 * always set my own p size
 */
p {
}

/*
 * sometimes it need zero'ing
 */
p.p_no_margin {
    margin: 0;
}

p:first-child {
}

/*
 * always set my own ul, ol size
 */
ul,
ol {
    margin: 0;
    padding: 0 0 0 30px;
}

/*
 * always use to neutralise a list
 */
ul.list_no_style,
ol.list_no_style {
    list-style-type: none;
    margin: 0;
    padding: 0; 
}

/* ==========================================================================
   My Styles - Main Responsive Divs
   ========================================================================== */

.wrap_main {
    width: 100%;    
    max-width: 990px;
    text-align: left; /*ie6 check*/
    margin: 10px auto;
}

.wrap_mobile {
    width: 100%;    
    max-width: 990px;
    text-align: left; /*ie6 check*/
    margin: 0 auto;
    display: none;
}

.wrap_full {
    width: 100%;    
    text-align: left; /*ie6 check*/
    background: #404041;
}

.wrap_full_inner {
    max-width: 990px;    
    text-align: left; /*ie6 check*/
    margin: 0 auto;
}

/*
 * normal wrap inner with margin to make 980
 */
.wrap_inner {
    margin: 0 5px;
}

.col_span_10_10 {
    width: 100%;
}

.col_span_9_10 {
    width: 89.795918367%;
}

.col_span_8_10 {
    width: 79.591836735%;
}

.col_span_7_10 {
    width: 69.387755102%;
}

.col_span_6_10 {
    width: 59.183673469%;
}

.col_span_5_10 {
    width: 48.979591837%;
}

.col_span_4_10 {
    width: 38.775510204%;
}

.col_span_3_10 {
    width: 28.571428571%;
}

.col_span_2_10 {
    width: 18.367346938%;
}

.col_span_1_10 {
    width: 8.163265306%;
}

.col {
    float: left;
    margin: 0 0 0 2.040816327%;
}

.col:first-child {
    margin-left: 0;
}

.col.no_margin {
    margin-left: 0;
}

/* ==========================================================================
   My Styles - Header
   ========================================================================== */

#nav ul {
    float: right;
    margin: 47px 0 0 0;
    padding: 0;
    list-style-type: none;
    display: inline-block;
}

#nav ul.menu li {
    position: relative;
    float: left;
    margin-left: 30px;
}

#nav ul.menu li:first-child {
    margin-left: 0;
}

#nav ul.menu li a {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    display: inline-block;
    padding: 0;
    text-decoration: none;
    color: #404041;
    font-size: 2em; /*30/15*/
    text-transform: uppercase;
}

#nav ul.menu li a:hover {
    color: #00aeef;
}

#nav_mobile {
    display: none;
    position: fixed;
    width: 100%;   
    z-index: 9999;
    background: #00aeef;    
}

#nav_mobile .col_span_1_10 {
    width: auto;
}

#nav_mobile_menu {
    display: none;
}

.nav_mobile_icon {
    display: none;
}

#nav_mobile_toggle {
    display: none;
    clear: both;    
}

#nav_mobile_logo {
    display: none;
    text-align: center;
    padding-top: 45px;
    margin-bottom: 30px;
}

#nav_mobile_menu a {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    display: inline-block;
    font-size: 1.2em; /*18/15*/
    font-weight: normal;
    padding: 4px 7px 4px 5px; /*set padding same as dropdown nav*/
}

#nav_mobile_menu_nudge {
    display: inline-block; /*nudge menu text down slightly as using inline image now*/
}

#nav_mobile_menu a img {
    float: left;
    margin-right: 5px;
    margin-top: 2px;
    max-width: none;
}

#nav_mobile_menu a:link,
#nav_mobile_menu a:visited {
    color: #FFFFFF;        
    text-decoration: none;
}

#nav_mobile_menu a:focus {
    outline: none; /*remove dotted border normalize.css*/
}

.nav_mobile_icon {
    text-align: right;
}

.nav_mobile_icon a {
    display: inline-block;
    margin-left: 8px;
    margin-top: 4px;    
}

.nav_mobile_icon a:first-child {
    margin-left: 0;
}

.nav_mobile_icon a:last-child {
    margin-right: 5px;
}

#nav_mobile_toggle {
    border-top: 1px solid #FFFFFF;
}

#nav_mobile_toggle li {
    margin-bottom: 0;
    border-bottom: 1px solid #00aeef;
    background: #FFFFFF;
    color: #00aeef;    
}

#nav_mobile_toggle li a {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    display: block;
    height: 30px;
    padding: 9px 0 4px 5px;
    text-decoration: none;
    color: #404041;
    font-size: 1.2em; /*18/15*/    
}

#nav_mobile_toggle li a:hover {
    background: #00aeef; 
    color: #FFFFFF; 
}

#nav ul.menu .current-menu-item > a,
#nav ul.menu .current_page_item > a,
#nav ul.menu .current-page-ancestor > a {
    color: #00aeef; 
}

#nav ul.menu li.special_sub_page_active_class a:link,
#nav ul.menu li.special_sub_page_active_class a:visited {
    color: #00aeef; 
}

#nav ul.menu li.special_sub_page_class a:hover {
    color: #00aeef; 
} 

#nav_mobile_toggle .current-menu-item > a,
#nav_mobile_toggle .current_page_item > a,
#nav_mobile_toggle .current-page-ancestor > a,
#nav_mobile_toggle li.special_sub_page_active_class a,
#nav_mobile_toggle li.special_sub_page_active_class a:hover {
    background: #00aeef;
    color: #FFFFFF; 
}

#header_strap {
    float: right;
}

.header_phone {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    font-size: 1.6em; /*26/15*/
    margin: 0;
    text-align: right;
    font-weight: bold;
}

.header_email {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    font-size: 1.6em; /*26/15*/
    margin: 0;
    text-align: right; 
    font-weight: bold;
}

/* ==========================================================================
   My Styles - Footer
   ========================================================================== */

#footer {
    height: 204px; /*224px*/
    padding: 10px 0;
    margin-top: 30px;
    background: url(http://www.kcwindscreens.co.uk/img/footer_bkg.png) 100% 61% no-repeat;
}

#footer_strap p {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    font-size: 1.86666666666667em; /*28/15*/
    color: #FFFFFF;
    text-align: center; 
    margin: 0 0 10px 0;   
}

#footer_strap p:first-child {
    margin: 0;   
}

#footer_phone,
#footer_email {
    float: left;
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    font-size: 1.46666666666667em; /*22/15*/
    color: #FFFFFF;    
    text-align: center;
}

#footer_phone p,
#footer_email p {
    margin: 5px 0 0 0;
}

#footer_phone p a,
#footer_email p a {
    color: #FFFFFF;
    text-decoration: none;
}

#footer_bottom {
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue", "Open Sans Condensed", sans-serif;
    font-size: 1.46666666666667em; /*22/15*/
    text-align: center;
}

/* ==========================================================================
   My Styles - Content
   ========================================================================== */

.section_3 {
    margin-top: 30px;
    background: #ffcb05;    
    overflow: hidden;
}

.section_home_yellow {
    padding: 10px;
}

.section_home_yellow ul {
    padding-left: 20px;
}

.col_50_main,
.col_50 {
    float: left;
}

.col_span_50_main,
.col_span_50 {
    width: 50%;
}

.section_mobile_image {
    display: none;
    margin-top: 30px;
    overflow: hidden;    
}

#services_content h3 {
    border-bottom: 3px solid #ffcb05;
}   

#services_content h3:first-child {
    margin-top: 1em;
}

#services_content img {
    margin-top: 20px;
}

/* ==========================================================================
   My Styles - Random Styles
   ========================================================================== */

.bold_text {
    font-weight: bold;
}

.button {
    width: auto;
    height: auto;
    display: inline-block;
    padding: 10px;
    background: #177325;
    border-radius: 0;
    border: none;
    color: #FFFFFF;
    border-radius: none; 
    font-weight: normal;   
    line-height: normal;
}

.button:first-child {
    margin-left: 0;
}

.button:visited {
    background: #177325;
    color: #FFFFFF;    
}

.button:hover {
    background: #0f591a;
    text-decoration: none;
}

.button.red:hover {
    background: #e01f1f;
}

.button_full_width {
    display: block;
    width: 100%
}

/* ==========================================================================
   My Styles - IE Styles
   ========================================================================== */

.lt-ie7 {

}

.lt-ie8  {

}

.lt-ie9 {
}

.lt-ie10 {

}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.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,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (max-width: 870px) {

    #nav ul.menu li {
        margin-left: 16px;
    }

}

@media only screen and (max-width: 860px) {

    .col_span_50_main,
    .col_span_50 {
        width: 100%;
    }

    .col_span_50_main img {
        float: right;
    }    

    .section_3 .col_span_10_10 {
        overflow: hidden;
    }

    .section_3 .col_span_50 img {
        display: none;
    }  

    .section_mobile_image {
        display: block;
    }

}

@media only screen and (max-width: 840px) {

    #nav ul {
        margin-top: 52px;
    }

    #nav ul.menu li a {
        font-size: 1.73333333333333em; /*26/15*/
    }

}

@media only screen and (max-width: 825px) {

    #nav img#logo {
        max-width: 100%;
    }

}

@media only screen and (max-width: 767px) {

    .wrap_main {
        margin-top: 0;
    } 

    .wrap_mobile {
        display: block;
    }

    #nav {
        display: none;
    }

    #nav_mobile {
        display: block;
    }
    
    #nav_mobile_menu {
        display: block;
    }

    .nav_mobile_icon {
        display: block;
    }    

    #nav_mobile_logo {
        display: block;
    }

    #services_content .col_span_2_10 {
        width: 38.775510204%;
    }

}

@media only screen and (max-width: 630px) {

    #footer .col_span_5_10 {
        width: 100%;
    }

    #footer .col.col_span_5_10 {
        margin-left: 0;
    }    

    #footer {
        height: auto;
        background: url(http://www.kcwindscreens.co.uk/img/footer_bkg.png) 100% 60px no-repeat;
    }

    #footer_strap span {
        display: block;
    }

    #footer_email {
        margin-top: 10px;
    }

}

@media only screen and (max-width: 630px) {

    #services_content .col_span_6_10 {
        width: 100%;
    }

    #services_content .col_span_2_10 {
        width: 48.979591837%;
    }

    #services_content .col.col_span_2_10:nth-child(even) {
        margin-left: 0;
    }        

}

@media only screen and (max-width: 460px) {

    #footer {
        background: url(http://www.kcwindscreens.co.uk/img/footer_bkg.png) 100px 30px no-repeat;
    }

}

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {             

    #footer {
        background: url(http://www.kcwindscreens.co.uk/img/footer_bkg@2x.png) 100% 61% no-repeat;
        background-size: 387px;
    }

}

@media
only screen and (-webkit-min-device-pixel-ratio: 2)         and (max-width: 630px),
only screen and (   min--moz-device-pixel-ratio: 2)         and (max-width: 630px),
only screen and (     -o-min-device-pixel-ratio: 2/1)       and (max-width: 630px),
only screen and (        min-device-pixel-ratio: 2)         and (max-width: 630px),
only screen and (                min-resolution: 192dpi)    and (max-width: 630px),
only screen and (                min-resolution: 2dppx)     and (max-width: 630px) {  

        #footer {
            background: url(http://www.kcwindscreens.co.uk/img/footer_bkg@2x.png) 100% 60px no-repeat;
            background-size: 387px;
        }

}

@media
only screen and (-webkit-min-device-pixel-ratio: 2)         and (max-width: 460px),
only screen and (   min--moz-device-pixel-ratio: 2)         and (max-width: 460px),
only screen and (     -o-min-device-pixel-ratio: 2/1)       and (max-width: 460px),
only screen and (        min-device-pixel-ratio: 2)         and (max-width: 460px),
only screen and (                min-resolution: 192dpi)    and (max-width: 460px),
only screen and (                min-resolution: 2dppx)     and (max-width: 460px) {  

        #footer {
            background: url(http://www.kcwindscreens.co.uk/img/footer_bkg@2x.png) 50px 30px no-repeat;
            background-size: 387px;
        }

}


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