@import url('https://fonts.googleapis.com/css2?family=Chonburi&family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Karla', sans-serif;
    background-color: #f0f0f0;
    color: #572C19;
    align-items: center;
}

.sub {
    font-family: "Karla", sans-serif;
    font-style: italic;
    color: #572C19;
    line-height: 1.0em;
}

h2 {
    font-family: "Karla", sans-serif;
    color: #9B2121;
    text-align: center;
    margin: 10px 0;
}

h4 {
    font-family: "Karla", sans-serif;
    font-weight: bold;
    color: #572C19;
}

/*header*/

.header {
    padding: 20px;
}

.header-title, h1 {
    font-family: 'Chonburi', cursive;
    color: #9B2121;
    text-align: center;
    margin-top: 20px;
}

.header-title, a {
    text-decoration: none;
    color: #9B2121;
}

.header-nav-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    list-style: none;
}

.header-nav-list li a {
    color: #572C19;
}

.header-nav-list li a:hover {
    color: #88b8ce;
    font-weight: bold;
}

/*homepage*/

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    margin: 10px auto;
}

.button {
    font-family: "Karla", sans-serif;
    background-color: #E9BC69;
    color: #572C19;
    width: 200px;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    margin: -20px; /* this is how you moved the button up */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #572C19;
    color: #E9BC69;
    transform: scale(1.0);
}

.intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 150px;
    margin: 0 auto;
}

.featured {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    margin: 20px auto;
    gap: 20px;
}

.featured1, .featured2, .featured3 {
    text-align: center;
    color: #572C19;
    padding: 20px;
    margin: 50px auto;
    border-radius: 10px;
    width: 80%;
    text-align: center;
}

.featured img {
    width: 80%;
    height: auto;
}

.farm2table-homepage {
    display: flex;
    flex-direction: row;
    padding: 20px;
    margin: 100px;
    gap: 50px;
}

.farm2table-homepage-content {
    text-align: center;
}

.learn-button {
    font-family: "Karla", sans-serif;
    background-color: #E9BC69;
    color: #572C19;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.learn-button:hover {
    background-color: #572C19;
    color: #E9BC69;
    transform: scale(1.0);
}

/*menu*/

.carousels {
    align-content: center;
    padding: 50px 190px;
    gap: 20px;
}

.menu-sub {
    text-align: center;
}

.splide {
    padding: 60px;
    line-height: 1.2em;
    margin-bottom: 40px;
}

.splide__slide {
    padding: 20px;
}

.splide__slide img {
    margin-bottom: 10px;
}

.splide h3{
    color:#9B2121;
}

.splide__slide p {
    max-width: 250px;
    margin: 0 auto;
}

.splide__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splide__slide .price {
    font-weight: bold;
    margin-top: auto;
}

#carousel-1, #carousel-2, #carousel-3, #carousel-4 {
    text-align: center;
}


/*learn*/

.farmers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 150px;
    margin: 20px auto;
    gap: 10px;
}

.farmers img{
    width: 30%;
    height: auto;
}
.impact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 100px;
    margin: 60px auto;
}

.impact-content {
    text-align: center;
    max-width: 50%;
    color: #572C19;
    padding-bottom: 75px;
}

.donate-button {
    font-family: "Karla", sans-serif;
    background-color: #E9BC69;
    color: #572C19;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    margin: -30px; /* this is how you moved the button up */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.donate-button:hover {
    background-color: #572C19;
    color: #E9BC69;
    transform: scale(1.0);
}

.learn-with-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 100px;
    margin: 60px auto;
    gap: 10px;
}

.barista, .roasting, .tasting {
    justify-content: center;
    text-align: center;
    max-width: 75%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 10px;
    margin: 10px;
    gap: 100px;
}

/*our story*/

.founder {
    display: flex;
    justify-content: center;
    text-align: center;
    line-height: 1.2em;
    padding: 60px 100px;
    margin: 20px 50px auto;
}

.founder img {
    width: 50%;
}

.founder-content {
    padding: 20px;
    margin: 50px
}

.sourcing-roasting {
    display: flex;
    flex-direction: column;
    padding: 20px 100px;
}

.the-harvest, 
.the-fruit, 
.the-roast, 
.the-bean {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 40px 150px;
    gap: 45px;
}

.harvest-content, 
.fruit-content, 
.roast-content, 
.bean-content {
    padding: 95px 60px;
}

/*contact us*/

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}

.contact-form {
    font-family: 'Karla', sans-serif;
    background: #f0f0f0;
    border: solid 1px #572C19;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    padding: 50px 60px;
    gap: 10px;
    margin: 0 auto;
}

.message-box {
    width: 400px;
    height: 100px;
    padding: 8px;
}

.submit-button {
    font-family: "Karla", sans-serif;
    background-color: #E9BC69;
    color: #572C19;
    max-width: 35%;
    padding: 10px 30px;
    margin: 0 auto;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: #572C19;
    color: #E9BC69;
    transform: scale(1.0);
}
/*footer*/

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 70px;
}

.footer-h4 {
    font-weight: bold;
}

.footer a {
    text-decoration: none;
    color: #572C19;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    line-height: 1.4em;  
}

.footer-nav-list li a {
    color: #572C19;
}

.footer-nav-list li a:hover {
    color: #88b8ce;
    font-weight: bold;
}

.footer-left {
    float: left;
    text-align: left;
}

.footer-center {
    text-align: center;
    line-height: 1.8em;
}

.footer-right {
    float: right;
    text-align: right;
}


/*responsive*/

@media (max-width: 768px) {


    .carousels {
        padding: 20px;
    }

    .splide {
        padding: 20px;
    }

    /*homepage*/

    .intro {
        padding: 20px;
    }

    .featured {
        flex-direction: column;
        padding: 20px;
    }

    .farm2table-homepage {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .farm2table-homepage img {
        width: 100%;
    }

    /*learn*/
    .impact {
        padding: 20px;
    }

    .learn-with-us {
        padding: 20px;
    }

    .barista, .roasting, .tasting {
        flex-direction: column;
        gap: 20px;
    }

    .farmers img {
        width: 70%;
    }

    /*our stury*/

    .founder {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }

    .founder img {
        align-items: center;
    }

    .founder-content {
        padding: 20px;
    }

    .sourcing-roasting {
        padding: 20px;
    }

    .the-harvest,
    .the-fruit,
    .the-roast,
    .the-bean {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {

    /*header*/

    .header-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /*carousels*/

    .carousels {
        padding: 10px;
    }

    /*homepage*/

        .intro {
        padding: 20px;
    }

    .farm2table-homepage {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .farm2table-homepage img {
        width: 100%;
    }

    /*contact*/

    .contact-form {
        padding: 20px;
    }

    .message-box {
        width: 100%;
    }

    /*footer*/

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left, .footer-right {
        text-align: center;
    }

}