/* variables */
:root {
  --c-background-colour: #B3EC00;
  --c-foreground-colour: white;

  --c-primary-heading-colour: white;
  --c-primary-heading-accent-colour: #8EC056;
  --c-secondary-heading-colour: #23549B;

  --c-primary-text-colour: white;
  --c-secondary-text-colour: #5E813F;

  --c-banner-gradient1: #1E4B92;
  --c-banner-gradient2: #2F6DAF;

  --c-image-list--indent: 64px;
  --c-image-list--indent-xl: 80px;
}

/* common container */

.container {
  background-color: var(--c-foreground-colour);
}
.c-dark {
  background-color: var(--c-banner-gradient1);
}
.c-button--scroll {
  position: absolute;
  right: 1rem;
  height: 3rem;
}
.c-icon--scroll {
  fill: lightgrey;
  height: 3rem;
  opacity: 0.25;
}
@media (max-width: 767px) {
  .c-button--scroll {
    height: 2.5rem;
  }
  .c-icon--scroll {
    height: 2.5rem;
  }
}

/* header elements */

header {
  position: relative;
  margin: auto 4rem;
}
header .c-button--scroll {
  top: 50%;
  margin-top: -1.5rem;  /* half of scroll button icon height */
}
@media (max-width: 767px) {
  header .c-button--scroll {
    top: 50%;
    margin-top: -1.25rem;  /* half of scroll button icon height */
  }
}
.c-banner-gradient {
  background-image: linear-gradient(to top, var(--c-banner-gradient1), var(--c-banner-gradient2));
}
h1 {
  background-image: linear-gradient(to right, var(--c-banner-gradient1), var(--c-banner-gradient2), var(--c-banner-gradient1));
  font-size: 2.5rem;
  margin-bottom: 0;
  padding: 2rem 2rem;
}
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
    padding: 2rem 2rem;
  }
}
@media (max-width: 575px) {
  header {
    margin: auto 4rem;
  }
  h1 {
    font-size: 1.5rem;
    padding: 1.5rem 0.5rem;
  }
}
@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
    padding: 1.25rem 1rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3rem;
    padding: 1.5rem 2rem;
  }
}
@media (min-width: 1200px) {
  .c-button--scroll {
    right: 0.25rem;
  }
  header {
    margin: auto 4rem;
  }
  h1 {
    font-size: 4rem;
    padding: 2.5rem 3rem;
  }
}

/* arch for infographic section */

.c-arch {
  position: relative;
  overflow: hidden;
  padding: calc(4.2vw) 2rem;
  margin-top: -52px;
  width: 100%;
  z-index: 0;
}
@media (max-width: 575px) {
  .c-arch {
    margin-top: -20px;
    padding: calc(5vw) 2rem;
  }
}
@media (min-width: 1200px) {
  .c-arch {
    margin-top: -98px;
  }
}

/* silver arch */
.c-arch::before {
  background-image: linear-gradient(to right, white 35%, grey, white, grey, white, grey,white, grey 65%);
  border-radius: 150vw;
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 316vw;
  height: 316vw;
  z-index: -1;
}
/* blue arch */
.c-arch::after {
  background-image: linear-gradient(to top, var(--c-banner-gradient1), 75%, var(--c-banner-gradient2));
  background-clip: content-box;
  border-radius: 150vw;
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 320vw;
  height: 320vw;
  z-index: -1;
}
@media (min-width: 1200px) {
  .c-arch::after {
    border-width: 16px;
  }
}
.c-arch-title {
  width: 75%;
  margin-top: -16px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 8px;
}
@media (max-width: 767px) {
  .c-infographic {
    padding-top: 16px;
  }
  .c-arch-title {
    font-size: 1.45rem;
    margin-top: 0px;
  }
}
@media (max-width: 575px) {
  .c-arch-title {
    font-size: 1.35rem;
    width: 90%;
  }
}
@media (max-width: 320px) {
  .c-arch-title {
    font-size: 1.3rem;
  }
}

/* typography settings */
/* font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width]))); */

h2 {
  font-size: 1.45rem;
}
@media (max-width: 767px) {
  h2 {
    font-size: 1.25rem;
  }
}
@media (min-width: 992px) {
  h2 {
    font-size: 2rem;
  }
}
@media (min-width: 1200px) {
  h2 {
    font-size: 2.5rem;
  }
}

.c-heading-light {
  color: var(--c-primary-heading-colour);
}

.c-heading-accent {
  color: var(--c-primary-heading-accent-colour);
}

/* infographic lists */

.c-image-list {
  color: var(--c-primary-text-colour);
  font-size: 1rem;
  list-style: none;
  padding-left: 0px;
  margin: auto;
}

@media (min-width: 768px) {
  .c-image-list {
    font-size: 1.3rem;
  }
}
@media (min-width: 992px) {
  .c-image-list {
    font-size: 1.6rem;
  }
}
@media (min-width: 1200px) {
  .c-image-list {
    font-size: 2rem;
    line-height: 1.2;
  }
}
@media (max-width: 767px) {
  .c-image-list {
    font-size: 20px;
    width: 75%;
  }
}
@media (max-width: 575px) {
  .c-image-list {
    font-size: 18px;
    width: 100%;
  }
}
.c-image-list > li {
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: var(--c-image-list--indent);
  padding-right: 0px;
  margin: 0;
}
@media (min-width: 1200px) {
  .c-image-list > li {
    background-size: 60px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: var(--c-image-list--indent-xl);
  } 
}
.c-image-list li.c-bullet-clock {
  background-image: url("../images/bullet-clock.png");
}
.c-image-list li.c-bullet-sprayer {
  background-image: url("../images/bullet-sprayer.png");
}
.c-image-list li.c-bullet-face-body {
  background-image: url("../images/bullet-face-body.png");
  background-size: 64px;
  margin-left: -16px;
  padding-left: calc(var(--c-image-list--indent) + 16px);
}
@media (min-width: 1200px) {
  .c-image-list li.c-bullet-face-body {
    background-size: 80px;
    margin-left: -20px;
    padding-left: calc(var(--c-image-list--indent-xl) + 20px);
  }
}
.c-image-list li.c-bullet-teardrops {
  background-image: url("../images/bullet-teardrops.png");
}

.c-teardrop-list {
  color: var(--c-primary-text-colour);
  font-size: 80%;
  list-style: none;
  padding-left: var(--c-image-list--indent);
  padding-right: 8px;
}
@media (min-width: 1200px) {
  .c-teardrop-list {
    padding-left: var(--c-image-list--indent-xl);
  }
}
.c-teardrop-list > li {
  background-image: url("../images/teardrop.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 16px;
  float: left;
  padding: 2px 8px 2px 18px;
}

/* images */
.c-image--bottle {
  max-width: 87%;
}
.c-image--jar {
  margin-top: 20px;
  max-width: 65%;
}
@media (max-width: 767px) {
  .c-image--bottle {
    max-width: 80%;
  }
  .c-image--jar {
    margin: auto;
  }
}

.c-image--partnership {
  width: 120%
}
@media (max-width: 767px) {
  .c-image--partnership {
    width: 80%;
  }
}

.c-recommendation {
  display: inline-block;
  padding-left: var(--c-image-list--indent);
  text-align: left;
}
.c-recommendation--lower {
  position: absolute;
  margin-top: 40px;
  z-index: 1;
}
@media (max-width: 767px) {
  .c-recommendation {
    display: block;
    padding-left: 0px;
    text-align: center;
  }
  .c-recommendation--lower {
    position: static;
    margin-top: 0;
  }
}
@media (min-width: 1200px) {
  .c-recommendation {
    padding-left: var(--c-image-list--indent-xl);
  }
}

/* footer elements */

.c-footer {
  position: relative;
  text-align: left;
  height: 64px;
  background-color: #1E4B92;
}
.c-footer .c-logo {
  height: auto;
  width: 20%;
  object-fit: contain;
  padding-top: 0.5rem;
}
.c-footer .c-button--scroll {
  position: absolute;
  top: 0px;
}
@media (max-width: 575px) {
  .c-footer {
    height: auto;
    text-align: center;
  }
  .c-footer .c-logo {
    width: 80%;
  }
}
@media (min-width: 1200px) {
  .c-footer {
    height: auto;
  }
}
@media only screen
  and (min-device-width: 1200px)
  and (max-width: 575px) {
    .c-footer .c-logo {
      width: 40%;
    }
}

/* iPad portrait mode optimizations */

@media only screen and (device-width: 768px)  and (orientation: portrait),
       only screen and (device-width: 810px)  and (orientation: portrait),
       only screen and (device-width: 820px)  and (orientation: portrait),
       only screen and (device-width: 834px)  and (orientation: portrait),
       only screen and (device-width: 1024px) and (orientation: portrait) {
  .c-footer {
    height: 100px;
  }
  .c-footer .c-logo {
    position: absolute;
    top: 0px;
  }
  .c-footer .c-button--scroll {
    top: -4px;
  }
}

@media only screen 
  and (device-width: 768px)
  and (orientation: portrait) {
    h1 {
      font-size: 2rem;
      padding: 1.25rem 1rem;
    }
    .c-full h1 {
      font-size: 2.5rem;
      padding: 1.5rem 1rem;
    }
    .c-arch {
      margin-top: -60px;
    }
    .c-full .c-arch {
      margin-top: -52px;
    }
    .c-image-list {
      font-size: 1rem;
    }
    .c-full .c-image-list {
      font-size: 1.1rem;
    }
    .c-image-list > li {
      padding-top: 4px;
      padding-bottom: 4px;
    }
    .c-full .c-image-list > li {
      padding-top: 8px;
      padding-bottom: 8px;
    }
    .c-footer .c-button--scroll {
      top: -8px;
    }
}
@media only screen
  and (device-width: 810px)
  and (orientation: portrait) {
    h1 {
      font-size: 2.25rem;
      padding: 1.25rem 1rem;
    }
    .c-arch {
      margin-top: -64px;
    }
    .c-image-list {
      font-size: 1rem;
    }
}
@media only screen
  and (device-width: 820px)
  and (orientation: portrait) {
    h1 {
      font-size: 2.25rem;
      padding: 1.25rem 1rem;
    }
    .c-arch.c-lower {
      margin-top: -44px;
    }
    .c-infographic.c-lower {
      padding-top: 28px;
    }
    .c-arch-title {
      font-size: 1.7rem;
    }
    .c-image-list {
      font-size: 1.25rem;
    }
    .c-teardrop-list {
      font-size: 1rem;
    }
}
@media only screen
  and (device-width: 834px)
  and (orientation: portrait) {
    h1 {
      font-size: 2.5rem;
      padding: 1.5rem 1rem;
    }
    .c-arch {
      margin-top: -56px;
    }
    .c-arch.c-lower {
      margin-top: -44px;
    }
    .c-infographic.c-lower {
      padding-top: 28px;
    }
    .c-arch-title {
      font-size: 1.75rem;
    }
}
@media only screen
  and (device-width: 1024px)
  and (orientation: portrait) {
    h1 {
      font-size: 3rem;
      padding: 1.5rem 1rem;
    }
    .c-arch {
      margin-top: -72px;;
    }
    .c-arch-title {
      font-size: 2rem;
      margin-top: 0;
    }
}
