/* Main CSS */

/* Fonts */

@font-face {
  font-family: "Neutra2Text";
  font-weight: normal;
  src: url("../fonts/Neutra2Text_book.woff2") format("woff2"), url("../fonts/Neutra2Text_book.woff") format("woff");
}

@font-face {
  font-family: "Neutra2Text";
  font-weight: bold;
  src: url("../fonts/Neutra2Text_bold.woff2") format("woff2"), url("../fonts/Neutra2Text_bold.woff") format("woff");
}

/* Reset */

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

a img {
  border: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}

sup {
  font-size: x-small;
  line-height: 1;
  vertical-align: text-top;
}


/* Global */

body {
  color: #333;
  font-size: 1.5em;
  line-height: 1.5;
  font-family: "Neutra2Text", sans-serif;
}

@media (max-width: 1400px) {
  body {
    font-size: 1.25em;
  }
}

h1 {
  margin-bottom: 2.5rem;
  font-size: 3em;
  line-height: 1.2;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 2em;
  line-height: 1.2;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.75em;
  line-height: 1.2;
}

@media (max-width: 850px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.75em;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.5em;
  }
}

p:not(:last-child) {
  margin-bottom: 1.5rem;
}

.tireless-text {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.tireless-text::after {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 92%;
  width: calc(100% - 0.1875em);
  height: 0.135em;
  background-color: currentColor;
}

[lang="fr"] .tireless-text::after {
  left: 0.0625em;
  width: calc(100% - 0.0625em);
}


/* Links & Buttons */

a {
  color: inherit;
}

button,
.button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  align-items: center;
  padding: 0.5em 1.5em 0.4375em;
  color: #000;
  font-weight: bold;
  font-size: inherit;
  font-family: inherit;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #ffda1d;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

button:hover,
.button:hover {
  color: #fff;
  background-color: #863041;
}

.button.alt {
  color: #fff;
  font-weight: normal;
  background-color: transparent;
  border: 1px solid #fff;
}

.button.alt:hover {
  color: #863041;
  background-color: #fff;
}

.button .icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  margin-top: -0.25em;
  fill: currentColor;
}

.toggle-button {
  position: relative;
  padding: 0.375em 2em 0.425em;
  margin: 0 0.5rem;
  color: #fff;
  font-weight: normal;
  text-decoration: none;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid #fff;
}

.toggle-button:hover,
.toggle-button.active {
  color: #863041;
  background-color: #fff;
}

.toggle-button.active::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.5em solid transparent;
  border-top-color: #fff;
  border-right-width: 0.75em;
  border-left-width: 0.75em;
}


/* Forms */

input[type="text"],
input[type="number"] {
  padding: 0 0.25em;
  font-weight: bold;
  font-size: inherit;
  font-family: inherit;
  background-color: #fff;
  border: none;
  border-radius: 0;
}


/* Main Header */

.main-header {
  position: relative;
  z-index: 1000;
  color: #fff;
  font-size: 0.75em;
  background-color: #ca4c5e;
  background-image: linear-gradient(90deg, #9f4b5e, #ca4c5e);
}

.main-header .content-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.main-header .logo {
  position: absolute;
  top: 0;
  left: 1rem;
  display: block;
  width: 200px;
  padding: 1.25rem 1.75rem;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.25)
}

.main-header .logo img {
  display: block;
  width: 100%;
}

.main-header .button-group {
  padding: 1rem;
  text-align: right;
}

.main-header .button-group a {
  margin: 0 0.75rem;
}

.main-header .button-group a:not(.button) {
  color: inherit;
  text-decoration: none;
}

.main-header .button-group a:not(.button):hover {
  text-decoration: underline;
}

.hide-site {
  font-style: italic;
}

@media (max-width: 600px) {
  .main-header {
    font-size: 0.625em;
  }

  .main-header .logo {
    width: 120px;
    padding: 1rem;
  }

  .main-header .button-group {
    margin-left: auto;
  }

  .main-header .button-group a {
    margin: 0 0.5rem;
  }

  .main-header .button-group a:last-child {
    margin-right: 0;
  }

  .hide-site {
    display: none;
  }
}


/* Hero */

.hero {
  position: relative;
  height: 80vh;
  min-height: 340px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #333;
}

.hero .bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 101%;
  min-width: 620px;
  transform: translate(-50%,-50%);
  background-color: #ccc;
}

.hero .content-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1000px;
  transform: translate(-50%,-50%);
}

.hero .title {
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero .tireless-text::after {
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (max-aspect-ratio: 7/5) {
  .hero .bg-video {
    width: auto;
    height: 101%;
  }
}


/* Intro */

.intro {
  padding: calc(2vw + 1.5rem) 5vw;
  text-align: center;
}

.intro .content-wrap {
  max-width: 850px;
  margin: 0 auto;
}

.intro .title {
  color: #863041;
}

.share-wrap {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}

.share-wrap .title {
  margin-right: 0.5em;
  margin-bottom: 0;
  font-size: 0.75em;
  text-transform: uppercase;
}

.share-link .icon {
  display: block;
  width: 1.9em;
  height: 1.9em;
  margin: 0 0.25rem;
  fill: #000;
}


/* Donate */

.donate {
  padding: calc(2vw + 1.5rem) 5vw;
  color: #fff;
  text-align: center;
  background-color: #c84763;
  background-image: radial-gradient(#de7282, #ca4c5e);
}

.donate .content-wrap {
  max-width: 850px;
  margin: 0 auto 1.5rem;
}

.toggle-group {
  margin-bottom: 1.5rem;
  font-size: 0.75em;
}

@media (max-width: 400px) {
  .toggle-group {
    font-size: 0.625em;
  }
}

.donation-options {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 1200px) {
  .donation-options {
    max-width: 640px;
    flex-wrap: wrap;
  }
}

.donation-option {
  display: block;
  padding: 1rem 2.5rem 1.5rem;
  margin: 0.75rem;
  color: #863041;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.donation-option:hover {
  box-shadow: 0 0 0 rgba(0,0,0,0.25);
}

.donation-option:hover .button {
  color: #fff;
  background-color: #863041;
}

.donation-option .amount {
  margin-bottom: 0.5rem;
  font-size: 2.75em;
}

.donation-option .per-mo {
  margin-left: 0.125em;
  font-size: 50%;
}

.donation-option .bonus {
  margin-top: 1.5rem;
  color: #333;
  font-weight: normal;
  font-size: 0.625em;
}

.donation-option .bonus-image {
  display: inline-block;
  vertical-align: middle;
}

.custom-donation {
  margin-bottom: 1.5rem;
}

.custom-amount {
  margin: 0 0.5rem;
  font-weight: bold;
  font-size: 1.5em;
}

.custom-amount input {
  max-width: 110px;
  text-align: center;
}

.custom-amount .per-mo {
  font-size: 75%;
}

.donate[data-show="monthly"] [data-type="one-time"] {
  display: none;
}

.donate[data-show="one-time"] [data-type="monthly"] {
  display: none;
}

.donate .button {
  font-size: 0.75em;
}

@media (max-width: 740px) {
  .custom-donation .button {
    display: block;
    max-width: 400px;
    margin: 0.25rem auto;
  }
}

@media (max-width: 450px) {
  .custom-donation label {
    display: block;
  }

  .custom-donation .button {
    max-width: 220px;
  }
}


/* Secondary CTAs */

.secondary-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  padding: 3vw 2vw;
  margin: 0 auto;
}

.secondary-ctas .card {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 3rem);
  padding: 2.75rem;
  margin: 1.5rem;
  color: #fff;
  font-size: 0.75em;
  text-align: center;
  text-decoration: none;
  background-color: #c84863;
  background-image: url("../images/ppl-pattern.png");
  background-blend-mode: luminosity;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: auto 100%;
  transition:
    background-color 1s,
    background-size 1s;
}

.secondary-ctas .card:nth-child(1) {
  background-position: 0 50%;
}

.secondary-ctas .card:nth-child(3) {
  background-position: 100% 50%;
}

.secondary-ctas .card:hover {
  background-color: #863041;
  background-size: auto 105%;
}

.secondary-ctas .card .button {
  align-self: center;
  margin-top: auto;
}

.secondary-ctas .card:hover .button {
  color: #863041;
  background-color: #fff;
}

@media (max-width: 950px) {
  .secondary-ctas .card {
    width: calc(100% - 3rem);
    max-width: 500px;
    margin: 1.5rem auto;
  }
}

.secondary-ctas .title {
  font-size: 2em;
}


/* Main Footer */

.main-footer {
  color: #fff;
  font-size: 0.625em;
  background-color: #000;
}

.main-footer a:not(.button) {
  text-decoration: none;
}

.main-footer a:not(.button):hover {
  color: #ffda1d;
}

.main-footer .content-wrap {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  padding: 2.75rem calc(2vw + 1.5rem);
  margin: 0 auto;
}

.main-footer .ctas {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.main-footer .cta-wrap {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.main-footer .cta-wrap p {
  margin-right: 1rem;
  margin-bottom: 0;
  text-transform: uppercase;
}

.main-footer .cta-wrap .button {
  font-weight: normal;
  text-transform: none;
  border-radius: 2em;
}

.main-footer .cta-wrap .button:hover {
  color: #000;
  background-color: #fff;
}

.main-footer .social-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  margin: 0 -0.5rem 1rem;
}

.main-footer .social-links a {
  display: block;
  margin: 0.5rem;
}

.main-footer .social-links .icon {
  display: block;
  width: 1.75em;
  height: 1.75em;
  fill: currentColor;
}

@media (max-width: 900px) {
  .main-footer .content-wrap {
    display: block;
    padding: 1.5rem calc(2vw + 1.5rem)
  }

  .main-footer .ctas {
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .main-footer .social-links {
    justify-content: flex-start;
  }

  .main-footer .cta-wrap {
    display: block;
  }

  .main-footer .cta-wrap p {
    margin-bottom: 1rem;
  }
}


/* Overlay */

.overlay {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 5vw;
  color: #fff;
  background-color: rgba(0,0,0,0.9);
}

.overlay.show {
  display: flex;
}

.overlay .close {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 0 0.5em;
  font-size: 2em;
  line-height: 1;
  text-align: right;
  text-decoration: none;
}

.overlay .video-wrap {
  position: relative;
  width: 100%;
  height: 0;
  margin: auto;
  padding-bottom: 56.25%;
}

.overlay .video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (min-aspect-ratio: 16/10) {
  .overlay .video-wrap {
    padding-bottom: 0;
    width: calc(144vh - 10vw);
    height: 100%;
  }
}

/* CUSTOM */
.popup-join-the-tireless {
  z-index: 999910;
  position: fixed;
  right: 20px;
  bottom: 2px;
  animation-timing-function: linear;
  animation-duration: 1000ms;
  display: none;
}

.close-button {
  z-index: 999920;
  position: absolute;
  float: left;
  top: -18px;
  right: -18px;
  width: 30px;
  cursor: pointer;
  height: 30px;
  background-repeat: no-repeat;
  background-size: cover;
}

.popup-dialog {
  box-sizing: content-box;
  min-width: 120px;
  max-height: 500px;
  max-width: 100%;
  border-style: solid;
  border-color: rgb(255, 0, 0);
  border-radius: 7px;
  border-width: 0px;
  background-color: rgb(255, 255, 255);
  box-shadow: rgb(204, 204, 204) 0px 0px 0px 0px;
  overflow: auto;
  width: 500px;
  height: 500px;
}

.popup-dialog img.max-100 {
  max-width: 100%;
  width: 100%;
  display: block;
  float: left;
}

.popup-dialog img.max-100:hover {
  cursor: pointer;
}

@media all and (max-width: 767px) {
  .popup-dialog {
    box-sizing: content-box;
    min-width: 120px;
    max-height: 400px;
    max-width: 100%;
    border-style: solid;
    border-color: rgb(255, 0, 0);
    border-radius: 7px;
    border-width: 0px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgb(204, 204, 204) 0px 0px 0px 0px;
    overflow: auto;
    width: 325px;
    height: 325px;
  }
}
