﻿/****************************
-- Footer --
****************************/
#footer {
  border-bottom: 4px solid #06a94e;
  border-top: 1px solid #e5e5e5;
  position: relative;
}

#footer p {
  color: #4d4d4d;
  font-size: 13px;
  font-size: 1.3rem;
}

#footer h5 {
  color: #06a94e;
  line-height: 1.25;
  margin-bottom: 0.75em;
}

#footer h5 a,
#footer > nav a {
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
}

#footer h5 a:hover,
#footer nav a:hover {
  color: #0f6d35;
}

#footer .col {
  padding: 25px 15px; /* 50 / 1440 */
}

/*---------------------
Twitter Feed
---------------------*/
#footer .twitter {
  border-bottom: 1px solid #e5e5e5;
  padding-left: 25px;
  padding-right: 25px;
  width: 100%; /* 460 / 1440 */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(250,250,250,0)), color-stop(100%,rgba(250,250,250,1)));
  background: linear-gradient(to bottom, rgba(250,250,250,0) 0%,rgba(250,250,250,1) 100%);
}

#footer .twitter .feed {
  margin-bottom: 30px;
}

#footer .tweet {
  margin-top: 2em;
  padding-top: 2em;
}

#footer .tweet:first-child {
  margin: 0;
  padding: 0;
}

#footer .tweet:first-child:after {
  border: 0;
}

#footer .tweet a {
  color: #4d4d4d;
}

#footer .tweet a:hover {
  color: #06a94e;
  text-decoration: none;
}

#footer .tweet strong {
  font-weight: 500;
}

#footer .twitter .follow {
  color: #8a8a8a;
  font-size: 13px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: color 200ms ease;
}

#footer .twitter .follow:hover {
  color: #06a94e;
}

/*---------------------
Logo
---------------------*/
#footer .logo {
  width: 100%;
}

#footer .logo img {
  margin: 0 auto;
  max-width: 80px;
}

.no-svg #footer .logo > img {
  display: none;
}

/*---------------------
News: Sign UP & Connect
---------------------*/
#footer .connect {
  padding-bottom: 0;
  padding-top: 0;
  text-align: center;
  width: 100%;
}

#footer .signup {
  margin-bottom: 25px;
}

#footer .signup .input-wrapper {
  margin: 0 auto;
  max-width: 244px;
}

#footer .nl-signup-iframe,
.after-signup {
  display: none;
}

#footer .social {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 25px;
  /*margin-bottom: 25px; This goes instead of border and padding when the country selector is in the footer */
}

#footer .social-nav ul {
  display: inline-block;
}

/*---------------------
Site-map-ish
---------------------*/
#footer .site {
  text-align: center;
  width: 100%;
}

#footer .site li {
  font-size: 13px;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-top: 0.75em;
}

#footer .site li:first-child {
  margin: 0;
}

#footer .site .sep {
  margin-top: 1.5em;
  padding-top: 1.5em;
}

#footer .site .sep:after {
  left: 50%;
  margin-left: -18px;
}

#footer .site h5 {
  font-size: 13px;
  font-size: 1.3rem;
  margin: 0;
}

/*---------------------
Legal
---------------------*/
#footer .legal {
  padding-top: 0;
  text-align: center;
  width: 100%;
}

#footer .legal li:first-child {
  border-top: 1px solid #e5e5e5;
  padding-top: 25px;
}

#footer .legal li {
  margin-bottom: 0.75em;
}

#footer .legal p,
#footer .legal a {
  color: #b0b0b0;
  font-size: 12px;
  font-size: 1.2rem;
  line-height: 1.25; /* This was 1 in older implementation */
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
}

#footer .legal a:hover {
  color: #5d5d5d;
}

/* This was the older implementation, it used to have an image logo */
/*#footer .legal .ng {
  display: inline-block;
  height: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

#footer .legal .ng:after {
  color: #b2b2b2;
  content: attr(data-icon);
  font-family: arloicons;
  font-size: 72px;
  line-height: 12px;
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
}

#footer .legal .ng:hover:after {
  color: #5d5d5d;
}*/

#footer .legal .ntgr {
  color: #06a94e;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 12px;
}

#footer .legal .ntgr:hover {
  color: #0f6d35;
}

/*---------------------
Country Select
---------------------*/
#footer .countryselector {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 25px;
}

#footer #country-selector {
  margin:0px auto;
  position: relative;
  width: 244px;
  z-index: 1;
}

#footer #country-default {
  border: 1px solid #ccc;
  background-color: #f6f6f6;
  border-radius: 20px;
  color: #969696;
  cursor: pointer;
  display: inline-block;
  padding: 4px;
  position: relative;
  text-align: left;
  transition: all 200ms ease 0s;
  width: 100%;
}

#footer #country-default:hover {
  color: #0f6d35; 
}

#footer #country-default:after {
  bottom: 9px;
  content:' ↓';
  color: #969696;
  position:absolute;
  line-height: 1.25;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 500;
  float:right;
  right:10px;
  transition: bottom 200ms ease 0s;
}

#footer #country-default:hover:after {
  bottom: 7px;
  color: #0f6d35; 
}

#footer .upper #country-default:after {
  content: '↑';
}

#footer .upper #country-default:hover:after {
  bottom: 11px;
  content: '↑';
}

/*#footer #country-input { When there was an autocomplete
  border: 0;
  color: #969696;
  display: inline-block;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  height: 30px;
  margin-left: 10px;
  padding: 0;
  width: 170px;
}*/

#footer .country-name {
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  display: inline-block;
  line-height: 30px;
  margin-left: 10px;
}

#footer #country-default img {
  width: 30px;
  height: 30px;
  position: relative;
  float: left;
  vertical-align: bottom;
}

#footer #country-list-wrap {
  background-color: #fff;
  color: #969696;
  left: 0;
  margin: 3px 0;
  max-height: 126px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
}

#footer .upper #country-list-wrap {
  bottom: 100%;
  top: auto;
}

#footer #country-list {
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 124px; /* 126 with box-sizing: border-box */
  overflow: auto;
  transition: all 200ms ease;
  box-sizing: content-box; /* Had to use this for a bug in IE9, it changed to content-box when hovering on <li> */
}

#footer #country-list.inactive {
  border-color: #fff;
  border-bottom: 0;
  border-top: 0;
  margin: 0;
  max-height: 0;
  padding: 0;
}

#footer #country-list.empty {
  border-color: #fff;
  border-bottom: 0;
  border-top: 0;
  padding: 0;
}

#footer #country-list li {
  color: #06A94E;
  height: 38px;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
}

#footer #country-list li.hover {
  background-color: #f6f6f6;
}

#footer #country-list li:first-child { /* This was originally a padding: 5px 0; on the <ul> but the padding bottom didn't show on some browsers */
  margin-top: 5px;
}

#footer #country-list li:last-child {
  margin-bottom: 5px;
}

#footer #country-list li a {
  color: #969696;
  width:100%;
  display:inline-block;
  padding: 4px;
  text-align: left;
}

#footer #country-list li a img {
  width: 30px;
  height: 30px;
  position: relative;
  float: left;
}

#footer .countrynamelist {
  display: inline-block;
  line-height: 30px;
  margin-left: 8px;
}

/****************************
-- Compact Footer --
****************************/
#footer.compact {
  padding-bottom: 18px;
}

#footer.compact .wrapper {
  max-width: 1340px;
}

#footer.compact .logo {
  display: block;
  margin-top: 50px;
}

#footer.compact .logo img {
  max-width: none;
}

#footer.compact .main-link {
  margin-top: 40px;
  text-align: center;
}

#footer.compact .main-link a {
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
}

#footer.compact .social-nav {
  margin-top: 45px;
  text-align: center;
}

#footer.compact .copy {
  margin-top: 40px;
}

#footer.compact .copy p {
  color: #afafaf;
  text-align: center;
}

/****************************
-- Media Queries --
****************************/
@media screen and (min-width: 40.0625em) {
  /*---------------------
  Twitter Feed
  ---------------------*/
  #footer .twitter {
    border-bottom: 0;
    border-left: 1px solid #e5e5e5;
    float: right;
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(250,250,250,1)), color-stop(100%,rgba(250,250,250,0)));
    background: linear-gradient(to right, rgba(250,250,250,1) 0%,rgba(250,250,250,0) 100%);
    width: 50%;
  }
   
  /*---------------------
  Logo
  ---------------------*/
  #footer .logo {
    width: 50%;
  }

  #footer.compact .logo {
    width: 100%;
  }

  /*---------------------
  News: Sign UP & Connect
  ---------------------*/
  #footer .connect {
    width: 50%;
  }

  /*---------------------
  Site-map-ish
  ---------------------*/
  #footer .site {
    width: 50%;
  }

  /*---------------------
  Legal
  ---------------------*/
  #footer .legal {
    border-top: 1px solid #e5e5e5;
    padding-top: 25px;
  }

  #footer .legal li {
    display: inline-block;
    margin: 0 0 0 20px;
    vertical-align: middle;
  }

  #footer .legal li:first-child {
    border: 0;
    margin: 0;
    padding: 0;
  }

  /* This was the older implementation, it used to have an image logo */
  /*#footer .legal .ng {
    margin: 0;
  }*/

  #footer .legal .ntgr {
    margin: 0;
  }
}

@media screen and (min-width: 60em) {
  #footer.compact {
    padding-bottom: 16px;
  }

  #footer.compact .wrapper {
    height: 150px;
  }

  #footer.compact .logo {
    height: 48px;
    left: 30px;
    margin-top: -24px;
    padding: 0;
    position: absolute;
    top: 50%;
    width: auto;
    z-index: 1;
  }

  #footer.compact .main-link {
    left: 0;
    margin-top: -10px;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 0;
  }

  #footer.compact .main-link a {
    display: inline-block;
    line-height: 20px;
  }

  #footer.compact .social-nav {
    margin-top: -17px;
    position: absolute;
    right: 30px;
    top: 50%;
    z-index: 1;
  }

  #footer.compact .copy {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 0;
  }
}

@media screen and (min-width: 64em) {
  #footer p {
    font-size: 16px;
    font-size: 1.6rem;
  }

  #footer .col {
    padding-top: 3.47%; /* 50 / 1440 */
  }

  /*---------------------
  Twitter Feed
  ---------------------*/
  #footer .twitter {
    
    min-height: 535px;
    padding-bottom: 1.38%; /* 20/ 1440 */;
    padding-left: 3.47%; /* 50 / 1440 */
    padding-right: 3.47%;
    width: 31.94%; /* 460 / 1440 */
  }

  #footer .twitter .feed {
    margin-bottom: 40px;
  }

  #footer .twitter .follow {
    bottom: 0;
    margin-bottom: 1.38%;
    position: absolute;
  }

  /*---------------------
  Logo
  ---------------------*/
  #footer .logo {
    left: 0;
    padding-left: 2%;
    padding-right: 2%;
    position: absolute;
    width: 20.49%; /* 295 / 1440 */
  }

  #footer .logo img {
    max-width: 131px;
  }

  /*---------------------
  News: Sign UP & Connect
  ---------------------*/
  #footer .connect {
    left: 39.24%; /* 20.49 + 18.75 */
    padding-right: 2%;
    position: absolute;
    text-align: left;
    width: 28.82%; /* 415 / 1440 */
  }

  #footer .signup {
    margin-bottom: 40px;
  }

  #footer .signup .input-wrapper {
    margin: 0;
  }

  #footer .social {
    border: 0;
    margin-bottom: 40px;
  }
 
  /*---------------------
  Site-map-ish
  ---------------------*/
  #footer .site {
    left: 20.49%;
    padding-right: 2%;
    position: absolute;
    text-align: left;
    width: 18.75%; /* 270 / 1440 */
  }

  #footer .site li {
    font-size: 16px;
    font-size: 1.6rem;
  }

  #footer .site .sep:after {
    left: 0;
    margin-left: 0;
  }

  #footer .site h5 {
    font-size: 16px;
    font-size: 1.6rem;
  }

  /*---------------------
  Legal
  ---------------------*/
  #footer .legal {
    border: 0;
    bottom: 0;
    left: 5.69%; /* 82 / 1440 */
    margin-bottom: 1.38%; /* 20/ 1440 */;
    padding: 0;
    position: absolute;
    text-align: left;
    width: auto;
  }

  #footer .legal p,
  #footer .legal a {
    font-size: 13px;
    font-size: 1.3rem;
  }

  /* This was the older implementation, it used to have an image logo */
  /*#footer .legal .ng:after {
    line-height: 13px;
  }*/

  /*---------------------
  Country Select
  ---------------------*/
  #footer .countryselector {
    border: 0;
    padding-bottom: 0;
  }

  #footer #country-selector {
    margin: 0;
  }
}