//
// Component: Section
//
// ========================================================================


// Variables
// ========================================================================

@section-padding-vertical:                        @global-medium-margin;
@section-padding-vertical-m:                      @global-large-margin;

@section-xsmall-padding-vertical:                 @global-margin;

@section-small-padding-vertical:                  @global-medium-margin;

@section-large-padding-vertical:                  @global-large-margin;
@section-large-padding-vertical-m:                @global-xlarge-margin;

@section-xlarge-padding-vertical:                 @global-xlarge-margin;
@section-xlarge-padding-vertical-m:               (@global-large-margin + @global-xlarge-margin);

@section-default-background:                      @global-background;

@section-muted-background:                        @global-muted-background;

@section-primary-background:                      @global-primary-background;
@section-primary-color-mode:                      light;

@section-secondary-background:                    @global-secondary-background;
@section-secondary-color-mode:                    light;


// Component
// ========================================================================

.hook-section() {}


// Style modifiers
// ========================================================================

.hook-section-default() {}

.hook-section-muted() {}

.hook-section-primary() {}

.hook-section-secondary() {}


// Miscellaneous
// ========================================================================

.hook-section-misc() {
    .section-1 {
        .fp-tableCell {
            vertical-align: top;
        }

        .uk-slideshow-items {
            .uk-position-relative {
                padding-top: 25vh;
            }
        }

        h1 {
            font-size: 5.3vw;
            margin: 0;
        }

        p {
            font-family: @global-secondary-font-family;
            font-size: 1.55vw;
            margin: 0 0 12vh;

            + a img {
                width: 12vh;
            }
        }

        .scroll {
            margin-top: 12vh;

            img {
                width: 4.6vh;
            }
        }
    }

    .section-2 {
        .image {
            margin-left: -20vw;
        }

        &::after {
            content: '';
            background-color: rgba(0, 0, 0, .43);
            width: 50%;
            height: 100vh;
            top: 0;
            right: 0;
            position: absolute;
        }
        
        .title {
            h2 {
                font-size: 6vw;
                line-height: 1;

                span {
                    font-size: 2.4vw;
                    display: block;
                }
            }

            p {
                font-size: 1.8vw;
            }
        }

        .list {
            text-align: center;
            margin-top: 5vh;
            padding-right: 5%;
            display: flex;
            justify-content: space-between;
            
            span {
                font-size: .9vw;
                display: block;
            }

            img {
                margin-top: 15px;
                transform: scale(.8);
            }

            > * {
                width: auto;

                + * {
                    position: relative;

                    &::before {
                        content: '';
                        background-image: url(../../../images/icon-4.png);
                        background-size: cover;
                        width: 6px;
                        height: 118px;
                        position: absolute;
                        bottom: 0;
                        left: -3vw;
                    }
                }
            }
        }
    }

    .section-3 {
        .fp-controlArrow {
            background-repeat: no-repeat;
            background-size: 60px 100px;
            border: none;
            width: 60px;
            height: 100px;

            &.fp-next {
                background-image: url(../../../images/chevron-right.png);
                right: 30px;
            }

            &.fp-prev {
                background-image: url(../../../images/chevron-left.png);
                left: 30px;
            }
        }

        .slide {
            position: relative;

            &::before {
                content: '';
                background-color: rgba(0, 0, 0, .43);
                width: 50%;
                height: 100vh;
                top: 0;
                left: 0;
                position: absolute;
            }
        }
        
        .recipe {
            padding-left: 175px;
            width: calc(~"50% - 200px");

            h3 {
                font-size: 4.5vw;
                line-height: 1;

                span {
                    font-size: 3.4vw;
                    display: block;
                }
            }

            p {
                font-size: 1.36vw;
            }

            .difficulty {
                margin-bottom: 30px;

                img {
                    + span {
                        margin-left: 5px;
                    }

                    + img {
                        margin-left: 3px;
                    }
                }

                span {
                    + img {
                        margin-left: 5px;
                    }
                }
            }
        }
    }

    .section-4 {
        .image {
            img {
                transform: translateX(-8%) scale(1.75) translateY(6%);
            }
        }

        h3 {
            font-size: 3.1vw;

            img {
                margin-top: 10px;
                margin-right: 10px;
                width: 3vw;
            }
        }

        .uk-slider {
            margin-top: 30px;
            
            img {
                border-radius: 14px;
            }

            .uk-slider-items {
                margin-left: -20px;

                > * {
                    padding-left: 20px;

                    .name {
                        font-size: 14px;
                        margin-top: 12px;
                    }

                    span {
                        font-size: 12px;
                    }
                }
            }

            [class*=uk-position-center-left], [class*=uk-position-center-right] {
                top: 40%;
            }
        }

        .social-media {
            background-color: #ff003d;
            border-radius: 22px;
            margin-top: 70px;
            padding: 9px 23px;
            display: inline-flex;
            align-items: center;

            span {
                font-size: 23px;
                margin-right: 2vw;
            }

            img {
                width: 2.6vw;
            }
        }
    }

    .section-5 {
        .faq-left {
            font-family: @global-secondary-font-family;
            color: @global-emphasis-color;
            width: 100%;
            display: flex;
            position: relative;

            .image {
                margin-left: -17vw;
                width: 125%;
            }

            .text {
                font-size: 1.8vw;
                font-weight: bold;
                line-height: 1.1;
                text-align: center;
                position: absolute;
                top: 20%;
                right: 2%;

                > :last-child {
                    margin-top: 20px;

                    img {
                        width: 20vw;
                    }
                }
            }
        }

        .accordion {
            padding: 15vh 5vw 5vh;

            h2 {
                font-size: 2.2vw;
                margin-bottom: 30px;
            }
        }
    }

    .footer-top {
        padding: 15px 0 3px;
    }

    .footer-bottom {
        font-family: @global-secondary-font-family;
        color: #fff;
        background-color: #2F2F2F;
        padding: 20px 0;
    }


    @media (max-width: @breakpoint-small-max) {
        /*.section, .fp-tableCell {
            height: auto !important;
        }*/

        .fp-enabled body, html.fp-enabled {
            overflow: auto !important;
        }

        .section-1 {
            .uk-slideshow-items {
                .uk-position-relative {
                    padding-top: 18vh;
                }
            }
    
            h1 {
                font-size: 55px;
            }
    
            p {
                font-size: 17px;
            }
        }

        .section-2 {
            padding-bottom: 30px;

            .image {
                margin-left: -40vw;
            }
    
            &::after {
                display: none;
            }
            
            .title {
                h2 {
                    font-size: 53px;
                    margin: 30px 0 0;
    
                    span {
                        font-size: 20px;
                    }
                }
    
                p {
                    font-size: 16px;
                }
            }
    
            .list {
                margin-top: 30px;
                padding-right: 0;
                flex-direction: column;
                
                span {
                    font-size: 13px;
                }
    
                img {
                    margin-top: 20px;
                }
    
                > * {
                    + * {

                        &::before {
                            width: 170px;
                            height: 6px;
                            position: static;
                            background-color: #fff;
                            border-radius: 50%;
                            display: block;
                            margin: 20px auto;
                        }
                    }
                }
            }
        }

        .section-3 {
            .fp-controlArrow {
                background-size: 20px 37px;
                width: 20px;
                height: 37px;
                top: auto;
                bottom: 30px;
    
                &.fp-next {
                    right: 20px;
                }
    
                &.fp-prev {
                    left: 20px;
                }
            }
    
            .slide {
                &::before {
                    width: 100%;
                    height: 100%;
                }
            }
            
            .recipe {
                padding: 30px 20px;
                box-sizing: border-box;
                width: 100%;
                height: 100%;
    
                h3 {
                    font-size: 59px;
    
                    span {
                        font-size: 45px;
                    }
                }
    
                p {
                    font-size: 21px;
                }
    
                .difficulty {
                    margin-bottom: 30px;
                    flex-direction: column;
    
                    > * + * {
                        margin-top: 10px;
                    }
                }

                .uk-margin-medium-top {
                    min-height: 50px;

                    a {
                        margin-bottom: 30px;
                    }
                }
            }
        }

        .section-4 {
            padding: 0 20px 30px;

            .image {
                img {
                    margin-top: -50px;
                    transform: translateX(-37%) scale(1) translateY(0%);
                }
            }
    
            h3 {
                font-size: 37px;
                line-height: 1;
                width: 155px;
                position: absolute;
                top: 60px;
                right: 50px;
                align-items: flex-start;
    
                img {
                    width: 37px;
                }
            }
    
            .uk-slider {
                margin-top: -50px;
                margin-right: -20px;
                
                img {
                    width: 100%;
                }
            }
    
            .social-media {
                img {
                    width: 30px;
                }
            }
        }

        .section-5 {
            .uk-background-cover {
                padding: 30px 20px;
                min-height: 400px !important;
            }

            .faq-left {
                flex-direction: column;
    
                .image {
                    margin-left: -30vw;
                    width: 110%;
                }
    
                .text {
                    font-size: 15px;
                    width: 47%;
                    top: 50%;
                    right: 0;
                    transform: translateY(-50%);
    
                    > :last-child {
                        img {
                            width: 200px;
                        }
                    }
                }
            }
    
            .accordion {
                padding: 0;
    
                h2 {
                    font-size: 23px;
                    margin-bottom: 30px;
                }
            }
        }

        .footer-top {
            text-align: center;
            padding: 15px 0;

            .uk-subnav, .uk-iconnav {
                justify-content: center;
            }
            
            .logo {
                width: 61px;
            }

            .uk-grid >*:first-child {
                > img {
                    width: 200px;
                }
            }

            .uk-grid-medium>.uk-grid-margin {
                margin-top: 20px;
            }
        }
    
        .footer-bottom {
            text-align: center;
        }
    }
}
