/* WPCode 71685 — CT- Home Page Styling */
/* =========================================
   CLASSIC TRANSFERS – HOMEPAGE TESTIMONIALS
   ========================================= */

/* Full-width grey background */
.ct-home-testimonials {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background: #f5f5f5 !important;

    padding: 75px 30px 85px !important;
    box-sizing: border-box !important;
}

/* Keep inner content centred */
.ct-home-testimonials > .wp-block-group {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Testimonial card grid */
.ct-home-testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;

    max-width: 1100px !important;
    margin: 55px auto 0 !important;

    align-items: stretch !important;
}

/* Individual cards */
.ct-home-testimonials-grid > .wp-block-group {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;

    padding: 35px 25px !important;

    border-radius: 14px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    text-align: center !important;
}

/* Consistent image dimensions */
.ct-home-testimonials-grid .wp-block-image img {
    width: 135px !important;
    height: 135px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}

/* Customer names */
.ct-home-testimonials-grid h4 {
    margin: 16px 0 4px !important;
}

/* Paragraph spacing */
.ct-home-testimonials-grid p {
    margin-top: 8px !important;
    line-height: 1.6 !important;
}

/* Tablet */
@media (max-width: 1000px) {
    .ct-home-testimonials {
        padding: 60px 25px !important;
    }

    .ct-home-testimonials-grid {
        gap: 20px !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .ct-home-testimonials {
        padding: 45px 20px !important;
    }

    .ct-home-testimonials-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px !important;
        margin-top: 35px !important;
        gap: 20px !important;
    }
}
/* HOMEPAGE TESTIMONIALS – WHITE BACKGROUND */

.ct-home-testimonials {
    background: #ffffff !important;
    background-color: #ffffff !important;
}
/* =========================================
   HOMEPAGE TESTIMONIALS – HOVER LIFT
   ========================================= */

@media (min-width: 781px) {

    .ct-home-testimonials-grid > .wp-block-group {
        transition: transform 0.25s ease !important;
        box-shadow: none !important;
    }

    .ct-home-testimonials-grid > .wp-block-group:hover {
        transform: translateY(-6px) !important;
        box-shadow: none !important;
    }

}
/* =========================================
   HOMEPAGE TESTIMONIAL CAROUSEL
   ========================================= */

/* Outer carousel wrapper */
.ct-home-testimonials-carousel {
    position: relative;
    max-width: 1100px;
    margin: 55px auto 0;
    padding: 0 45px;
    box-sizing: border-box;
}

/* Visible carousel window */
.ct-home-testimonials-viewport {
    overflow: hidden;
    padding: 8px 0 12px;
}

/* Horizontal sliding track */
.ct-home-testimonials-grid.ct-carousel-ready {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 25px !important;
    max-width: none !important;
    margin: 0 !important;
    align-items: stretch !important;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Three cards on desktop */
.ct-home-testimonials-grid.ct-carousel-ready > .wp-block-group {
    flex: 0 0 calc((100% - 50px) / 3) !important;
    width: calc((100% - 50px) / 3) !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
}

/* Navigation arrows */
.ct-testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid #d8ddda;
    border-radius: 50%;
    background: #ffffff;
    color: #007a50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-testimonial-arrow:hover {
    border-color: #007a50;
    background: #f5f8f6;
}

.ct-testimonial-prev {
    left: 0;
}

.ct-testimonial-next {
    right: 0;
}

.ct-testimonial-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Tablet – two cards */
@media (max-width: 1000px) {
    .ct-home-testimonials-grid.ct-carousel-ready > .wp-block-group {
        flex-basis: calc((100% - 25px) / 2) !important;
        width: calc((100% - 25px) / 2) !important;
    }
}

/* Mobile – one card */
@media (max-width: 700px) {
    .ct-home-testimonials-carousel {
        padding: 0 38px;
        margin-top: 35px;
    }

    .ct-home-testimonials-grid.ct-carousel-ready > .wp-block-group {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .ct-testimonial-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-home-testimonials-grid.ct-carousel-ready {
        transition: none;
    }
}
/* =========================================
   CLASSIC TRANSFERS – HOMEPAGE COUNTERS
   ========================================= */

/* Full-width green section */
.ct-home-counter {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background: #007a50 !important;
    padding: 75px 30px !important;
    box-sizing: border-box !important;
}

/* Four statistics in one horizontal row */
@media (min-width: 1001px) {

    .ct-home-counter .wp-block-columns,
    .ct-home-counter .wp-block-grid,
    .ct-home-counter .wp-block-group.is-layout-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 30px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        align-items: center !important;
    }

    .ct-home-counter .wp-block-column {
        min-width: 0 !important;
        margin: 0 !important;
    }
}

/* Centre all statistics */
.ct-home-counter h2,
.ct-home-counter h3,
.ct-home-counter h4,
.ct-home-counter p {
    text-align: center !important;
    color: #ffffff !important;
}

/* Number styling */
.ct-home-counter h2,
.ct-home-counter h3 {
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
}

/* Tablet – two columns */
@media (min-width: 601px) and (max-width: 1000px) {

    .ct-home-counter .wp-block-columns,
    .ct-home-counter .wp-block-grid,
    .ct-home-counter .wp-block-group.is-layout-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 35px !important;
    }
}

/* Mobile – stacked */
@media (max-width: 600px) {

    .ct-home-counter {
        padding: 45px 20px !important;
    }

    .ct-home-counter .wp-block-columns,
    .ct-home-counter .wp-block-grid,
    .ct-home-counter .wp-block-group.is-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}
/* HOMEPAGE HERO HEADING – ALIGN LEFT */

.ct-home-hero-title {
    width: 500px !important;
    max-width: 500px !important;

    margin-left: 0 !important;
    margin-right: auto !important;

    position: relative !important;
    left: 0 !important;
    transform: none !important;

    text-align: left !important;
    font-size: 46px !important;
    line-height: 1.12 !important;
    letter-spacing: -1px;
}

/* Prevent WordPress from centring the heading */
.wp-block-cover .ct-home-hero-title {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}
/* HOMEPAGE HERO – CONTENT POSITION */

/* HOMEPAGE HERO – MOVE TEXT GROUP RIGHT */

@media (min-width: 1200px) {
    .ct-home-hero-content {
        position: relative !important;
        left: 170px !important;
        padding-left: 0 !important;
        width: calc(100% - 170px) !important;
        box-sizing: border-box !important;
    }
}
/* =========================================
   HOMEPAGE – MOBILE HERO
   ========================================= */

@media (max-width: 767px) {

    .ct-home-hero-banner {
        position: relative !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 0 300px !important;

        background-position: center bottom !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }

    .ct-home-hero-banner .ct-home-hero-content {
        position: relative !important;
        z-index: 2 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 35px 22px 25px !important;

        box-sizing: border-box !important;
        text-align: left !important;
    }

    .ct-home-hero-banner .ct-home-hero-title {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 34px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.7px !important;
        margin: 15px 0 20px !important;
        text-align: left !important;
    }

    .ct-home-hero-banner .ct-home-hero-content p {
        max-width: 100% !important;
        line-height: 1.6 !important;
    }

    .ct-home-hero-banner .wp-block-buttons {
        margin-top: 22px !important;
    }
}
/* =========================================
   HOMEPAGE – MOBILE COVER IMAGE FIX
   ========================================= */

@media (max-width: 767px) {

    /* Cover banner */
    .ct-home-hero-banner.wp-block-cover {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 0 0 280px !important;
        overflow: hidden !important;

        background-color: #edf0f3 !important;
    }

    /* Actual WordPress Cover background image */
    .ct-home-hero-banner.wp-block-cover
    > .wp-block-cover__image-background {
        object-fit: contain !important;
        object-position: center bottom !important;

        width: 100% !important;
        height: 280px !important;

        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Text stays above the image */
    .ct-home-hero-banner.wp-block-cover
    > .wp-block-cover__inner-container {
        position: relative !important;
        z-index: 2 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 35px 22px 15px !important;

        box-sizing: border-box !important;
    }

    /* Prevent desktop positioning affecting mobile */
    .ct-home-hero-banner .ct-home-hero-content {
        position: relative !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        padding: 0 !important;
        margin: 0 !important;
    }

    /* Heading */
    .ct-home-hero-banner .ct-home-hero-title {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 30px !important;
        line-height: 1.15 !important;
        margin: 15px 0 20px !important;
    }
}
/* HOMEPAGE MOBILE – ENLARGE & POSITION ARTWORK */

@media (max-width: 767px) {

    .ct-home-hero-banner.wp-block-cover
    > .wp-block-cover__image-background {

        width: 220% !important;
        max-width: none !important;

        height: 320px !important;

        left: -90% !important;
        right: auto !important;

        top: auto !important;
        bottom: 0 !important;

        object-fit: contain !important;
        object-position: center bottom !important;
    }

    .ct-home-hero-banner.wp-block-cover {
        padding-bottom: 320px !important;
    }
}
/* =========================================
   HOMEPAGE COUNTERS – MOBILE 2 x 2
   ========================================= */

@media (max-width: 700px) {

    /* Outer green section */
    .ct-home-counter {
        padding: 45px 20px !important;
    }

    /* Four groups in a 2 x 2 grid */
    .ct-home-counter .wp-block-group.is-layout-flex,
    .ct-home-counter .wp-block-group.is-layout-grid {
        flex-wrap: wrap;
    }

    .ct-home-counter .wp-block-group > .wp-block-group,
    .ct-home-counter .wp-block-group > .wp-block-columns {
        width: 100%;
    }

    /* Target the Row containing the four groups */
    .ct-home-counter > .wp-block-group,
    .ct-home-counter > .wp-block-group.is-layout-flex,
    .ct-home-counter > .wp-block-group.is-layout-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 35px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Individual counter groups */
    .ct-home-counter > .wp-block-group > .wp-block-group {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Centre numbers and descriptions */
    .ct-home-counter p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* HOMEPAGE TESTIMONIALS – MOBILE SPACING */

@media (max-width: 700px) {

    /* Reduce space beneath the heading section */
    .ct-home-testimonials > .wp-block-group {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Bring testimonial cards closer to heading */
    .ct-home-testimonials-carousel {
        margin-top: 15px !important;
    }

    /* Remove additional grid spacing */
    .ct-home-testimonials-grid {
        margin-top: 0 !important;
    }
}
/* HOMEPAGE BENEFITS – MOBILE VERTICAL PADDING */

@media (max-width: 700px) {

    .ct-home-hero-banner + .wp-block-group {
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }

}
