/* =========================================================
   SERVICES SECTION
========================================================= */

.services-section {
    width: 100%;
    padding: 80px 30px 110px;
    margin-top: 120px;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

.services-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   SECTION INTRO
========================================================= */

.services-intro {
    text-align: center;
    margin-bottom: 65px;
}

.services-title {
    margin: 0;
    color: #29312d;
    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -2px;
}

.services-highlight {
    display: inline-block;
    padding: 5px 15px 7px;
    margin: 0 4px;
    color: #fff;
    background: #ff5638;
    border-radius: 10px;
    line-height: .95;
}

.services-intro .services-description {
    max-width: 680px;
    margin: 25px auto 0;
    color: #29312d;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: .3px;
    font-weight: 400;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 38px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;
    min-height: 390px;
    padding: 48px 50px 45px;

    box-sizing: border-box;

    background: #f1f1f1;
    border-radius: 48px;

    transform: rotate(-4deg);

    overflow: hidden;
    cursor: pointer;

    transition:
        background-color .4s ease,
        color .4s ease,
        transform .4s cubic-bezier(.22, 1, .36, 1),
        box-shadow .4s ease;
}


/* =========================================================
   CARD ROTATION
========================================================= */

/* Card 1 */
.service-card-1 {
    transform: rotate(-4deg);
}

/* Card 2 */
.service-card-2 {
    transform: rotate(-4deg);
}

/* Card 3 - STRAIGHT */
.service-card-3 {
    transform: rotate(0deg);
}

/* Card 4 */
.service-card-4 {
    transform: rotate(-4deg);
}

/* Card 5 */
.service-card-5 {
    transform: rotate(-4deg);
}

/* Card 6 */
.service-card-6 {
    transform: rotate(-4deg);
}


/* =========================================================
   ICON
========================================================= */

.service-icon {
    width: 95px;
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-bottom: 30px;

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);
}

.service-icon img {
    display: block;

    width: 95px;
    height: 95px;

    object-fit: contain;

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   CARD HEADING
========================================================= */

.service-card .service-title {
    margin: 0 0 20px;

    color: #29312d;

    font-family: "DM Sans", sans-serif;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;

    letter-spacing: -1.2px;

    transition:
        color .35s ease,
        transform .35s ease;
}


/* =========================================================
   CARD DESCRIPTION
========================================================= */

.service-card .service-description {
    margin: 0;

    max-width: 310px;

    color: #29312d;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;

    transition:
        color .35s ease,
        transform .35s ease;
}


/* =========================================================
   HOVER ANIMATION
========================================================= */

.service-card:hover {
    background: #ff5638;

    transform:
        rotate(0deg)
        translateY(-8px)
        scale(1.015);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, .08);
}


/* =========================================================
   HOVER ICON
========================================================= */

.service-card:hover .service-icon {
    transform: translateY(-3px);
}

.service-card:hover .service-icon img {
    transform: scale(1.08);
}


/* =========================================================
   HOVER HEADING
========================================================= */

.service-card:hover .service-title {
    color: #fff;
    transform: translateY(-2px);
}


/* =========================================================
   HOVER DESCRIPTION
========================================================= */

.service-card:hover .service-description {
    color: #fff;
    transform: translateY(-2px);
}


/* =========================================================
   BOTTOM BUTTON
========================================================= */

.services-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 65px;
}


/* =========================================================
   SERVICES BUTTON
========================================================= */

.services-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-width: 410px;
    min-height: 72px;

    padding: 10px 12px 10px 28px;

    box-sizing: border-box;

    color: #fff;
    background: #29312d;

    border: 1.5px solid #29312d;
    border-radius: 45px;

    text-decoration: none;

    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 400;

    letter-spacing: .2px;

    transition:
        transform .3s ease;
}


/* =========================================================
   BUTTON ARROW
   Only arrow is bigger
========================================================= */

.services-button-arrow {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #f1f1f1;
    color: #29312d;

    font-family: "DM Sans", sans-serif;

    font-size: 48px;
    font-weight: 600;

    line-height: 1;

    transition:
        transform .3s ease;
}


/* =========================================================
   BUTTON HOVER
   Button color NEVER changes
========================================================= */

.services-button:hover {
    color: #fff;
    background: #29312d;
    transform: translateY(-3px);
}

.services-button:hover .services-button-arrow {
    background: #f1f1f1;
    color: #29312d;
    transform: translateX(4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .services-section {
        padding: 70px 25px 90px;
        margin-top: 100px;
    }

    .services-container {
        max-width: 760px;
    }

    .services-title {
        font-size: 42px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .service-card {
        min-height: 370px;
        padding: 42px 40px;
    }

    .service-icon {
        width: 85px;
        height: 85px;
    }

    .service-icon img {
        width: 85px;
        height: 85px;
    }

    .service-card .service-title {
        font-size: 30px;
    }

    .service-card .service-description {
        font-size: 16px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .services-section {
        padding: 60px 18px 80px;
        margin-top: 80px;
    }

    .services-container {
        max-width: 500px;
    }

    .services-intro {
        margin-bottom: 45px;
    }

    .services-title {
        font-size: 35px;
        line-height: 1.2;
        letter-spacing: -1.5px;
    }

    .services-highlight {
        padding: 4px 11px 5px;
        border-radius: 8px;
    }

    .services-intro .services-description {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.5;
    }

    .desktop-break {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-card {
        min-height: 350px;
        padding: 40px 35px;
        border-radius: 38px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .service-icon img {
        width: 80px;
        height: 80px;
    }

    .service-card .service-title {
        font-size: 29px;
        line-height: 1.15;
    }

    .service-card .service-description {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.5;
    }

    .services-button-wrap {
        margin-top: 50px;
    }

    .services-button {
        min-width: 100%;
        min-height: 66px;
        font-size: 19px;
        padding-left: 22px;
    }

    .services-button-arrow {
        width: 44px;
        height: 44px;
        font-size: 42px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .services-section {
        padding-left: 14px;
        padding-right: 14px;
        margin-top: 60px;
    }

    .services-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .service-card {
        min-height: 330px;
        padding: 35px 28px;
        border-radius: 32px;
    }

    .service-icon {
        width: 72px;
        height: 72px;
    }

    .service-icon img {
        width: 72px;
        height: 72px;
    }

    .service-card .service-title {
        font-size: 26px;
    }

    .service-card .service-description {
        font-size: 14px;
    }

    .services-button {
        min-height: 62px;
        font-size: 17px;
        padding-left: 19px;
    }

    .services-button-arrow {
        width: 42px;
        height: 42px;
        font-size: 40px;
    }
}