/* ==========================================================
   WorldSpace Broadband
   Homepage Services
   Vertical Premium Design
========================================================== */

.services {
    position: relative;

    padding: 78px 0 95px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 50%,
            #ffffff 100%
        );

    overflow: hidden;
}


/* ==========================================================
   Background Decoration
========================================================== */

.services::before {
    content: "";

    position: absolute;

    width: 560px;
    height: 560px;

    top: 20px;
    right: -320px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,102,255,.07) 0%,
            rgba(0,102,255,0) 70%
        );

    pointer-events: none;
}


.services::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    bottom: 0;
    left: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.055) 0%,
            rgba(124,58,237,0) 70%
        );

    pointer-events: none;
}


/* ==========================================================
   Container
========================================================== */

.services .container {
    position: relative;

    z-index: 2;

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* ==========================================================
   Header
========================================================== */

.services__header {
    max-width: 760px;

    margin: 0 auto 58px;

    text-align: center;
}


.services__badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 7px 16px;

    border-radius: 999px;

    background: #eaf3ff;

    color: #0066cc;

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.services__title {
    margin: 16px 0 13px;

    color: #0f2f63;

    font-size: clamp(
        1.9rem,
        3.5vw,
        2.65rem
    );

    font-weight: 800;

    line-height: 1.16;

    letter-spacing: -.02em;
}


.services__description {
    max-width: 680px;

    margin: 0 auto;

    color: #64748b;

    font-size: .96rem;

    line-height: 1.75;
}


/* ==========================================================
   Services List
========================================================== */

.services__list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ==========================================================
   Service Row
========================================================== */

.service-row {
    position: relative;

    display: grid;

    grid-template-columns:
        70px
        minmax(340px, 1fr)
        minmax(340px, 1fr);

    align-items: center;

    min-height: 255px;

    padding: 28px 42px;

    border: 1px solid rgba(210,224,240,.9);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 8px 26px rgba(15,23,42,.055);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.service-row:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 42px rgba(15,23,42,.10);
}


/* ==========================================================
   Decorative Accent
========================================================== */

.service-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    opacity: .9;
}


.service-row::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    bottom: -150px;

    border-radius: 50%;

    opacity: .35;

    pointer-events: none;
}


/* ==========================================================
   Number
========================================================== */

.service-row__number {
    align-self: start;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: rgba(255,255,255,.85);

    border: 1px solid rgba(200,215,235,.9);

    font-size: .72rem;

    font-weight: 800;

    box-shadow:
        0 5px 14px rgba(0,0,0,.06);

    position: relative;

    z-index: 3;
}


/* ==========================================================
   Image Area
========================================================== */

.service-row__image {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 195px;

    position: relative;

    z-index: 2;
}


.service-row__image img {
    display: block;

    width: min(
        285px,
        90%
    );

    height: 195px;

    object-fit: contain;

    transition:
        transform .4s ease;
}


.service-row:hover
.service-row__image img {
    transform: scale(1.055);
}


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

.service-row__content {
    padding: 18px 20px 18px 30px;

    position: relative;

    z-index: 2;
}


.service-row__subtitle {
    display: block;

    margin-bottom: 7px;

    font-size: .76rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.service-row__title {
    margin: 0 0 12px;

    font-size: clamp(
        1.65rem,
        2.8vw,
        2.25rem
    );

    font-weight: 800;

    line-height: 1.18;

    letter-spacing: -.02em;
}


.service-row__description {
    max-width: 500px;

    margin: 0;

    color: #64748b;

    font-size: .94rem;

    line-height: 1.75;
}


/* ==========================================================
   INTERNET
========================================================== */

.service-row--internet {
    background:
        linear-gradient(
            110deg,
            #eaf5ff 0%,
            #f7fbff 48%,
            #ffffff 100%
        );
}


.service-row--internet::before {
    background: #0066ff;
}


.service-row--internet::after {
    background:
        radial-gradient(
            circle,
            rgba(0,102,255,.13) 0%,
            rgba(0,102,255,0) 70%
        );
}


.service-row--internet
.service-row__number,
.service-row--internet
.service-row__subtitle {
    color: #0066ff;
}


.service-row--internet
.service-row__title {
    color: #0b3d78;
}


/* ==========================================================
   IP PHONE
========================================================== */

.service-row--ip-phone {
    background:
        linear-gradient(
            110deg,
            #e8fbf4 0%,
            #f6fffb 48%,
            #ffffff 100%
        );
}


.service-row--ip-phone::before {
    background: #0f9f72;
}


.service-row--ip-phone::after {
    background:
        radial-gradient(
            circle,
            rgba(16,185,129,.14) 0%,
            rgba(16,185,129,0) 70%
        );
}


.service-row--ip-phone
.service-row__number,
.service-row--ip-phone
.service-row__subtitle {
    color: #0f9f72;
}


.service-row--ip-phone
.service-row__title {
    color: #075e48;
}


/* ==========================================================
   IPTV
========================================================== */

.service-row--iptv {
    background:
        linear-gradient(
            110deg,
            #f3ebff 0%,
            #faf7ff 48%,
            #ffffff 100%
        );
}


.service-row--iptv::before {
    background: #7c3aed;
}


.service-row--iptv::after {
    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.14) 0%,
            rgba(124,58,237,0) 70%
        );
}


.service-row--iptv
.service-row__number,
.service-row--iptv
.service-row__subtitle {
    color: #7c3aed;
}


.service-row--iptv
.service-row__title {
    color: #54249c;
}


/* ==========================================================
   OTT
========================================================== */

.service-row--ott {
    background:
        linear-gradient(
            110deg,
            #fff4e5 0%,
            #fffaf3 48%,
            #ffffff 100%
        );
}


.service-row--ott::before {
    background: #e28a00;
}


.service-row--ott::after {
    background:
        radial-gradient(
            circle,
            rgba(245,158,11,.15) 0%,
            rgba(245,158,11,0) 70%
        );
}


.service-row--ott
.service-row__number,
.service-row--ott
.service-row__subtitle {
    color: #d47e00;
}


.service-row--ott
.service-row__title {
    color: #8a5600;
}


/* ==========================================================
   Alternating Layout
========================================================== */

.service-row:nth-child(even)
.service-row__content {
    grid-column: 2;
    grid-row: 1;

    padding-left: 20px;
    padding-right: 35px;
}


.service-row:nth-child(even)
.service-row__image {
    grid-column: 3;
    grid-row: 1;
}


.service-row:nth-child(even)
.service-row__number {
    grid-column: 1;
    grid-row: 1;
}


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

@media (max-width: 900px) {

    .services {
        padding: 60px 0 70px;
    }


    .services__header {
        margin-bottom: 42px;
    }


    .service-row {
        grid-template-columns:
            55px
            1fr;

        min-height: 0;

        padding: 28px;
    }


    .service-row__number {
        grid-column: 1;
        grid-row: 1;

        width: 40px;
        height: 40px;
    }


    .service-row__image {
        grid-column: 2;
        grid-row: 1;

        min-height: 175px;
    }


    .service-row__content {
        grid-column: 2;
        grid-row: 2;

        padding: 8px 0 0;
    }


    .service-row:nth-child(even)
    .service-row__content {
        grid-column: 2;
        grid-row: 2;

        padding: 8px 0 0;
    }


    .service-row:nth-child(even)
    .service-row__image {
        grid-column: 2;
        grid-row: 1;
    }


    .service-row__image img {
        width: 250px;

        height: 175px;
    }


    .service-row__title {
        font-size: 1.75rem;
    }
}


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

@media (max-width: 600px) {

    .services .container {
        width: calc(100% - 24px);
    }


    .services {
        padding: 52px 0 62px;
    }


    .services__header {
        margin-bottom: 34px;
    }


    .services__title {
        font-size: 1.85rem;
    }


    .services__description {
        font-size: .9rem;

        line-height: 1.65;
    }


    .services__list {
        gap: 16px;
    }


    .service-row {
        grid-template-columns:
            44px
            1fr;

        padding: 22px 18px;

        border-radius: 19px;
    }


    .service-row__number {
        width: 34px;
        height: 34px;

        font-size: .65rem;
    }


    .service-row__image {
        min-height: 145px;
    }


    .service-row__image img {
        width: 210px;

        height: 145px;
    }


    .service-row__content {
        padding-top: 5px;
    }


    .service-row__subtitle {
        font-size: .68rem;

        margin-bottom: 6px;
    }


    .service-row__title {
        font-size: 1.45rem;

        margin-bottom: 9px;
    }


    .service-row__description {
        font-size: .88rem;

        line-height: 1.65;
    }
}
