/* ========== GLOBAL OVERFLOW FIX ========== */
body {
    overflow-x: hidden;
}

/* ========== TRUST/COMMERCIAL SHARED BASE ========== */
.trust-section, .commercial-solutions {
    position: relative;
    width: 100%;
    margin: 0 auto 2rem;
    overflow: hidden;
    background: #f5f5f5;
}

/* ========== 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: 160px 0 44px 0;
}

.bs-limit-width .trust-left-col {
    padding: 60px 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 8px 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-bottom-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    padding: 64px 48px;
}

.bs-limit-width .trust-bottom-row {
    padding: 32px 48px;
}

.trust-awards-row {
    flex: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arrow-10x-image {
    max-width: 320px;
    height: auto;
}

.awards-image {
    width: 100%;
    height: auto;
}

.trust-right-col {
    grid-column: 4;
    grid-row: 1 / -1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.trust-right-col img {
    pointer-events: auto;
}

.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 {
    flex: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
}

.trust-learn-more a:hover {
    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: 48px 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 {
        flex: none;
        width: 100%;
        align-items: stretch;
    }

    .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-bottom-row {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .trust-learn-more {
        flex: none;
        width: 100%;
        padding: 0 24px 32px;
        justify-content: center;
    }

    .trust-learn-more a {
        font-size: 1.5rem;
    }
}


/* ========== 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) {
    /* 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: visible;
    }

    .trust-badge-image {
        width: 180px;
        top: -56px;
        right: 14px;
    }

    .trust-awards-row {
        align-items: flex-start;
    }

    .arrow-10x-image {
        max-width: 240px;
    }

    .awards-image {
        max-width: 100%;
    }


    .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) {
    .trust-section {
        border-radius: 0px;
    }

    .trust-title {
        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) {
    .trust-badge-image {
        max-width: 130px;
    }
}
