/**
 * Home template styles
 */

.home .site-inner {
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2.5rem;
  background: linear-gradient(#f1fae9, #fff 30%);
}

@media (min-width: 768px) {
  .home .site-inner {
    padding-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .home .site-inner {
    padding-top: 6rem;
    background: linear-gradient(#f1fae9, #fff 20%);
  }
}

.home .site-inner .wrap {
  max-width: 1140px;
}

.home .site-inner .content {
  margin-top: 0;
  margin-bottom: 0;
}

.home-header {
  text-align: center;
}

.home-heading {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  font-family: "Crimson Text", serif;
  font-size: 40px;
  line-height: 1.2;
}

.home-subheading {
  margin-top: 1rem !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .home-heading {
    font-size: 40px;
  }

  .home-subheading {
    margin-top: 1.5rem !important;
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .home-heading {
    font-size: 64px;
  }

  .home-subheading {
    margin-top: 2rem !important;
    font-size: 24px;
  }
}

/* Boxes
--------------------------------------------- */

.home-boxes {
  display: flex;
  flex-flow: column nowrap;
  margin-top: 5rem;
}

.home-box {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0px 0px 20px 0px #4caf5026;
  text-align: center;
}

.home-box:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 100px 15px;
  border-color: transparent transparent transparent #f1fae9;
}

.home-box-image {
  position: absolute;
  transform: translate(-50%, -40px);
}

.home-box-link {
  display: block;
}

.home-box-pre-heading {
  display: block;
  margin-top: 4rem;
  font-size: 14px;
  color: #388e3c;
  text-transform: uppercase;
}

.home-box-heading {
  display: block;
  margin-bottom: 0;
  font-family: "Crimson Text", "sans-serif";
  font-size: 36px;
}

@media (min-width: 768px) {
  .home-boxes {
    flex-flow: row wrap;
    justify-content: center;
    margin-top: 6rem;
  }

  .home-box {
    flex-basis: 26%;
    margin-left: 2.5%;
    margin-right: 2.5%;
  }

  .home-box-heading {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .home-box {
    flex-basis: 22%;
    margin-left: 2.5%;
    margin-right: 2.5%;
  }

  .home-box-heading {
    font-size: 36px;
  }
}

/* Featured On
--------------------------------------------- */

.home .featured-on {
  background: transparent;
  border: 0;
}

.home .featured-on-content {
  display: block;
  padding-top: 0;
}

.home .featured-on-description {
  font-size: 14px !important;
  text-align: center !important;
  color: #388e3c;
  text-transform: uppercase;
}

.home .featured-on-brands {
  margin-left: 0;
  margin-bottom: 0;
}

.home .featured-on-brand {
  list-style: none;
  margin-top: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home .featured-on-brand img {
  max-height: 53px;
  max-width: 100px;
}

.home.is-amp .featured-on-brand img {
  height: 53px;
  width: 100px;
}

@media (min-width: 768px) {
  .home .featured-on-brands {
    justify-content: center;
  }

  .home .featured-on-brand {
    flex-basis: 150px !important;
  }
}

/* Sections
--------------------------------------------- */

.home-sections {
  margin-top: 2rem;
}

.home-section {
  margin-bottom: 6rem;
  text-align: center;
}

.home-section:last-child {
  margin-bottom: 1rem;
}

.home-section h1,
.home-section-content {
  text-align: left;
}

.home-section-pre-heading {
  display: block;
  font-size: 14px;
  color: #388e3c;
  text-transform: uppercase;
}

.home-section-heading {
  display: block;
  margin-top: 0.25rem;
  font-family: "Crimson Text", serif;
}

.home-section-image {
  width: 80%;
}

.home-section-button {
  display: block;
  margin-top: 2.5rem;
  padding: 1rem 1.5rem;
}

/* Framed Sections */

.home-section-type-framed {
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  box-shadow: 0px 0px 20px rgba(76, 175, 80, 0.15);
  overflow: hidden;
}

.home-section-type-framed .home-section-image {
  width: auto;
}

.home-section-type-framed .home-section-image img {
  object-fit: cover;
  object-position: center bottom;
  height: 350px;
  width: 100%;
}

.home-section-type-framed .home-section-content-wrapper {
  padding-left: 1.25rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .home-sections {
    margin-bottom: 3rem;
  }

  .home-section {
    display: grid;
    align-items: center;
    column-gap: 4rem;
    text-align: left;
  }

  .home-section-alignment-left {
    grid-template-columns: 40% 1fr;
    grid-template-areas: "image content";
  }

  .home-section-alignment-right {
    grid-template-columns: 1fr 40%;
    grid-template-areas: "content image";
  }

  .home-section-content-wrapper {
    grid-area: content;
  }

  .home-section-heading {
    font-size: 40px;
  }

  .home-section-image {
    width: auto;
    grid-area: image;
  }

  .home-section-button {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 16px;
  }

  /* Framed Sections */

  .home-section-type-framed {
    display: block;
  }

  .home-section-type-framed .home-section-content-wrapper {
    padding: 0.5rem 2rem 1rem 2rem;
  }

  .home-section-type-framed .home-section-image {
    height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
}

@media (min-width: 1024px) {
  .home-section {
    margin-bottom: 8rem;
  }

  .home-section-heading {
    font-size: 60px;
  }

  .home-section-content {
    font-size: 18px;
  }

  .home-section-type-frameless .home-section-image {
    max-width: 400px;
  }

  .home-section-button {
    padding: 1.3rem 2rem;
    font-size: 18px;
  }

  /* Framed Sections */

  .home-section-type-framed {
    display: grid;
    column-gap: 2rem;
  }

  .home-section-type-framed .home-section-content-wrapper {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .home-section-type-framed .home-section-heading {
    font-size: 42px;
  }

  .home-section-type-framed .home-section-image {
    height: 100%;
  }

  .home-section-type-framed .home-section-image img {
    height: 100%;
    object-position: right;
  }

  .home-section-type-framed.home-section-alignment-right {
    padding-left: 2rem;
  }

  .home-section-type-framed.home-section-alignment-left {
    padding-right: 2rem;
  }
}
