/* =========================================================
   RD DIGITAL SERVICES PAGE
   ========================================================= */


/* ================= HERO ================= */

.services-hero {
    position: relative;
    overflow: hidden;
    padding: 35px 0 75px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(99, 91, 255, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(99, 91, 255, 0.08),
            transparent 30%
        );
}


.services-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(350px, .92fr);

    gap: 60px;

    align-items: center;
}


.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);

    line-height: 1.03;

    letter-spacing: -0.045em;

    margin: 10px 0 22px;

    max-width: 760px;
}


.services-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #635bff,
            #8b5cf6
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.services-hero-content .lead {
    max-width: 680px;
}


/* ================= BADGES ================= */

.service-badges {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 25px;
}


.service-badges span {
    padding: 8px 13px;

    border-radius: 50px;

    border: 1px solid
        rgba(99, 91, 255, .18);

    background:
        rgba(255, 255, 255, .7);

    font-size: .78rem;

    font-weight: 700;
}


/* ================= HERO CARD ================= */

.services-hero-card {
    min-height: 450px;

    padding: 25px;

    border-radius: 30px;

    border: 1px solid
        rgba(99, 91, 255, .16);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.97),
            rgba(243,242,255,.9)
        );

    box-shadow:
        0 25px 70px
        rgba(25, 30, 65, .12);

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


.hero-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.hero-card-top span {
    color: #635bff;

    font-size: .75rem;

    font-weight: 900;

    letter-spacing: .12em;
}


.hero-card-top small {
    color: #73798a;

    font-size: .66rem;

    font-weight: 800;

    letter-spacing: .08em;
}


/* ================= SERVICE VISUAL ================= */

.service-visual {
    position: relative;

    width: 330px;

    aspect-ratio: 1;

    margin: 20px auto;

    border-radius: 50%;

    border:
        1px dashed
        rgba(99, 91, 255, .32);

    background:
        radial-gradient(
            circle,
            rgba(99,91,255,.10) 0 18%,
            transparent 19%
        );

    animation:
        serviceFloat 5s ease-in-out infinite;
}


.service-visual::before {
    content: "";

    position: absolute;

    inset: 17%;

    border:
        1px solid
        rgba(99, 91, 255, .13);

    border-radius: 50%;
}


.service-visual::after {
    content: "";

    position: absolute;

    inset: 34%;

    border:
        1px solid
        rgba(99, 91, 255, .13);

    border-radius: 50%;
}


.visual-center {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 95px;
    height: 95px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    color: white;

    font-size: 28px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #635bff,
            #8b5cf6
        );

    box-shadow:
        0 15px 40px
        rgba(99,91,255,.3);
}


.visual-item {
    position: absolute;

    padding: 9px 13px;

    border-radius: 12px;

    background: white;

    border:
        1px solid
        rgba(99,91,255,.15);

    box-shadow:
        0 10px 25px
        rgba(20,25,55,.10);

    font-size: .68rem;

    font-weight: 900;

    letter-spacing: .08em;
}


.visual-web {
    top: 9%;
    left: 50%;

    transform:
        translateX(-50%);
}


.visual-seo {
    right: 4%;
    top: 50%;

    transform:
        translateY(-50%);
}


.visual-gbp {
    bottom: 9%;
    left: 50%;

    transform:
        translateX(-50%);
}


.visual-app {
    left: 4%;
    top: 50%;

    transform:
        translateY(-50%);
}


@keyframes serviceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


.hero-card-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.hero-card-bottom strong {
    font-size: 1rem;
}


.hero-card-bottom span {
    color: #73798a;

    font-size: .78rem;
}



/* ================= SECTION HEADING ================= */

.section-heading {
    max-width: 850px;

    margin-bottom: 35px;
}


.section-heading h2 {
    max-width: 800px;
}



/* ================= FILTER ================= */

.service-filter {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 28px;
}


.filter-btn {
    border:
        1px solid
        rgba(99,91,255,.18);

    background: transparent;

    color: inherit;

    border-radius: 50px;

    padding: 10px 17px;

    cursor: pointer;

    font: inherit;

    font-size: .82rem;

    font-weight: 750;

    transition:
        .2s ease;
}


.filter-btn:hover,
.filter-btn.active {

    color: white;

    border-color:
        #635bff;

    background:
        #635bff;

    transform:
        translateY(-1px);
}



/* ================= SERVICES GRID ================= */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.service-card {

    display: flex;

    flex-direction: column;

    min-height: 100%;

    padding: 26px;

    border-radius: 22px;

    border:
        1px solid
        rgba(30,35,65,.09);

    background:
        rgba(255,255,255,.88);

    box-shadow:
        0 12px 35px
        rgba(25,30,60,.06);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.service-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(99,91,255,.25);

    box-shadow:
        0 20px 45px
        rgba(25,30,60,.11);
}


.service-card.hidden {
    display: none;
}



/* ================= SERVICE NUMBER ================= */

.service-number {

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    color: white;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #635bff,
            #8b5cf6
        );

    margin-bottom: 20px;
}


.service-label {

    display: inline-block;

    color: #635bff;

    font-size: .66rem;

    letter-spacing: .12em;

    font-weight: 900;

    margin-bottom: 8px;
}


.service-card h3 {

    font-size: 1.18rem;

    line-height: 1.3;

    margin:
        0 0 10px;
}


.service-card p {

    color: #687080;

    line-height: 1.65;

    font-size: .88rem;

    margin-bottom: 12px;
}


.service-card ul {

    padding-left: 18px;

    margin:
        12px 0 24px;

    color: #505766;

    font-size: .83rem;

    line-height: 1.9;
}


.service-link {

    margin-top: auto;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(30,35,65,.08);

    color: #635bff;

    text-decoration: none;

    font-size: .82rem;

    font-weight: 800;
}


.service-link:hover {
    text-decoration: underline;
}



/* ================= WHY GRID ================= */

.why-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.why-grid article {

    padding: 28px;

    border-radius: 20px;

    border:
        1px solid
        rgba(30,35,65,.09);

    background:
        rgba(255,255,255,.75);
}


.why-grid article > span {

    display: grid;

    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    color: #635bff;

    background:
        rgba(99,91,255,.10);

    font-weight: 900;
}


.why-grid h3 {
    margin:
        18px 0 9px;
}


.why-grid p {

    color: #687080;

    line-height: 1.65;

    font-size: .86rem;
}



/* ================= PROCESS ================= */

.service-process {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


.service-process article {

    display: flex;

    gap: 16px;

    padding: 24px;

    border-radius: 20px;

    border:
        1px solid
        rgba(30,35,65,.09);

    background:
        white;
}


.service-process b {

    flex:
        0 0 auto;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: #635bff;

    background:
        rgba(99,91,255,.10);
}


.service-process h3 {

    margin:
        0 0 7px;

    font-size: 1rem;
}


.service-process p {

    margin: 0;

    color: #687080;

    font-size: .84rem;

    line-height: 1.6;
}



/* ================= CTA ================= */

.services-cta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    padding: 42px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(99,91,255,.11),
            rgba(139,92,246,.06)
        );

    border:
        1px solid
        rgba(99,91,255,.14);
}


.services-cta h2 {
    margin:
        5px 0 10px;
}


.services-cta .actions {
    flex-shrink: 0;
}



/* ================= TABLET ================= */

@media (max-width: 1100px) {

    .services-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .why-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .service-process {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}



/* ================= 900px ================= */

@media (max-width: 900px) {

    .services-hero {

        padding:
            70px 0 55px;

    }


    .services-hero-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .services-hero-card {

        min-height: 390px;

    }


    .services-cta {

        flex-direction: column;

        align-items: flex-start;

    }

}



/* ================= MOBILE ================= */

@media (max-width: 680px) {

    .services-hero h1 {

        font-size:
            clamp(
                2.25rem,
                11vw,
                3.3rem
            );

    }


    .services-hero-card {

        min-height: 330px;

        padding: 18px;

        border-radius: 22px;

    }


    .service-visual {

        width: 245px;

    }


    .visual-center {

        width: 72px;
        height: 72px;

        font-size: 22px;

    }


    .hero-card-top small {

        display: none;

    }


    .hero-card-bottom {

        flex-direction: column;

        align-items: flex-start;

    }


    .services-grid {

        grid-template-columns: 1fr;

    }


    .why-grid {

        grid-template-columns: 1fr;

    }


    .service-process {

        grid-template-columns: 1fr;

    }


    .services-cta {

        padding: 28px 22px;

        border-radius: 22px;

    }


    .services-cta .actions {

        width: 100%;

        flex-direction: column;

    }


    .services-cta .btn {

        width: 100%;

        text-align: center;

    }


    .service-badges span {

        font-size: .72rem;

    }

}

@media (max-width: 900px) {

    #primaryNav {
        display: none;
    }

    #primaryNav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;

        padding: 18px;

        background: #fff;

        border-top:
            1px solid rgba(0,0,0,.08);

        box-shadow:
            0 15px 30px rgba(0,0,0,.10);

        z-index: 999;
    }

    #primaryNav.open a {
        width: 100%;
        padding: 11px 8px;
    }

}