/*
 * HTML5 Boilerplate
 *
 * 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;
}

body {
    /*font-size: 1em;*/
    line-height: 1.4;
}

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

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*BOX MODEL*/

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*TYPOGRAPHY*/

body {
    font-size: 0.95em;
    color: #444;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
}

h1 {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 6em;
    text-align: center;
    margin: 0;
}

h2 {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: #fff;
    text-align: center;
    font-size: 1.8em;
}

h3 {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: #495e9e;
    font-size: 1.5em;
    margin: 0.5em 0 0 0;
}

p {
    margin: 0.9em 0;
}

a {
    color: #495e9e;
    text-decoration: none;
}

a:hover {
    color: #2fa0b7;
}

a:focus {
    outline: none;
}

/*GENERAL*/

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10%;
}

.col-2 {
    width: 48%;
    float: left;
}

.col-2-last {
    width: 48%;
    float: right;
}


/*HEADER*/

header {
    background: #333;
    height: 65px;
}

#logo {
    float: left;
}

#logo a {
    display: block;
    text-indent: -9999px;
    width: 133px;
    height: 65px;
    background: url(../images/indent-direct-logo.png) no-repeat center center;
    background-size: 133px;
}

nav {
    float: right;
}

nav ul {
    margin: 0;
    padding: 0;
}
nav li {
    float: left;
    margin: 0 0 0 10px;
    height: 65px;
    line-height: 65px;
}

nav a {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    font-size: 1.05em;
}

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


/*MAIN*/

#main {
    background: url(../images/indent-direct-background.jpg) no-repeat center center;
    background-size: cover;
}

#main h1 {
    padding: 120px 0;
    line-height: 1;
    color: #fff;
}

/*ABOUT*/

#about {
    padding: 50px 0;
}

#about .col-2-last {
    padding-top: 15px;
}



.icon-container {    
    width: 16%;
    display: block;    
    float: left;
    margin: 20px 0 20px 7%;
}

.icon-container img {
    width: 100%;
}

.food {
    display: none;
}

/*HIGHLIGHT*/

#highlight {
    background: #495e9e;
    padding: 50px 0;
    -moz-box-shadow:    inset  0  40px 40px -40px #3a4b7e, 
                        inset  0 -40px 40px -40px #3a4b7e;
    -webkit-box-shadow: inset  0  40px 40px -40px #3a4b7e, 
                        inset  0 -40px 40px -40px #3a4b7e;
     box-shadow:        inset  0  40px 40px -40px #3a4b7e, 
                        inset  0 -40px 40px -40px #3a4b7e;
}


/*SERVICES + ETHICS*/

#services {
    padding: 50px 0;
    background: #d2d2d2;
}


/*BRANDS*/

#brands,
#pattern {
    padding: 50px 0;
    background: url(../images/indent-direct-pattern.png) repeat top left;
}


.logo-row-2 {
    padding-top: 30px;
}

.brand-logo {
    height: 160px;
    float: left;
}

.rosies {
    width: 11%;
    margin-right: 8%;
}

.rosies-home {
    background: url(../images/rosies-home-logo.png) no-repeat center center;
    background-size: contain;
}

.rosies-kids {
    background: url(../images/rosies-kids-logo.png) no-repeat center center;
    background-size: contain;
}

.good {
    background: url(../images/good-for-you-logo.png) no-repeat center center;
    background-size: contain;
    width: 43%;
    margin-right: 0;
}

.fgs {
    background: url(../images/fgs-logo.png) no-repeat center center;
    background-size: contain;
    width: 16%;
    margin-right: 0;
}

.rosies-pets {
    background: url(../images/rosies-pets-logo.png) no-repeat center center;
    background-size: contain;
}

.black-decker {
    background: url(../images/black-decker-logo.png) no-repeat center center;
    background-size: contain;
    width: 30%;
    margin-right: 12%;
}

.stanley {
    background: url(../images/stanley-logo.png) no-repeat center center;
    background-size: contain;
    width: 30%;
    margin-right: 12%;
}




/*CONTACT*/

#contact {
    padding: 50px 0;
    background-color: #444;
}

#contact h3,
#contact p,
#contact a {
    color: #fff;
    text-decoration: none;
}

#contact h3 {
    margin-bottom: 0.5em;
}

#contact p {
    margin-top: 0.3em;
    float: left;
}

#contact a:hover {
    color: #2fa0b7;
}

.col-5 {
    float: left;
    width: 17.5%;
    margin-right: 3%;
}

.pos-2 {
    width: 20%;
}

.pos-5 {
    margin-right: 0;
    width: 15%;
}

.icon-left {
    float: left;
    display: block;
    margin-right: 8px;
}

.fa-stack {
    width: 1.6em !important;
    height: 1.6em !important;
    line-height: 1.6em !important;
}

.fa-stack-2x {
    font-size: 1.6em !important;
}

.fa-stack-1x {
    font-size: 0.85em !important;
}

.fa {
    color: #495e9e;
}

.fa-circle {
    color: #fff;
}

.fa-comment {
    line-height: 1.75 !important;
}

/*FOOTER*/

footer {
    padding: 15px 0;
    background: #222;
}

footer p {
    color: #888;
    font-size: 0.9em;
}






/*404 page*/

#error {
    padding: 50px 0;
    background: #d2d2d2;

}

#error h1{
    color: #495e9e;
    font-size: 4.5em;
}

#error h2{
    color: #444;
}

#pattern {
    height: 300px;
}



/* ==========================================================================
   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;
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1500px) {
    
    h2 {
        font-size: 1.5em;
    }

}

@media only screen and (max-width: 1260px) {
    
    h2 {
        font-size: 1.4em;
    }

}


@media only screen and (max-width: 1400px) {
    
    .icon-container {
        width: 18.5%;
        margin: 20px 0 20px 6%;
    }

    .garden,
    .homewares {
        margin-left: 10px;
    }

}


@media only screen and (max-width: 1250px) {
    
    .icon-container {
        width: 20%;
        margin: 12px 0 12px 10%;
    }

    .food {
        display: block;
    }

}

@media only screen and (max-width: 1200px) {
    
    .col-5 {
        float: left;
        width: 22%;
        margin-right: 2.5%;
    }

    .pos-2 {
        width: 26.5%;
    }
    
    .pos-4 {
        margin-right: 0;
    }

    .pos-5 {
        margin-right: 0;
    }

    .logo-row-2 {
        padding-top: 15px;
    }

}

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

    .logo-row-2 {
        padding-top: 10px;
    }

}


@media only screen and (max-width: 1000px) {
    
    .container {
        padding: 0 8%;
    }

    header {
        height: 55px;
    }

    #logo a {
        width: 113px;
        height: 55px;
        background-size: 113px;
    }

    nav li {
        margin: 0 0 0 7px;
        height: 55px;
        line-height: 55px;
    }

    nav a {
        font-size: 1em;
    }

    .icon-container {
        width: 22%;
        margin: 12px 0 20px 10%;
    }
    
    .garden,
    .food,.pets {
        margin-left: 5%;
    }

}

@media only screen and (max-width: 950px) {
    
    .icon-container {
        width: 23%;
        margin: 12px 0 25px 9%;
    }

    .garden,
    .food,.pets {
        margin-left: 4%;
    }

}

@media only screen and (max-width: 900px) {
    
    .icon-container {
        width: 23%;
        margin: 30px 0 10px 9%;
    }

    .garden,
    .food,.pets {
        margin-left: 4%;
    }

    #brands {
        padding: 20px 0;
    }
    
    .col-5 {
        float: left;
        width: 30%;
        margin-right: 2.5%;
    }

    .pos-2 {
        width: 35%;
    }
    
    .pos-3 {
        margin-right: 0;
    }

    .pos-4 {
        margin-right: 2.5%;
        margin-top: 2em;
    }

    .pos-5 {
        margin-right: 0;
        margin-top: 2em;
    }

    .logo-row-2 {
        padding-top: 0;
    }

}


@media only screen and (max-width: 800px) {
    
    .container {
        padding: 0 7%;
    }

    header {
        height: 50px;
    }

    #logo a {
        width: 102px;
        height: 50px;
        background-size: 102px;
    }

    nav li {
        margin: 0 0 0 13px;
        height: 50px;
        line-height: 50px;
    }

    nav a {
        font-size: 0.9em;
        padding: 10px;
    }

    .col-2 {
        width: 100%;
        float: none;
    }

    .col-2-last {
        width: 100%;
        float: none;
    }

    #services .col-2-last {
        margin-top: 4em;
    }

    .icon-container {
        width: 17%;
        margin: 20px 0 20px 9%;
    }

    .garden,
    .homewares {
        margin-left: 0;
    }

    .food {
        display: none;
    }

    .brand-logo {
        height: 140px;
    }

    .rosies {
        width: 12%;
        margin-right: 7%;
    }


    .fgs {
        width: 17%;
        margin-right: 0;
    }

    .black-decker,
    .stanley {
        width: 30%;
        margin-right: 11%;
    }

}

@media only screen and (max-width: 700px) {
    
    .col-5 {
        float: left;
        width: 50%;
        margin-right: 0;
    }

    .pos-3 {
        margin-top: 0.5em;
        float: right;
    }

    .pos-4 {
        margin-top: 0.5em;
    }

    .pos-5 {
        margin-top: 0;
    }
    
    #brands {
        padding: 30px 0 20px;
    }

    .fgs,
    .black-decker,
    .stanley {
        height: 120px;
    }
    

}

@media only screen and (max-width: 600px) {
    
    .container {
        padding: 0 5%;
    }

    header {
        height: 45px;
    }

    #logo a {
        width: 92px;
        height: 45px;
        background-size: 92px;
    }

    nav li {
        margin: 0 0 0 5px;
        height: 45px;
        line-height: 45px;
    }

    nav a {
        font-size: 0.85em;
    }

    #main h1 {
        padding: 70px 0;
    }

    .icon-container {
        margin: 10px 0 10px 9%;
        border-width: 2px;
    }

    .garden,
    .homewares {
        margin-left: 0;
    }


    .brand-logo {
        height: 140px;
    }

    .rosies {
        width: 12.5%;
        margin-right: 6.5%;
    }

    .fgs,
    .black-decker,
    .stanley {
        height: 100px;
    }

}

@media only screen and (max-width: 500px) {
    
    header {
        height: 40px;
    }

    #logo a {
        width: 82px;
        height: 40px;
        background-size: 82px;
    }

    nav li {
        margin: 0 0 0 5px;
        height: 40px;
        line-height: 40px;
    }

    nav a {
        font-size: 0.85em;
    }

    .icon-container {
        margin: 10px 0 10px 9%;
        border-width: 2px;
    }

    .garden,
    .homewares {
        margin-left: 0;
    }

    /*#brands {
        padding: 25px 0 30px;
    }*/

    .rosies {
        width: 13%;
        margin-right: 6%;
        height: 140px;
    }

    .fgs,
    .black-decker,
    .stanley {
        height: 80px;
    }


}

@media only screen and (max-width: 430px) {
    
    nav li {
        margin: 0 0 0 3px;
        height: 40px;
        line-height: 40px;
    }

    nav a {
        font-size: 0.8em;
    }
    

    .col-5 {
        float: left;
        width: 100%;
        margin-right: 0;
        margin-top: 1.6em;
    }

    .pos-2 {
        width: 100%;
        margin-right: 0;
        margin-top: 1.6em;
    }
    
    .pos-3 {
        width: 100%;
        margin-right: 0;
        margin-top: 1.6em;
    }

    .pos-4 {
        width: 100%;
        margin-right: 0;
        margin-top: 1.6em;
    }

    .pos-5 {
        width: 100%;
        margin-right: 0;
        margin-top: 1.6em;
    }

    .fax {
        margin-top: 1.6em;
    }
}





@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 */

    #logo a {
        background: url(../images/indent-direct-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

    #brands,
    #pattern {
        background: url(../images/indent-direct-pattern@2X.png) repeat top left;
        background-size: 121px;
    }

    .rosies-home {
        background: url(../images/rosies-home-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

    .rosies-kids {
        background: url(../images/rosies-kids-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

    .good {
        background: url(../images/good-for-you-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

    .rosies-pets {
        background: url(../images/rosies-pets-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

    .fgs {
        background: url(../images/fgs-logo@2X.png) no-repeat center center;
        background-size: contain;
    }

}



/* ==========================================================================
   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;
    }
}
