/* #hero {
    margin-top: 20px;
} */

body {
    margin: 0;
    font-family: system-ui, Arial;
    background: #f4f1eb;
    color: #2a2320;
}

footer {
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

#hero {
    padding: 0 var(--page-x-padding);
}

#hero>div {
    text-align: center;
    background-color: rgb(var(--c-cream-light));
    padding: 40px 40px;
    margin: 0 auto;
    border-radius: 0 0 40px 40px;
    padding: 40px 40px 80px 60px;
}

#hero h1 {
    margin-bottom: 40px;
}

.main-carousel {
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

.main-carousel.flickity-enabled {
    overflow: visible;
    max-height: none;
}

.main-carousel img {
    display: block;
    width: 100%;
    height: 100%;
    /* optional for rounded corners */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    border-radius: 4px;
    object-fit: cover;
}

.carousel-item {
    width: 28%;
    height: 500px;
    margin-right: 10px;
}

/* position dots up a bit */
.flickity-page-dots {
    bottom: -22px;
}

/* dots are lines */
.flickity-page-dots .dot {
    height: 8px;
    width: 28px;
    margin: 0 4px;
    border-radius: 4px;
    background-color: rgba(var(--c-brown), 0.5);
    opacity: 1;
    transition: background-color 0.3s ease-in-out, height 0.3s ease-in-out,
        width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.flickity-page-dots .dot.is-selected {
    background-color: rgb(var(--c-brown));
    width: 40px;
    height: 8px;
    opacity: 1;
}

/* 
    Our Approach Section
*/

#our-approach {
    margin-top: 100px;
    padding: 0 var(--page-x-padding);
}

#our-approach>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    height: 100%;
    min-height: 500px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 12px 12px 12px 40px;
    background-color: rgb(var(--c-cream-light));
}

#our-approach p {
    font-size: 18px;
    line-height: 1.5em;
}

#our-approach .left {
    width: 40%;
    flex-shrink: 0;
}

#our-approach h2 {
    text-align: left;
    margin-bottom: 24px;
}

#our-approach .right {
    width: 50%;
    border-radius: 12px;
    overflow: hidden;
}

#our-approach .right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#our-approach button {
    margin-top: 24px;
}

#our-approach button a {
    color: inherit
}

/*
    Who We Are Section
*/

#who-we-are {
    margin-top: 80px;
    padding: 24px var(--page-x-padding);
}

#who-we-are>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    height: 100%;
    margin: 0 auto;
    border-radius: 12px;
    /* background-color: rgb(var(--c-cream-light)); */
}

#who-we-are .wrapper {
    max-width: 801px;
    width: 100%;
    margin: 0 auto;
}

#who-we-are h2 {
    margin-bottom: 24px;
    text-align: center;
}

#who-we-are p {
    font-size: 18px;
    line-height: 1.5em;
    text-align: center;
}

#book-a-visit {
    margin-top: 60px;
    border-radius: 24px 24px 0 0;
}

@media screen and (max-width: 1400px) {

    #hero {
        padding: 0;
    }
}

@media screen and (max-width: 1024px) {

    h1 {
        font-size: 40px;
        line-height: 1.2em;
    }

    h2 {
        font-size: 24px;
        line-height: 1.5em;
    }
}

@media screen and (max-width: 768px) {

    #hero>div {
        padding: 40px 10px;
    }

    #hero h1 {
        font-size: 24px;
        line-height: 1.5em;
        margin-bottom: 24px;
    }


    .main-carousel {
        height: 380px;
    }

    .main-carousel img {
        object-fit: cover;
    }

    .carousel-item {
        border-radius: 8px;
        overflow: hidden;
        width: 45%;
        height: 350px;
    }

    #our-approach > div {
        flex-direction: column-reverse;
        padding: 18px 14px;
        min-height: 0;
    }

    #our-approach .left {
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    #our-approach .left p {
        font-size: 14px;
        line-height: 1.5em;
    }

    #our-approach button {
        width: 100%;
    }

    #our-approach h2 {
        text-align: center;
    }

    #our-approach .right {
        width: 100%;
        border-radius: 0;
        margin-bottom: 24px;
    }

    #our-approach .right img {
        max-height: 450px;
        border-radius: 12px;
        margin: 0 auto;
        display: block;    
    }

}