﻿/* ================================================================
   WaterHeaterReplacement.css  —  scoped to .whr-* classes
   Ways to Enroll card + banner reuse existing ARP.css classes
   ================================================================ */


/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.whr-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

    .whr-hero picture,
    .whr-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.whr-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.30) 55%, transparent 100%);*/
    background: linear-gradient(to right, rgba(30, 58, 113, 0.92) 0%, rgba(30, 58, 113, 0.80) 50%, transparent 80%);
    display: flex;
    align-items: center;
}

.whr-hero-content {
    max-width: 1148px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.whr-breadcrumb {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 100%;
    margin: 0 0 12px;
}

.whr-headline {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 50px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 62px;
    letter-spacing: 0%;
    margin: 0;
    max-width: 710px;
}


/* ---------------------------------------------------------------
   UTILITY: desktop/mobile show-hide  (mirrors gbc- pattern)
   --------------------------------------------------------------- */
.whr-desktop-only {
    display: block;
}

.whr-mobile-only {
    display: none;
}


/* ---------------------------------------------------------------
   INTRO SECTION  (text-left + enroll-card-right)
   --------------------------------------------------------------- */
.whr-intro-outer {
    padding: 48px 24px;
    background-color: #FFFFFF;
}

.whr-intro-inner {
    max-width: 1148px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 364px;
    column-gap: 40px;
    align-items: start;
}

.whr-intro-text {
    grid-column: 1;
    grid-row: 1;
}

.whr-enroll-aside {
    grid-column: 2;
    grid-row: 1;
}

/* Swap desktop/mobile variants */
.whr-intro-text--mobile {
    display: none;
}

.whr-intro-text--desktop {
    display: block;
}

.whr-intro-lead {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #2B2B2B;
    line-height: 36px;
    margin: 0 0 16px;
}

.whr-intro-body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    margin: 0 0 20px;
}

.whr-intro-subhead {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    line-height: 30px;
    color: #2B2B2B;
    margin: 0 0 12px;
}

/* Shared checklist (desktop + mobile) */
.whr-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .whr-checklist li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

.whr-check-icon {
    width: 18px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 7px;
}

.whr-checklist li span {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
}

.whr-intro-price-note {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    margin: 0;
}

/* Mobile-only intro elements */
.whr-mobile-lead {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #2B2B2B;
    line-height: 1.4;
    margin: 0 0 16px;
}

.whr-includes-label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2B2B2B;
    line-height: 30px;
    margin: 0 0 8px;
}

.whr-intro-cta-text {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    margin: 16px 0 0;
}

    .whr-intro-cta-text a {
        color: #0072CE;
        font-weight: 600;
        text-decoration: underline;
    }

        .whr-intro-cta-text a:hover {
            color: #1E3575;
        }

/* ═══════════════════════════════════════════════════════════
   WAYS TO ENROLL INLINE CARD
   ═══════════════════════════════════════════════════════════ */
.gbc-enroll-card-inline {
    background: #F5F9FD;
    overflow: hidden;
    max-width: 364px;
    padding-top: 20px;
}

    .gbc-enroll-card-inline h3 {
        background: transparent;
        color: #2B2B2B;
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 26px;
        font-weight: 600;
        line-height: 100%;
        text-align: center;
        padding: 0 32px 12px 32px;
        margin-bottom: 10px;
    }

    .gbc-enroll-card-inline hr,
    .gbc-mobile-enroll-card hr {
        border: none;
        border-top: 1px solid #D9D9D9;
        margin: 0 24px 16px 24px;
    }

.gbc-enroll-card-body {
    background-color: #F5F9FD;
    padding: 4px 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gbc-enroll-prompt {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2B2B2B;
    text-align: center;
    margin: 0;
}

.gbc-enroll-btn-phone {
    display: block;
    background-color: #0072CE;
    color: #FFFFFF;
    border: 2px solid #0072CE;
    border-radius: 999px;
    width: 240px;
    height: 52px;
    line-height: 48px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
}

    .gbc-enroll-btn-phone:hover {
        background-color: #1E3575;
        border-color: #1E3575;
        color: #FFFFFF;
    }


/* ---------------------------------------------------------------
   WHY ADD SECTION
   Desktop: image left | text right
   Mobile: image stacks above text (DOM order)
   --------------------------------------------------------------- */
.whr-why-outer {
    background-color: #FFFFFF;
    padding: 60px 24px;
}

.whr-why-inner {
    max-width: 1148px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 140px;
    align-items: start;
}

.whr-why-image {
    width: 100%;
}

    .whr-why-image picture,
    .whr-why-img {
        width: 490px;
        height: 600px;
        display: block;
        object-fit: cover;
    }

.whr-why-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: #2B2B2B;
    line-height: 1.25;
    margin: 0 0 16px;
}

.whr-why-body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    margin: 0 0 24px;
    width: 560px;
}

.whr-eligibility-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2B2B2B;
    line-height: 36px;
    margin: 0 0 10px;
}

.whr-eligibility-list {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .whr-eligibility-list li {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 30px;
        color: #505357;
        width: 530px;
    }

.whr-why-cta-text {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #505357;
    margin: 0;
    width: 560px;
}

.whr-why-cta-text-bold {
    font-weight: 600;
}

.whr-why-cta-text a {
    color: #0072CE;
    font-weight: 600;
    text-decoration: none;
}

        .whr-why-cta-text a:hover {
            color: #1E3575;
        }


/* ---------------------------------------------------------------
   FAQ SECTION  — custom toggle, mirrors GreenbacksCash pattern
   Desktop: accordion items 756px wide × 50px collapsed height
   --------------------------------------------------------------- */
.whr-faq-outer {
    background-color: #F6F6F6;
    padding: 60px 24px;
}

.whr-faq-inner {
    max-width: 1148px;
    margin: 0 auto;
}

.whr-faq-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: #2B2B2B;
    line-height: 1.2;
    margin: 0 0 40px;
    text-align: center;
}

/* FAQ list — centred, 756px wide on desktop */
.whr-faq-list {
    width: 756px;
    max-width: 100%;
    margin: 0 auto;
}

/* Individual FAQ item */
.whr-faq-item {
    background-color: #FFFFFF;
    width: 756px;
    min-height: 50px;
    margin: 0 auto 8px auto;
    overflow: hidden;
}

    .whr-faq-item:first-child {
    }

/* Trigger button — 50px tall collapsed */
.whr-faq-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

    .whr-faq-trigger span:first-child {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #2B2B2B;
        line-height: 30px;
        flex: 1;
    }

    .whr-faq-trigger:hover span:first-child {
        color: #0072CE;
    }

/* Circle-chevron icon (SVG inline via background-image) */
.whr-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: center;
    transition: transform 0.25s ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='14' cy='14' r='12.5' stroke='%230072CE' stroke-width='1.5'/%3E%3Cpolyline points='9,12.5 14,17.5 19,12.5' stroke='%230072CE' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Rotate icon when open */
.whr-faq-item.whr-open .whr-faq-icon {
    transform: rotate(-180deg);
}

/* Answer body — hidden by default, shown when .whr-open */
.whr-faq-body {
    display: none;
    padding: 0 24px 20px 24px;
}

    .whr-faq-body p {
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 30px;
        color: #505357;
        margin: 0;
    }

.whr-faq-item.whr-open .whr-faq-body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 10px 24px 20px 24px;
    line-height: 30px;
    background-color: #F6F6F6;
    color: #505357;
    display: block;
}

.enroll-banner-arp {
    padding: 20px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.mobile-show {
    display: none;
}

.mobile-hide {
    display: block;
}


/* ---------------------------------------------------------------
   MOBILE  (max-width: 768px)
   --------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Utility toggles */
    .whr-desktop-only {
        display: none;
    }

    .whr-mobile-only {
        display: block;
    }

    /* --- HERO --- */
    .whr-hero {
        height: auto;
        display: flex;
        flex-direction: column;
    }

        .whr-hero picture {
            height: 300px;
            width: 100%;
            display: block;
        }

    .whr-hero-img {
        height: 300px;
        object-fit: cover;
    }

    .whr-hero-overlay {
        position: static;
        background: none;
        padding: 20px 20px 0;
    }

    .whr-hero-content {
        padding: 0;
        width: 100%;
    }

    .whr-breadcrumb {
        font-size: 16px;
        color: #73767B;
    }

    /* Hide desktop headline — mobile lead in intro replaces it */
    .whr-headline {
        display: none;
    }

    /* --- INTRO --- */
    .whr-intro-outer {
        padding: 00px 20px 0;
    }

    .whr-intro-inner {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
    }

    .whr-intro-text--desktop {
        display: none;
    }

    .whr-intro-text--mobile {
        display: block;
        grid-column: 1;
        grid-row: 1;
    }

    .whr-enroll-aside {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
    }

    .whr-mobile-lead {
        font-size: 32px;
        font-weight:400;
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .whr-intro-body {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        width: 335px;
    }

    .whr-includes-label {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .whr-checklist {
        width: 335px;
    }

    .whr-checklist li span {
        font-size: 16px;
        line-height: 26px;
    }

    .whr-intro-cta-text {
        width:335px;
        font-size: 16px;
        line-height: 26px;
    }

    /* --- WHY ADD --- */
    .whr-why-outer {
        padding: 24px 20px 40px;
    }

    .whr-why-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .whr-why-img {
        width: 364px;
        height: 200px;
        /*margin-left:30px;*/
    }

    .whr-why-image picture, .whr-why-img {
        height: 200px;
    }

    .whr-why-title {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .whr-why-body {
        font-size: 18px;
        line-height: 30px;
        margin-bottom: 20px;
        width:320px;
    }

    .whr-eligibility-title {
        font-size: 22px;
        line-height: 32px;
        font-weight:600;
        margin-bottom: 8px;
    }

    .whr-eligibility-list{
        padding-left: 25px;
    }

    .whr-eligibility-list li {
        font-size: 16px;
        line-height: 26px;
        width: 310px;
    }

    .whr-why-cta-text {
        font-size: 16px;
        line-height: 26px;
        width: 330px;
    }

    /* --- FAQ --- */
    .whr-faq-outer {
        padding: 40px 20px;
    }

    .whr-faq-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 24px;
        text-align: center;
/*        margin-left: 30px;*/
    }

    /* FAQ list — 322px wide on mobile (centred) */
    .whr-faq-list {
        width: 322px;
        max-width: 100%;
        margin: 0 auto;
    }

    .whr-faq-item {
        width: 100%;
        max-width: 322px;
        min-height: 60px;
        margin: 0 auto 8px auto;
    }

    /* Trigger — 60px tall on mobile */
    .whr-faq-trigger {
        min-height: 60px;
        padding: 10px 16px;
    }

        .whr-faq-trigger span:first-child {
            font-size: 16px;
            line-height: 26px;
            padding-right: 15px;
        }

    .whr-faq-body {
        padding: 0 16px 16px;
    }

        .whr-faq-body p {
            font-size: 16px;
            line-height: 26px;
            width: 305px;
        }

    .enroll-banner-arp {
        padding: 0px 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .enroll-banner-arp-hr {
        display: block !important;
        border: none !important;
        border-top: 1px solid #D9D9D9 !important;
        width: calc(100% - 48px) !important;
        margin: 0 auto 0 auto !important;
        align-self: center !important;
    }

    .enroll-banner-arp-prompt {
        margin-bottom: 10px;
    }

    .enroll-banner-arp-title {
        margin-bottom: 10px;
    }

    .mobile-show {
        display: block;
    }

    .mobile-hide {
        display: none;
    }
}


/* ---------------------------------------------------------------
   TABLET  (769px – 1024px)
   --------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {

    .whr-intro-inner {
        grid-template-columns: 1fr 320px;
        column-gap: 24px;
    }

    .whr-why-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .whr-headline {
        font-size: 40px;
        line-height: 52px;
    }

    .whr-faq-title {
        font-size: 30px;
    }

    .whr-faq-list {
        width: 100%;
    }
}
