/*

  Author: Kevin Nayar
  URL:    http://kevinnayar.com

  beige: #F6F5EC;
  gold: #BB986A;
  blueLight: #8395BB;
  blueMid: #2B328B;
  blueDark: #15133F;

*/


/* Font
-------------------------------------------------- */
  @font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/sourcesanspro-300.woff) format('woff');
  }
  @font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/sourcesanspro-400.woff) format('woff');
  }
  @font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    src: url(../fonts/sourcesanspro-600.woff) format('woff');
  }
  @font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 400;
    src: url(../fonts/sourcesanspro-400-italic.woff) format('woff');
  }


/* Reset
-------------------------------------------------- */
  *, *:before, *:after {
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  article, aside, details, figcaption, figure,
  footer, header, hgroup, main, nav, section, summary {
    display: block;
  }
  img {
    display: block;
    max-width: 100%;
  }
  a {
    color: #2B328B;
    text-decoration: none;
    transition: all .5s;
  }
  a:hover {
    opacity: 0.7;
  }
  button:focus {
    outline:0;
  }
  .cf:after {
    content: "";
    display: table;
    clear: both;
  }
  html {
    height: 101%;
    font-family: "Source Sans Pro", sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  body {
    margin: 0 auto;
    font-size: 1.25em;
    line-height: 1.5em;
    padding: 120px 0 0;
    color: #2B328B;
    background-color: #F6F5EC;
  }

/* Header
-------------------------------------------------- */
  .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    border-bottom: 6px solid white;
  }
  .header:after {
    content: "";
    width: 80px;
    border-bottom: 10px solid #BB986A;
    margin: 200px 0 0 3%;
  }
  .logo {
    display: block;
    position: absolute;
    left: 41.25%;
    top: 39px;
  }
  .logo img {
    width: 308px;
  }


/* Navigation
-------------------------------------------------- */
  #navigation #primary-menu-toggle {
    padding: 3px 5px;
    position: absolute;
    left: 3%;
    top: 40px;
    z-index: 9999;
    width: 20px;
    height: 20px;
    background-color: transparent;
    cursor: pointer;
  }

  #navigation #primary-menu-toggle > span {
    background: #2B328B;
    height: 1px;
    position: absolute;
    left: 0;
    right: 0;
    transform-origin: center center 0;
    transition: top 0.1s ease-in-out 0.1s,
      bottom 0.1s ease-in-out 0.1s,
      opacity 0.1s linear 0.1s,
      transform 0.1s ease-in-out 0s;
  }
  #navigation #primary-menu-toggle .top-line {
    top: 0;
  }
  #navigation #primary-menu-toggle .middle-line {
    top: 50%;
  }
  #navigation #primary-menu-toggle .bottom-line {
    top: 100%;
  }

  #navigation #primary-menu-toggle.active > span {
    background: #F6F5EC;
    transition: top 0.1s ease-in-out 0.1s,
      bottom 0.1s ease-in-out 0.1s,
      opacity 0.1s linear 0.15s,
      transform 0.1s ease-in-out 0.2s;
  }
  #navigation #primary-menu-toggle.active .top-line {
    top: 50%;
    transform: rotateZ(45deg);
  }
  #navigation #primary-menu-toggle.active .middle-line {
    opacity: 0;
  }
  #navigation #primary-menu-toggle.active .bottom-line {
    top: 50%;
    transform: rotateZ(-45deg);
  }

  #navigation #primary-menu {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 101%;
    width: 100%;
    background-color: #15133F;
    background-color: rgba(21,19,63,0.9);
    display: none;
    padding: 150px 3% 3%;
  }
  #navigation #primary-menu li {
    display: block;
  }
  #navigation #primary-menu li a {
    display: block;
    width: 100%;
    font-size: 2em;
    padding: 1.5% 0;
    color: #8395BB;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  #navigation #primary-menu li a:hover {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.4);
  }

  #navigation .submenu {
    display: none;
  }


/* Main
-------------------------------------------------- */
  .main {
    padding: 0 12% 0 3%;
    min-height: 500px;
    animation-name: animateMain;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-duration: .5s;
  }
  @keyframes animateMain {
    0% {
      transform: translateY(100px);
    }
    100% {
      transform: translateY(0);
    }
  }
  .main hr {
    margin: 1.6em 0;
    height: 2px;
  }
  .main p,
  .main figure,
  .main ul,
  .main ol {
    margin-bottom: 1.5em;
  }
  .main h1 {
    font-size: 1.5em;
    font-weight: 600;
    left: -71.5%;
    top: -88px;
    position: absolute;
  }
  .main h2 {
    font-size: 1.8em;
    line-height: 1.6em;
    font-weight: 400;
    margin-bottom: .5em;
  }
  .main h2 a {
    border-bottom: 2px solid #2B328B;
    padding-bottom: 2px;
  }
  .main h3 {
    font-size: 1.4em;
    line-height: 1.5em;
    font-weight: 400;
    margin-bottom: .5em;
  }
  .main h4 {
    font-size: 1.125em;
    font-weight: 600;
    line-height: 1.5em;
    margin-bottom: .5em;
  }
  .main ul,
  .main ol {
    margin-left: 1em;
  }
  .main ul {
    list-style-type: none;
  }
  .main ul li {
    font-size: 0.9em;
    line-height: 1.4em;
    text-indent: -5px;
  }
  .main ul li:before {
    content: '-  ';
    text-indent: -5px;
  }
  .main p {
    font-size: 0.9em;
    line-height: 1.4em;
    margin-bottom: 1em;
  }
  .main p a {
    border-bottom: 1px solid #2B328B;
    padding-bottom: 1px;
  }

  /* Text blocks */
  .main .text {
    margin: 70px 0 40px 45%;
    position: relative;
  }

  .main .main-button {
    background-color: #2B328B;
    color: #F6F5EC;
    border-bottom: 0;
    padding: .4em 2.6em;
    display: inline-block;
  }


  /* Footer
  -------------------------------------------------- */
  .custom-content-blurb {
    background: #EAEFF3 url('../images/bg-blurb.png') 0 bottom no-repeat;
    padding: 20px 70px 210px 40px;
    width: 48%;
    border-radius: 0 35px 0 0;
  }
  .custom-content-blurb h3 {
    font-size: 1.8em;
    line-height: 1.6em;
    font-weight: 400;
    margin-bottom: .5em;
  }
  .custom-content-blurb table {
    width: 100%;
    font-size: 0.8em;
    text-align: left;
  }
  .custom-content-blurb table thead tr th,
  .custom-content-blurb table tbody tr td {
    vertical-align: top;
    line-height: 1.2;
    padding: 7px 0;
  }
  .custom-content-blurb table thead tr th {
    font-size: 110%;
    font-weight: normal;
    font-style: italic;
    border-bottom: 1px solid #2B328B;
  }
  .custom-content-blurb table tbody tr td {
    font-size: 90%;
    border-bottom: 1px solid #2B328B;
  }
  .grants-blurb table thead tr th:first-child,
  .grants-blurb table tbody tr td:first-child {
    width: 30%;
  }
  .grants-blurb table thead tr th,
  .grants-blurb table tbody tr td {
    width: 70%;
  }
  .application-blurb table thead tr th,
  .application-blurb table tbody tr td {
    width: 25%;
  }

/* Footer
-------------------------------------------------- */
  .footer {
    width: 100%;
    min-height: 480px;
    position: relative;
    background: linear-gradient(-14deg, #2B328B 50%, #F6F5EC 50%);
    margin-top: -220px;
    z-index: -1;
  }
  .footer-inner {
    width: 100%;
    min-height: 480px;
    padding: 30px 3%;
    background: linear-gradient(-14deg, #15133F 49%, transparent 49%);
  }
  .footer-inner .footer-blurb {
    width: 25%;
    margin-bottom: 100px;
    animation-name: animateFooterBlurb;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-duration: .5s;
  }
  @keyframes animateFooterBlurb {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  .footer-inner .footer-blurb p {
    line-height: 1.5em;
    font-size: .8em;
  }
  .footer-inner .footer-logo {
    position: absolute;
    right: 3%;
    bottom: 0;
  }
  .footer-outer {
    padding: 30px 3%;
    width: 100%;
    background: #15133F;
  }
  .footer-outer ul li,
  .footer-outer p {
    font-size: 0.8em;
    line-height: 1em;
    margin-bottom: 1em;
  }
  .footer-outer ul li {
    display: inline;
    float: left;
  }
  .footer-outer ul li a {
    display: block;
    margin: 0 30px;
    color: #8395BB;
  }
  .footer-outer ul li a:first-child {
    margin-left: 0;
  }
  .footer-outer .copyright {
    color: #BB986A;
  }
  .footer-outer .copyright a {
    color: #BB986A;
    border-bottom: 1px solid #BB986A;
  }


/* Media Queries
-------------------------------------------------- */
@media (max-width: 768px) {
  .header:after {
    display: none;
  }
  .logo {
    left: 16%;
  }
  .logo img {
    width: 90%;
  }
  #navigation #primary-menu-toggle {
    width: 30px;
    height: 30px;
    left: 5%;
    top: 35px;
  }
  #navigation #primary-menu-toggle > span {
    height: 2px;
  }
  #navigation #primary-menu li a {
    font-size: 1.8em;
    padding: 6.5% 0;
  }
  .main {
    padding: 0 5%;
  }
  .main .text {
    margin: 20px 5%;
  }
  .main h1 {
    left: 0;
    top: 0;
    position: relative;
    margin-bottom: 1em;
  }
  .main h2 {
    font-size: 1.4em;
  }
  .custom-content-blurb {
    padding: 1% 5% 210px 5%;
    width: 100%;
    margin: 0 0 50px;
  }
  .footer-inner .footer-blurb {
    display: none;
  }
  .footer-inner .footer-logo {
    right: 5%;
    bottom: 15%;
    width: 32%;
  }
  .footer-outer #footer-navigation {
    width: 280px;
    margin: -200px auto 30px;
  }
  .footer-outer ul li, .footer-outer p {
    font-size: 0.7em;
    margin-bottom: .3em;
    line-height: 1.5;
    display: block;
    float: none;
  }
  .footer-outer ul li a {
    margin: 0 10px;
  }
  .footer-outer p {
    text-align: center;
  }
}
