/* =========================================================
   About Why Module
   Smooth crossing glow balls + Apple-style frosted glass cards
========================================================= */

section[data-module="about-why"] {
    position: relative;
    padding: 70px 30px;
    font-family: "Open Sans", Arial, sans-serif;
    overflow: visible !important;
    z-index: 5;
    background: transparent;
}

/* Keep glow visible inside this module */
section[data-module="about-why"],
section[data-module="about-why"] .about-why-wrapper,
section[data-module="about-why"] .about-why-grid {
    overflow: visible !important;
}

/* =========================================================
   Moving Soft Glow Balls
   Continuous loop, no stop, separated paths
========================================================= */

section[data-module="about-why"]::before,
section[data-module="about-why"]::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    will-change: transform;
    mix-blend-mode: normal;
}

/* Green glow ball - upper route */
section[data-module="about-why"]::before {
    width: 250px;
    height: 250px;
    left: -180px;
    top: 30px;

    background:
        radial-gradient(
            circle,
            rgba(124, 188, 74, 0.72) 0%,
            rgba(124, 188, 74, 0.50) 24%,
            rgba(124, 188, 74, 0.28) 48%,
            rgba(124, 188, 74, 0.13) 68%,
            transparent 86%
        );

    filter: blur(38px);
    opacity: 0.72;
    animation: aboutWhyGreenBallPath 9s linear infinite;
}

/* Blue / cyan glow ball - lower route */
section[data-module="about-why"]::after {
    width: 265px;
    height: 265px;
    left: -190px;
    top: 300px;

    background:
        radial-gradient(
            circle,
            rgba(55, 194, 227, 0.74) 0%,
            rgba(55, 194, 227, 0.52) 24%,
            rgba(55, 194, 227, 0.30) 48%,
            rgba(55, 194, 227, 0.14) 68%,
            transparent 86%
        );

    filter: blur(40px);
    opacity: 0.74;
    animation: aboutWhyBlueBallPath 9s linear infinite;
}

/*
   Green route:
   Starts upper-left, moves down slightly,
   only comes close to blue around middle area.
*/
@keyframes aboutWhyGreenBallPath {
    0% {
        transform: translate3d(-120px, 0, 0) scale(0.98);
    }

    25% {
        transform: translate3d(28vw, 28px, 0) scale(1);
    }

    50% {
        transform: translate3d(55vw, 95px, 0) scale(1.04);
    }

    75% {
        transform: translate3d(82vw, 142px, 0) scale(1);
    }

    100% {
        transform: translate3d(calc(100vw + 260px), 185px, 0) scale(0.98);
    }
}

/*
   Blue route:
   Starts lower-left, moves upward,
   only crosses near middle area.
*/
@keyframes aboutWhyBlueBallPath {
    0% {
        transform: translate3d(-120px, 0, 0) scale(0.98);
    }

    25% {
        transform: translate3d(28vw, -38px, 0) scale(1);
    }

    50% {
        transform: translate3d(55vw, -115px, 0) scale(1.04);
    }

    75% {
        transform: translate3d(82vw, -168px, 0) scale(1);
    }

    100% {
        transform: translate3d(calc(100vw + 260px), -220px, 0) scale(0.98);
    }
}

/* =========================================================
   Wrapper
========================================================= */

section[data-module="about-why"] .about-why-wrapper {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

section[data-module="about-why"] .about-why-heading-wrap {
    text-align: center;
    margin-bottom: 46px;
}

section[data-module="about-why"] .about-why-title {
    margin: 0;
    color: #156082;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-block;
}

section[data-module="about-why"] .about-why-title::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 20px;
    margin-left: 12px;
    background: url("/wp-content/uploads/2026/04/water-after-heading.png") no-repeat center / contain;
    vertical-align: baseline;
}

/* =========================================================
   Grid
========================================================= */

section[data-module="about-why"] .about-why-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* =========================================================
   Card - Apple Glass Style
========================================================= */

section[data-module="about-why"] .about-why-card {
    position: relative;
    min-height: 350px;
    padding: 42px 34px 34px;
    border-radius: 32px 0 32px 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0.38) 45%,
            rgba(255, 255, 255, 0.24) 100%
        );

    backdrop-filter: blur(26px) saturate(170%) brightness(1.04);
    -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.04);

    border: 1px solid rgba(255, 255, 255, 0.58);

    box-shadow:
        0 20px 48px rgba(21, 96, 130, 0.08),
        0 6px 18px rgba(0, 0, 0, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -1px 0 rgba(255, 255, 255, 0.20);

    outline: 1px solid rgba(255, 255, 255, 0.22);
    outline-offset: -2px;

    transform: none !important;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Remove old internal card glow */
section[data-module="about-why"] .about-why-card::before {
    content: none !important;
}

/* Soft glass highlight */
section[data-module="about-why"] .about-why-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;

    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.34) 0%,
            rgba(255, 255, 255, 0.14) 32%,
            rgba(255, 255, 255, 0.04) 62%,
            rgba(55, 194, 227, 0.025) 100%
        );

    opacity: 0.8;
}

/* Hover: only slightly stronger glass */
section[data-module="about-why"] .about-why-card:hover,
section[data-module="about-why"] .about-why-card.is-featured {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.68);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.64) 0%,
            rgba(255, 255, 255, 0.44) 45%,
            rgba(255, 255, 255, 0.28) 100%
        );

    box-shadow:
        0 24px 56px rgba(21, 96, 130, 0.10),
        0 8px 22px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

/* Hide old HTML glow div */
section[data-module="about-why"] .about-why-glow {
    display: none !important;
}

/* =========================================================
   Content
========================================================= */

section[data-module="about-why"] .about-why-icon,
section[data-module="about-why"] .about-why-card-title,
section[data-module="about-why"] .about-why-card-text {
    position: relative;
    z-index: 4;
}

section[data-module="about-why"] .about-why-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

section[data-module="about-why"] .about-why-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

section[data-module="about-why"] .about-why-card-title {
    margin: 0 0 14px;
    color: #156082;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.3px;
}

section[data-module="about-why"] .about-why-card-text {
    margin: 0;
    color: rgba(22, 22, 22, 0.88);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.62;
    font-weight: 400;
    letter-spacing: 0;
    word-break: break-word;
    hyphens: auto;
}

/* =========================================================
   Large Laptop
========================================================= */

@media (max-width: 1400px) {
    section[data-module="about-why"] {
        padding: 70px 24px;
    }

    section[data-module="about-why"]::before {
        width: 230px;
        height: 230px;
        left: -165px;
        top: 26px;
        filter: blur(36px);
        animation-duration: 8.2s;
    }

    section[data-module="about-why"]::after {
        width: 245px;
        height: 245px;
        left: -170px;
        top: 270px;
        filter: blur(38px);
        animation-duration: 8.2s;
    }

    section[data-module="about-why"] .about-why-wrapper {
        max-width: 1280px;
    }

    section[data-module="about-why"] .about-why-grid {
        gap: 24px;
    }

    section[data-module="about-why"] .about-why-card {
        min-height: 340px;
        padding: 38px 28px 30px;
        border-radius: 30px 0 30px 30px;
        backdrop-filter: blur(24px) saturate(165%) brightness(1.04);
        -webkit-backdrop-filter: blur(24px) saturate(165%) brightness(1.04);
    }

    section[data-module="about-why"] .about-why-card-title {
        font-size: 25px;
    }

    section[data-module="about-why"] .about-why-card-text {
        font-size: 17px;
        line-height: 1.6;
    }
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1024px) {
    section[data-module="about-why"] {
        padding: 60px 24px;
    }

    section[data-module="about-why"]::before {
        width: 210px;
        height: 210px;
        left: -145px;
        top: 90px;
        filter: blur(34px);
        animation-duration: 8s;
    }

    section[data-module="about-why"]::after {
        width: 225px;
        height: 225px;
        left: -150px;
        top: 410px;
        filter: blur(36px);
        animation-duration: 8s;
    }

    section[data-module="about-why"] .about-why-heading-wrap {
        margin-bottom: 34px;
    }

    section[data-module="about-why"] .about-why-title {
        font-size: 42px;
        line-height: 1.12;
    }

    section[data-module="about-why"] .about-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    section[data-module="about-why"] .about-why-card {
        min-height: 320px;
        padding: 34px 28px 28px;
        backdrop-filter: blur(24px) saturate(165%) brightness(1.04);
        -webkit-backdrop-filter: blur(24px) saturate(165%) brightness(1.04);
    }

    section[data-module="about-why"] .about-why-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }

    section[data-module="about-why"] .about-why-card-title {
        font-size: 25px;
        margin-bottom: 14px;
    }

    section[data-module="about-why"] .about-why-card-text {
        font-size: 17px;
        line-height: 1.6;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
    section[data-module="about-why"] {
        padding: 50px 20px;
    }

    section[data-module="about-why"]::before {
        width: 180px;
        height: 180px;
        left: -125px;
        top: 120px;
        filter: blur(30px);
        animation-duration: 7.5s;
    }

    section[data-module="about-why"]::after {
        width: 195px;
        height: 195px;
        left: -130px;
        top: 500px;
        filter: blur(32px);
        animation-duration: 7.5s;
    }

    section[data-module="about-why"] .about-why-heading-wrap {
        text-align: left;
        margin-bottom: 28px;
    }

    section[data-module="about-why"] .about-why-title {
        font-size: 34px;
        line-height: 1.16;
        letter-spacing: -0.3px;
    }

    section[data-module="about-why"] .about-why-title::after {
        width: 14px;
        height: 18px;
        margin-left: 8px;
    }

    section[data-module="about-why"] .about-why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    section[data-module="about-why"] .about-why-card {
        min-height: auto;
        padding: 28px 24px 26px;
        border-radius: 28px 0 28px 28px;

        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.60) 0%,
                rgba(255, 255, 255, 0.40) 45%,
                rgba(255, 255, 255, 0.26) 100%
            );

        backdrop-filter: blur(22px) saturate(160%) brightness(1.04);
        -webkit-backdrop-filter: blur(22px) saturate(160%) brightness(1.04);
    }

    section[data-module="about-why"] .about-why-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 22px;
    }

    section[data-module="about-why"] .about-why-card-title {
        font-size: 25px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    section[data-module="about-why"] .about-why-card-text {
        font-size: 16px;
        line-height: 1.58;
        text-align: left;
    }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {
    section[data-module="about-why"] {
        padding: 45px 16px;
    }

    section[data-module="about-why"]::before {
        width: 160px;
        height: 160px;
        left: -110px;
        top: 115px;
        filter: blur(28px);
    }

    section[data-module="about-why"]::after {
        width: 175px;
        height: 175px;
        left: -115px;
        top: 475px;
        filter: blur(30px);
    }

    section[data-module="about-why"] .about-why-title {
        font-size: 30px;
    }

    section[data-module="about-why"] .about-why-card {
        padding: 26px 22px 24px;
    }

    section[data-module="about-why"] .about-why-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 20px;
    }

    section[data-module="about-why"] .about-why-card-title {
        font-size: 23px;
    }

    section[data-module="about-why"] .about-why-card-text {
        font-size: 15px;
    }
}

/* =========================================================
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {
    section[data-module="about-why"]::before,
    section[data-module="about-why"]::after,
    section[data-module="about-why"] .about-why-card,
    section[data-module="about-why"] .about-why-card::after {
        animation: none !important;
        transition: none !important;
    }
}