* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    margin: 0;
    padding-top: 50px;
    background-color: #254D32;
    color: #FFF4D6;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
}

h1,
h2,
h3,
p,
li,
a {
    color: #FFF4D6;
}

/* Navigation */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    padding: 10px 5%;
    background: #254D32 url("../images/header.png") center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1000;
}

nav a {
    color: #F4C95D;
    text-decoration: none;
    font-family: "Lilita One", sans-serif;
    white-space: nowrap;
}

nav .logo {
    font-size: 24px;
}

nav .links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav .links a {
    font-size: 20px;
    text-transform: uppercase;
    text-align: left;
}

/* Hero section */

header {
    min-height: 350px;
    padding: 65px 8%;
    background: #E71912 url("../images/hero.png") center/cover no-repeat;
    text-align: left;
}

header h1 {
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    margin: 15px 0 5px;
}

header p {
    max-width: 520px;
    margin: 0 0 18px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.3;
}

header a,
#cta a {
    display: inline-block;
    padding: 12px 28px;
    background-color: #90A955;
    border-radius: 12px;
    color: #FFF4D6;
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
}

/* Sample boxes */

#boxes {
    padding: 30px 5%;
    background: #4F772D url("../images/features.png") center/cover no-repeat;
    text-align: center;
}

#boxes h2 {
    margin: 0 0 8px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.2;
}

#boxes > p {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.box-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
}

#boxes article {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    max-width: 240px;
    min-width: 0;
    margin-bottom: 15px;
    padding: 12px;
    background-color: transparent;
    text-align: center;
}

#boxes article h3 {
    margin: 0 0 10px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
    font-size: 16px;
    line-height: 1.2;
}

#boxes article img {
    display: block;
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    align-self: center;
    margin: 0 auto 10px;
}

#boxes article ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#boxes article li {
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Meet your farmer */

#meetyourfarmer {
    padding: 35px 8%;
    min-height: 280px;
    background: #90A955 url("../images/about-us.png") center/cover no-repeat;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.juan {
    flex: 0 1 300px;
    margin: 0;
}

.juan img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    border-radius: 25px;
}

.farmertext {
    flex: 1 1 350px;
    max-width: 600px;
    min-width: 0;
}

#meetyourfarmer h2 {
    margin: 0 0 15px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
}

#meetyourfarmer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

/* Produce gallery */

#produce {
    padding: 30px 8%;
    background: #B95A13 url("../images/gallery.png") center/cover no-repeat;
    text-align: center;
}

#produce h2 {
    margin: 0 0 20px;
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
}

.produce-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.produce-grid img {
    display: block;
    flex: 0 0 calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    min-width: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 25px;
}

/* Call to action */

#cta {
    padding: 55px 8%;
    min-height: 220px;
    background: #4F772D url("../images/cta.png") center/cover no-repeat;
    text-align: center;
}

#cta h2 {
    max-width: 600px;
    margin: 0 auto 15px;
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.3;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 5%;
    background: #254D32 url("../images/footer.png") center/cover no-repeat;
    color: #FFF4D6;
    font-family: "Lilita One", sans-serif;
    font-size: 11px;
    text-align: left;
}

footer p {
    margin: 0;
}

footer a {
    color: #F4C95D;
    text-decoration: none;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

/* Link hover effects */

a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: #F4C95D;
}

nav a:hover {
    color: #FFF4D6;
    text-decoration: underline;
}

header a:hover,
#cta a:hover {
    background-color: #254D32;
    color: #FFF4D6;
}

footer a:hover {
    color: #90A955;
    text-decoration: underline;
}

/* Smaller screens */

@media (max-width: 600px) {

    body {
        padding-top: 85px;
    }

    nav {
        padding: 8px 4%;
        gap: 8px;
    }

    nav .logo {
        font-size: 20px;
    }

    nav .links {
        gap: 12px;
    }

    nav .links a {
        font-size: 12px;
    }

    header {
        min-height: 300px;
        padding: 55px 8%;
    }

    #boxes {
        padding: 25px 3%;
    }

    .box-container {
        gap: 8px;
    }

    #boxes article {
        flex: 1 1 135px;
        padding: 6px;
    }

    #boxes article h3 {
        font-size: 12px;
    }

    #boxes article img {
        width: 75px;
        height: 75px;
    }

    #boxes article li {
        font-size: 9px;
    }

    #meetyourfarmer {
        padding: 25px 8%;
        gap: 15px;
    }

    .juan {
        flex-basis: 100%;
    }

    .juan img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        border-radius: 18px;
    }

    .farmertext {
        flex-basis: 100%;
    }

    #meetyourfarmer p {
        font-size: 10px;
    }

    #produce {
        padding: 25px 5%;
    }

    .produce-grid {
        gap: 8px;
    }

    .produce-grid img {
        flex-basis: calc((100% - 16px) / 3);
        width: calc((100% - 16px) / 3);
        border-radius: 15px;
    }

    #cta {
        padding: 40px 8%;
    }

    footer {
        padding: 15px 5%;
        font-size: 10px;
    }

    .footer-info {
        gap: 8px;
    }

    .social-icons img {
        width: 22px;
        height: 22px;
    }
}
nav {
    min-height: 65px;
    padding: 10px 5%;
}

nav .logo {
    font-size: 30px;
}

nav .links {
    display: flex;
    gap: 22px;
    align-items: center;
}

nav .links a {
    display: inline-block;
    font-size: 18px;
}

.produce-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.produce-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-left: auto;
}

@media (max-width: 600px) {
    nav .logo {
        font-size: 22px;
    }

    nav .links {
        gap: 10px;
    }

    nav .links a {
        font-size: 12px;
    }

    .produce-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}