/* ========== GLOBAL OVERFLOW FIX ========== */
body {
    overflow-x: hidden;
}

/* ========== MODERN HERO SLIDER ========== */
.hero-slider, .trust-section, .commercial-solutions {
    max-width: 969px;
    position: relative;
    width: 100%;
    margin: 0 auto 2rem;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
}

    .hero-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

    .slider-arrow:hover {
        transform: translateY(-50%) scale(1.15);
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

.slider-arrow-prev {
    left: 16px;
}

.slider-arrow-next {
    right: 16px;
}

.slider-arrow svg {
    width: 28px;
    height: 28px;
    fill: #666;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.slider-arrow:hover svg {
    fill: #333;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .slider-dot:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.2);
    }

    .slider-dot.active {
        width: 24px;
        border-radius: 4px;
        background: #333;
    }

.slider-play-pause {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-play-pause i {
        color: #fff;
        font-size: 19px;
        transition: all 0.3s ease;
    }

/* ========== TRUST SECTION CSS ========== */
.trust-section {
    background: radial-gradient(79.9% 110.31% at 86.98% 88.63%, #748FA1 0%, #283A44 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.trust-content {
    padding: 50px;
    color: white;
    display: grid;
    grid-template-columns: 2fr 4fr;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
}

.trust-left-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding-right: 16px;
    grid-row: 1 / 3;
}

.invest-title-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 40px;
}

.awards-image {
    max-width: 100%;
    height: auto;
    opacity: 0.95;
}

.trust-right-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 32px;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.trust-title {
    font-weight: 700;
    color: white;
}

.trust-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
}

.quote-container {
    position: relative;
    min-height: 180px;
    transition: min-height 0.4s ease;
}

.quote-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

    .quote-item.active {
        opacity: 1;
        z-index: 1;
    }

.quote-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

.quote-author {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

.quote-dots {
    display: flex;
    gap: 10px;
}

.quote-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

    .quote-dot:hover {
        background: rgba(255, 255, 255, 0.5);
        transform: scale(1.15);
    }

    .quote-dot.active {
        background: #3498db;
    }

.bottom-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-left: 32px;
}

.heatpump-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.learn-more-btn {
    background: #FE0000;
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
}


    .learn-more-btn:hover {
        background: #C71920;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(227, 30, 36, 0.4);
        text-decoration: none;
        color: white;
    }

    .learn-more-btn:active {
        transform: translateY(0);
    }


/* ========== PRODUCT CARDS ========== */
#residential_range .product-list {
    margin-top: 1rem;
}

    #residential_range .product-list .row {
        row-gap: 1.5rem;
    }

    #residential_range .product-list .card-link {
        text-decoration: none;
        display: block;
        height: 100%;
    }

        #residential_range .product-list .card-link:hover {
            text-decoration: none;
        }

    #residential_range .product-list .product-card-split {
        display: flex;
        background: #fff;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        height: 100%;
        width: 100%;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    #residential_range .product-list .split-image-container {
        width: 45%;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    #residential_range .product-list .split-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
        background: #f8f9fa;
        overflow: hidden;
    }

        #residential_range .product-list .split-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 0.5s ease;
            will-change: transform;
        }

    #residential_range .product-list .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    }

    #residential_range .product-list .split-content {
        width: 55%;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #residential_range .product-list .content-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
    }

    #residential_range .product-list .title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.3;
    }

    #residential_range .product-list .description {
        font-size: 0.9375rem;
        color: #4b5563;
        line-height: 1.5;
        margin: 0;
        flex-grow: 1;
    }

    #residential_range .product-list .learn-more {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #ad974f;
        font-weight: 500;
        font-size: 0.9375rem;
        margin-top: auto;
    }

    #residential_range .product-list .arrow-icon {
        fill: currentColor;
        transition: transform 0.3s ease;
    }

    /* Hover Effects */
    #residential_range .product-list .product-card-split:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    }

        #residential_range .product-list .product-card-split:hover .split-image img {
            transform: scale(1.08);
        }

        #residential_range .product-list .product-card-split:hover .learn-more {
            color: #911313;
        }

        #residential_range .product-list .product-card-split:hover .arrow-icon {
            transform: translateX(4px);
        }

/* ========== COMMERCIAL SOLUTIONS ========== */
.commercial-solutions {
    position: relative;
    background: url(/images/heatpump/Auckland-desktop.jpg);
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    min-height: 420px;
    padding: 48px;
    width: 100%;
}

.commercial-solutions-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.view-all-btn {
    border-radius: 7px;
    font-size: 16px;
    color: white;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 36px;
    transition: background 0.25s ease, transform 0.25s ease;
    background: #121212;
}

    .view-all-btn:hover {
        text-decoration: none;
        color: white;
        background: #1C1C1C;
    }



    .view-all-btn .arrow .fa-arrow-right{
        font-weight: 400;
        font-size: 15.5px;
        line-height: 1;
    }

    .view-all-btn .arrow {
        display: inline-block;
        transition: transform 0.25s ease;
    }

    .view-all-btn:hover .arrow {
        transform: translateX(4px);
    }

.commercial-solutions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 690px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .commercial-solutions-list li {
        padding: 10px 17px;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
        font-size: 15px;
        margin: -1.5px;
        white-space: nowrap;
    }

    .commercial-solutions-list a {
        text-decoration: none;
        color: #191919;
    }

        .commercial-solutions-list li:hover {
            box-shadow: 0 2px 4px rgba(0,0,0,0.12);
            border-color: rgba(0,0,0,0.16);
            cursor: pointer;
        }


/* ========== SUPPORT CARDS (keylinks) ========== */
.support-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 1.2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 120px;
}

    .support-card:hover {
        box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
        border-color: #ad974f;
        text-decoration: none;
        color: inherit;
    }

.support-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .support-card-icon img {
        width: 55px;
        height: auto;
        object-fit: contain;
    }

.support-card-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

    .support-card-content h3 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.4rem 0;
        color: #333;
        line-height: 1.3;
    }

    .support-card-content p {
        font-size: 0.875rem;
        color: #666;
        margin: 0;
        line-height: 1.5;
    }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 996px) {
    .hero-slider {
        max-width: 100%;
        margin: 0 0 0 0;
        overflow: hidden;
        background: #fff;
        position: relative;
    }

    .slider-track {
        display: flex;
        align-items: flex-start;
        height: auto;
        position: relative;
    }

    .hero-slide {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0;
        flex-grow: 0;
        position: relative;
    }

        .hero-slide img {
            width: 100%;
            height: auto;
            display: block;
        }

    .slider-arrow {
        width: 60px;
        height: 60px;
        background: transparent;
        top: 130px;
        bottom: 100px;
        transform: none;
    }

        .slider-arrow:hover {
            transform: scale(1.15);
        }

        .slider-arrow:active {
            transform: scale(0.95);
        }

    .slider-arrow-prev {
        left: 12px;
    }

    .slider-arrow-next {
        right: 12px;
    }

    .slider-arrow svg {
        width: 40px;
        height: 40px;
        fill: #eeeeee2b;
    }

    .slider-nav {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        padding: 16px 20px;
        gap: 16px;
        width: 100%;
        justify-content: center;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
        background: rgba(0, 0, 0, 0.25);
    }

        .slider-dot:hover {
            background: rgba(0, 0, 0, 0.5);
        }

        .slider-dot.active {
            width: 28px;
        }

    .slider-play-pause {
        width: 24px;
        height: 24px;
    }

        .slider-play-pause i {
            color: #333;
            font-size: 16px;
        }

    /* Trust Section Mobile */
    .trust-content {
        display: flex;
        flex-direction: column;
        padding: 40px;
        gap: 0px;
        align-items: center;
    }

    .trust-right-col {
        padding-left: 0px;
        padding-top: 10px;
        padding-bottom: 40px;
        margin-top: 15px;
        gap: 5px;
        border-left: none;
        border-top: none;
        order: 1;
        position: relative;
    }

        .trust-right-col::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 1px;
            background: rgba(255, 255, 255, 0.6);
        }

    .trust-left-col {
        border-top: none;
        border-right: none;
        border-bottom: 0px;
        padding-right: 0;
        padding-top: 0;
        margin-top: 0;
        gap: 15px;
        order: 1;
        align-items: center;
        text-align: center;
    }

    .awards-image {
        content: url('/images/trusted-brands-strip-mobile.png');
        width :239px;
    }

    .bottom-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        order: 3;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }


    .trust-subtitle {
        font-size: 1rem;
    }

    .invest-title-image {
        width: 150px;
        margin: 0 auto;
        display: block;
    }

    .quote-text {
        font-size: 1rem;
    }

    .quote-dots {
        display: none;
    }

    .quote-author {
        text-align: left;
    }

    .heatpump-container {
        display: none;
    }

    .learn-more-btn {
        width: 100%;
        margin-top:10px;
        margin-bottom:15px;
        max-width: 218px;
    }

    #residential_range .product-list .product-card-split {
        min-height: 140px;
    }

    #residential_range .product-list .split-image-container {
        width: 40%;
    }

    #residential_range .product-list .split-image {
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    }

    #residential_range .product-list .split-content {
        width: 60%;
        padding: 20px 16px;
    }

    #residential_range .product-list .title {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    #residential_range .product-list .description,
    #residential_range .product-list .learn-more .arrow-icon {
        display: none;
    }
    #residential_range .product-list .content-inner {
        gap: 10px;
        justify-content: center;
    }
    #residential_range .product-list .learn-more {
        font-size: 1.2rem;
        margin-top: 0;
    }

    .commercial-solutions {
        background: url(/images/heatpump/Auckland-mobile.jpg);
        border-radius: 0px;
        background-position: center;
        background-size: cover;
        padding: 30px;
    }

    .view-all-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin-top: 20px;
    }


}

@media (max-width: 768px) {
    .slider-arrow-prev {
        left: 10px;
    }

    .trust-section {
        border-radius: 0px;
        overflow: hidden;
    }

    .trust-right-col {
        border-left: none;
    }

    .trust-title {
        font-size: 2rem;
        font-weight:600;
    }

    #residential_range .product-list .row {
        row-gap: 1.0rem;
    }

    #residential_range .product-list .split-image-container {
        width: 38%;
    }

    #residential_range .product-list .split-content {
        width: 62%;
        padding: 16px 12px;
    }

    #residential_range .product-list .title {
        font-size: 1rem;
    }

    #residential_range .product-list .learn-more {
        font-size: 0.9rem;
    }

    .quote-author {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slider-arrow-prev {
        left: 8px;
    }

    .slider-arrow-next {
        right: 8px;
    }
}
