/* =========================================================
   MEDLIFY SERVICES SECTION
========================================================= */

.services-section {

    width: 100%;

    background: #ffffff;

    color: #090909;

    overflow: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.services-container {

    width: min(1200px, calc(100% - 70px));

    margin: 0 auto;
}


/* =========================================================
   SERVICES HERO
========================================================= */

.services-hero {

    min-height: 500px;

    display: grid;

    grid-template-columns: 45% 55%;

    align-items: center;

    padding: 55px 0 40px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.services-hero-content {

    padding-left: 20px;

    position: relative;

    z-index: 5;
}


.services-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: #ed1c24;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .3px;
}


.services-hero-content h1 {

    margin: 0;

    font-size: clamp(60px, 7vw, 88px);

    line-height: .9;

    letter-spacing: -4px;

    font-weight: 900;
}


.services-hero-content h1 span {

    display: block;

    color: #ed1c24;
}


.services-zigzag {

    margin-top: 20px;

    font-size: 28px;

    font-weight: 900;

    letter-spacing: -5px;

    transform: scaleX(1.3);

    transform-origin: left;
}


.services-hero-content p {

    max-width: 430px;

    margin: 20px 0 22px;

    color: #333333;

    font-size: 18px;

    line-height: 1.65;
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.services-main-btn {

    width: fit-content;

    min-width: 180px;

    height: 44px;

    padding: 0 6px 0 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-radius: 30px;

    background: #050505;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .3s ease,
        background .3s ease;
}


.services-main-btn i {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    background: #ed1c24;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform .3s ease;
}


.services-main-btn:hover {

    transform: translateY(-3px);

    background: #ed1c24;
}


.services-main-btn:hover i {

    background: #ffffff;

    color: #ed1c24;

    transform: rotate(-45deg);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.services-hero-visual {

    position: relative;

    height: 430px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero-yellow-circle {

    position: absolute;

    width: 185px;

    height: 185px;

    border-radius: 50%;

    background: #ffd21c;

    left: 28%;

    top: 38%;

    transform: translate(-50%, -50%);

    z-index: 1;
}


.services-hero-visual img {

    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 570px;

    height: 100%;

    object-fit: contain;

    object-position: center;

    filter:
        drop-shadow(0 12px 12px rgba(0,0,0,.08));
}


.hero-doodle {

    position: absolute;

    z-index: 5;

    color: #111111;

    font-size: 25px;

    pointer-events: none;
}


.hero-doodle-one {

    top: 18%;

    left: 38%;
}


.hero-doodle-two {

    right: 6%;

    bottom: 22%;

}


/* =========================================================
   SERVICES LIST
========================================================= */

.services-list {

    width: 100%;
}


/* =========================================================
   SERVICE ROW
========================================================= */

.service-row {

    position: relative;

    min-height: 195px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    border-top: 1px solid #e5e5e5;

    overflow: hidden;
}


/* =========================================================
   SERVICE TEXT
========================================================= */

.service-text {

    min-width: 0;

    display: flex;

    align-items: flex-start;

    gap: 28px;

    padding: 28px 30px;
}


.service-number {

    flex: 0 0 auto;

    color: #ed1c24;

    font-size: 62px;

    line-height: .9;

    font-weight: 900;

    letter-spacing: -3px;
}


.service-copy {

    max-width: 340px;
}


.service-copy h2 {

    margin: 0;

    color: #111111;

    font-size: 21px;

    line-height: 1.08;

    font-weight: 800;
}


.service-copy p {

    margin: 12px 0 10px;

    color: #333333;

    font-size: 19px;

    line-height: 1.6;
}


.service-link {

    display: inline-flex;

    align-items: center;

    gap: 13px;

    color: #111111;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;
}


.service-link span {

    color: #ed1c24;

    font-size: 22px;

    line-height: 10px;

    transition:
        transform .25s ease;
}


.service-link:hover span {

    transform: translateX(5px);
}


/* =========================================================
   SERVICE IMAGE
========================================================= */

.service-image {

    position: relative;

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.service-image img {

    position: relative;

    z-index: 3;

    width: 90%;

    height: 180px;

    object-fit: contain;

    transition:
        transform .5s cubic-bezier(.22,1,.36,1);
}


.service-yellow-bg {

    position: absolute;

    z-index: 1;

    width: 120px;

    height: 120px;

    border-radius: 50%;

    background: #ffd21c;

    opacity: .95;
}


.service-row:hover .service-image img {

    transform:
        scale(1.04)
        translateY(-4px);
}


/* =========================================================
   ALTERNATING ROWS
========================================================= */

.service-row-right .service-text {

    order: 2;
}


.service-row-right .service-image {

    order: 1;
}


.service-row-left .service-text {

    order: 1;
}


.service-row-left .service-image {

    order: 2;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.services-cta {

    position: relative;

    min-height: 145px;

    margin: 38px 15px 55px;

    padding: 20px 45px;

    display: flex;

    align-items: center;

    gap: 35px;

    background: #bebebe;

    border-radius: 22px;

    overflow: hidden;
}


.services-cta-image {

    width: 180px;

    height: 110px;

    flex: 0 0 180px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.services-cta-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


.services-cta-content {

    flex: 1;
}


.services-cta-content h2 {

    margin: 0;

    color: #111111;

    font-size: 25px;

    line-height: 1.15;

    font-weight: 800;
}


.services-cta-content h2 span {

    color: #ed1c24;

    font-style: italic;
}


.services-cta-content p {

    margin: 7px 0 0;

    font-size: 13px;

    color: #222222;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.services-cta-button {

    flex: 0 0 auto;

    width: 150px;

    height: 44px;

    padding: 0 6px 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-radius: 30px;

    background: #ed1c24;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.services-cta-button i {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    background: #111111;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform .3s ease;
}


.services-cta-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(237,28,36,.25);
}


.services-cta-button:hover i {

    transform: rotate(-45deg);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.service-row,
.services-cta {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.22,1,.36,1);
}


.service-row.is-visible,
.services-cta.is-visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .services-container {

        width: calc(100% - 40px);
    }


    .services-hero {

        grid-template-columns: 1fr 1fr;

        min-height: 450px;
    }


    .services-hero-content h1 {

        font-size: 62px;
    }


    .services-hero-content p {

        font-size: 12px;
    }


    .service-text {

        gap: 15px;

        padding: 25px 15px;
    }


    .service-number {

        font-size: 48px;
    }


    .service-copy h2 {

        font-size: 18px;
    }


    .service-copy p {

        font-size: 11px;
    }


    .services-cta {

        padding: 20px 25px;

        gap: 20px;
    }


    .services-cta-content h2 {

        font-size: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .services-container {

        width: calc(100% - 24px);
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .services-hero {

        min-height: auto;

        display: flex;

        flex-direction: column;

        padding: 45px 5px 30px;

        text-align: left;
    }


    .services-hero-content {

        width: 100%;

        padding: 0 8px;

        order: 1;
    }


    .services-eyebrow {

        font-size: 11px;
    }


    .services-hero-content h1 {

        font-size: clamp(52px, 15vw, 72px);

        line-height: .88;

        letter-spacing: -3px;
    }


    .services-hero-content p {

        max-width: 100%;

        margin: 18px 0;

        font-size: 12px;

        line-height: 1.55;
    }


    .services-main-btn {

        height: 42px;

        font-size: 12px;
    }


    /* -----------------------------------------
       HERO IMAGE
    ----------------------------------------- */

    .services-hero-visual {

        order: 2;

        width: 100%;

        height: 300px;

        margin-top: 20px;
    }


    .services-hero-visual img {

        width: 100%;

        height: 100%;

        object-fit: contain;
    }


    .hero-yellow-circle {

        width: 135px;

        height: 135px;

        left: 38%;

        top: 50%;
    }


    /* -----------------------------------------
       SERVICE ROW
    ----------------------------------------- */

    .service-row {

        min-height: auto;

        display: flex;

        flex-direction: column;

        border-top: 1px solid #e3e3e3;

        padding: 25px 5px 30px;
    }


    /* IMPORTANT:
       Mobile par alternating order remove */

    .service-row-left .service-text,
    .service-row-right .service-text {

        order: 1;
    }


    .service-row-left .service-image,
    .service-row-right .service-image {

        order: 2;
    }


    /* -----------------------------------------
       TEXT
    ----------------------------------------- */

    .service-text {

        width: 100%;

        min-height: 145px;

        display: flex;

        align-items: flex-start;

        gap: 15px;

        padding: 0 8px;
    }


    .service-number {

        flex: 0 0 auto;

        font-size: 48px;

        line-height: .85;

        letter-spacing: -2px;
    }


    .service-copy {

        flex: 1;

        max-width: none;

        min-width: 0;
    }


    .service-copy h2 {

        font-size: 19px;

        line-height: 1.08;
    }


    .service-copy p {

        margin: 10px 0;

        font-size: 11px;

        line-height: 1.55;
    }


    .service-link {

        font-size: 10px;
    }


    /* -----------------------------------------
       IMAGE
    ----------------------------------------- */

    .service-image {

        width: 100%;

        height: 220px;

        margin-top: 10px;

        flex-shrink: 0;
    }


    .service-image img {

        width: 100%;

        height: 215px;

        object-fit: contain;
    }


    .service-yellow-bg {

        width: 125px;

        height: 125px;
    }


    /* -----------------------------------------
       CTA
    ----------------------------------------- */

    .services-cta {

        min-height: auto;

        margin: 25px 0 40px;

        padding: 25px 20px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

        border-radius: 18px;
    }


    .services-cta-image {

        width: 150px;

        height: 85px;

        flex: none;

        align-self: center;
    }


    .services-cta-content {

        width: 100%;

    }


    .services-cta-content h2 {

        font-size: 22px;

        line-height: 1.15;
    }


    .services-cta-content p {

        font-size: 12px;

        line-height: 1.4;
    }


    .services-cta-button {

        width: 145px;

        height: 42px;

        font-size: 12px;

        align-self: flex-start;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .services-container {

        width: calc(100% - 18px);
    }


    .services-hero-content h1 {

        font-size: 50px;
    }


    .service-number {

        font-size: 42px;
    }


    .service-copy h2 {

        font-size: 17px;
    }


    .service-image {

        height: 195px;
    }


    .service-image img {

        height: 190px;
    }


    .services-cta-content h2 {

        font-size: 20px;
    }

}