﻿/* =============================================================
   Clean Crew Jamaica
   Homepage

   Homepage-specific sections only.
   Shared site styles belong in ccj-core.css.
   Header styles belong in ccj-header.css.
   Footer styles belong in ccj-footer.css.
   ============================================================= */


/* =============================================================
   Hero
   ============================================================= */

.ccj-hero {
    position: relative;
    min-height: 920px;
    overflow: visible;
    padding-top: 82px;
    padding-bottom: 180px;
    background: linear-gradient(90deg, rgba(0, 12, 35, 0.76) 0%, rgba(0, 12, 35, 0.62) 38%, rgba(0, 12, 35, 0.34) 68%, rgba(0, 12, 35, 0.18) 100%), url("../images/ccj-truck-scene.png") right center / cover no-repeat;
}

.ccj-hero-content {
    position: relative;
    z-index: 3;
    width: min(1700px, calc(100% - 120px));
    margin: 0 auto;
    padding-top: 125px;
    padding-bottom: 140px;
}

.ccj-hero-copy {
    max-width: 650px;
}

    .ccj-hero-copy h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(52px, 5.4vw, 86px);
        line-height: 1.05;
        letter-spacing: -0.06em;
        font-weight: 900;
    }

        .ccj-hero-copy h1 span {
            color: #4f8cff;
        }

    .ccj-hero-copy p {
        max-width: 540px;
        margin: 34px 0 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 20px;
        line-height: 1.65;
        font-weight: 500;
    }

.ccj-hero-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}


/* =============================================================
   Legacy Trusted Area
   ============================================================= */

/*
 * These styles are retained temporarily in case the existing homepage
 * still contains the old trusted-logo markup during the CSS transition.
 * They can be removed once the old markup is confirmed gone.
 */
.ccj-trusted {
    margin-top: 70px;
}

    .ccj-trusted span {
        display: block;
        margin-bottom: 22px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 14px;
        font-weight: 600;
    }

.ccj-trusted-logos {
    display: flex;
    align-items: center;
    gap: 46px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}


/* =============================================================
   Value Bar
   ============================================================= */

.ccj-value-bar {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: -70px;
    width: min(1660px, calc(100% - 120px));
    min-height: 142px;
    padding: 26px 42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--ccj-shadow);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.ccj-value-item {
    min-height: 76px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-right: 1px solid var(--ccj-border);
}

    .ccj-value-item:last-child {
        border-right: 0;
    }

    .ccj-value-item i {
        width: 54px;
        height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--ccj-blue);
        font-size: 34px;
        flex: 0 0 auto;
    }

    .ccj-value-item:nth-child(3) i {
        color: #0d8f4f;
    }

    .ccj-value-item:nth-child(4) i {
        color: #6d28d9;
    }

    .ccj-value-item strong {
        display: block;
        margin-bottom: 8px;
        color: #0b1b38;
        font-size: 18px;
        font-weight: 900;
    }

    .ccj-value-item span {
        display: block;
        color: var(--ccj-muted);
        font-size: 15px;
        font-weight: 500;
    }


/* =============================================================
   Services
   ============================================================= */

.ccj-services-section {
    position: relative;
    z-index: 2;
    padding: 150px 0 110px;
    background: radial-gradient(circle at top center, rgba(0, 87, 231, 0.08), rgba(255, 255, 255, 0) 35%), #ffffff;
}

.ccj-service-grid {
    width: min(1250px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.ccj-service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .ccj-service-card-link:hover,
    .ccj-service-card-link:focus {
        color: inherit;
        text-decoration: none;
    }

    .ccj-service-card-link:focus-visible {
        outline: 3px solid rgba(0, 87, 231, 0.35);
        outline-offset: 6px;
        border-radius: 20px;
    }

    .ccj-service-card-link .ccj-service-card {
        height: 100%;
    }

.ccj-service-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(10, 31, 68, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 80px rgba(10, 31, 68, 0.17);
    }

    .ccj-service-card img {
        width: 100%;
        height: 255px;
        display: block;
        object-fit: cover;
    }

.ccj-card-icon {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 22px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b1b38;
    font-size: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 35px rgba(10, 31, 68, 0.16);
    backdrop-filter: blur(12px);
}

.ccj-service-card-body {
    padding: 24px 26px 28px;
}

    .ccj-service-card-body h3 {
        margin: 0 0 10px;
        color: #071a3d;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.025em;
    }

    .ccj-service-card-body p {
        margin: 0;
        color: var(--ccj-muted);
        font-size: 15px;
        line-height: 1.55;
        font-weight: 500;
    }


/* =============================================================
   Why Choose Clean Crew
   ============================================================= */

.ccj-why-section {
    padding: 110px 0;
    background: var(--ccj-soft);
}

.ccj-why-container {
    width: min(1450px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.ccj-why-copy span,
.ccj-cta-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--ccj-blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ccj-why-copy h2,
.ccj-cta-card h2 {
    margin: 0;
    color: #071a3d;
    font-size: clamp(34px, 3.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.ccj-why-copy p,
.ccj-cta-card p {
    margin: 24px 0 0;
    color: var(--ccj-muted);
    font-size: 18px;
    line-height: 1.65;
    font-weight: 500;
}

.ccj-why-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: var(--ccj-blue);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.ccj-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ccj-why-card {
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(10, 31, 68, 0.08);
}

    .ccj-why-card i {
        width: 58px;
        height: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        color: var(--ccj-blue);
        font-size: 30px;
        border-radius: 18px;
        background: rgba(0, 87, 231, 0.08);
    }

    .ccj-why-card h3 {
        margin: 0 0 10px;
        color: #071a3d;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.025em;
    }

    .ccj-why-card p {
        margin: 0;
        color: var(--ccj-muted);
        font-size: 15px;
        line-height: 1.55;
        font-weight: 500;
    }


/* =============================================================
   Video Gallery
   ============================================================= */

.ccj-video-section {
    padding: 110px 0;
    background: #fffdf5;
}

.ccj-video-container {
    width: min(1250px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.ccj-video-copy > span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ccj-blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ccj-video-copy h2 {
    margin: 0;
    color: #071a3d;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ccj-video-copy p {
    margin: 24px 0 0;
    color: #5e6d84;
    font-size: 18px;
    line-height: 1.75;
}

.ccj-video-gallery {
    min-width: 0;
}

/*
 * Main active video player.
 * Only one YouTube iframe is loaded at a time.
 */
.ccj-video-frame {
    overflow: hidden;
    border-radius: 24px;
    background: var(--ccj-navy);
    box-shadow: 0 24px 60px rgba(10, 31, 68, 0.16);
}

    .ccj-video-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/*
 * Video thumbnail selector shown beneath the main player.
 */
.ccj-video-thumbnails {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ccj-video-thumbnail {
    position: relative;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 16 / 9;
    border: 3px solid transparent;
    border-radius: 14px;
    background: var(--ccj-navy);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(10, 31, 68, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-video-thumbnail:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 34px rgba(10, 31, 68, 0.17);
    }

    .ccj-video-thumbnail:focus-visible {
        outline: 3px solid rgba(0, 87, 231, 0.35);
        outline-offset: 4px;
    }

    .ccj-video-thumbnail.active {
        border-color: var(--ccj-blue);
        box-shadow: 0 14px 34px rgba(0, 87, 231, 0.18);
    }

    .ccj-video-thumbnail img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

    .ccj-video-thumbnail:hover img {
        transform: scale(1.04);
    }

    /*
 * Soft overlay keeps the play icon visible against
 * light and dark YouTube thumbnail images.
 */
    .ccj-video-thumbnail::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(6, 26, 64, 0.18);
        transition: background-color 0.2s ease;
    }

    .ccj-video-thumbnail:hover::after,
    .ccj-video-thumbnail.active::after {
        background: rgba(6, 26, 64, 0.05);
    }

.ccj-video-play-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    border-radius: 999px;
    background: rgba(6, 26, 64, 0.84);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ccj-video-thumbnail:hover .ccj-video-play-icon {
    background: var(--ccj-blue);
    transform: translate(-50%, -50%) scale(1.08);
}

.ccj-video-thumbnail.active .ccj-video-play-icon {
    background: var(--ccj-blue);
}


/* =============================================================
   Who We Serve
   ============================================================= */

.ccj-audience-section {
    padding: 105px 0;
    background: #ffffff;
}

.ccj-audience-grid {
    width: min(1100px, calc(100% - 120px));
    margin: 42px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.ccj-audience-pill {
    padding: 18px 26px;
    color: #071a3d;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    background: var(--ccj-soft);
    border: 1px solid rgba(10, 31, 68, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .ccj-audience-pill:hover,
    .ccj-audience-pill:focus {
        color: var(--ccj-blue);
        text-decoration: none;
        background: #ffffff;
        border-color: rgba(0, 87, 231, 0.22);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(10, 31, 68, 0.1);
    }


/* =============================================================
   Homepage Testimonials
   ============================================================= */

.ccj-testimonials-section {
    padding: 110px 0;
    background: #ffffff;
}

.ccj-testimonials-carousel {
    width: min(980px, calc(100% - 120px));
    margin: 44px auto 0;
    padding-bottom: 58px;
}

.ccj-testimonial-card {
    min-height: 360px;
    padding: 58px;
    text-align: center;
    border-radius: 34px;
    background: var(--ccj-soft);
    box-shadow: 0 24px 70px rgba(10, 31, 68, 0.1);
}

    .ccj-testimonial-card i {
        display: inline-flex;
        margin-bottom: 22px;
        color: var(--ccj-red);
        font-size: 44px;
    }

    .ccj-testimonial-card p {
        max-width: 740px;
        margin: 0 auto;
        color: #24314f;
        font-size: 24px;
        line-height: 1.55;
        font-weight: 700;
    }

    .ccj-testimonial-card h3 {
        margin: 30px 0 6px;
        color: #071a3d;
        font-size: 20px;
        font-weight: 900;
    }

    .ccj-testimonial-card span {
        color: var(--ccj-muted);
        font-size: 15px;
        font-weight: 700;
    }

.ccj-testimonials-carousel .carousel-control-prev,
.ccj-testimonials-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    border-radius: 999px;
    background: var(--ccj-navy);
    opacity: 1;
    transform: translateY(-50%);
}

.ccj-testimonials-carousel .carousel-control-prev {
    left: -24px;
}

.ccj-testimonials-carousel .carousel-control-next {
    right: -24px;
}

.ccj-testimonials-carousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

    .ccj-testimonials-carousel .carousel-indicators button {
        width: 28px;
        height: 4px;
        border-radius: 999px;
        background-color: var(--ccj-blue);
    }

.ccj-testimonials-more {
    margin-top: 32px;
    text-align: center;
}


/* =============================================================
   Closing Call to Action
   ============================================================= */

.ccj-cta-section {
    padding: 0 0 110px;
    background: #ffffff;
}

.ccj-cta-card {
    width: min(1450px, calc(100% - 120px));
    margin: 0 auto;
    padding: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    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-cta-card span,
    .ccj-cta-card h2,
    .ccj-cta-card p {
        color: #ffffff;
    }

    .ccj-cta-card p {
        max-width: 620px;
        color: rgba(255, 255, 255, 0.82);
    }

.ccj-cta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}


/* =============================================================
   Homepage Responsive Layout
   ============================================================= */

@media (max-width: 1280px) {
    .ccj-hero-content,
    .ccj-value-bar,
    .ccj-service-grid {
        width: min(100% - 48px, 1180px);
    }

    .ccj-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .ccj-hero {
        min-height: 860px;
        background: linear-gradient(180deg, rgba(0, 12, 35, 0.82) 0%, rgba(0, 12, 35, 0.62) 48%, rgba(0, 12, 35, 0.28) 100%), url("../images/ccj-truck-scene.png") center bottom / cover no-repeat;
    }

    .ccj-hero-content {
        width: calc(100% - 48px);
        padding-top: 90px;
    }

    .ccj-value-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 24px;
    }

    .ccj-value-item {
        padding: 22px;
        border-right: 0;
        border-bottom: 1px solid var(--ccj-border);
    }

        .ccj-value-item:nth-child(3),
        .ccj-value-item:nth-child(4) {
            border-bottom: 0;
        }

    .ccj-why-container,
    .ccj-cta-card {
        width: calc(100% - 48px);
    }

    .ccj-why-container {
        grid-template-columns: 1fr;
    }

    .ccj-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccj-video-container {
        width: min(100% - 80px, 1250px);
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .ccj-hero {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 0;
    }

    .ccj-hero-content {
        width: calc(100% - 32px);
        padding-top: 70px;
        padding-bottom: 420px;
    }

    .ccj-hero-copy h1 {
        font-size: 46px;
    }

    .ccj-hero-copy p {
        font-size: 17px;
    }

    .ccj-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ccj-primary-btn,
    .ccj-secondary-btn {
        width: 100%;
    }

    .ccj-trusted {
        display: none;
    }

    .ccj-value-bar {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 32px);
        margin: -24px auto 0;
        grid-template-columns: 1fr;
        transform: none;
        border-radius: 22px;
    }

    .ccj-value-item {
        padding: 20px 8px;
        border-bottom: 1px solid var(--ccj-border);
    }

        .ccj-value-item:nth-child(3) {
            border-bottom: 1px solid var(--ccj-border);
        }

        .ccj-value-item:last-child {
            border-bottom: 0;
        }

    .ccj-services-section {
        padding: 70px 0 80px;
    }

    .ccj-service-grid {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
    }

    .ccj-why-section,
    .ccj-audience-section {
        padding: 72px 0;
    }

    .ccj-why-container,
    .ccj-audience-grid,
    .ccj-cta-card {
        width: calc(100% - 32px);
    }

    .ccj-why-grid {
        grid-template-columns: 1fr;
    }

    .ccj-video-section {
        padding: 75px 0;
    }

    .ccj-video-container {
        width: calc(100% - 40px);
    }

    .ccj-video-thumbnails {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ccj-video-thumbnail {
        border-radius: 12px;
    }

    .ccj-video-play-icon {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .ccj-testimonials-section {
        padding: 72px 0;
    }

    .ccj-testimonials-carousel {
        width: calc(100% - 32px);
    }

    .ccj-testimonial-card {
        min-height: auto;
        padding: 38px 24px;
    }

        .ccj-testimonial-card p {
            font-size: 19px;
        }

    .ccj-testimonials-carousel .carousel-control-prev,
    .ccj-testimonials-carousel .carousel-control-next {
        display: none;
    }

    .ccj-cta-card {
        padding: 38px 26px;
        border-radius: 26px;
    }

    .ccj-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}
