﻿/* =============================================================
   Clean Crew Jamaica
   Services Page

   Services-page-specific styles only.
   Shared site styles belong in ccj-core.css.
   Header styles belong in ccj-header.css.
   Footer styles belong in ccj-footer.css.
   ============================================================= */


/* =============================================================
   Services Hero
   ============================================================= */

.ccj-services-hero {
    min-height: 560px;
    padding-top: 160px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 12, 35, 0.78), rgba(0, 12, 35, 0.42)), url("../images/service-commercial.png") center / cover no-repeat;
}

.ccj-services-hero-content {
    width: min(1100px, calc(100% - 120px));
    margin: 0 auto;
}

    .ccj-services-hero-content span,
    .ccj-service-detail-copy span,
    .ccj-services-cta-card span {
        display: block;
        margin-bottom: 14px;
        color: #4f8cff;
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .ccj-services-hero-content h1 {
        max-width: 880px;
        margin: 0;
        color: #ffffff;
        font-size: clamp(44px, 5vw, 78px);
        line-height: 1.05;
        letter-spacing: -0.06em;
        font-weight: 900;
    }

    .ccj-services-hero-content p {
        max-width: 650px;
        margin: 28px 0 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 20px;
        line-height: 1.65;
        font-weight: 500;
    }


/* =============================================================
   Service Details
   ============================================================= */

.ccj-services-main {
    padding: 110px 0;
    background: #ffffff;
}

.ccj-services-main-grid {
    width: min(1450px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    gap: 42px;
}

.ccj-service-detail-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    background: var(--ccj-soft);
}

/*
 * Reverses alternating service cards on desktop while allowing the
 * responsive layout to restore the natural document order.
 */
.ccj-service-detail-card-reverse .ccj-service-detail-image {
    order: 2;
}

.ccj-service-detail-image {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(10, 31, 68, 0.14);
}

    .ccj-service-detail-image img {
        width: 100%;
        height: 460px;
        display: block;
        object-fit: cover;
    }

.ccj-service-detail-copy {
    padding: 20px 20px 20px 0;
}

    .ccj-service-detail-copy i {
        width: 62px;
        height: 62px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        color: var(--ccj-blue);
        font-size: 32px;
        border-radius: 20px;
        background: rgba(0, 87, 231, 0.08);
    }

    .ccj-service-detail-copy h2 {
        margin: 0;
        color: #071a3d;
        font-size: clamp(34px, 3.4vw, 54px);
        line-height: 1.08;
        letter-spacing: -0.05em;
        font-weight: 900;
    }

    .ccj-service-detail-copy p {
        margin: 22px 0 0;
        color: var(--ccj-muted);
        font-size: 18px;
        line-height: 1.65;
        font-weight: 500;
    }

    .ccj-service-detail-copy ul {
        margin: 26px 0 0;
        padding: 0;
        list-style: none;
    }

    .ccj-service-detail-copy li {
        position: relative;
        margin-bottom: 13px;
        padding-left: 30px;
        color: #24314f;
        font-size: 16px;
        font-weight: 700;
    }

        .ccj-service-detail-copy li::before {
            content: "\F26E";
            position: absolute;
            left: 0;
            top: 1px;
            color: var(--ccj-red);
            font-family: "bootstrap-icons";
        }


/* =============================================================
   How It Works
   ============================================================= */

.ccj-process-section {
    padding: 110px 0;
    background: var(--ccj-soft);
}

.ccj-process-grid {
    width: min(1450px, calc(100% - 120px));
    margin: 44px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.ccj-process-card {
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(10, 31, 68, 0.08);
}

    .ccj-process-card strong {
        display: block;
        margin-bottom: 26px;
        color: var(--ccj-red);
        font-size: 34px;
        font-weight: 900;
        letter-spacing: -0.05em;
    }

    .ccj-process-card h3 {
        margin: 0 0 12px;
        color: #071a3d;
        font-size: 22px;
        font-weight: 900;
    }

    .ccj-process-card p {
        margin: 0;
        color: var(--ccj-muted);
        font-size: 15px;
        line-height: 1.55;
        font-weight: 500;
    }


/* =============================================================
   Services Call to Action
   ============================================================= */

.ccj-services-cta {
    padding: 110px 0;
    background: #ffffff;
}

.ccj-services-cta-card {
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto;
    padding: 70px;
    text-align: center;
    border-radius: 34px;
    background: linear-gradient(90deg, rgba(6, 26, 64, 0.96), rgba(0, 87, 231, 0.86)), url("../images/ccos-zippy-truck.png") center / cover no-repeat;
    box-shadow: 0 30px 90px rgba(6, 26, 64, 0.24);
}

    .ccj-services-cta-card span {
        color: #ffffff;
    }

    .ccj-services-cta-card h2 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(34px, 3.5vw, 56px);
        line-height: 1.08;
        letter-spacing: -0.05em;
        font-weight: 900;
    }

    .ccj-services-cta-card p {
        max-width: 720px;
        margin: 24px auto 0;
        color: rgba(255, 255, 255, 0.84);
        font-size: 18px;
        line-height: 1.65;
        font-weight: 500;
    }


/* =============================================================
   Services Responsive Layout
   ============================================================= */

@media (max-width: 1024px) {
    .ccj-service-detail-card,
    .ccj-service-detail-card-reverse {
        grid-template-columns: 1fr;
    }

        /*
     * Restores image-first ordering once service cards stack vertically.
     */
        .ccj-service-detail-card-reverse .ccj-service-detail-image {
            order: 0;
        }

    .ccj-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .ccj-services-hero {
        min-height: 520px;
        padding-top: 130px;
    }

    .ccj-services-hero-content,
    .ccj-services-main-grid,
    .ccj-process-grid,
    .ccj-services-cta-card {
        width: calc(100% - 32px);
    }

    .ccj-services-main,
    .ccj-process-section,
    .ccj-services-cta {
        padding: 72px 0;
    }

    .ccj-service-detail-card {
        padding: 18px;
        gap: 30px;
        border-radius: 26px;
    }

    .ccj-service-detail-image img {
        height: 300px;
    }

    .ccj-service-detail-copy {
        padding: 0 8px 16px;
    }

    .ccj-process-grid {
        grid-template-columns: 1fr;
    }

    .ccj-services-cta-card {
        padding: 38px 26px;
        border-radius: 26px;
    }
}
