/* ================================
   Service Bottom Animation
================================ */

/* Section reveal */
section[data-module="service-bottom"] .service-bottom-left,
section[data-module="service-bottom"] .service-bottom-right {
    opacity: 0;
    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

section[data-module="service-bottom"] .service-bottom-left {
    transform: translateY(45px);
}

section[data-module="service-bottom"] .service-bottom-right {
    transform: translateX(55px);
}

section[data-module="service-bottom"].is-visible .service-bottom-left,
section[data-module="service-bottom"].is-visible .service-bottom-right {
    opacity: 1;
    transform: translate(0, 0);
}

section[data-module="service-bottom"].is-visible .service-bottom-right {
    transition-delay: 0.18s;
}

/* Item stagger */
section[data-module="service-bottom"] .service-progress-item {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

section[data-module="service-bottom"].is-visible .service-progress-item {
    opacity: 1;
    transform: translateY(0);
}

section[data-module="service-bottom"].is-visible .service-progress-item:nth-child(1) {
    transition-delay: 0.2s;
}

section[data-module="service-bottom"].is-visible .service-progress-item:nth-child(2) {
    transition-delay: 0.34s;
}

section[data-module="service-bottom"].is-visible .service-progress-item:nth-child(3) {
    transition-delay: 0.48s;
}

/* Active dot glow */
section[data-module="service-bottom"] .service-progress-dot {
    position: relative;
}

section[data-module="service-bottom"] .service-progress-item.active .service-progress-dot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(249, 208, 103, 0.32);
    animation: serviceBottomDotPulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes serviceBottomDotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.12;
    }
}

/* Image switch animation */
section[data-module="service-bottom"] .service-progress-image {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(8px);
    transition:
        opacity 0.65s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.65s ease;
}

section[data-module="service-bottom"] .service-progress-image.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Image inner soft zoom */
section[data-module="service-bottom"] .service-progress-image img {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

section[data-module="service-bottom"] .service-progress-image.active img {
    transform: scale(1.02);
}


/* =========================
   SERVICE BOTTOM BASE
========================= */
section[data-module="service-bottom"] {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    padding: 0;
    margin-top: -1px;
    font-family: 'Open Sans', sans-serif;
    border-radius: 0;
}


/* =========================
   SVG BACKGROUND
========================= */
section[data-module="service-bottom"] .service-bottom-bg {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

section[data-module="service-bottom"] .service-bottom-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

section[data-module="service-bottom"] .service-bottom-bg-desktop {
    display: block;
    top: -95px;
    height: calc(100% + 150px);
}

section[data-module="service-bottom"] .service-bottom-bg-laptop,
section[data-module="service-bottom"] .service-bottom-bg-mobile {
    display: none;
}


/* =========================
   MAIN CONTENT WRAPPER
========================= */
section[data-module="service-bottom"] .service-bottom-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1510px;
    min-height: 900px;
    margin: 0 auto;
    padding: 350px 80px 220px;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    gap: 90px;
    align-items: start;
}


/* =========================
   HEADING
========================= */
section[data-module="service-bottom"] .service-bottom-heading {
    margin: 0 0 62px;
    font-family: 'Raleway', sans-serif;
    font-size: 50px;
    line-height: 1.08;
    font-weight: 700;
    color: #156082;
    letter-spacing: -1px;
}

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


/* =========================
   PROGRESS LIST
========================= */
section[data-module="service-bottom"] .service-progress-list {
    --progress-gap: 56px;
    --progress-dot-size: 52px;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--progress-gap);
    padding-bottom: 0;
}

section[data-module="service-bottom"] .service-progress-list::before {
    display: none;
    content: none;
}

section[data-module="service-bottom"] .service-progress-item {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: var(--progress-dot-size) 1fr;
    gap: 46px;
    cursor: pointer;
}

section[data-module="service-bottom"] .service-progress-dot {
    position: relative;
    width: var(--progress-dot-size);
    height: var(--progress-dot-size);
    border-radius: 50%;
    background: #d2c8c3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

section[data-module="service-bottom"] .service-progress-dot span {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    display: block;
}

section[data-module="service-bottom"] .service-progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: var(--progress-dot-size);
    left: calc(var(--progress-dot-size) / 2);
    bottom: calc(var(--progress-gap) * -1);
    width: 1px;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(210, 200, 195, 0.95) 0,
        rgba(210, 200, 195, 0.95) 6px,
        transparent 6px,
        transparent 13px
    );
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

section[data-module="service-bottom"] .service-progress-item:last-child::after {
    display: none;
    content: none;
}

section[data-module="service-bottom"] .service-progress-item.active .service-progress-dot {
    background: #f9d067;
    transform: scale(1.05);
}

section[data-module="service-bottom"] .service-progress-content h3 {
    margin: 0 0 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 550;
    color: #156082;
}

section[data-module="service-bottom"] .service-progress-content p {
    margin: 0;
    max-width: 560px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    color: #111111;
}


/* =========================
   RIGHT IMAGE AREA
========================= */
section[data-module="service-bottom"] .service-bottom-right {
    position: relative;
    padding-top: 0;
}

section[data-module="service-bottom"] .service-progress-image-wrap {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 42px 0 42px 42px;
    overflow: hidden;
    background: #d2c8c3;
}

section[data-module="service-bottom"] .service-progress-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 0.45s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

section[data-module="service-bottom"] .service-progress-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

section[data-module="service-bottom"] .service-progress-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

section[data-module="service-bottom"] .service-progress-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(21, 96, 130, 0.2) 0%,
        rgba(21, 96, 130, 0) 100%
    );
}


/* =========================
   CONTROL
========================= */
section[data-module="service-bottom"] .service-progress-control {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 35px;
}

/* Hide old number counter */
section[data-module="service-bottom"] .service-progress-count {
    display: none;
}

/* Rubber / Liquid Dot Indicator Area */
section[data-module="service-bottom"] .service-progress-line {
    position: relative;
    flex: 1 1 auto;
    max-width: 520px;
    height: 54px;
    background: transparent;
    overflow: visible;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide old span progress if still exists */
section[data-module="service-bottom"] .service-progress-line > span {
    display: none !important;
}

/* Indicator group */
section[data-module="service-bottom"] .service-progress-indicator-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding: 0 6px;
    min-height: 24px;
}

/* Rubber bridge */
section[data-module="service-bottom"] .service-progress-liquid-bridge {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #f9d067;
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: none;
    transition:
        width 0.34s cubic-bezier(0.65, 0, 0.35, 1),
        left 0.34s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.22s ease;
}

/* Indicator dot */
section[data-module="service-bottom"] .service-progress-indicator {
    position: relative;
    z-index: 2;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d2c8c3;
    opacity: 1;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

section[data-module="service-bottom"] .service-progress-indicator:hover {
    background: #f9d067;
    transform: scale(1.08);
}

section[data-module="service-bottom"] .service-progress-indicator.active {
    background: #f9d067;
    transform: scale(1);
}


/* =========================
   BUTTONS
========================= */
section[data-module="service-bottom"] .service-progress-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
}

section[data-module="service-bottom"] .service-progress-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #f9d067;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

section[data-module="service-bottom"] .service-progress-btn span {
    width: 16px;
    height: 16px;
    display: block;
    background: url('/wp-content/uploads/2026/04/button-right.png') no-repeat center / contain;
    filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(865%) hue-rotate(356deg) brightness(103%) contrast(95%);
    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}

section[data-module="service-bottom"] .service-progress-btn.service-prev span {
    transform: rotate(180deg);
}

/* Active / clickable button */
section[data-module="service-bottom"] .service-progress-btn.can-click {
    background: #f9d067;
    border-color: #f9d067;
    cursor: pointer;
}

section[data-module="service-bottom"] .service-progress-btn.can-click span {
    filter: brightness(0) saturate(100%) invert(24%) sepia(42%) saturate(1108%) hue-rotate(159deg) brightness(88%) contrast(95%);
}

/* Disabled button */
section[data-module="service-bottom"] .service-progress-btn.is-disabled {
    background: transparent;
    border-color: #f9d067;
    cursor: not-allowed;
}

section[data-module="service-bottom"] .service-progress-btn.is-disabled span {
    filter: brightness(0) saturate(100%) invert(83%) sepia(35%) saturate(865%) hue-rotate(356deg) brightness(103%) contrast(95%);
}

/* Hover only when clickable */
section[data-module="service-bottom"] .service-progress-btn.can-click:hover {
    background: #f9d067;
    border-color: #f9d067;
    transform: translateY(-2px);
}

section[data-module="service-bottom"] .service-progress-btn.can-click:hover span {
    filter: brightness(0) saturate(100%) invert(24%) sepia(42%) saturate(1108%) hue-rotate(159deg) brightness(88%) contrast(95%);
}

section[data-module="service-bottom"] .service-progress-btn.service-prev.can-click:hover span {
    transform: rotate(180deg) translateX(3px);
}

section[data-module="service-bottom"] .service-progress-btn.is-disabled:hover {
    background: transparent;
    border-color: #f9d067;
    transform: none;
}


/* =========================
   LAPTOP
========================= */
@media (max-width: 1500px) and (min-width: 1025px) {
    section[data-module="service-bottom"] .service-bottom-bg-desktop {
        display: none;
    }

    section[data-module="service-bottom"] .service-bottom-bg-laptop {
        display: block;
        top: -105px;
        height: calc(100% + 105px);
    }

    section[data-module="service-bottom"] .service-bottom-bg-mobile {
        display: none;
    }

    section[data-module="service-bottom"] .service-bottom-inner {
        max-width: 1280px;
        min-height: 940px;
        padding: 350px 24px 250px;
        gap: 70px;
        grid-template-columns: minmax(380px, 0.9fr) minmax(500px, 1.1fr);
    }

    section[data-module="service-bottom"] .service-bottom-heading {
        font-size: 46px;
        margin-bottom: 52px;
    }

    section[data-module="service-bottom"] .service-progress-list {
        --progress-gap: 46px;
        --progress-dot-size: 48px;
    }

    section[data-module="service-bottom"] .service-progress-item {
        gap: 36px;
    }

    section[data-module="service-bottom"] .service-progress-content h3 {
        font-size: 26px;
        font-weight: 600;
    }

    section[data-module="service-bottom"] .service-progress-content p {
        font-size: 16px;
    }

    section[data-module="service-bottom"] .service-progress-image-wrap {
        height: 380px;
    }

    section[data-module="service-bottom"] .service-progress-line {
        max-width: 430px;
    }
}


/* =========================
   TABLET
========================= */
@media (max-width: 1024px) and (min-width: 768px) {
    section[data-module="service-bottom"] .service-bottom-bg-desktop {
        display: none;
    }

    section[data-module="service-bottom"] .service-bottom-bg-laptop {
        display: block;
        top: -70px;
        height: calc(100% + 70px);
    }

    section[data-module="service-bottom"] .service-bottom-bg-mobile {
        display: none;
    }

    section[data-module="service-bottom"] .service-bottom-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        max-width: 100%;
        min-height: 980px;
        padding: 190px 24px 110px;
    }

    section[data-module="service-bottom"] .service-bottom-heading {
        margin-bottom: 46px;
        font-size: 42px;
        line-height: 1.1;
    }

    section[data-module="service-bottom"] .service-progress-list {
        --progress-gap: 42px;
        --progress-dot-size: 48px;
    }

    section[data-module="service-bottom"] .service-progress-item {
        grid-template-columns: var(--progress-dot-size) 1fr;
        gap: 34px;
    }

    section[data-module="service-bottom"] .service-progress-content h3 {
        font-size: 24px;
        font-weight: 600;
    }

    section[data-module="service-bottom"] .service-progress-content p {
        font-size: 15px;
        max-width: 100%;
    }

    section[data-module="service-bottom"] .service-progress-image-wrap {
        height: 360px;
    }

    section[data-module="service-bottom"] .service-progress-control {
        margin-top: 28px;
    }
}


/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
    section[data-module="service-bottom"] .service-bottom-bg-desktop,
    section[data-module="service-bottom"] .service-bottom-bg-laptop {
        display: none;
    }

    section[data-module="service-middle"] .service-middle-inner {
        top: 0;
    }

    section[data-module="service-bottom"] .service-bottom-bg-mobile {
        display: block;
        top: -10px;
        height: calc(100% + 180px);
    }

    section[data-module="service-bottom"] .service-bottom-inner {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        min-height: 900px;
        padding: 200px 20px 300px;
        gap: 0;
    }

    section[data-module="service-bottom"] .service-bottom-left {
        display: contents;
    }

    section[data-module="service-bottom"] .service-bottom-heading {
        order: 1;
        font-size: 32px;
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin: 0 0 28px;
    }

    section[data-module="service-bottom"] .service-bottom-heading::after {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }

    section[data-module="service-bottom"] .service-bottom-right {
        order: 2;
        width: 100%;
        margin-bottom: 34px;
    }

    section[data-module="service-bottom"] .service-progress-image-wrap {
        height: 260px;
        border-radius: 28px 0 28px 28px;
    }

    section[data-module="service-bottom"] .service-progress-control {
        margin-top: 22px;
        padding-left: 0;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    section[data-module="service-bottom"] .service-progress-line {
        max-width: none;
        flex: 1 1 auto;
        height: 46px;
    }

    section[data-module="service-bottom"] .service-progress-indicator-inner {
        gap: 22px;
        padding: 0 5px;
    }

    section[data-module="service-bottom"] .service-progress-liquid-bridge,
    section[data-module="service-bottom"] .service-progress-indicator {
        width: 11px;
        height: 11px;
    }

    section[data-module="service-bottom"] .service-progress-indicator {
        flex-basis: 11px;
    }

    section[data-module="service-bottom"] .service-progress-buttons {
        gap: 12px;
    }

    section[data-module="service-bottom"] .service-progress-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    section[data-module="service-bottom"] .service-progress-btn span {
        width: 14px;
        height: 14px;
    }

    section[data-module="service-bottom"] .service-progress-list {
        order: 3;
        --progress-gap: 18px;
        --progress-dot-size: 36px;
        gap: var(--progress-gap);
    }

    section[data-module="service-bottom"] .service-progress-item {
        grid-template-columns: var(--progress-dot-size) 1fr;
        gap: 16px;
        align-items: flex-start;
    }

    section[data-module="service-bottom"] .service-progress-dot {
        width: var(--progress-dot-size);
        height: var(--progress-dot-size);
    }

    section[data-module="service-bottom"] .service-progress-dot span {
        width: 12px;
        height: 12px;
    }

    section[data-module="service-bottom"] .service-progress-item:not(:last-child)::after {
        top: var(--progress-dot-size);
        left: calc(var(--progress-dot-size) / 2);
        bottom: calc(var(--progress-gap) * -1);
    }

    section[data-module="service-bottom"] .service-progress-content h3 {
        font-size: 20px;
        line-height: 1.25;
        font-weight: 500;
        margin: 4px 0 8px;
    }

    section[data-module="service-bottom"] .service-progress-content p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

    section[data-module="service-bottom"] .service-progress-item:not(.active) .service-progress-content p {
        display: none;
    }

    section[data-module="service-bottom"] .service-progress-item:not(.active) .service-progress-content h3 {
        opacity: 0.65;
    }

    section[data-module="service-bottom"] .service-progress-item.active .service-progress-content h3 {
        opacity: 1;
    }
}