:root{
   --wp--preset--font-family--body: 'Avenir LT Std', sans-serif;
   --wp--preset--font-family--heading: 'Futura', sans-serif;
}

/* ************** */
/* Visibiliy classes */
/* ************** */
.visible-tablet{
    display: none;
    @media all and (min-width: 768px){
        display: initial;
    }
}

.visible-desktop{
    display: none;
    @media all and (min-width: 1024px){
        display: initial;
    }
}

/* ************** */
/* Hacks to reset mobile margins btw column blocks */
/* ************** */

@media all and (max-width: 767px){
    .wp-block-column[style*="padding-left"]{
        padding-left: 0 !important;
    }
    .wp-block-column[style*="padding-right"]{
        padding-right: 0 !important;
    }

    .is-layout-flow > .alignright{
        margin-inline-start: 0;
    }

    .is-layout-flow > .alignleft{
        margin-inline-end: 0;
    }
}

/* ************** */
/* Buttons & links */
/* ************** */
.wp-element-button{
    padding-left: 46px;
    padding-right: 46px;
}

.wp-block-group a:where(:not(.wp-element-button)) {
    text-decoration: none;
    color: var(--wp--preset--color--black);
    opacity: .75;

    background-image: linear-gradient(to top, var(--wp--preset--color--primary) 33%, transparent 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 100%;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;

    transition: background-size .3s ease;
}

.wp-block-group a:where(:not(.wp-element-button)):hover {
    background-size: 100% 300%;
}

.has-primary-background-color a:where(:not(.wp-element-button)):after{
    background-color: var(--wp--preset--color--white);
    mix-blend-mode: overlay;
}

/* ************** */
/* Accordions */
/* ************** */
.wp-block-accordion-heading__toggle-title{
    transition: transform .3s ease
}

.wp-block-accordion-heading__toggle-icon{
    transition: transform .3s ease, color .3s ease;
}
.wp-block-accordion-heading__toggle:hover{
    .wp-block-accordion-heading__toggle-title{
        text-decoration: none;
        transform: translateX(5px);
    }
    .wp-block-accordion-heading__toggle-icon{
        transform: scale(1.2);
        color: var(--wp--preset--color--secondary);
    }
}

/* ************** */
/* Blockquotes */
/* ************** */
.wp-block-quote{
    position: relative;
    &:before,
    &:after{
        content: '';
        display: block;
        position: absolute;
        width: 34px;
        height: 16px;
        background-image: url(/wp-content/themes/sayouat-subtheme/assets/images/quote-blue.svg);
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 1;
    }
    &:before{
        top: -8px;
        left: 0;
    }
    &:after{
        bottom: -8px;
        right: 0;
        transform: scaleX(-1);
    }
}

/* ************** */
/* Everest forms */
/* ************** */

.everest-forms{
    input, 
    select,
    textarea{
        background-color: var(--wp--preset--color--alpha-black);
        padding:15px 20px !important;
        border: none !important;
        border-radius: var(--wp--preset--border-radius--lg) !important;
        transition:box-shadow .3s ease;
        &:focus{
            box-shadow: 2px 2px 0 0 var(--wp--preset--color--primary);
        }
    }
    .evf-field{
        margin-bottom: 20px !important;
    }

    .evf-field-label{
        font-family: var(--wp--preset--font-family--heading) !important;
        display: flex;
        align-items: center;
        margin-bottom: 10px !important;
        &:before{
            display: block;
            content: "";
            width: 14px;
            height: 14px;
            background-color: var(--wp--preset--color--primary);
            border-radius: 20px 0 0 0;
            margin-right: 5px;
        }
    }

    button[type=submit]{
    border-radius: var(--wp--preset--border-radius--lg) !important;
    border:none !important;
    background-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--white) !important;
    padding-left: 46px !important;
    padding-right: 46px !important;
}
}

/* ************** */
/* Custom class to reverse block order on mobile */
/* ************** */
.reverse-mobile{
    @media all and (max-width: 767px){
        flex-direction: column-reverse;
    }
}

/* ************** */
/* Custom class for stretch alignement */
/* ************** */
.stretch-line{
    align-items: stretch;
    &.collapse{
        @media all and (max-width:1023px){
            flex-wrap: wrap;
            > div{
                width: 100%;
            }
        }
    }
}

/* ************** */
/* Custom class for colored list-style */
/* ************** */
ul.colors-list{
    list-style: none;
    li{
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        font-family: var(--wp--preset--font-family--heading);
        text-transform: uppercase;
        font-size: 13px;
        &::before{
            display: block;
            content: '';
            width: 12px;
            height: 12px;
            background-color: var(--wp--preset--color--secondary);
            border-radius: 10px;
            transform: translateY(2px);
        }

        &:nth-of-type(2n+1):before{
            background-color: var(--wp--preset--color--tertiary);
        }

        &:nth-of-type(3n+1):before{
            background-color: var(--wp--preset--color--primary);
        }
    }
}

/* ************** */
/* Custom class for arrow-button */
/* ************** */
.wp-block-button.arrow-button a{
    font-size: 0;
    width: 60px;
    height:60px;
    padding: 0;
    background-color: transparent !important;
    background-image: url(/wp-content/themes/sayouat-subtheme/assets/images/swiper-button.svg);
    position: absolute;
    bottom: 15px;
    right: 15px;
}

/* ************** */
/* Custom class for pages header */
/* ************** */

.page-head{
    background-image: url(/wp-content/themes/sayouat-subtheme/assets/images/semicircle-y.svg);
    background-size: 800px 200px;
    padding-bottom: 150px;
    background-position: bottom center;
    @media all and (min-width: 768px){
        background-size: 526px 263px;
        min-height: 263px;
        padding-bottom: 0;
        background-position: calc(100% - 40px) 0;
    }
}

/* ************** */
/* Styles for testimonies  */
/* ************** */

.testimonies{
    .swiper{
        padding-top: 8px;
    }
    .swiper-slide{
        &::before{
            content: '';
            display: block;
            position: absolute;
            top: -8px;
            left: 20px;
            width: 50px;
            height: 24px;
            background-image: url(/wp-content/themes/sayouat-subtheme/assets/images/quote-black.svg);
            background-size: contain;
            background-repeat: no-repeat;
            z-index: 1;
        }
    }

    .label{
        display: inline-block;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 1em;
        padding: 6px 6px 4px 6px;
        margin-top: 0;
    }
}