:root {
    --blue: #172D4C;
    --dark-grey: #333333;
    --white: #FFFFFF;
    --light-grey: #E5E3E3;
    --aqua-green: #F6FEF9;
    --aqua-footer: #F8FCFB;
    --bg-light-gray: #F7F9FD;
}

header {
    background: linear-gradient(120deg,
            rgba(0, 48, 25, 0.973),
            rgba(0, 28, 61, 0.973),
            rgba(0, 60, 30, 0.979));
    background-size: 300% 300%;
    animation: waterFlow 15s ease-in-out infinite alternate;
    position: relative;
}

.section-hero {
    width: 100%;
    height: 450px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/backgrounds/1581_BANNER_SITE_LIVING_CYCLE_F4L_1920x450.webp);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;

    article {
        display: flex;
        align-items: center;
    }
}

.platforms-intro {
    padding: 30px 0;

    .intro-grid {
        display: flex;
        align-items: center;
        gap: 80px;

        .intro-image {
            width: 50%;

            img {
                width: 100%;
                border-radius: 24px;
            }
        }

        .intro-text {
            width: 50%;

            p {
                font-size: 18px;
                line-height: 28px;
                color: var(--dark-grey);
                margin-bottom: 24px;
            }
        }
    }
}

.category-wrapper {
    padding: 60px 0;
    position: relative;
    background-color: #fff;

    &:nth-of-type(1) { z-index: 1; }
    &:nth-of-type(2) { z-index: 2; }
    &:nth-of-type(3) { z-index: 3; }
    &:nth-of-type(4) { z-index: 4; }
    &:nth-of-type(5) { z-index: 5; }

    &.bg-aqua {
        background-color: var(--aqua-green);
    }

    &.bg-bioactive {
        background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
            url('../images/backgrounds/leaves-pattern.png') no-repeat center;
        background-size: cover;
    }

    .category-header {
        text-align: center;
        margin-bottom: 36px;

        h2 {
            color: var(--blue);
            font-size: 40px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        p {
            color: var(--dark-grey);
            font-size: 18px;
            max-width: 800px;
            margin: 0 auto;
        }
    }

    .category-grid {
        display: flex;
        justify-content: center;
        gap: 24px;
        max-width: 90%;
        margin: 0 auto;

        .card-white {
            width: 50%;
            background-color: var(--white);
            border: 1px solid var(--light-grey);
            border-radius: 24px;
            padding: 40px;
            height: auto;
            display: flex;
            flex-direction: column;

            h3,
            p,
            h2 {
                color: var(--blue);
                font-size: 32px;
                font-weight: 700;
                text-align: center;
                margin-bottom: 30px;
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0;

                li {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    margin-bottom: 16px;
                    color: var(--dark-grey);
                    font-size: 17px;

                    img {
                        width: 35px;
                        height: 35px;
                        flex-shrink: 0;
                    }
                }

                li:last-of-type {
                    margin-bottom: 0;
                }
            }
        }

        .card-light-gray {
            width: 50%;
            background-color: var(--bg-light-gray);
            border: 1px solid var(--light-grey);
            border-radius: 24px;
            padding: 40px;
            height: auto;
            display: flex;
            flex-direction: column;

            h3,
            p,
            h2 {
                color: var(--blue);
                font-size: 32px;
                font-weight: 700;
                text-align: center;
                margin-bottom: 30px;
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0;

                li {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    margin-bottom: 16px;
                    color: var(--dark-grey);
                    font-size: 17px;

                    img {
                        width: 35px;
                        height: 35px;
                        flex-shrink: 0;
                    }
                }

                li:last-of-type {
                    margin-bottom: 0;
                }
            }
        }
    }
}

.market-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.pill {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.pill-crop { background-color: #12A182; }
.pill-fermentation { background-color: #367588; }
.pill-livestock { background-color: #EC6608; }

.section-footer-cta {
    padding: 72px 0;
    text-align: center;

    &.bg-aqua-footer {
        background: url(../images/backgrounds/bg-built.png);
    }

    .cta-box {
        .title-p {
            color: var(--blue);
            font-size: 42px;
            font-weight: 700;
            max-width: 800px;
            margin: 0 auto 20px;
        }

        p {
            color: var(--dark-grey);
            font-size: 20px;
            margin-bottom: 40px;
        }
    }
}

/* Responsividade */
@media screen and (max-width: 992px) {

    .platforms-intro {
        padding: 24px 20px;

        .intro-grid {
            flex-direction: column;
            gap: 32px;

            .intro-image {
                width: 85%;
                margin: 0 auto;

                img {
                    border-radius: 16px;
                }
            }

            .intro-text {
                width: 100%;
                text-align: center;

                p {
                    font-size: 16px;
                    line-height: 24px;
                    margin-bottom: 16px;
                }
            }
        }
    }

    .category-wrapper {
        padding: 40px 20px;

        .category-header {
            margin-bottom: 24px;

            h2 {
                font-size: 22px;
                margin-bottom: 12px;
            }

            p {
                font-size: 15px;
            }
        }

        .category-grid {
            flex-direction: column;
            gap: 16px;
            max-width: 100%;

            .card-white,
            .card-light-gray {
                width: 100%;
                padding: 24px 20px;
                border-radius: 16px;

                h2, h3, p {
                    font-size: 20px;
                    margin-bottom: 20px;
                }

                ul li {
                    font-size: 15px;
                    gap: 12px;

                    img {
                        width: 24px;
                        height: 24px;
                    }
                }
            }
        }
    }

    .section-footer-cta {
        padding: 48px 20px;

        .cta-box {
            .title-p {
                font-size: 26px;
                margin-bottom: 16px;
            }

            p {
                font-size: 16px;
                margin-bottom: 28px;
            }
        }
    }
}