/* ========== GLOBAL OVERFLOW FIX ========== */
body {
    overflow-x: hidden;
}

/* ========== MODERN HERO SLIDER ========== */
.hero-slider, .trust-section, .commercial-solutions {
    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(142.78% 70.53% at 32.44% 55.78%, #E2FFFB 19.23%, #3BE1D5 66.98%, #03C6C8 100%), #FFF;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.trust-content {
    color: rgba(33, 60, 103, 1);
    display: grid;
    grid-template-columns: 64px 1fr 64px minmax(0, 600px);
    grid-template-rows: 1fr auto;
    align-items: stretch;
    min-height: 720px;
}

.trust-left-col {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    padding: 50px 0 44px 0;
}

.trust-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 2px 0;
}

.trust-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: rgba(33, 60, 103, 1);
    margin: 0;
}

.quote-container {
    display: grid;
}

.quote-item {
    grid-area: 1 / 1;
    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: 12px;
    font-weight: 400;
    font-style: italic;
}

.quote-author {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0;
}

.quote-dots {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(33, 60, 103, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

    .quote-dot:hover {
        background: rgba(33, 60, 103, 0.4);
        transform: scale(1.15);
    }

    .quote-dot.active {
        background: rgba(33, 60, 103, 1);
    }

.trust-awards-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 300px 40px 50px;
}

.arrow-10x-image {
    max-width: 320px;
    height: auto;
}

.awards-image {
    max-width: 100%;
    height: auto;
}

.trust-right-col {
    grid-column: 4;
    grid-row: 1 / -1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.trust-badge-image {
    position: absolute;
    top: 80px;
    right: 24px;
    width: 195px;
    height: auto;
    z-index: 2;
}

.heatpump-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========== TRUST SECTION - RESPONSIVE ========== */
.trust-learn-more {
    grid-column: 4;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    padding: 0 64px 64px;
    z-index: 3;
}

.trust-learn-more a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 60px;
    border-radius: 8px;
    background: #FE0000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.trust-learn-more a:hover {
    background: #c4000f;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .trust-section {
        overflow: visible;
    }

    .trust-content {
        display: flex;
        flex-direction: column;
        min-height: unset;
    }

    .trust-left-col {
        width: 100%;
        padding: 40px 24px 24px;
    }

    .quote-container {
        width: 100%;
    }

    .trust-right-col {
        width: 100%;
        height: auto;
        display: block;
        position: relative;
    }

    .heatpump-image {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    .trust-badge-image {
        top: auto;
        bottom: 16px;
        right: 16px;
        width: 180px;
    }

    .trust-awards-row {
        align-items: stretch;
        padding: 16px 16px 24px;
    }

    .arrow-10x-image {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .trust-awards-row picture {
        display: block;
        width: 100%;
    }

    .awards-image {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .trust-learn-more {
        display: block;
        align-self: auto;
        justify-self: auto;
        padding: 0 24px 32px;
    }
}


/* ========== 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;
        gap: 0;
    }

    .trust-left-col {
        padding: 36px 32px 32px 32px;
        gap: 20px;
        align-items: flex-start;
        text-align: left;
    }

    .trust-title {
        font-size: 2.2rem;
    }

    .trust-right-col {
        position: relative;
        height: auto;
        overflow: hidden;
    }

    .trust-badge-image {
        width: 180px;
        top: 14px;
        right: 14px;
    }

    .trust-awards-row {
        align-items: flex-start;
    }

    .arrow-10x-image {
        max-width: 240px;
    }

    .awards-image {
        max-width: 100%;
    }

    .quote-text {
        font-size: 1rem;
    }

    .quote-dots {
        display: none;
    }

    .quote-author {
        text-align: left;
    }


    #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;
    }

    .trust-title {
        font-size: 1.8rem;
        font-weight: 700;
    }

    #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;
    }
}
