/* =========================================================
   CFS GROUP
   OUR SERVICES SECTION
   File: css/cfs-services.css
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.cfs-services-section {
    position: relative;
    width: 100%;
    padding: 105px 0;
    background: #f7f9fc;
    overflow: hidden;
}

.cfs-services-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    border: 1px solid rgba(6, 21, 47, 0.04);
    border-radius: 50%;
    box-shadow:
        0 0 0 75px rgba(6, 21, 47, 0.015),
        0 0 0 150px rgba(245, 160, 0, 0.01);
    pointer-events: none;
}

.cfs-services-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -190px;
    left: -190px;
    border: 1px solid rgba(245, 160, 0, 0.04);
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.cfs-services-container {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 50px));
    margin: 0 auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.cfs-services-heading {
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
}

.cfs-services-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--cfs-gold-dark);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.cfs-services-label i {
    font-size: 13px;
}

.cfs-services-heading h2 {
    margin: 0 0 18px;
    color: var(--cfs-navy);
    font-size: clamp(36px, 3.6vw, 48px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.cfs-services-heading h2 span {
    display: block;
    color: var(--cfs-gold-dark);
}

.cfs-services-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #687386;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}


/* =========================================================
   SERVICES GRID
   ========================================================= */

.cfs-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* =========================================================
   SERVICE CARD
   ========================================================= */

.cfs-service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(6, 21, 47, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.cfs-service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 160, 0, 0.35);
    box-shadow: 0 18px 42px rgba(6, 21, 47, 0.11);
}


/* =========================================================
   SERVICE IMAGE
   ========================================================= */

.cfs-service-image {
    position: relative;
    width: 100%;
    height: 225px;
    overflow: hidden;
    background: #06152f;
}

.cfs-service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(6, 21, 47, 0.02) 35%,
            rgba(6, 21, 47, 0.40) 100%
        );
    pointer-events: none;
}

.cfs-service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cfs-service-card:hover .cfs-service-image img {
    transform: scale(1.05);
}


/* =========================================================
   SERVICE NUMBER
   ========================================================= */

.cfs-service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;

    min-width: 42px;
    height: 34px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 4px;

    background: rgba(6, 21, 47, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   SERVICE CONTENT
   ========================================================= */

.cfs-service-content {
    position: relative;
    padding: 28px 27px 27px;
}

.cfs-service-icon {
    position: absolute;
    top: -25px;
    left: 27px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 4px solid #ffffff;
    border-radius: 6px;

    background: var(--cfs-gold);
    color: var(--cfs-navy);

    font-size: 18px;

    box-shadow: 0 8px 20px rgba(6, 21, 47, 0.14);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.cfs-service-card:hover .cfs-service-icon {
    background: var(--cfs-navy);
    color: var(--cfs-gold);
    transform: translateY(-2px);
}


/* =========================================================
   SERVICE TITLE
   ========================================================= */

.cfs-service-content h3 {
    margin: 7px 0 11px;

    color: var(--cfs-navy);

    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================================
   SERVICE DESCRIPTION
   ========================================================= */

.cfs-service-content p {
    min-height: 105px;
    margin: 0 0 21px;

    color: #697587;

    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
}


/* =========================================================
   SERVICE LINK
   ========================================================= */

.cfs-service-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--cfs-navy);

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.cfs-service-link i {
    color: var(--cfs-gold-dark);
    font-size: 11px;
    transition: transform 0.25s ease;
}

.cfs-service-link:hover {
    color: var(--cfs-gold-dark);
    gap: 13px;
}

.cfs-service-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.cfs-services-bottom {
    margin-top: 35px;
    padding: 23px 27px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background:
        linear-gradient(
            105deg,
            var(--cfs-navy-dark),
            var(--cfs-navy-light)
        );

    border-radius: 7px;

    box-shadow:
        0 15px 40px rgba(6, 21, 47, 0.12);
}

.cfs-services-bottom-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cfs-services-bottom-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 160, 0, 0.13);
    color: var(--cfs-gold);

    font-size: 18px;
}

.cfs-services-bottom-content h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}

.cfs-services-bottom-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;
    line-height: 1.6;
}

.cfs-services-bottom-btn {
    min-height: 48px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex-shrink: 0;

    border-radius: 4px;

    background: var(--cfs-gold);
    color: var(--cfs-navy);

    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.cfs-services-bottom-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.cfs-services-bottom-btn:hover {
    transform: translateY(-2px);
    background: var(--cfs-gold-light);
}

.cfs-services-bottom-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   LARGE LAPTOP
   ========================================================= */

@media (max-width: 1250px) {

    .cfs-services-container {
        width: calc(100% - 40px);
    }

    .cfs-services-grid {
        gap: 20px;
    }

    .cfs-service-content {
        padding-left: 23px;
        padding-right: 23px;
    }

    .cfs-service-icon {
        left: 23px;
    }
}


/* =========================================================
   MEDIUM LAPTOP
   ========================================================= */

@media (max-width: 1050px) {

    .cfs-services-section {
        padding: 85px 0;
    }

    .cfs-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfs-service-image {
        height: 230px;
    }

    .cfs-service-content p {
        min-height: 95px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .cfs-services-section {
        padding: 75px 0;
    }

    .cfs-services-container {
        width: calc(100% - 30px);
    }

    .cfs-services-heading {
        margin-bottom: 45px;
    }

    .cfs-services-heading h2 {
        font-size: 36px;
    }

    .cfs-services-heading p {
        font-size: 15px;
    }

    .cfs-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cfs-service-image {
        height: 205px;
    }

    .cfs-service-content {
        padding: 28px 20px 23px;
    }

    .cfs-service-icon {
        left: 20px;
    }

    .cfs-service-content h3 {
        font-size: 18px;
    }

    .cfs-service-content p {
        min-height: 125px;
        font-size: 13px;
    }

    .cfs-service-link {
        font-size: 13px;
    }

    .cfs-services-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cfs-services-bottom-btn {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cfs-services-section {
        padding: 65px 0;
    }

    .cfs-services-container {
        width: calc(100% - 28px);
    }

    .cfs-services-heading {
        margin-bottom: 35px;
    }

    .cfs-services-label {
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .cfs-services-heading h2 {
        margin-bottom: 15px;
        font-size: 31px;
        line-height: 1.22;
    }

    .cfs-services-heading p {
        font-size: 14px;
        line-height: 1.8;
    }

    .cfs-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cfs-service-image {
        height: 220px;
    }

    .cfs-service-content {
        padding: 29px 21px 25px;
    }

    .cfs-service-icon {
        left: 21px;
    }

    .cfs-service-content h3 {
        font-size: 20px;
    }

    .cfs-service-content p {
        min-height: auto;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.75;
    }

    .cfs-service-link {
        font-size: 14px;

    }

    .cfs-services-bottom {
        margin-top: 20px;
        padding: 21px;
        gap: 18px;
    }

    .cfs-services-bottom-content {
        align-items: flex-start;
    }

    .cfs-services-bottom-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 16px;
    }

    .cfs-services-bottom-content h3 {
        font-size: 16px;
    }

    .cfs-services-bottom-content p {
        font-size: 12px;
        line-height: 1.7;
    }

    .cfs-services-bottom-btn {
        min-height: 49px;
        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .cfs-services-container {
        width: calc(100% - 22px);
    }

    .cfs-services-section {
        padding: 55px 0;
    }

    .cfs-services-heading h2 {
        font-size: 29px;
    }

    .cfs-services-heading p {
        font-size: 13.5px;
    }

    .cfs-service-image {
        height: 205px;
    }

    .cfs-service-content h3 {
        font-size: 19px;
    }

    .cfs-service-content p {
        font-size: 13.5px;
    }

    .cfs-services-bottom {
        padding: 18px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 340px) {

    .cfs-services-heading h2 {
        font-size: 27px;
    }

    .cfs-service-image {
        height: 190px;
    }

    .cfs-service-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cfs-service-icon {
        left: 18px;
    }

    .cfs-service-content p {
        font-size: 13px;
    }

    .cfs-service-link {
        font-size: 13px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cfs-service-card,
    .cfs-service-image img,
    .cfs-service-icon,
    .cfs-service-link,
    .cfs-services-bottom-btn {
        transition: none !important;
    }
}