/*
Theme Name: Biermunitie

Landing page styles
Animate after age-restriction is accepted (no age-restriction class in body)
*/

main {
    min-height: 100vh;
}

#section-hero {
    display: flex;
    min-height: calc(100vh - var(--headerheight));
    background: var(--colorgradientocean);
}

@media (min-width: 64em) {

    body.home header#main-header {
        position: fixed;
        top: auto;
        left: auto;
        box-shadow: none;
        background: none;
    }

    body.home.scrolled header#main-header {
        box-shadow: var(--shadow);
        background: var(--colorbackground);
    }

    #section-hero {
        min-height: 100vh;
    }
}

body.home .container {
    position: relative;
    margin: 0 auto;
    max-width: var(--containermaxwidth);
    padding: calc(1.5 * var(--containerpadding)) var(--containerpadding);
}

.home-page > .container {
    padding: calc(1.5 * var(--containerpadding)) var(--containerpadding);
}

#section-hero h1 {
    margin-top: 0;
    margin-bottom: 0.25em;
}

#section-hero .hero-bg-element {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: calc(-1 * var(--headerheight));
    min-height: calc(100% + var(--headerheight));
    width: auto;
    fill:var(--colorsecundairy);
    fill-opacity: 0.2;
}

#section-hero .scroll-further {
    display: none;
}

#section-hero .hero-txt {
    display: none;
}

#section-hero .buttons {
    margin: 3rem 0 0 0;
}

#section-hero .button {
    box-shadow: var(--shadow);
}

#section-hero #hero-img-l,
#section-hero #hero-img-s
{
    display: none;
}

#section-hero #hero-img-xs {
    display: block;
    height: auto;
    width: 100%;
    margin: 0 auto;
}

body:not(.age-restriction) #section-hero #hero-img-xs
{
    animation: slide-in-blurred-left 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

body:not(.age-restriction) #section-hero .scroll-further {
    animation: bounce-in-top 1.1s both;
}

body:not(.age-restriction) #section-hero .buttons {
    animation: slide-in-blurred-right 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.1s both;
}

/* shop statistics */

#section-shop-statistics {
    background: var(--colorbgaccent_1);
}

#section-shop-statistics .hero-shop-statistics {
    padding: var(--containerpadding);
}

#section-shop-statistics .hero-shop-statistics ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    list-style-type: none;
    min-height: 3rem;
}

#section-shop-statistics .hero-shop-statistics li {
    display: none;
    justify-items: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body.scrolled-before #section-shop-statistics .hero-shop-statistics li {
    display: flex;
    animation: bounce-in-bottom 1.1s both;
}

body.scrolled-before #section-shop-statistics .hero-shop-statistics li:nth-child(2) {
    animation-delay: 0.1s;
}

body.scrolled-before #section-shop-statistics .hero-shop-statistics li:nth-child(3) {
    animation-delay: 0.2s;
}

#section-shop-statistics .hero-shop-statistics .metric-icon .icon {
    fill: var(--colorsecundairy);
    height: 3rem;
    width: auto;
    aspect-ratio: 1 / 1;
    opacity: 0.5;
}

#section-shop-statistics .hero-shop-statistics .metric-value {
    color: var(--colorfontheading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 1rem;
    text-align: center;
}

#section-shop-statistics .hero-shop-statistics .metric-category {
    color: var(--colorfontbody);
    text-transform: uppercase;
    text-align: center;
}

/* about us sections */

.section-about-us .about-image {
    display: inline-flex;
    justify-content: center;
}

.section-about-us.img-left > .container {
    flex-direction: column-reverse;
}

/* responsive */

@media (min-width: 48em) {
    
    #hero-button-contact {
        display: inline-flex;
    }

    #section-shop-statistics .hero-shop-statistics .metric-icon .icon {
        height: 4rem;
    }
    
    #section-shop-statistics .hero-shop-statistics .metric-value {
        font-size: 4rem;
    }
}

@media (min-width: 64em) {
    
    #section-hero > .container {
        padding: calc(var(--containerpadding) * 2);
        margin: auto;
    }   
    
    body:not(.age-restriction) #section-hero .scroll-further {
        display: block;
        position: absolute;
        left: 1rem;
        bottom: calc(var(--containerpadding) * 2);
        padding-top: 5rem;
        transform: rotateZ(180deg);
        writing-mode: vertical-lr;
        font-weight: 800;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    body:not(.age-restriction) #section-hero .scroll-further::before {
        content: '';
        position: absolute;
        display: block;
        right: 40%;
        top:0;
        width: 2px;
        height: 4rem;
        background: var(--colorfontlighter);
    }

    #section-hero .hero-txt {
        display: block;
    }

    #section-hero .buttons {
        margin-top: 3rem;
    }   

    body.home #section-hero #hero-img-xs,
    body.home #section-hero #hero-img-l
    {
        display: none;
    }
    
    body.home #section-hero #hero-img-s {
        display: block;
    }
    
    body:not(.age-restriction) #section-hero #hero-img-s {
        animation: slide-in-blurred-left 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
    }

    #section-shop-statistics .hero-shop-statistics ul {
        grid-template-columns: repeat(3, 18rem);
        gap: 3rem; 
    }  
    
    #section-shop-statistics .hero-shop-statistics li {
        flex-direction: row;
        column-gap: 0.75rem;
        padding: 2rem;
        margin-top: -8rem;
        border-radius: var(--borderradius);
        box-shadow: var(--shadow);
        background: var(--colorbackground);
        justify-items: normal;
    }

    #section-shop-statistics .hero-shop-statistics .metric-icon {
        grid-column: 1 / 2;
        grid-row: 1 / span 2;
    }

    #section-shop-statistics .hero-shop-statistics .metric-value {
        margin-top: 0;
        text-align: left;
    }
    
    #section-shop-statistics .hero-shop-statistics .metric-category {
        font-size: 1rem;
        text-align: left;
    }
    
    .section-about-us .column-container {
        gap: 6rem;
    }

    .section-about-us.img-left > .container {
        flex-direction: row;
    }
}

@media (min-width: 80em) {
    
    body.home #section-hero #hero-img-xs,
    body.home #section-hero #hero-img-s
    {
        display: none;
    }

    body.home #section-hero #hero-img-l {
        display: block;
    }

    body:not(.age-restriction) #section-hero #hero-img-l {
        width: 27rem;
        animation: slide-in-blurred-left 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
    }

    #section-shop-statistics .hero-shop-statistics ul {
        gap: 6rem; 
    }

    #section-shop-statistics .hero-shop-statistics li {
        padding: 3rem;
    }

    .section-about-us .column-container {
        gap: 7rem;
    } 
}

@media (min-width: 96em) {
    
    body:not(.age-restriction) #section-hero #hero-img-l {
        width: 32rem;
    }

    .section-about-us .column-container {
        gap: 8rem;
    } 
}