/* =========================================================
   OUR CALIBRATION SERVICES
========================================================= */

.calibration-services-section {

    position: relative;

    padding: 30px 0;

    background: var(--primary);

    overflow: hidden;
}


/* =========================================================
   TECHNICAL GRID
========================================================= */

.calibration-grid {

    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:

        linear-gradient(
            rgba(255,255,255,.5) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.5) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

}


/* =========================================================
   BACKGROUND ICONS
========================================================= */

.calibration-bg-icons {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}


.calibration-bg-icon {

    position: absolute;

    color: var(--white);

    opacity: .055;

    font-size: 120px;

}


/* Ruler */

.icon-ruler {

    top: 8%;

    left: 2%;

    font-size: 150px;

    transform: rotate(-20deg);

}


/* Speedometer */

.icon-speed {

    top: 15%;

    right: 3%;

    font-size: 140px;

    animation:
        serviceFloat 6s ease-in-out infinite;

}


/* Thermal */

.icon-thermal {

    bottom: 5%;

    left: 4%;

    font-size: 130px;

}


/* Electrical */

.icon-electrical {

    bottom: 15%;

    right: 8%;

    font-size: 110px;

    animation:
        servicePulse 4s ease-in-out infinite;

}


/* Gear */

.icon-gear {

    top: 45%;

    left: 17%;

    font-size: 90px;

    animation:
        serviceRotate 25s linear infinite;

}


/* Tools */

.icon-tools {

    bottom: 25%;

    right: 25%;

    font-size: 80px;

}


/* =========================================================
   HEADING
========================================================= */

.calibration-heading {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 0 auto 60px;

    text-align: center;

}


.calibration-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 18px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.calibration-label span {

    width: 42px;

    height: 2px;

    background: var(--white);

    border-radius: 5px;

}


.calibration-heading h2 {

    margin: 0 0 18px;

    font-size:
        clamp(35px, 4vw, 52px);

    line-height: 1.1;

    font-weight: 700;

}


.calibration-heading h2 strong {

    display: block;

    color: var(--white);

    font-weight: 800;

}


.calibration-heading p {

    max-width: 680px;

    margin: auto;

    color:
        rgba(255,255,255,.75);

    font-size: 14px;

    line-height: 1.9;

}


/* =========================================================
   SERVICE CARD
========================================================= */

.calibration-service-card {

    position: relative;

    height: 100%;

    background: var(--white);

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.5);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.calibration-service-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   SERVICE IMAGE
========================================================= */

.service-image {

    position: relative;

    height: 190px;

    overflow: hidden;

}


.service-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .7s ease;

}


.calibration-service-card:hover
.service-image img {

    transform:
        scale(1.08);

}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.service-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 40%,
            rgba(1, 87, 146, 0.65)
        );

}


.service-image-overlay {

    position: absolute;

    z-index: 2;

    left: 18px;

    bottom: 18px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.95);

    color: var(--primary);

    border-radius: 10px;

    font-size: 21px;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.2);

}


/* =========================================================
   CONTENT
========================================================= */

.service-content {

    position: relative;

    padding: 24px 22px 25px;

}


/* =========================================================
   SERVICE ICON
========================================================= */

.service-icon {

    position: absolute;

    right: 20px;

    top: -24px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: var(--white);

    border:
        4px solid
        var(--white);

    border-radius: 50%;

    font-size: 18px;

    transition: var(--transition);

}


.calibration-service-card:hover
.service-icon {

    transform:
        rotate(12deg)
        scale(1.08);

}


/* =========================================================
   SERVICE TITLE
========================================================= */

.service-content h3 {

    margin: 0 0 10px;

    padding-right: 40px;

    color: var(--black);

    font-size: 18px;

    font-weight: 800;

    line-height: 1.3;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.service-content > p {

    min-height: 66px;

    margin: 0 0 5px;

    color: var(--text);

    font-size: 11px;

    line-height: 1.7;

}


/* =========================================================
   SERVICE LIST
========================================================= */

.service-list {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 18px;

    padding-top: 14px;

    border-top:
        1px solid
        var(--border);

}


.service-list span {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--text);

    font-size: 10px;

}


.service-list i {

    color: var(--primary);

    font-size: 13px;

}


/* =========================================================
   SERVICE LINK
========================================================= */

.service-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    transition: var(--transition);

}


.service-link i {

    transition: var(--transition);

}


.service-link:hover {

    color: var(--primary-dark);

}


.service-link:hover i {

    transform:
        translateX(5px);

}


/* =========================================================
   BOTTOM CTA
========================================================= */

.calibration-bottom {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 50px;

    padding: 20px 24px;

    background:
        rgba(255,255,255,.09);

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 12px;

    backdrop-filter:
        blur(8px);

}


.bottom-icon {

    flex-shrink: 0;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--white);

    color: var(--primary);

    border-radius: 50%;

    font-size: 20px;

}


.bottom-text {

    flex: 1;

}


.bottom-text strong {

    display: block;

    margin-bottom: 4px;

    color: var(--white);

    font-size: 14px;

}


.bottom-text span {

    color:
        rgba(255,255,255,.65);

    font-size: 10px;

}


.calibration-cta {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    padding: 12px 20px;

    background: var(--white);

    color: var(--primary);

    text-decoration: none;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 800;

    transition: var(--transition);

}


.calibration-cta i {

    transition: var(--transition);

}


.calibration-cta:hover {

    color: var(--primary-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.2);

}


.calibration-cta:hover i {

    transform:
        translateX(5px);

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes serviceFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-12px);

    }

}


@keyframes servicePulse {

    0%,
    100% {

        opacity: .04;

        transform:
            scale(1);

    }

    50% {

        opacity: .09;

        transform:
            scale(1.08);

    }

}


@keyframes serviceRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .calibration-services-section {

        padding: 85px 0;

    }


    .calibration-heading {

        margin-bottom: 45px;

    }


    .service-image {

        height: 180px;

    }


    .calibration-bottom {

        margin-top: 40px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .calibration-services-section {

        padding: 65px 0;

    }


    .calibration-heading h2 {

        font-size: 32px;

    }


    .calibration-heading p {

        font-size: 12px;

    }


    .calibration-label {

        font-size: 10px;

        letter-spacing: 1.8px;

    }


    .calibration-label span {

        width: 25px;

    }


    .service-image {

        height: 200px;

    }


    .service-content {

        padding: 23px 20px;

    }


    .calibration-bottom {

        flex-direction: column;

        align-items: flex-start;

        padding: 18px;

    }


    .calibration-cta {

        width: 100%;

        justify-content: center;

    }


    .calibration-bg-icon {

        font-size: 65px;

    }

}