:root {
    scroll-behavior: smooth;
    --pri-clr: #65be28;
    /* --sec-clr: #3b3b3b; */
    --sec-clr: #d2302e;
    --sec-clr: #dc143c;
    --ter-clr: #fdde00;
    color: #333;
    scroll-padding-top: 2em;
}

::selection {
    background: var(--pri-clr);
    color: #fff;
}

.ssoc {
    display: none;
}

/* Header */

body.fixed {
    overflow-y: hidden;
}

.hide {
  display: none !important;
}

header {
    position: relative;
}

header a {
    display: inline-block;
    padding: 1em 1em;
    text-decoration: none;
    color: var(--pri-color)
}

header nav {
    transform: translateX(-33%);
}

#header-logo {
    padding: .3em 0;
    font-weight: 900;
    font-size: 1.2em;
}

#header-contact {
    color: #fff;
}

#header-contact a:hover {
    color: #333;
}

#header-contact > .call-to-action {
    border-color: #fff;
    color: inherit;
    margin-left: 1em;
    margin-bottom: 0;
}

#header-contact > .call-to-action:hover {
    background: #fff;
    color: var(--pri-clr) !important;
}

/* Hero Section */
#hero {
    padding: 3em 0;
}

#hero a {
    color: inherit;
}

#hero a:hover, header a:hover {
    text-decoration: none;
}

#hero .img-showcase {
    flex-basis: 70%;
    margin-right: -25%;
    min-height: 500px;
    background: var(--pri-clr); 
    background-image: url('imgs/brett-jordan-tp9Y4_w9DIA-unsplash.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 5em  0 0 5em;
    box-shadow: 0px 10px 15px rgba(0,0,0,.5);
}

#hero::after {
    content: "";
    position: absolute;
    top: -40%; bottom: 0;
    left: 0; right: 0;
    background-image: linear-gradient(to left, var(--pri-clr), var(--pri-clr) 45%, transparent 45%);
    z-index: -1;
}

#hero-social > nav > a {
    display: inline-block;
    padding-right: 1.5em;
    margin-bottom: 1em;
    color: inherit;
}

#hero-social > nav > a:hover {
    color: var(--pri-clr);
}

/* About Us Section */
#about-us .box.main-content {
    padding-left: 2em;
}

#about-us .flx-col-2 > div ,
#consultancy .flx-col-2 > div {
    flex-grow: 1;
}

#about-us .img-showcase,
#consultancy .img-showcase {
    background: var(--pri-clr);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 20px var(--pri-clr);
    flex-basis: 70%;
    width: 70%;
    margin-left: -20%;
    outline: 20px dotted var(--pri-clr);
    outline-offset: -15px;
    border-radius: 1em;
}

#consultancy .img-showcase {
    min-height: 350px;
}


#about-us .img-showcase {
    padding: 1em;
}

#about-us .img-showcase video {
    display: block;
    margin-left: auto;
    width: 90%;
    border-radius: .2em;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

#about-us .img-showcase video:focus {
    outline: 0;
}

#consultancy {
    max-width: 100vw;
    overflow: hidden;
}

#consultancy .img-showcase {
    background-image: url('imgs/cows.jpg');
}

#consultancy .box.main-content {
    padding-right: 2em;
}

#consultancy .img-showcase {
    margin-left: 0;
    margin-right: -20%;
}

/* Products and Equipments Section */
.products h2 {
    margin-top: 0;  
    margin-bottom: 2.4em;
}

.products h3 {
    margin-top: .2em;
    font-size: 1.3em;
}

.products p {
    font-size: .9em;
}

.products .box {
    box-sizing: border-box;
    padding: 1em;
    margin-bottom: 3em;
    box-shadow: 0 0 15px rgba(0,0,0,.08);
    border-radius: 2em;
    background: #fff;
    transition: all ease-in-out 250ms;
}

.product.incart {
    background: var(--pri-clr);
    color: #fff;
}

.product.incart .buy {
    outline: 0;
    background: #fff !important;
    color: crimson !important;
}

.product:nth-child(3n-2).incart {
    background: var(--ter-clr);
    color: #333;
}

.product:nth-child(3n).incart {
    background: var(--sec-clr);
    color: #fff;
}


.products .box:hover {
    box-shadow: 0 0 30px rgba(0,0,0,.1);
}

.products .box img {
    max-width: 90%;
    height: 200px;
    margin-top: -30%;
    filter: drop-shadow(-5px 10px 10px rgba(0,0,0,.25));
}

.products .box > button {
    font-size: .9em;
    padding: .5em 2em;
    border: 0;
    background: var(--pri-clr);
    color: #fff;
    margin: .9em 0;
    border-radius: .4em;
    cursor: pointer;
    box-shadow: inset 0 5px 10px rgba(0,0,0,.2);
    transition: all ease-in-out 10ms;
}

.products .box > button:focus { 
    /* outline: 0; */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,.2);
    transform: scale(1.1);
}

.products .box > button:active { 
    outline: 0;
}

.products .box:nth-child(3n - 2) > button {
    background: var(--ter-clr);
    color: #333;
}

.products .box:nth-child(3n) > button {
    background: var(--sec-clr);
}

#equipments {
    background: hsl(96, 65%, 95%);
    padding-bottom: 4em;
}

/* Testimonial Section */
#testimonials .box {
    box-sizing: border-box;
    text-align: center;
    border-radius: 1em;
    filter: drop-shadow(0 0 14px rgba(0,0,0,.08));
    background: #fff;
    /* box-shadow: 0 0 15px rgba(0,0,0,.08); */

}

#testimonials blockquote {
    padding: 1em;
}

#testimonials .box h3 {
    background: var(--pri-clr);
    padding: .8em 0;
    color: #fff;
    /* margin: 0 1em; */
    border-radius: 0 0 .2em .2em;
}

#testimonials .box:nth-child(3n - 2) h3 {
    background: var(--ter-clr);
    color: #333;
}

#testimonials .box:nth-child(3n) h3 {
    background: var(--sec-clr);
}

#testimonials h3 {
    margin: 0;
    margin-bottom: 0;
    /* box-shadow: 0px -1px 5px rgba(0,0,0,.2); */
}

/* Final Call to action Section */
#final-cta {
    padding-bottom: 4em;
}

/* Footer */

footer {
    max-width: 100vw;
    overflow: hidden;
}

footer {
    background: var(--pri-clr);
    color: #fff;
    padding-top: 3em;
    padding-bottom: 1em;
}

footer a {
    color: inherit;
    padding: .5em;
    padding-left: 0;
    border-radius: .2em;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline;
    animation: shake ease-in-out 400ms 1;
}

#footer-contact-info {
    padding-top: .5em;
    position: relative;
    z-index: 1;
}

#footer-contact-info.notify {
    animation: pan-in-out 600ms ease-in-out 1;
}

@keyframes pan-in-out {
    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }
}

#footer-contact-info::after {
    content: "";
    position: absolute;
    top: -10px; bottom: -10px;
    right: -20px;
    left: -20px;
    z-index: -1;
    box-shadow: 0 0 15px rgba(0,0,0,0);
    border-radius: .2em;
    transition: all ease-in-out 100ms;
}

#footer-contact-info.notify::after {
    box-shadow: 0 0 15px rgba(0,0,0,.5);
    animation: pan-in-out 600ms ease-in-out 1;
    animation-delay: 100ms;
}


#footer-contact-info > div {
    margin-bottom: 1em;
}

#footer-social {
    margin-top: 1em;
}

#footer-social a {
    display: flex;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.718);
    border-radius: 100%;
    margin-right: 1em;
    padding: 0;
    box-sizing: border-box;
}

#footer-social a:hover {
    background: #fff;
    animation: shake ease-in-out 400ms 1;
}

@keyframes shake {
    50% {
        transform: translateX(10px);
    }
}

#footer-social > nav > a > span {
    display: none;
}

#footer-social svg {
    margin: auto;
    fill: var(--pri-clr);
    max-height: 30px;
}

.overlay {
    position: fixed;
    top: 0; bottom: 0;
    right: 0; left: 0;
    background: #000;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all ease-in-out 100ms;
}

.overlay.show {
    visibility: visible;
    opacity: .8;
}

.modal {
    z-index: 1000;
}

/* Media Queries */
@media(max-width: 1330px) {
    .ssoc {
        display: initial;
    }

    header {
        position: fixed;
        top: 0;
        width: 100%;
        max-width: 100vw;
        background: #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,.2);
        z-index: 100;
    }

    header + section {
        margin-top: 5em;
    }

    #contact-and-nav {
        display: block;
        position: fixed;
        flex-direction: column;
        top: 0;
        bottom: 0;
        right: -10%;
        left: 50%;
        background: #fff;
        z-index: 1;
        padding: 2em;
        padding-top: 100px;
        padding-right: 2em;
        outline-offset: -15px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all linear 250ms;
    }

    #contact-and-nav.show {
        opacity: 1;
        visibility: visible;
        right: 0;
        left: 40%;
    }

    header nav {
        transform: none;
    }

    header nav, #header-contact {
        display: flex;
        flex-direction: column;
        color: #333;
        align-items: stretch;
    }

    header a {
        color: inherit;
        margin-bottom: 1em;
    }

    .menu-bar {
        display: block;
        position: absolute;
        top: 0px;
        top: calc(50% - .99em);
        right: 5%;
        font-size: 11px;
        width: 5em;
        height: .5em;
        background: transparent;
        color: #333;
        position: absolute;
        border-top: .8em solid transparent;
        border-bottom: .8em solid transparent;
        border-radius: 5px;
        box-shadow: inset 1.6em 0 0 0 transparent,
        inset -2.9em 0 0 0 currentColor;
        transition: all linear .25s;
        z-index: 999;
    }

    .menu-bar::before, .menu-bar::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: .4em;
        background: currentColor;
        transition: inherit;
    }

    .menu-bar::before {
        top: -1em;
        border-radius: .1em .1em 0 0;
    }

    .menu-bar::after {
        top: 1em;
        border-radius: 0 0 .1em .1em;
    }

    .menu-bar.show {
        box-shadow: inset 0 0 0 0 transparent, 
        inset 0  0 0 0 transparent ;
    }

    .menu-bar.show::after, .menu-bar.show::before {
        border-radius: 55px;
        top: 0;
    }

    .menu-bar.show::before {
        top: 0px;
        transform: rotate(-45deg);
    }

    .menu-bar.show::after {
        top: 0px;
        transform: rotate(45deg);
    }
}

@media(max-width: 1274px) {
    #about-us .box.main-content {
        padding-left: 0;
        margin-bottom: 2em;
    }

    #consultancy .box.main-content {
        padding-right: 0;
        margin-bottom: 2em;
    }
}

@media(max-width: 1030px) {
    #hero {
        padding-bottom: 0;
    }

    #hero::after {
        display: none;
    }

    #hero .flx-col-2 > div {
        flex-grow: 1;
        text-align: center;
        margin: auto;
        margin-bottom: 2em;
    }

    #hero .img-showcase {
        margin-right: 0;
        border-radius: .5em;
        box-shadow: 0px 10px 15px rgba(0,0,0,.2)
    }

    #hero-social {
        margin-top: 2em;
        text-align: center;
    }
}

@media(max-width: 768px) {
    header {
        padding: .6em 0;
    }

    #header-logo > img {
        height: 65px;
    }

    #place-order-modal .modal, #checkout-modal .modal {
        padding: 1em;
    }
}

@media(max-width: 500px) {
    #contact-and-nav {
        right: -10%;
        left: 30%;
    }

    #contact-and-nav.show {
        right: 0;
        left: 20%;
    }

    #hero .img-showcase {
        min-height: 300px;
    }

    #hero-social > nav > a {
        padding: 0 .75em;
    }
}

@media (max-height: 550px) {
    #header-logo > img {
        height: 50px;
    }

    #hero {
        margin-top: 2em;
    }
}


/* Cart and Checkout */
#cart-controls {
    /* position: fixed;
    top: 0; bottom: 0;
    right: 0; left: 0; */
}

#cart-icon {
    display: flex;
    position: fixed;
    top: 15vh;
    right: 10vw;
    width: 70px;
    height: 70px;
    background: var(--pri-clr);
    border-radius: 100%;
    box-shadow: 3px 3px 8px rgba(0,0,0,.3);
    z-index: 50;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transform: scale(.5);
    transition: all cubic-bezier(1,-0.58, 0.31, 2.02) 400ms;
    cursor: pointer;
}

#cart-icon.show {
    visibility: visible;
    opacity: 1;
    transform: none;
}

#cart-icon.wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle{
  0% {
    /*box-shadow: none;*/
  }

  20% {
    transform: translateX(.3em);
    background: #333;
  }

  40% {
    transform: translateX(-.3em);
    background: var(--sec-clr);
  }

  60% {
    transform: translateX(.3em);
    background: var(--ter-clr);
  }

  80% {
    transform: translateX(-.3em);
  }

  100% {
    /*box-shadow: none;*/
  }
}



#cart-icon > svg {
    height: 30px;
    margin: auto;
    fill: #fff;
    margin-top: 40%;
}

#cart-counter {
    position: absolute;
    top: 5px;
    left: 43%;
}

#place-order-modal, #checkout-modal {
    display: flex;
    justify-content: center;
    align-items: center;  
    position: fixed;
    top: 0;
    min-height: 100vh;
    justify-items: center;
    align-items: center;
    width: 100%;    
    background: rgba(0,0,0,0.7);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all ease-in-out 150ms;
    overflow: auto;
}

body {
  /*overflow: hidden;*/
}

#place-order-modal.show,
#checkout-modal.show {
    visibility: visible;
    opacity: 1;
}

#place-order-modal.show .overlay,
#checkout-modal.show .overlay {
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: red;
    visibility: visible;
}

#place-order-modal .modal,
#checkout-modal .modal {
    background: #fff;
    padding: 3em;
    box-shadow: 0 5px 20px rgba(0,0,0,.4);
    border-radius: .3em;
    margin: 2em auto;
    max-width: 90%;
    box-sizing: border-box;
    transform: translateY(-3em);
    opacity: 0;
    transition: all ease-in-out 250ms;
    transition-delay: .2s;
}

#checkout-modal .modal {
  max-width: 900px;
  margin: 2em;
}

#place-order-modal.show .modal,
#checkout-modal.show .modal {
    transform: translateY(-1em);
    opacity: 1;
}


#place-order-modal h2,
#checkout-modal h2 {
    margin-top: 0;
}

.modal-container {
  margin: 1em;
  z-index: 1000;
}

#checkout-modal h2 {
  margin-bottom: .4em;
}

#place-order-modal .box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    min-height: 100px;
    min-width: 100px;
    margin: 1em;
    border-radius: .5em;
    transition: all ease-in-out 150ms;
    color: #333;
}

#place-order-modal .box:hover {
    text-decoration: none;
    /* box-shadow: 0 0 15px rgba(0,0,0,.1); */
    box-shadow: 0 0 15px rgba(0,0,0,.1);
    transform: scale(1.1);
    color: var(--pri-clr);
}

#place-order-modal .box > svg {
    display: block;
    margin-bottom: 1em;
    fill: var(--pri-clr);
}

.close-modal {
    position: absolute;
    right: 1em;
    top: .7em;
    display: inline-block;
    background: none;
    padding: .3em;
    font-size: 1em;
    border: 0;
    cursor: pointer;
}


/* Cart Item List */
#cart-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: hsl(96, 65%, 90%);
    padding: 1em;
    border-radius: 1em;
    /*box-shadow:   0 5px 10px rgba(0,0,0,0.2);*/
}

#cart-items-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; 
    padding: .2em .7em;
    background: #fff;
    margin: .5em 0;
    margin-right: 2em;
    border-radius: 4em;
    font-size:  1.1em;
}

#cart-items-list > li > span {
  display: inline-block;
  padding-right: .2em;
}

#cart-items-list .remove-item {
  position: absolute;
  background: none;
  top: 35%;
  right: -3em;
  border: 0;
  cursor:  button;
}


#checkout-modal .checkout {
  margin-top:  2em;
}