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

.dws-services-section {
    width: 100%;
    padding: 45px 20px 80px;
    background: #f7f8fa;
    overflow: hidden;
}

.dws-services-container {
    max-width: 1100px;
    margin: auto;
}

/* SECTION HEADING */

.dws-services-heading {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.dws-section-tag {
    display: inline-block;
    color: #0755d9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.dws-services-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    color: #18303F;
    line-height: 1.3;
    margin-bottom: 12px;
}

.dws-services-heading p {
    font-size: 14px;
    color: #667580;
    margin: auto;
    max-width: 750px;
    font-family: system-ui, sans-serif;
    line-height: 1.8;
}

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

.dws-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

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

.dws-service-card {
    position: relative;
    height: 230px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5eaf0;

    box-shadow: 0 4px 15px rgba(24, 48, 63, 0.04);

    transition:
        box-shadow 0.5s ease,
        border-color 0.5s ease,
        transform 0.5s ease;

    isolation: isolate;
    cursor: pointer;
}

/* =========================================
   IMAGE AREA
========================================= */

.dws-service-image {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
    z-index: 2;

    transform: translateY(0);

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

.dws-service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition: transform 0.8s ease;
}

/* IMAGE OVERLAY */

.dws-service-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(10, 29, 42, 0.65),
        rgba(10, 29, 42, 0.02) 70%
    );
}

/* IMAGE NUMBER */

.dws-service-number {
    position: absolute;
    bottom: 18px;
    left: 18px;

    width: 38px;
    height: 38px;

    background: #ffffff;
    color: #18303F;

    border-radius: 8px;

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

    font-size: 13px;
    font-weight: 800;

    z-index: 3;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.dws-image-label {
    position: absolute;
    right: 18px;
    bottom: 29px;

    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;

    z-index: 3;
}

/* =========================================
   CONTENT AREA
========================================= */

.dws-service-content {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    padding: 27px 22px 22px;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;

    z-index: 1;

    transform: translateY(100%);

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

/* CATEGORY */

.dws-service-category {
    display: block;
    color: #0755d9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;

    margin-bottom: 10px;
}

/* TITLE */

.dws-service-content h3 {
    color: #18303F;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;

    margin-bottom: 10px;
}

/* DESCRIPTION */

.dws-service-content p {
    font-size: 12.5px;
    line-height: 1.8;

    color: #71808d;

    margin-bottom: 15px;
}

/* SERVICE LINK */

.dws-service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    text-decoration: none;
    color: #18303F;

    font-size: 12px;
    font-weight: 700;

    transition: color 0.3s ease;
}

.dws-service-link span {
    font-size: 20px;
    color: #0755d9;

    transition: transform 0.3s ease;
}

.dws-service-link:hover {
    color: #0755d9;
}

.dws-service-link:hover span {
    transform: translateX(6px);
}

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

@media (hover: hover) and (pointer: fine) {

    .dws-service-card:hover {
        border-color: #0755d9;

        box-shadow: 0 15px 35px rgba(24, 48, 63, 0.13);

        transform: translateY(-4px);
    }

    /* IMAGE COMPLETELY GOES UP */

    .dws-service-card:hover .dws-service-image {
        transform: translateY(-105%);
    }

    /* IMAGE ZOOM */

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

    /* CONTENT COMES FROM BOTTOM */

    .dws-service-card:hover .dws-service-content {
        transform: translateY(0);
    }
}

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

@media (max-width: 991px) {

    .dws-services-section {
        padding: 55px 22px 65px;
    }

    .dws-services-container {
        max-width: 750px;
    }

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

    .dws-service-card {
        height: 330px;
    }

    .dws-services-heading h1 {
        font-size: 29px;
    }
}

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

@media (max-width: 600px) {

    .dws-services-section {
        padding: 45px 16px 55px;
    }

    .dws-services-heading {
        margin-bottom: 30px;
    }

    .dws-services-heading h1 {
        font-size: 26px;
    }

    .dws-services-heading p {
        font-size: 13px;
    }

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

    .dws-service-card {
        height: 340px;
    }

    .dws-service-content {
        padding: 20px;
    }

    .dws-service-content h3 {
        font-size: 17px;
    }

    .dws-service-content p {
        font-size: 12.5px;
    }
}

/* =========================================
   TOUCH SCREEN DEVICES
========================================= */

@media (hover: none) {

    .dws-service-card {
        height: 350px;
    }

    .dws-service-image {
        height: 42%;
    }

    .dws-service-content {
        height: 58%;
        transform: translateY(0);
        padding: 15px 20px;
    }

    .dws-service-image img {
        transform: none;
    }

    .dws-service-card:hover {
        transform: none;
    }

    .dws-service-card:hover .dws-service-image {
        transform: none;
    }

    .dws-service-card:hover .dws-service-content {
        transform: translateY(0);
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .dws-service-card,
    .dws-service-image,
    .dws-service-image img,
    .dws-service-content {
        transition: none !important;
    }
}

/* =================================
   OUR SERVICES HERO BANNER
================================= */

.dws-services-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #eaf5ff;
}

.dws-banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Desktop */

@media (min-width: 1200px) {
    .dws-services-banner {
        height: auto;
    }

    .dws-banner-image {
        width: 100%;
        height: auto;
    }
}

/* Tablet */

@media (max-width: 991px) {
    .dws-banner-image {
        width: 100%;
        height: auto;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .dws-services-banner {
        width: 100%;
        overflow: hidden;
    }

    .dws-banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
