/**
 * 共用：品牌介紹(/about) 與單一商品頁 —「想了解最適合您的飲水方案？」CTA
 * （與 template-services.php 區塊一致）
 */

.figma-svc-cta {
    --figma-blue: #0059ca;
    --figma-text-soft: #666666;
    --figma-max: 1200px;
    --font-zh: "Noto Sans TC", "Inter", sans-serif;
    --font-ui: "Arial", "Noto Sans TC", sans-serif;
    max-width: var(--figma-max);
    margin: 0 auto;
    padding: 0 20px 80px;
}

.figma-svc-cta__box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    min-height: 262px;
    background: #ffffff;
    border: 1px solid var(--figma-blue);
    overflow: hidden;
}

.figma-svc-cta__content {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 33px;
    padding: 40px 24px;
    text-align: center;
}

.figma-svc-cta__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.figma-svc-cta__content h2 {
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 400;
    color: var(--figma-blue);
    margin: 0;
    text-align: center;
}

.figma-svc-cta__content p {
    font-family: var(--font-zh);
    font-size: 14px;
    color: var(--figma-text-soft);
    margin: 0;
    max-width: 420px;
    text-align: center;
}

@media (min-width: 901px) {
    .figma-svc-cta__box {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(262px, auto);
        align-items: center;
    }

    .figma-svc-cta__content {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        z-index: 1;
        flex: unset;
        width: auto;
        max-width: min(520px, calc(100% - 48px));
    }

    .figma-svc-cta__splash {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: stretch;
        z-index: 0;
        flex: unset;
        width: min(350px, 40%);
        min-height: 0;
    }
}

.figma-svc-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-inline: auto;
    min-width: 200px;
    min-height: 50px;
    padding: 18px 76px;
    background: #222222;
    color: #ffffff;
    font-family: var(--font-zh);
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.figma-svc-cta__btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.figma-svc-cta__splash picture {
    display: block;
    width: 100%;
    height: 100%;
}

.figma-svc-cta__splash {
    flex: 0 0 min(350px, 40%);
    position: relative;
    min-height: 200px;
    opacity: 0.3;
    mask-image: url("../img/figma-services/water-splash-mask.svg");
    mask-size: 80% auto;
    mask-repeat: no-repeat;
    mask-position: center 58%;
    -webkit-mask-image: url("../img/figma-services/water-splash-mask.svg");
    -webkit-mask-size: 80% auto;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center 58%;
}

.figma-svc-cta__splash img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.figma-svc-cta__mobile-splash {
    display: none;
}

@media (min-width: 901px) {
    .figma-svc-cta__splash {
        transform: scale(1.5);
    }
}

@media (max-width: 768px) {
    .figma-svc-cta__splash {
        flex: 1 1 100%;
        min-height: 160px;
        max-height: 200px;
    }
}

@media (max-width: 900px) {
    .figma-svc-cta {
        padding: 0 20px 56px;
    }

    .figma-svc-cta__box {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        max-width: 315px;
        margin: 0 auto;
        min-height: 315px;
    }

    .figma-svc-cta__content {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        width: 100%;
        padding: 56px 24px 40px;
        gap: 33px;
    }

    .figma-svc-cta__intro {
        gap: 12px;
    }

    .figma-svc-cta__content h2 {
        font-size: 13px;
    }

    .figma-svc-cta__content p {
        font-size: 12px;
        max-width: 260px;
    }

    .figma-svc-cta__btn {
        min-width: 120px;
        min-height: 36px;
        padding: 8px 24px;
        font-size: 14px;
    }

    .figma-svc-cta__splash {
        display: none;
    }

    .figma-svc-cta__mobile-splash {
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 200px;
        height: auto;
        z-index: 0;
        pointer-events: none;
    }

    .figma-svc-cta__mobile-splash img {
        width: 100%;
        height: auto;
        display: block;
    }
}
