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

   html {
    color: #000;
    font-size: 1em;
    line-height: 1.6;
    font-family: 'Fira Sans', sans-serif;
}

:root {
  --green: #01944d;
  --blue: #20a4ef;
  --orange: #f75c03;
  --gray: #636363;
}

/*
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

 /* ==========================================================================
  Font Styles
  =========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  color: var(--gray);
}

h1 {
  font-size: 2.4em;
}

.heroText h1 {
  color: #fff;
}

.internal .half-container-content h1 {
  margin-top: 0;
}

h2 {
  font-size: 2em;
}

.green-bg h2 {
  color: #fff;
  grid-column-start: 2;
  margin: 60px 10px 20px 17px;
}

h2.quote {
  font-style: italic;
}

h3 {
  font-size: 1.75em;
}

.service-landing h3 {
  margin-top: 0;
}

h4 {
  font-size: 1.5em;
}

h5 {
  font-size: 1.4em;
}

h6 {
  font-size: 1.2em;
  font-weight: 600;
}

footer h6 {
  color: rgba(300, 300, 300, 0.9);
  margin: 0;
}

p:empty { 
  display: none; 
}

.headerRibbon p {
  margin: 10px 0 0;
}

.mobile-donate-btn p {
  margin: 0;
}

.offcanvas-container p {
  text-align: center;
  font-size: 0.9em;
  font-weight: 600;
  color: rgba(300, 300, 300, 0.9);
  margin-top: 30px;
}

.partner-text-left,
.partner-text-right {
  color: var(--green);
  font-weight: 900;
  font-size: 1.5em;
  font-family: 'Oswald';
  width: 110px;
  text-align: right;
  line-height: 1.2;
  text-decoration: none;
}

.partner-text-left {
  margin-right: 10px;
  padding-right: 10px;
  border-right: 8px solid var(--green);
}

.partner-text-right {
  text-align: left;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 8px solid var(--green);
}

.partner-text-right a {
  text-decoration: none;
}

.partner-text-right a:hover {
  text-decoration: underline;
}

.service-block p {
  font-size: 1.2em;
}

.footer p {
  color: color: rgba(300, 300, 300, 0.9);
}

.footer-right p {
  font-size: 0.9em;
  margin-top: 0;
} 

.footer-links {
  font-size: 0.8em;
  color: rgba(300, 300, 300, 0.5);
}

.copyright p {
  font-size: 0.8em;
  color: rgba(300, 300, 300, 0.5);
  margin: 0;
}

.leadership-img {
  margin-bottom: 0;
  margin-left: 0;
}

.leadership-name {
  margin-top: 10px;
}

@media (max-width: 768px) {

.internal .half-container-content h1 {
  margin-top: 0.67em;
}

}

@media (max-width: 1200px) {
  .partner-bar {
    display: none;
  }
}

/* ==========================================================================
  Link Styles
  =========================================================================== */

a {
  color: var(--green);
}

p.btn a, 
p.btn a:visited {
  color:#fff;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: 600;
  width: 200px;
  display: inline-block;
  text-align: center;
}

footer p.btn a,
.mobile-donate-btn p.btn a {
  width: auto;
  padding: 5px 20px;
  font-size: 1.2em;
}

p.btn a:hover {
  opacity: 0.8;
}

p.green a {
  background: var(--green);
}

p.blue a {
  background: var(--blue);
}

p.orange a {
  background: var(--orange);
}

.service-block p a {
  font-size: 1em;
}

.footer-links a,
.footer-links a:visited {
  color: rgba(300, 300, 300, 0.5);
  text-decoration: none;
}

.footer-links a:hover {
  color: rgba(300, 300, 300, 0.9);
}

@media (max-width: 600px) {

.service-block p a {
  display: block;
  padding: 5px 0;
  width: 100%;
}

}

@media (max-width: 450px) {

.mobile-donate-btn a.btn {
  font-size: 1em;
}

}

/* ==========================================================================
  Form Styles
  =========================================================================== */

#wpforms-form-76 {
  display: flex;
}

.newsletter-signup h5 {
  color: #fff;
  font-weight: 600;
  opacity: 0.9;
  text-align: right;
  padding-right: 20px;
  font-size: 1.4em;
}

div.wpforms-container-full {
  margin-left: 0;
  margin-right: 0;
}

div.wpforms-container-full .wpforms-form button[type="submit"] {
  border: none !important;
  color: #fff !important;
  font-weight: 400 !important;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2em !important;
  padding: 0 15px !important;
  height: 40px !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover {
  border: none !important;
}

.newsletter-signup span.wpforms-required-label {
  display: none;
}

.newsletter-signup .wpforms-field-large {
  height: 40px !important;
}

.newsletter-signup div.wpforms-container-full .wpforms-form .wpforms-field,
.newsletter-signup div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  padding: 0;
}

button.green {
  background: var(--green) !important;
}

@media (max-width: 768px) {
  #wpforms-76 {
  margin-bottom: 30px;
}

.newsletter-signup h5 {
  text-align: center;
  margin: 15px 0;
  padding-right: 0;
}

}

 /* ==========================================================================
  Grid Styles
  =========================================================================== */

.one-col-center {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
}

.one-col-full {
  display: grid;
  grid-template-columns: 1fr;
}

.one-col-center.col-two-start > * {
  display: grid;
  grid-column-start: 2;
}

main.internal .one-col-center .two-col-full {
  grid-gap: 40px;
  margin-top: 40px;
}

.two-col-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.three-col-full,
aside .three-col-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.newsletter-signup .two-col-full,
.headerRibbon .two-col-full {
  grid-column-start: 2;
}

.two-col-full .textwidget {
  display: grid;
  align-content: center;
}

.menu {
  grid-column-start: 2;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.heroText {
  grid-column-start: 1;
}

.service-block.details-left {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 40px;
}

.service-block.details-right {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 40px;
}

.details-left .service-details {
  grid-column-start: 1;
  grid-row-start: 1;
}

.details-left .service-img {
  grid-column-start: 2;
}

.details-right .service-details {
  grid-column-start: 2;
}

.two-by-two .two-col-full {
  grid-column-start: 2;
}

footer .three-col-full {
  grid-column-start: 2;
}

@media (max-width: 600px) {

.ribbonLeft {
  grid-column-start: 1;
  grid-column-end: 3;
  text-align: center;
}

.service-block.details-right,
.service-block.details-left {
  grid-template-columns: 1fr;
  grid-gap: 0;
}

.details-right .service-details {
  grid-column-start: 1;
}

.details-left .service-details {
  grid-column-start: 2;
  grid-row-start: 2;
}

}

@media (min-width: 1200px) {

.one-col-center {
  display: grid;
  grid-template-columns: 1fr 1200px 1fr;
}

}

@media (min-width: 900px) {

.hero {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.heroText {
  grid-column-start: 4;
}

}

@media (max-width: 768px) {

.two-col-full,
.three-col-full {
  grid-template-columns: 1fr;
}

.two-col-full .textwidget {
  display: grid;
  justify-content: center;
}

}


 /* ==========================================================================
   Custom styles
   ========================================================================== */

.green-bg {
  background: var(--green);
}

header {
  position: relative;
  height: 100vh;
}

header.internal {
  height: 140px;
}

.headerRibbon {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  height: 45px;
  position: relative;
  z-index: 100;
}

.ribbonRight {
  text-align: right;
}

nav {
  background-color: #fff;
  height: 60px;
  position: relative;
  z-index: 100;
}

.cloverLogo {
  width: 100px;
  height: 107px;
  position: absolute;
  left: 50%;
  right: 50%;
  top: 10px;
  margin-left: -50px;
  z-index: 500;
  display: none;
}

.cloverLogo img {
  max-width: 100px;
}

.mobile-menu-header {
  border-bottom: 1px solid;
  border-color: rgba(300, 300, 300, 0.1);
  padding-bottom: 20px;
}

.mobile-menu-header-logo {
  text-align: center;
  padding-top: 35px;
}

.mobile-menu-header-title {
  text-align: center;
  color: #fff;
  font-weight: 600;
  padding-top: 20px;
}

.mobile-donate-btn {
  display: none;
  position: absolute;
  right: 20px;
  top: 10px;
}

.hero {
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  align-content: center;
}

.heroText {
  text-align: center;
}

.partner-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
}

.partner-bar .partner {
  display: grid;
  align-content: center;
}

.partner-bar img {
  margin: 0 20px;
}

.mobile-nav-header {
  width: 300px;
}

.home-services {
  padding-bottom: 60px;
}

.service-block {
  background: #fff;
  padding: 17px;
  grid-column-start: 2;
  margin-bottom: 20px;
}

.service-block img {
  max-width: 100%;
}

.half-container-img img {
  width: 100%;
  height: auto;
}

.half-container-content {
  padding: 100px 50px 0;
}

.half-container-content > * {
  max-width: 500px;
}

main.internal {
  background: url(../img/bg-clover-large.png);
  background-position: 110% 110%;
  background-repeat: no-repeat;
  padding-bottom: 40px;
}

.internal .half-container-content {
  padding-top: 0 !important;
}

.two-by-two {
  margin-top: 50px;
}

.two-by-two article {
  border-left: 15px solid;
  border-color: var(--green);
  margin-bottom: 40px;
  padding: 0 40px 0 15px;
}

.seperator {
  position: relative;
}

svg {
  height: 100px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

path#top {
  fill: var(--green);
}

.newsletter-signup {
  background: rgba(41, 47, 54, 0.9);
}

.newsletter-signup > div {
  height: 100%;
  align-content: center;
}

footer {
  background: rgba(41, 47, 54, 1);
  color: rgba(300, 300, 300, 0.9);
  padding-bottom: 40px;
}

footer > div {
  padding: 40px 0 20px;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.copyright {
  grid-column-start: 2;
  width: 100%;
  text-align: center;
  padding: 0;
}

.half-container-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.half-container-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 1200px) {

.partner-list img {
  max-width: 100px;
}

.partner-list li {
  display: inline-block;
  padding: 0 20px;
  vertical-align: middle;
}

.half-container-content {
  padding-top: 50px;
}

}

@media (max-width: 1020px) {

.service-block img {
  margin-top: 60px;
}

.partner-list img {
  max-width: 80px;
}

.partner-list li {
  display: inline-block;
  padding: 0 15px;
  vertical-align: middle;
}

svg {
  display: none;
}

.half-container-content {
  padding-top: 0;
}

}

@media (max-width: 900px) {

.cloverLogo {
  display: block;
}

.menu {
  display: none;
}

.mobile-donate-btn {
  display: block;
}

.heroText {
  padding-bottom: 65px;
}

}

@media (max-width: 768px) {

header.internal {
  height: 105px;
}

.hero {
  align-content: end;
}

.partner-bar {
  display: none;
}

.service-block img {
  margin-top: 110px;
}

.half-container-content {
  padding: 0 20px 50px;
}

.half-container-content > * {
  max-width: 100%;
}

.two-by-two {
  margin-top: 0;
}

.two-by-two article {
  padding-right: 15px;
}

.footer-right {
  text-align: center;
}

}

@media (max-width: 600px) {

.hero {
  background-position-x: 38%;
}

.cloverLogo {
  text-align: center;
  top: 38px;
}

.cloverLogo img {
  max-width: 75px;
}

.service-block img {
  margin-top: 0;
}

.service-block img {
  width: 100%;
}

}

@media (max-width: 400px) {

.newsletter-signup img {
  width: 100%;
}

}


 /* ==========================================================================
   Menu Styles
   ========================================================================== */

ul.menu-items {
  list-style: none;
  padding: 0;
  height: 25px;
  display: flex;
  justify-content: space-evenly;
}

ul.menu-items li {
  position: relative;
}

ul.menu-items li.logo {
  width: 100px;
  height: 107px;
  background: url(../img/clover-logo.png) top center no-repeat;
  position: relative;
  top: -50px;
  margin: 0 50px;
}

ul.menu-items li a {
  font-weight: 600;
  text-decoration: none;
  color: var(--gray);
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2em;
}

ul.menu-items li:last-child a {
  background: var(--orange);
  border-radius: 10px;
  color: #fff;
  padding: 5px 40px;
}

ul.menu-items li.logo a {
  width: 100px;
  height: 107px;
  display: inline-block;
}

ul.menu-items li.logo a, 
ul.menu-items li.logo a:link, 
ul.menu-items li.logo a:visited {
  color: transparent;
}

/* Second level of nav styles here */
ul.menu-items li.menu-item-has-children ul {
  padding: 0;
  margin: 0;
  list-style: none;
  position: absolute;
  top: 100%;
  left: -15px;
  width: 225px;
  background: #fff;
  text-align: left;
  visibility: hidden;
  opacity:0;
  filter:alpha(opacity=0);
  -webkit-transition:200ms ease;
  -moz-transition:200ms ease;
  -o-transition:200ms ease;
  transition:200ms ease;
  border-radius: 0 0 10px 10px;
  background-image: linear-gradient(white, #f1f1f1);
}

ul.menu-items li.menu-item-has-children:hover ul {
  visibility:visible;
  opacity:1;
  filter:alpha(opacity=100);
  z-index: 100;
  box-shadow: 0px 1px 1px #aaa;
}

ul.menu-items li li {
  line-height: 2em;
  display: block;
  padding-left: 5px;
}

ul.menu-items li li:first-child {
  padding-top: 15px;
}

ul.menu-items li li:last-child {
  padding-bottom: 15px;
}

ul.menu-items li li a {
  font-weight: 400;
  text-transform: none;
  padding: 0 15px;
}

ul.menu-items li li a:hover {
  opacity: 0.7;
}

ul.menu-items li li:last-child a {
  background: none;
  color: var(--gray);
  padding: 0 15px;
}

.mobile-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  width: 300px;
}

.mobile-menu li {
  padding: 15px 0;
  text-align: center;
  border-bottom: 1px solid;
  border-color: rgba(300, 300, 300, 0.1);
}

.mobile-menu li:last-child {
  background: var(--orange);
  border: none;
}

.mobile-menu li a,
.mobile-menu li a:visited {
  color: rgba(300, 300, 300, 0.9);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2em;
}

.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-menu a:visited {
  color: rgba(300, 300, 300, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
}

.footer-menu a:hover {
  opacity: 0.6;
}

@media (max-width: 1020px) {

ul.menu-items li a {
  font-size: 1em;
}

}

@media (max-width: 768px) {

.footer-menu {
  text-align: center;
  font-size: 1.2em;
}

}

@media (max-width: 600px) {

ul.mobile-menu {
  width: 100%;
}

}


/* ==========================================================================
   Offcanvas Navigation
   ========================================================================== */

.offcanvas-container {
  display: block;
}

.nav-toggle {
  display: none;
}

aside.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  background: #292f36;
  width: 0px;
  height: 100vh;
  transition: width 300ms;
  overflow: hidden;
  z-index: 1999;
}

aside.offcanvas > div,
aside.offcanvas > ul,
aside.offcanvas > p {
  opacity: 0;
}

.nav-toggle:checked ~ aside {
  width: 300px;
}

.nav-toggle:checked ~ aside.offcanvas > div,
.nav-toggle:checked ~ aside.offcanvas > ul,
.nav-toggle:checked ~ aside.offcanvas > p {
  opacity: 1;
  transition: opacity .1s linear;
  transition-delay: 250ms;
}

.mobile-close-btn {
  position: relative;
}

.nav-toggle-label.open span {
  position: fixed;
  width: 65px;
  height: 65px;
  top: 45px;
  left: 10px;
  background: url(../img/nav-toggle-open.png);
  z-index: 999;
}

.nav-toggle-label.close span {
  position: absolute;
  top: 50px;
  right: 20px;
  width: 46px;
  height: 46px;
  background: url(../img/nav-toggle-close.png);
}

@media (min-width: 901px) {

.offcanvas-container {
  display: none;
}

}

@media (max-width: 600px) {

.nav-toggle:checked ~ aside {
  width: 100vw;
}

}


/* ==========================================================================
   DonorSnap Styles
   ========================================================================== */

iframe {
  overflow: hidden;
}

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

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, 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;
}

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

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


