/*
 * Index style for gallura template.
 */

div#imageHeader {
    height: 75vh!important;
}

/* Blocks section */
section#blocks {
    display: flex;
    width: 100%;
    padding: 0;
    z-index: 2;
    color: var(--white);
}

section#blocks a.square {
    text-align: center;
    width: 25%;
    line-height: 2em;
    height: 25vh;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

section#blocks a.square div {
    width: 100%;
}

section#blocks a.square:hover::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .2);
}

/* Blog preview */
section#blog {
    padding-top: 4em;
    padding-bottom: 4em;
    background-color: #F5F4F4;
}

section#blog h2 {
    text-align: center;
    margin-bottom: .5em;
}

a.blogBox:hover {
    background-color: var(--white);
}

/* Video section */
div#videos {
    position: relative;
}

div#videos video {
    width: 100%;
    display: block;
}

div#videos > img {
    display: none;
}

div#videos > section {
    position: absolute;
    vertical-align: middle;
    top: 28%;
    left: 0;
    margin: auto;
    right: 0;
}

div#videos > div.bannerCall {
    position: absolute;
    bottom: 0;
    opacity: .9;
}

/* Services section*/
div#services {
    position: relative;
    background-image: url('../images/layout/01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom!important;
}

div#services::before {
    position: absolute;
    content:"";
    border-style: solid;
    border-width: 0 50px 50px;
    border-color: var(--white) transparent var(--white) var(--white);
    left:0;
    right: 50%;
    bottom: -1px;
}

div#services::after {
  left: 50%;
  position: absolute;
  content:"";
  width: 50%;
  border-style: solid;
  border-width: 0 0 50px 50px;
  border-color: transparent transparent var(--white) transparent;
  bottom: -1px;
  box-sizing: border-box;
}

div#services section {
    position: relative;
    width: 37%;
    padding-top: 5em;
    padding-bottom: 6em;
    margin: 0;
    background-color: var(--white);
    -webkit-box-shadow: 100px 0px 50px var(--white);
       -moz-box-shadow: 100px 0px 50px var(--white);
         -o-box-shadow: 100px 0px 50px var(--white);
            box-shadow: 100px 0px 50px var(--white);
}

div#services section h2.textBig {
    margin: .5em 0;
    text-align: left;
    text-transform: none;
}

div#services section p {
    margin-bottom: 1.5em;
}

/* Pests Products section*/
div#shopPrev {
    padding: 5em 15%;
}

div#shopPrev > h2 {
    text-align: center;
    padding-bottom: 1em;
}

div#shopPrev section {
    padding: 0;
    width: 100%;
}

.arrow-right div {
    width: 17px;
    background-color: var(--green);
    height: 12em;
    border-radius: 15px;
    position: absolute;
}

.arrow-right div#upArrow {
    transform: rotate(-15deg);
    top: -7%;
}

.arrow-right div#downArrow {
    transform: rotate(15deg);
    bottom: -7%;
}

div#shopPrev section div.pestProd {
    display: flex;
    height: 20em;
}

div#shopPrev section div.pestProd div.pest {
    width: 30%;
    background-color: var(--white);
    text-align: center;
}

div#shopPrev section div.pestProd div.pest div.bg {
    padding: 5em 5%;
    width: 60%;
    margin: 0 auto;
}

div#shopPrev section div.pestProd div.pest a {
    margin-top: 1em;
}

div#shopPrev section div.pestProd div.prod-container {
    display: flex;
    width: 70%;
}

div#shopPrev section div.pestProd div.prod {
    width: 100%;
    display: flex;
}

div#shopPrev section div.pestProd div.prod img {
    padding: 3em 8%;
    width: 35%;
    vertical-align: top;
    box-sizing: border-box;
    object-fit: cover;
}

div#shopPrev section div.pestProd div.prod div.textProd {
    display: inline-block;
    width: 65%;
    vertical-align: top;
    padding: 3em 0;
}

div#shopPrev section div.pestProd div.prod div.textProd h2 {
    font-weight: bold;
    margin-bottom: 1em;
}

div#shopPrev section div.pestProd div.prod div.textProd h3 {
    font-size: 1.2em;
}

div#shopPrev section div.pestProd div.prod div.textProd a {
    margin-top: 1em;
}

/* feed section*/
div#feed {
    position: relative;
    background-position: bottom!important;
    padding: 3em 0;
}

div#feed .feed-container{
    position: relative;
    overflow: visible;
}

div#feed p.quote {
    position: absolute;
    font-size: 3em;
    color: var(--green);
    top: -.7em;
    right: 9em;
    z-index: 1;
}

div#feed section > div {
    width: 40%;
    padding: 3em 5%;
    background-color: var(--white);
    border-radius: 15px;
}

div#feed section > div div#stars {
    color: #E76E18;
    margin-bottom: 2em;
}

div#feed section > div h6 {
    margin-bottom: .5em;
    color: var(--green);
}

div#feed section > div h2 {
    margin-top: 1em;
    color: var(--green);
}

/* About section */
div#about {
    padding: 6% 0 6% 0;
    position: relative;
}

div#about section {
    text-align: center;
    z-index: 2;
}

div#about section p {
    max-width: 70%;
    margin: auto;
    color: var(--white);
    margin-bottom: 1em;
}

div#about div#bgBlack {
    position: absolute;
    background-color: var(--darkGrey);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: .5;
}

/* Help pests setion */
section#helpPests > div > div h2 {
    color: var(--darkGrey);
}

/* Mobile menu activates */
@media screen and (max-width: 768px) {

    div#imageHeader {
        height: 50vh !important;
    }

    section#blocks {
        flex-wrap: wrap;
    }

    section#blocks a.square {
        width: 50%;
    }

    section#blocks a.square:nth-last-child(2) {
        order: 4;
    }

    div#services::before,
    div#services::after {
        display: none;
    }

    div#services section {
        width: 100%;
        background-color: rgba(255, 255, 255, .8);
        -webkit-box-shadow: none;
           -moz-box-shadow: none;
             -o-box-shadow: none;
                box-shadow: none;
    }

    div#shopPrev {
        padding: 5em 5%;
    }

    div#shopPrev section {
        margin-top: 3em;
    }

    div#shopPrev section div.pestProd div.pest div.bg {
        padding: 5em;
    }

    div#feed p.quote {
        top: -.5em;
        right: 5.5em;
    }

    div#feed section > div {
        width: 45%;
    }

    div#feed > p {
        right: 43%;
    }

    div#faqPrev section p {
        padding: 0px 10%;
    }
}

@media screen and (max-width: 576px) {

    div#imageHeader.bg {
        background-position: right!important;
        align-items: end;
    }

    div#shopPrev {
        padding: 5em 5%;
    }

    div#shopPrev section div.pestProd {
        display: flex;
        height: inherit;
        flex-direction: column;
    }

    div#shopPrev section div.pestProd div.prod-container {
        width: 100%;
    }

    div#shopPrev section div.pestProd div.pest {
        width: 100%;
        background-color: var(--white);
        text-align: center;
    }

    div#shopPrev section div.pestProd div.prod {
        position: relative;   
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    div#shopPrev section div.pestProd div.prod h2 {
        font-weight: bold;
        margin-bottom: .5em;
        margin-top: 1em;
    }

    div#shopPrev section div.pestProd div.prod > p {
        font-size: 4em;
        line-height: 1em;
        color: var(--green);
    }

    div#shopPrev section div.pestProd div.pest div.bg {
        padding: 4em;
        width: 25%;
        margin: 0 auto;
    }

    div#shopPrev section div.pestProd div.prod img {
        padding: 1em 5%;
        width: 55%;
    }

    div#shopPrev section div.pestProd div.prod div.textProd {
        width: 90%;
        text-align: center;
        padding: 1em 5%;
    }

    .arrow-right {
        display: none;
    }

    div#feed > p {
        left: 10%;
    }

    div#feed section > div {
        width: 90%;
    }

    div#feed p.quote {
        top: -.7em;
    }
}