@import url('root.css');

/* =========================================
   PAGE TITLE SECTION
   ========================================= */
.page-title{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 60px 20px;
    background-image: url('../images/vision_bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -10px;

    .content{
        text-align: center;
        max-width: 800px;
        padding: 30px 40px;
        background-color: rgba(245, 245, 245, 0.575);
        border-radius: 20px;

        h1{
            color: var(--green);
            font-family: var(--heading-font);
            font-size: 70px;
        }

        p{
            color: var(--green);
            font-family: var(--body-font);
            font-size: 20px;
            margin-bottom: 0;
        }
    }
}

/* =========================================
   WIGGLE LINE - between page title and filters
   ========================================= */
.wiggle-line{
    position: relative;
    z-index: 4;
    height: 100px;
    margin-top: -46px;
    /* top half lets the page title show through, bottom half blends into the filters section */
    background: linear-gradient(to bottom, transparent 50%, transparent 50%);

    &::before{
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--goldenrod);

        /* wavy band shape - wiggle on the top and bottom edge */
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,40 420,0 720,14 C1000,28 1200,2 1440,20 L1440,80 C1200,100 1000,70 720,86 C420,100 240,64 0,84 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,40 420,0 720,14 C1000,28 1200,2 1440,20 L1440,80 C1200,100 1000,70 720,86 C420,100 240,64 0,84 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    }
}

/* =========================================
   FILTER SECTION
   ========================================= */
.filters{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -38px;
    padding: 70px 20px 20px;
    background-color: whitesmoke;

    .filter-buttons{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;

        .filter-btn{
            margin: 6px;
            padding: 10px 28px;
            background-color: transparent;
            border: 2px solid var(--goldenrod);
            border-radius: 30px;
            color: var(--green);
            font-family: var(--body-font);
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease;

            &:hover{
                background-color: var(--bone);
            }

            /* the category that is currently selected */
            &.active{
                background-color: var(--goldenrod);
                color: var(--bone);
            }
        }
    }

    .filter-search{
        width: 100%;
        max-width: 500px;
        padding-top: 20px;

        input{
            width: 100%;
            padding: 12px 22px;
            border: 2px solid var(--bone);
            border-radius: 30px;
            background-color: white;
            color: var(--green);
            font-family: var(--body-font);
            font-size: 18px;
            outline: none;
            transition: border-color 0.2s ease;

            &:focus{
                border-color: var(--goldenrod);
            }
        }
    }

    .results-count{
        color: var(--clay-brown);
        font-family: var(--body-font);
        font-size: 16px;
        padding-top: 15px;
        margin-bottom: 0;
    }
}

/* =========================================
   SERVICES LIST SECTION
   ========================================= */
.service-list{
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
    gap: 30px;
    padding: 30px 60px 80px;
    background-color: whitesmoke;

    .service-card{
        display: flex;
        flex-direction: column;
        background-color: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(36, 49, 23, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;

        &:hover{
            transform: translateY(-5px);
            box-shadow: 0 16px 30px rgba(36, 49, 23, 0.2);
        }

        .image{
            position: relative;
            height: 220px;
            background-size: cover;
            background-position: center;

            .tag{
                position: absolute;
                top: 15px;
                left: 15px;
                padding: 5px 16px;
                background-color: var(--goldenrod);
                color: var(--bone);
                font-family: var(--body-font);
                font-size: 14px;
                border-radius: 30px;
            }
        }

        .details{
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 25px;
            text-align: center;

            h2{
                color: var(--green);
                font-family: var(--heading-font);
                font-size: 36px;
            }

            p{
                color: var(--green);
                font-family: var(--body-font);
                font-size: 17px;
                padding-top: 10px;
            }

            .info{
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                /* pushes the info and button to the bottom so all cards line up */
                margin-top: auto;
                padding: 12px 0;
                border-top: 1px solid var(--bone);
                border-bottom: 1px solid var(--bone);

                span{
                    color: var(--clay-brown);
                    font-family: var(--body-font);
                    font-size: 15px;
                }
            }

            .book-btn{
                display: inline-block;
                align-self: center;
                margin-top: 20px;
                padding: 10px 30px;
                background-color: var(--goldenrod);
                color: var(--bone);
                font-family: var(--body-font);
                font-size: 18px;
                text-decoration: none;
                border-radius: 30px;
                transition: background-color 0.2s ease;

                &:hover{
                    background-color: var(--clay-brown);
                }
            }
        }
    }

    .no-results{
        display: none;
        grid-column: 1 / -1;
        text-align: center;
        padding: 40px 20px;

        h2{
            color: var(--green);
            font-family: var(--heading-font);
            font-size: 40px;
        }

        p{
            color: var(--clay-brown);
            font-family: var(--body-font);
            font-size: 18px;
        }
    }
}

/* =========================================
   BOOKING SECTION
   ========================================= */
.booking{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 90px;
    background-image: url('../images/stones.jpg');
    background-size: cover;
    background-position: center;

    .content{
        text-align: center;
        max-width: 700px;
        padding: 25px 40px;
        background-color: rgba(245, 245, 245, 0.575);
        border-radius: 20px;

        h2{
            color: var(--green);
            font-family: var(--heading-font);
            font-size: 40px;
        }

        p{
            color: var(--green);
            font-family: var(--body-font);
            font-size: 18px;
            margin-bottom: 20px;
        }

        .book-btn{
            display: inline-block;
            padding: 12px 34px;
            background-color: var(--goldenrod);
            color: var(--bone);
            font-family: var(--body-font);
            font-size: 18px;
            text-decoration: none;
            border-radius: 30px;
            transition: background-color 0.2s ease;

            &:hover{
                background-color: var(--clay-brown);
            }
        }
    }
}

/* =========================================
   WIGGLE LINE 1 - between booking and footer
   ========================================= */
.wiggle-line1{
    position: relative;
    z-index: 4;
    height: 100px;
    margin-top: -46px;
    /* top half lets the booking section show through, bottom half blends into the footer */
    background: linear-gradient(to bottom, transparent 50%, transparent 50%);

    &::before{
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--clay-brown);

        /* wavy band shape - long, gentle sweeps like the first line, but flowing the opposite way */
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,12 C260,0 460,38 760,20 C1040,4 1240,36 1440,10 L1440,84 C1240,64 1040,98 760,82 C460,66 260,100 0,78 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,12 C260,0 460,38 760,20 C1040,4 1240,36 1440,10 L1440,84 C1240,64 1040,98 760,82 C460,66 260,100 0,78 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    }
}

/* =========================================
   PHONE VIEW
   ========================================= */
@media (max-width: 767px){
    /* PAGE TITLE */
    .page-title{
        min-height: 260px;
        padding: 40px 20px 60px;

        .content{
            padding: 22px 20px;

            h1{
                font-size: 44px;
            }

            p{
                font-size: 17px;
            }
        }
    }

    /* WIGGLE LINE */
    .wiggle-line{
        height: 70px;
        margin-top: -32px;
    }

    /* FILTERS */
    .filters{
        margin-top: -26px;
        padding: 50px 20px 10px;

        .filter-buttons{
            .filter-btn{
                margin: 4px;
                padding: 8px 18px;
                font-size: 15px;
            }
        }

        .filter-search{
            input{
                font-size: 16px;
            }
        }
    }

    /* SERVICES LIST */
    .service-list{
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 20px 50px;

        .service-card{
            .image{
                height: 190px;
            }

            .details{
                padding: 20px;

                h2{
                    font-size: 30px;
                }

                p{
                    font-size: 16px;
                }
            }
        }
    }

    /* BOOKING */
    .booking{
        padding: 50px 20px 70px;

        .content{
            padding: 20px 22px;

            h2{
                font-size: 30px;
            }

            p{
                font-size: 16px;
            }
        }
    }

    /* WIGGLE LINE 1 */
    .wiggle-line1{
        height: 70px;
        margin-top: -32px;
    }
}

/* =========================================
   TABLET VIEW
   ========================================= */
@media (min-width: 768px) and (max-width: 1100px){
    .service-list{
        grid-template-columns: repeat(2 , 1fr);
        padding: 30px 30px 70px;
    }
}

/* =========================================
   BIGGER SCREEN SIZES VIEWS
   ========================================= */
