/*
  Theme Name: Colborne Child Theme
  Theme URI: http://www.actuallygood.ca
  Author: Claire Ryan (Tech) / Fay-Lisa Jensen (Design)
  Author URI: http://www.actuallygood.ca
  Description: Theme Framework for use with Pace website projects | compatible with WP 3.4+
  Version: 1.0
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
  Template: agskeleton_simple
*/




/* ~ reset and re-styling of basics (Inspired by E. Meyers)
---------------------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul  li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
  background: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #1a1a1a;


}
/* ~ Typography
---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {

    font-weight: normal;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 { font-size: 46px; line-height: 50px; }
h2 { font-size: 35px; line-height: 40px; }
h3 { font-size: 28px; line-height: 34px; }

/* inside page titles */
  h4 {
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  font-weight:700;
  margin: 0 0 25px 0;
  }

h5 { font-size: 17px; line-height: 24px; }
h6 { font-size: 14px; line-height: 21px; }

/* Typography colors */


p { padding: 0 0 30px 0; display: block; float:left;}
p img { margin: 0; }
p.lead { font-size: 21px; line-height: 27px;  }

em { font-style: italic; }
strong { font-weight: bold; }
small { font-size: 80%; }


/* Blockquotes  */
blockquote, blockquote p {
    font-size: 17px;
    line-height: 24px;
    font-style: italic;
}
blockquote {
    margin: 0 0 20px;
    padding: 9px 20px 0 19px;
    border-left: 1px solid #ddd;
}
blockquote cite {
    display: block;
    font-size: 12px;

}
blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { }


hr {
  clear:both;
    border: solid #000;
    border-width: 3px 0 0;
    padding: 30px 0 0;
    height: 0;

}
/* ~ universal links
---------------------------------------------------------------------------- */
a, a:visited, a:link {
    color: #333;
    outline: 0;
}
a:hover, a:focus {
    color: #000;
}
.header a {
  text-decoration: none;
}
p a, p a:visited {
    line-height: inherit;
}
/* ~ lists. mostly for use in posts
---------------------------------------------------------------------------- */

ol {
    list-style: decimal;
}
ul { margin-bottom: 0 }

ol, ul.square, ul.circle, ul.disc {
    margin-left: 30px;
}
ul ul, ul ol,
ol ol, ol ul {
    margin: 4px 0 5px 30px;
    font-size: 90%;
}
ul ul li, ul ol li,
ol ol li, ol ul li {
    margin-bottom: 6px;
}
li {
    line-height: 18px;

}
li p {
    line-height: 21px;
}

/*  for responsive images
----------------------------------------------------------------------------*/
img.scale-with-grid, img {
    max-width: 100%;
    height: auto; }

/* ~ form elements, buttons, fields
---------------------------------------------------------------------------- */
form {
    margin-bottom: 20px;
}
fieldset {
    margin-bottom: 20px;
}
/*  styling the input areas  */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border: 1px solid #ccc;
    padding: 6px 4px;
    outline: none;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    font: 13px Helvetica, Arial, sans-serif;
    color: #777;
    margin: 0;
    width: 210px;
    max-width: 100%;
    display: block;
    margin-bottom: 20px;
    background: #fff;
}
select {
    padding: 0;
}
/* styling the focused state of above input fields */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    border: 1px solid #aaa;
    color: #444;
    -moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
    -webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
    box-shadow:  0 0 3px rgba(0,0,0,.2);
}
/* setting the textarea style */
textarea {
    min-height: 60px;
}
/* the label style */
label,
legend {
    display: block;
    font-weight: bold;
    font-size: 13px;
}
select {
    width: 220px;
}
input[type="checkbox"] {
    display: inline;
}
label span,
legend span {
    font-weight: normal;
    font-size: 13px;
    color: #444;
}
/* ~ Menu Elements
---------------------------------------------------------------------------- */
/* hides the menu icon until used on 400px and lower mobile. sets style ahead of time */
  .menu-icon,
  .menu-toggle  {
    clear:both;
    display:none;
    color:#000;
    padding:15px 22px 15px 45px;
    z-index:9999;
    background: transparent url(images/menu-arrow.png) right center no-repeat;
    cursor: pointer;
    text-transform: uppercase;
  }
  .menu-toggle {
    text-align: right;
  }
  .mobile_nav { display: none; }

  .mobile .sub-menu { display: none; }

  .nav-container {

    margin-top: 100px;
    }
  .nav-container ul {
  list-style: none outside;
  }
    .hor-nav,
  .sub  {
        margin-bottom: 0;
    }

    .hor-nav li,
  .sub li {
        margin: 0;
        position: relative;
    float: left;

    }
    .hor-nav li a,
  .hor-nav li a:visited,
  .sub li a,
  .sub li a:visited {
        display:block;
        color:#000000;
        padding: 14px 10px;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .hor-nav li a:hover,
  .sub li a:hover {
        text-decoration:none;
        color: #f90808;
    }
    /* changed to build the drop down */
    .hor-nav ul {
        position:absolute;
        top:-99999px;
        opacity: 0; /* Hide sub level */
        -webkit-transition: opacity .5s ease-in-out;
        -moz-transition: opacity .5s ease-in-out;
        -o-transition: opacity .5s ease-in-out;
        z-index: 497;
        background: transparent;
padding: 0;
    }
    .hor-nav li:hover>ul {
        opacity: 1;
        position:absolute;
        top: 43px;
        left: -20px; /* has the line appear below its parent */
    background: #fff;
    z-index: 9999;
    }
    .hor-nav ul li {float:none; } /* setting the float to none allows the a-tag below to fill the container */

    .hor-nav ul li a,
  .hor-nav ul li a:visited {
    padding: 3px 10px;
    display:block;
    font-size: 12px;
    }
 .hor-nav ul li a:hover {
   background: #D9D9D9;
   color:#000;
 }

  .hor-nav li.current-menu-item a,
  .hor-nav li.current_page_item a,
  .hor-nav li.current-page-ancestor a,
  .hor-nav li.current-menu-ancestor a,
  .sub li.current-menu-item a,
  .sub li.current_page_item a,
  .sub li.current-page-ancestor a,
  .sub li.current-menu-ancestor a {
    color: #f90808;
    }

    /* changes the child's colors once parent is active */
  .hor-nav li.current-menu-item ul a,
  .hor-nav li.current_page_item ul a,
  .hor-nav li.current-page-ancestor ul a  {
    color: #000;
    }
    /* and the hover event. below everything so parent definitions don't over write it */
  .hor-nav li.current-menu-item ul a:hover,
  .hor-nav li.current_page_item ul a:hover  {
    color: #f90808;

    }
/* second drop down */
    /* builds the 'drop down'
    .nav-container ul ul li ul,
  .nav-container ul ul li.current-menu-item ul,
  .nav-container ul ul li.current_page_item ul,
  .nav-container ul ul li.current-menu-ancestor ul,
  .nav-container ul ul li.menu-item-has-children ul,
  .nav-container ul ul li.current-menu-item.menu-item-has-children ul,
  .nav-container ul ul li.current_page_item.menu-item-has-children ul,
  .nav-container ul ul li.current-menu-ancestor ul,
.nav-container ul li.current-menu-item.current_page_item.menu-item-has-children ul ul   {
        position:absolute;
        top:-99999px;
        opacity: 0; /* Hide sub level
        -webkit-transition: opacity .5s ease-in-out;
        -moz-transition: opacity .5s ease-in-out;
        -o-transition: opacity .5s ease-in-out;
        z-index: 497;
        background: transparent;
        padding: 2px 2px 12px 2px;
    right: 0; /* fixes horizontal scroll issue. keep at all costs or face some serious wrath
    }

    .nav-container ul ul li:hover ul,
  .nav-container ul ul li.current-menu-item.menu-item-has-children:hover ul,
  .nav-container ul ul li.current_page_item.menu-item-has-children:hover ul,
  .nav-container ul ul li.current-menu-ancestor:hover ul,
  .nav-container ul li.current-menu-item.current_page_item.menu-item-has-children ul li:hover ul    {
        opacity: 1;
        position:absolute;
        top: 20px;
        right: 0px;
    background: #f8f8f8;
    border: 1px solid #ebebeb;
    z-index: 9999;
    width: auto;
    }*/



  /* writes colors for the first drop line, on current pages while parent is active but children are not */
  .hor-nav ul li.current-page-ancestor a,
  .hor-nav ul li.current-menu-ancestor a,
  .hor-nav ul li.current_page_ancestor a  {
  color: #000;
  }


  /* for the active link in drop line menu */
  .hor-nav ul li.current-menu-item a { color: #f90808; }


    /* drop line 'active' menu item when second child is up */
    .nav-container ul ul li.current-page-ancestor a {
    color: #f90808;
    }
    /* changes the color of the active pages' dropdown children. have a headache yet?
    .nav-container ul ul li ul li a {
      color:#000;
      }
    .nav-container ul ul li ul li a:hover {
    color: #f90808;
    }*/
    /* gives the third set the ability to sit right damnit.
    .nav-container ul ul ul li {
    display: block;
    width: 100%;
    text-align: right;
    }
  .nav-container ul ul ul li a {
    padding: 6px 10px;
    display: block;
  }
*/

/* adds to the default menu's specs, for menus on each page */
.sub { padding: 0;}
.sub li, .sub li a, .sub li a:visited  { padding-left: 0; }

.hor-nav > .menu-item-has-children > a {
  padding-right: 25px;
  position: relative;
}
.hor-nav > .menu-item-has-children > a:after {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  margin-top: 16px;
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  content: '\e800';
  position: absolute;
  top: 0;
  right: 0;
}

.mobile_nav .hor-nav > .menu-item-has-children > a:after {
  margin-top: 4px;
}


/* Structural Elements
---------------------------------------------------------------------------- */

  /* Floats   */
  .floatright, .alignright { float: right; }
  .floatleft, .alignleft { float: left; }
  .txt-right { text-align:right; }
  .twenty { font-size: 18px; line-height: normal; }

  /* header area */
  .header {
    padding-top: 20px;
    }
  /* color for the body of text between header and footer */
  .grey-bkg {
    background: #f2f2f2;
    border-top: 2px solid #1b1b1b;
  }

  /* breadcrumbs */
  .breadcrumbs {
    padding: 0;
    text-transform: uppercase;
    font-size: 12px;
    color: #f90808;
    }
    /* changes the font colors */
    .breadcrumbs a, .breadcrumbs a:visited {
      color: #000;
      }
    .breadcrumbs a:hover {
      color: #f90808;
      }
    /* for pages that don't have the sub-menu, to keep consistently in layout */
  .pad-t { padding: 24px 0 14px; }

  /* for the two-columned pages */
  .six-pad-r { padding: 0 20px 0 0; }
  .six-pad-l { padding: 0 0 0 20px; }

  /* for the dual bar with text inside shortcode */
  .outline {
    clear:both;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 12px 0;
    font-style: italic;
    font-size: 20px;
    text-align: center;

  }

  /* slider hacks */
  .slider-half { width: 48%; float: left; }
  .metaslider .caption-wrap {
    position: absolute !important;
    background: #1b1b1b !important;
    opacity: 1 !important;
  }
  .metaslider .caption-wrap.mobile {
    position: relative !important;
  }

  /* auto styling the images for the projects pages */
  .p-images img {
    margin: 3px;
    float:left;
    }

/* ~ Sidebar Elements
---------------------------------------------------------------------------- */

/* ~ Footer Elements
---------------------------------------------------------------------------- */
  .footer {
    border-top: 3px solid #ec0c0c;
    padding-top: 20px;
    background: #fff;
    text-transform: uppercase;
    font-size: 11px;
  }

/* ~ Media Queries
---------------------------------------------------------------------------- */

/* #Tablet (Portrait) Design for a width of 768px
---------------------------------------------------------------------------- */
@media only screen and (min-width: 768px) and (max-width: 959px) {

/* pushes the drop line slightly to the left, so it doesn't vanish in tablet sizes */

}


/*  #Mobile (Portrait) Design for a width of 320px
---------------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {

/* takes extra padding off columns used to separate text */
.six-pad-l { padding-left: 0; }

  .menu-icon { margin-top: 55px; }
  .menu-icon,
  .menu-toggle,
  .mobile_nav {
    display: block;
    }

  .nav-container { margin-top: 0; }
  .main_nav { display: none; }


  .slider-half {
    width: 96%;
    float: none;
    text-align: left;
    padding: 5px;
   }

  .nav-container ul ul { margin: 0; }
  .hor-nav,
  .sub {
    display: none;
    position:absolute;
    right: 0;
    top: 170px;
    z-index: 9999;
    text-align: right;
    background: #fff;
    padding: 0;
  }
  /* changes the margin on the second set of menus */
  .sub {
  top: 25px;
  }

  .hor-nav li,
  .sub li {
  float:none;
  }

  .hor-nav li a,
  .sub li a {
    display:block;
    line-height: 20px;
    padding: 2px 20px;
  }
  .sub li.current-menu-item a,
  .sub li.current_page_item a,
  .sub li.current-page-ancestor a,
  .sub li.current-menu-ancestor a {
    background: #D9D9D9;
    color: #000;
    }
  /* changes arrow so it sits where it should in the new structure */
  .menu-item-has-children {
    // background: url(images/menu-arrow-m.png) right top no-repeat;
  }
/* changes how the 'active' state behaves on current page */
  .nav-container ul li.current-menu-item.menu-item-has-children ul, .nav-container ul li.current_page_item.menu-item-has-children ul, .nav-container ul li.current-menu-ancestor ul {
    width: auto;
    display: block;
    right: 0;
    top:0px;
    position: relative;
  }


    /* changes the 'drop line' to be visible automatically */
    .hor-nav ul {
        position:relative;
        top:0;
        opacity: 1; /* un-Hides sub level */
        padding: 0px;
    }
  /* technically gets rid of the hover event, so we don't get a flickering when touched */
    .hor-nav li:hover>ul {
        opacity: 1;
        position:relative;
        top: 0px;
    left: 0;
        padding: 0px;
    width: auto; /* changes the width to sit as a vertical list */
    display: none;
    }

    .hor-nav ul li { float:none; } /* takes out the float */

    .hor-nav ul li a {
    display: block;
    font-size: 12px;
    background: #d9d9d9;
    padding: 2px 20px;
    line-height: 20px;

    }
  /* second drop down */
    /* changes the 'drop down' - hides it entirely, as it's long and not fit for mobile */
    .nav-container ul ul li ul,
  .nav-container ul ul li.current-menu-item ul,
  .nav-container ul ul li.current_page_item ul,
  .nav-container ul ul li.current-menu-ancestor ul,
  .nav-container ul ul li.menu-item-has-children ul,
  .nav-container ul ul li.current-menu-item.menu-item-has-children ul,
  .nav-container ul ul li.current_page_item.menu-item-has-children ul,
  .nav-container ul ul li.current-menu-ancestor ul,
.nav-container ul li.current-menu-item.current_page_item.menu-item-has-children ul ul   {
        display:none;
    }

}

/* #Mobile (Landscape) Design for a width of 480px
---------------------------------------------------------------------------- */
@media only screen and (min-width: 480px) and (max-width: 767px) {
.menu-icon {
  display: block;
  float:right;
  }
  .hor-nav  {
  top: 90px;
  width: auto;
  }

}
@font-face {
  font-family: 'fontello';
  src: url('font/fontello.eot?23904543');
  src: url('font/fontello.eot?23904543#iefix') format('embedded-opentype'),
       url('font/fontello.woff?23904543') format('woff'),
       url('font/fontello.ttf?23904543') format('truetype'),
       url('font/fontello.svg?23904543#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
