/* =========================================================
   N-FLUX WATER TESTING
========================================================= */

.water-testing-section {

    position: relative;

    padding:
        var(--section-space-lg)
        0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0b3b82 0%,
            #168de2 100%
        );


    color: #fff;

}


/* Main content */

.water-testing-section .water-testing-eyebrow {
    color: rgba(255,255,255,.86);
}

.water-testing-section .water-testing-title {
    color: #ffffff;
}

.water-testing-section .water-testing-title span {
    color: rgba(255,255,255,.78);
}

.water-testing-section .water-testing-description {
    color: rgba(255,255,255,.84);
}


/* Benefits */

.water-testing-section .water-testing-benefit {
    color: #ffffff;
}

.water-testing-section .water-testing-benefit i {
    color: #ffffff;

    background:
        rgba(255,255,255,.16);
}


/* CTA */

.water-testing-section .water-testing-btn {
    background: #ffffff;
    color: #0b3b82;
}

.water-testing-section .water-testing-btn:hover {
    background: #f4f8fc;
    color: #0b3b82;
}


/* Visual card */

.water-testing-section .water-quality-card {
    background:
        rgba(255,255,255,.12);

    border-color:
        rgba(255,255,255,.24);
}


/* Card text */

.water-testing-section .water-quality-label {
    color: #ffffff;
}

.water-testing-section .water-quality-subtitle {
    color: rgba(255,255,255,.76);
}


/* Floating badges */

.water-testing-section .water-quality-badge {
    background:
        rgba(255,255,255,.14);

    border-color:
        rgba(255,255,255,.24);

    color: #ffffff;
}


/* =========================================================
   BACKGROUND GLOW
========================================================= */

.water-testing-section::before {

    content: "";

    position: absolute;

    width: 520px;

    height: 520px;

    top: -280px;

    right: -150px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);

    pointer-events: none;

}


.water-testing-section::after {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    bottom: -220px;

    left: -150px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.045);

    pointer-events: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.water-testing-container {

    position: relative;

    z-index: 2;

}


/* =========================================================
   MAIN GRID
========================================================= */

.water-testing-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, .82fr);

    align-items: center;

    gap:
        clamp(40px, 7vw, 90px);

}


/* =========================================================
   CONTENT
========================================================= */

.water-testing-content {

    max-width: 620px;

}


/* =========================================================
   EYEBROW
========================================================= */

.water-testing-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;

    color: rgba(255,255,255,.75);

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;

}


.water-testing-eyebrow::before {

    content: "";

    width: 25px;

    height: 2px;

    border-radius:
        var(--radius-pill);

    background: #fff;

}


/* =========================================================
   HEADING
========================================================= */

.water-testing-title {

    margin:
        0 0 17px;

    color: #fff;

    font-size:
        clamp(
            2.1rem,
            4.5vw,
            3.7rem
        );

    font-weight: 850;

    line-height: 1.04;

    letter-spacing: -.05em;

}


.water-testing-title span {

    display: block;

    color:
        rgba(255,255,255,.68);

}


/* =========================================================
   DESCRIPTION
========================================================= */

.water-testing-description {

    max-width: 570px;

    margin:
        0 0 23px;

    color:
        rgba(255,255,255,.74);

    font-size: .91rem;

    line-height: 1.8;

}


/* =========================================================
   BENEFITS
========================================================= */

.water-testing-benefits {

    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-bottom: 27px;

}


.water-testing-benefit {

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        rgba(255,255,255,.91);

    font-size: .8rem;

    font-weight: 700;

}


.water-testing-benefit i {

    display: grid;

    place-items: center;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.13);

    color: #fff;

    font-size: .8rem;

}


/* =========================================================
   CTA
========================================================= */

.water-testing-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding:
        12px 21px;

    border-radius:
        var(--radius-pill);

    background: #fff;

    color: var(--primary);

    font-family: inherit;

    font-size: .8rem;

    font-weight: 850;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(0,0,0,.14);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);

}


.water-testing-btn:hover {

    color: var(--primary);

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 34px
        rgba(0,0,0,.20);

}


/* =========================================================
   VISUAL
========================================================= */

.water-testing-visual {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 460px;

}


/* =========================================================
   VISUAL CARD
========================================================= */

.water-quality-card {

    position: relative;

    width: min(100%, 440px);

    aspect-ratio: 1 / 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    padding: 30px;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 34px;

    background:
        rgba(255,255,255,.095);

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.17);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

}


/* =========================================================
   CIRCLE
========================================================= */

.water-quality-orbit {

    position: absolute;

    width: 73%;

    height: 73%;

    border:
        1px solid
        rgba(255,255,255,.17);

    border-radius: 50%;

    animation:
        waterOrbit 20s linear infinite;

}


.water-quality-orbit::before {

    content: "";

    position: absolute;

    width: 9px;

    height: 9px;

    top: 5%;

    left: 20%;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 0 8px
        rgba(255,255,255,.08);

}


/* =========================================================
   DROP
========================================================= */

.water-drop {

    position: relative;

    z-index: 3;

    width: 100px;

    height: 130px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius:
        55% 45% 60% 40%
        /
        65% 55% 45% 35%;

    background:
        rgba(255,255,255,.16);

    border:
        1px solid
        rgba(255,255,255,.30);

    transform:
        rotate(45deg);

    box-shadow:
        inset
        -10px -10px 30px
        rgba(255,255,255,.04),

        0 20px 45px
        rgba(0,0,0,.12);

    animation:
        waterDropFloat 4.5s ease-in-out infinite;

}


.water-drop i {

    transform:
        rotate(-45deg);

    color: #fff;

    font-size: 2.4rem;

}


/* =========================================================
   CARD TEXT
========================================================= */

.water-quality-label {

    position: relative;

    z-index: 4;

    margin-top: 24px;

    color: #fff;

    font-size: 1rem;

    font-weight: 850;

    letter-spacing: -.02em;

}


.water-quality-subtitle {

    position: relative;

    z-index: 4;

    margin-top: 5px;

    color:
        rgba(255,255,255,.62);

    font-size: .8rem;

    font-weight: 650;

}


/* =========================================================
   FLOATING BADGES
========================================================= */

.water-quality-badge {

    position: absolute;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        9px 12px;

    border:
        1px solid
        rgba(255,255,255,.17);

    border-radius:
        var(--radius-pill);

    background:
        rgba(255,255,255,.11);

    color: #fff;

    font-size: .8rem;

    font-weight: 800;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.10);

}


.water-quality-badge i {

    font-size: .68rem;

}


.water-quality-badge--top {

    top: 45px;

    right: 5px;

    animation:
        qualityBadgeFloat 4s ease-in-out infinite;

}


.water-quality-badge--bottom {

    bottom: 50px;

    left: 0;

    animation:
        qualityBadgeFloat 5s
        ease-in-out
        .5s
        infinite;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes waterOrbit {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


@keyframes waterDropFloat {

    0%,
    100% {

        transform:
            rotate(45deg)
            translateY(0);

    }

    50% {

        transform:
            rotate(45deg)
            translateY(-9px);

    }

}


@keyframes qualityBadgeFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-7px);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .water-testing-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 35px;

    }


    .water-testing-visual {

        min-height: 400px;

    }


    .water-quality-badge--top {

        right: -5px;

    }


    .water-quality-badge--bottom {

        left: -5px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .water-testing-section {

        padding:
            var(--section-space)
            0;

    }


    .water-testing-grid {

        display: flex;

        flex-direction: column;

        gap: 30px;

    }


    .water-testing-content {

        max-width: none;

        text-align: center;

    }


    .water-testing-eyebrow {

        justify-content: center;

        font-size: .62rem;

    }


    .water-testing-title {

        font-size:
            clamp(
                2.05rem,
                9.5vw,
                2.75rem
            );

    }


    .water-testing-description {

        margin-inline: auto;

        font-size: .84rem;

        line-height: 1.72;

    }


    .water-testing-benefits {

        align-items: flex-start;

        width: fit-content;

        margin-inline: auto;

        text-align: left;

    }


    .water-testing-benefit {

        font-size: .8rem;

    }


    .water-testing-btn {

        width: 100%;

        min-height: 49px;

    }


    .water-testing-visual {

        width: 100%;

        min-height: auto;

        padding:
            5px 5px 25px;

    }


    .water-quality-card {

        width: 100%;

        max-width: 380px;

        border-radius: 27px;

    }


    .water-drop {

        width: 82px;

        height: 108px;

    }


    .water-drop i {

        font-size: 2rem;

    }


    .water-quality-label {

        font-size: .9rem;

    }


    .water-quality-badge--top {

        top: 25px;

        right: 0;

    }


    .water-quality-badge--bottom {

        bottom: 25px;

        left: 0;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .water-quality-badge {

        padding:
            7px 9px;

        font-size: .55rem;

    }


    .water-quality-card {

        min-height: 320px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .water-quality-orbit,
    .water-drop,
    .water-quality-badge {

        animation: none !important;

    }

}