/* General Styles */
html, body {
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  min-width: 300px;
}

h1, h2 {
  font-family: 'Domine', serif;
  font-weight: initial;
}

h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: initial;
}

h2 {
  font-size: 45px;
  line-height: 1.5em;
}

em {
  font-style: unset;
  font-weight: 400;
}

.contain {
  display: block;
  max-width: 1200px;
  margin: auto;
}

.menu {
  position: fixed;
  z-index: 100;
  width: 97px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  margin: 10px;
}

.menu img, .menu span {
  cursor: pointer;
}

.menu span {
  position: absolute;
  top: 11px;
  left: 47px;
}

.menu img {
  width: 38px;
  position: relative;
  left: 5px;
  top: 1px;
}

.menu ul {
  display: none;
  margin: 10px 0;
  padding: 0;
}

.menu li {
  display: block;
}

.menu ul li {
  padding: 10px;
  margin: 0 10px;
}

.menu ul ~ ul {
  margin-top: 10px;
}

.menu ul li ~ li {
  border-top: solid 1px #2E303E;
}

.menu ul li a {
  text-decoration: none;
  font-size: 17px;
  width: 100%;
  height: 100%;
  display: block;
  color: #2E303E;
}

/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.modal__container {
  background-color: #fff;
  padding: 30px;
  max-width: 500px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
  box-sizing: border-box;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

.modal form input {
  padding: 10px;
  width: 260px;
  margin-bottom: 5px;
}

.modal h3 {
  margin-top: 0;
}

/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

header {
  background-color: #ECE8D3;
  background-size: cover;
  background-position: bottom;
  width: 100%;
  height: 400px;
  position: relative;
  border-bottom: #ECE8D3 solid 100px;
}

header svg {
  position: absolute;
  bottom: 0;
  z-index: 1;
}

header h2 {
  z-index: 2;
  position: absolute;
  left: 30px;
  bottom: -20px;
  width: 50%;
  margin: 0px;
  font-size: 44px;
}

header img {
  max-width: 400px;
  width: 40%;
  z-index: 2;
  position: absolute;
  right: 30px;
  bottom: -70px;
}

.palbreadcrumb {
  margin: 10px 10px 10px 30px;
  font-size: 13px;
}

footer {
  background: #2E303E;
  min-height: 160px;

  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

footer a {
  color: #ECE8D3;
  text-decoration: none;
}

footer ul {
  padding: 10px 30px;
}

footer li {
  display: block;
}

footer .contact { 
  text-align: right;
}

/*Home styles*/
.home header {
  background-image: url(../img/pedersen-agregates-yard.jpg);
}

.home header a.quote {
  z-index: 2;
  width: 25%;
  text-align: center;
  background: #4F6339;
  color: #ECE8D3;
  text-decoration: none;
  font-weight: 200;
  font-size: 22px;
  padding: 10px;
  position: absolute;
  left: 30px;
  bottom: -80px;
  display: block;
}

.home header a.quote:hover {
  box-shadow:0px 0px 0px 1px #2E303E inset;
}

.home .quote {
  display: none;
}

.home main {
  padding: 30px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 15px;
  grid-row-gap: 0px;
}

.home main .product {
  display: flex;
  justify-content: center;
  align-items: center;

  color: #2E303E;
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;

  background-size: cover;
  background-position: bottom;

}

.home main .product:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.home main a.product:hover {
  box-shadow:0px 0px 0px 1px #2E303E inset;
}

.home main a.product.golf {
  background: linear-gradient(
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
    ), url(../img/bunker.png);
}

.home main a.product.construction {
  background: linear-gradient(
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
    ), url(../img/construction.png);
}

.home main a.product.landscaping {
  background: linear-gradient(
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
    ),
    url(../img/landscaping.png);
}

.home main a.product.equestrian {
  background: linear-gradient(
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
    ), url(../img/equestrian.png);
}

.home main a.product.more {
  background: linear-gradient(
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
    ), url(../img/more.png);
}

/*Product page styles*/
.products header h3 {
  position: absolute;
  left: 30px;
  bottom: -78px;
  margin: 0;
  z-index: 2;
  font-size: 20PX;
}

.products header h2 {
  bottom: -88px;
}

.products header.golfsand {
  background-image: url(../img/bunker-ball.jpg);
  background-position: center;
}

.products header.construction {
  background-image: url(../img/construction-sand.jpg);
}

.products header.landscaping {
  background-image: url(../img/landscape-rock.jpg);
}

.products header.equestrian {
  background-image: url(../img/sand-racecourse.png);
}

.products aside {
  margin: 20px 30px;
  line-height: 22px;
  border-top: solid 3px #4F6339;
  border-bottom: solid 3px #4F6339;
  padding: 20px 0;
}

.products main h2, .products main h3 {
  display: none;
  line-height: initial;
  margin: 0 30px 0 30px;
}

.products main section.productknowledge {
  margin: 30px;
  position: relative;

  background: #ECE8D3;
  padding: 20px 20px 20px 30px;

  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;

  border-top: solid 1px #2E303E;
}

.products main section.productknowledge h4 {
  margin: 0;
  font-size: 25px;
}

.products main section.productknowledge ul {
  padding: 0 20px 0 20px;
  list-style-type: circle;
  line-height: 25px;
}

.products main section.productknowledge img.showcaseimg.wide {
  width: 100%;
}

.products main section.productknowledge img.showcaseimg.mobile {
  display: none;
  max-width: 300px;
  margin: 15px auto;
}

.products main .smallcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 20px;

  margin: 0 30px 30px 30px
}

.products main .smallcards section.productknowledge_small {
  position: relative;
  background: #ECE8D3;
  padding: 20px 20px 20px 30px;

  border-top: solid 1px #2E303E;
  min-height: 150px;
}

.products main .smallcards section.productknowledge_small h4 {
  margin: 0;
  font-size: 25px;
}

.products main .smallcards section.productknowledge_small ul {
  padding: 0 20px 0 20px;
  list-style-type: circle;
  line-height: 25px;
}

.products main a.quote {
  width: 190px;
  text-align: center;
  background: #4F6339;
  color: #ECE8D3;
  text-decoration: none;
  font-weight: 200;
  font-size: 20px;
  padding: 10px;
  display: block;
  margin: 0 auto 20px auto;
}

.products main a.quote:hover {
  box-shadow:0px 0px 0px 1px #2E303E inset;
}

/*Story page styles*/
.story header h3 {
  position: absolute;
  left: 30px;
  bottom: -15px;
  margin: 0;
  z-index: 2;
  font-size: 20px;
}

.story header h2 {
  bottom: 0;
}

.story header.testing {
  background-image: url(../img/excavator.jpg);
}

.story header.aboutus {
  background-image: url(../img/excavator.jpg);
}

.story header.contactus {
  background-image: url(../img/excavator.jpg);
}

.story .quote {
  display: block;
  width: 209px;
  text-align: center;
  background: #4F6339;
  color: #ECE8D3;
  text-decoration: none;
  font-weight: 200;
  font-size: 18px;
  padding: 10px;
  position: absolute;
  left: 30px;
  bottom: -78px;
}

.story main {
  margin: 0 0 40px 0;
}

.story main .quote {
  display: none;
}

.story main h2, .story main h3 {
  display: none;
  line-height: initial;
  margin: 0 30px 0 30px;
}

.story h4, .story h5, .story p {
  padding: 0 30px;
}

.story main h4 {
  font-family: 'Domine', serif;
  font-size: 26px;
  margin: 20px 0 0 0;
}

.story main h5 {
  margin: 10px 0;
  font-size: 18px;
}

.story .testinglayout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 20px;

  margin: 30px;
}

/*Fix header size for mid size screens*/
@media screen and (max-width: 1200px) {
  /*General styles*/
  header h2 {
    font-size: 2em;
  }
}

/*Reset for large screens*/
@media screen and (min-width: 1000px) {
  /*Home styles*/
  .home main aside.product{
    display: none;
  }
}

/*Tabet styles*/
@media screen and (max-width: 999px) {
  /*General styles*/
  header {
    max-height: 260px;
  }

  /*Home styles*/
  .home header h2 {
    display: none;
  }
  .home main {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
  }
  .home main aside.product.mobile {
    display: none;
  }

  /*Product styles*/
  .products main section.productknowledge {
    margin: 20px 30px;
    display: block;
  }

  .products main section.productknowledge img.showcaseimg.wide {
    display: none;
  }

  .products main section.productknowledge img.showcaseimg.mobile {
    display: block;
    width: 100%;
  }

  .products main section.productknowledge a.quote {
    left: 50%;
    margin-left: -95px;
  }

  .products main section.productknowledge p {
    text-align: center;
  }

  .products main .smallcards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Story styles */

  .story .testinglayout {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }

  .story .testinglayout img {
    margin-left: auto;
    margin-right: auto;
  }

  .story .aboutlayout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }


}

/*Mobile Styles*/
@media screen and (max-width: 650px) {
  /*General styles*/
  header {
    max-height: 200px;
  }
  header img {
    max-width: initial;
    right: 50%;
    bottom: -85px;
    width: 270px;
    margin-right: -135px;
  }
  footer {
    grid-template-columns: 1fr;
    grid-template-rows: 110px 70px 95px;

    text-align: center;
    padding: 20px 0;
  }
  footer ul {
    margin: 0;
    padding: 0;
  }
  footer .contact {
    text-align: center;
    padding: 0;
  }

  /*Home styles*/
  .home .quote {
    display: block;
    margin: 20px auto 0 auto;
    width: 209px;
    text-align: center;
    background: #4F6339;
    color: #ECE8D3;
    text-decoration: none;
    font-weight: 200;
    font-size: 18px;
    padding: 10px;
  }
  .home header a.quote {
    display: none;
  }
  .home main {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
  }
  .home main .product {
    font-size: 5vw;
    padding: 10px;
  }
  .home main aside.product.mobile {
    display: flex;
  }
  .home main aside.product.tablet {
    display: none;
  }

  /*Product styles*/
  .products main h2, .products main h3 {
    display: block;
  }
  .products main h2 {
    font-size: 34px;
  } 
  .products main h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .products header h2, header h3 {
    display: none;
  }
  .products main .smallcards {
    grid-template-columns: repeat(1, 1fr);
  }

  /*Story styles*/
  .story header a.quote {
    display: none;
  }
  .story main a.quote {
    display: block;
    position: initial;
    margin: 15px auto 40px auto;
  }
  .story main h2, .story main h3 {
    display: block;
  }
  .story main h2 {
    font-size: 30px;
  } 
  .story main h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .story header h2, header h3 {
    display: none;
  }
}