/*
Copyright Robertson's Plumbing & Gasfitting 2024
Created By Tiger Lily Web Services 2024
Fort Saskatchewan, Alberta, Canada
*/

/*#region Small Screen Size (320px-749px)*/

/*#region Variables*/
:root
{
    --red: #D1332A;
    --dark-grey: #3D3D3D;
    --white: #F8F8F8;
    --med-grey: #D9D9D9;
    --dark-red: #853833;
}
/*#endregion Variables*/

/*#region Typography*/
body, a
{
    font-family: 'Roboto', sans-serif;
    color: black;
}

a
{
    text-decoration: none;
}

button
{
    cursor: pointer;
}

section.intro h2{
    font-size: 1.625rem;
    line-height: 1.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

section.intro p{
    font-size: 1rem;
    line-height: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

section.key-offers h2{
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    text-align: center;
}

section.key-offers h3{
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    width: 100%;
}

section.key-offers ul{
    list-style: disc;
    width: 100%;
}

section.key-offers ul li,
section.key-offers p{
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    width: 90%;
    line-height: 1.125rem;
    margin-left: 1rem;
}

section.key-offers p{
    margin-left: 0rem;
    width: 100%;
}

section.financing h2{
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

section.financing p{
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.375rem;
    margin-bottom: 1rem;
}

section.how-it-works h2{
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 2.125rem;
    margin-left: 0.875rem;
    margin-bottom: 1.875rem;
}

section.how-it-works p.disclaimer{
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1rem;
}

section.how-it-works .step-top-bar p{
    font-size: 2.25rem;
    font-weight: 600;
    color: white;
    margin-right: 0.35rem;
}

section.how-it-works .step-top-bar p:last-of-type{
    font-size: 4.625rem;
    margin: 0rem;
}

section.how-it-works .step-inner-body h3{
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

section.how-it-works .step-inner-body p{
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.125rem;
}

section.faq h2{
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.8125rem;
    line-height: 2rem;
}

section.faq h3{
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 300;
    width: 90%;
}

section.faq p{
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 300;
}


/*#endregion Typography*/

section.intro{
    background-image: url(../img/residential-sm.jpg);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(61, 61, 61, .75);
}

section.intro .inner-container{
    padding: 1.25rem 1rem;
}

.cta-button{
    width: fit-content;
}

section.key-offers{
    background-color: #F8F8F8;
}

section.key-offers .inner-container{
    padding-top: 1.75rem;
}

section.key-offers .offer-cards{
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.key-offers .offer-cards .card{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem;
    border: 1px solid black;
    border-radius: 20px;
    width: 15.75rem;
    height: 16.6875rem;
    margin-bottom: 2rem;
    background-color: white;
    box-shadow: -10px 5px 15px rgba(61, 61, 61, 0.2);
}

section.key-offers .offer-cards .card svg{
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

section.key-offers .offer-cards .card svg path{
    fill: var(--red);
}

section.key-offers .offer-cards .card .divider{
    width: 100%;
    height: 2px;
    background-color: var(--med-grey);   
    margin-bottom: 0.75rem;
}

section.financing{
    background-image: url(../img/financing-background-sm.jpg);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(61, 61, 61, .50);
}

section.financing .inner-container{
    padding: 1.875rem 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

section.financing .financing-icon{
    padding: 0.875rem 1.375rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.10);
    margin-right: auto;
    margin-bottom: -1.625rem;
    z-index: 1;
}

section.financing .financing-icon svg{
    width: 58px;
    height: 61px;
}

section.financing .financing-options{
    background-color: white;
    padding: 2.5rem 1rem 1rem 1rem;
    border-radius: 10px;
    width: 76.25vw;
}

section.financing .financing-options svg{
    width: 100%;
    height: 10px;
    margin-bottom: 1.25rem;
}

section.financing .cta-button:hover{
    background-color: var(--red);
    color: black;
}

section.how-it-works{
    background-color: var(--white);
}

section.how-it-works .inner-container{
    padding: 2.625rem 1rem 1.4375rem 1rem;
    max-width: 288px;
    margin: auto;
}

section.how-it-works svg.dotted-arrow{
    width: 177px;
    height: 177px;
    margin-top: -12rem;
    margin-bottom: -1rem;
}

section.how-it-works svg.dotted-arrow:last-of-type{
    transform: scale(-1,1);
    margin-left: 7rem;
}

section.how-it-works img{
    width: 9.375rem;
    height: 100%;
    margin-bottom: -6.5625rem;
    margin-left: 0.8125rem;
}

section.how-it-works .step{
    max-width: 180px;
    margin-bottom: 1.5rem;
}

section.how-it-works .step-1,
section.how-it-works .step-3{
    margin-left: auto;
}

section.how-it-works .step .step-top-bar{
    background-color: var(--dark-grey);
    text-align: right;
    padding: 1rem;
}

section.how-it-works .step-2 .step-top-bar{
    background-color: var(--dark-red);
}

section.how-it-works .step-3 .step-top-bar{
    background-color: var(--red);
}

section.how-it-works .step .step-body{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0rem 1rem;
    background-color: white;
    height: 13.25rem;
}

section.how-it-works .step-2 .step-body{
    align-items: flex-start;
}

section.how-it-works .step-2 svg.arrow{
    margin-left: 1.375rem;
}

section.how-it-works .step svg.arrow{
    width: 1rem;
    height: 1.1875rem;
    margin-top: -2px;
    margin-right: 1.375rem;
    margin-bottom: 0.625rem;
}

section.how-it-works .step-1 svg.arrow path{
    fill: var(--dark-grey);
}

section.how-it-works .step-2 svg.arrow path{
    fill: var(--dark-red);
}

section.how-it-works .step-3 svg.arrow path{
    fill: var(--red);
}

section.how-it-works .step .step-inner-body{
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.how-it-works .step .step-inner-body svg{
    width: 40px;
    height: 40px;
    margin-bottom: 0.875rem;
}

section.how-it-works .step-1 .step-inner-body svg path:first-of-type{
    fill: var(--dark-grey);
}

section.how-it-works .step-2 .step-inner-body svg path{
    fill: var(--dark-red);
}

section.how-it-works .step-3 .step-inner-body svg path:first-of-type{
    fill: var(--red);
}

section.how-it-works .step-bar{
    position: absolute;
    max-height: 0vh;
    overflow: hidden;
}

section.faq{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

section.faq .inner-container{
    padding: 1.875rem 1rem;
}

section.faq .question{
    border: 1px solid var(--red);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

section.faq .question a{
    color: var(--red);
}

section.faq .question a:hover{
    color: black;
}

section.faq .question .q-and-icon{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

section.faq .question .q-and-icon:hover{
    cursor: pointer;
}

section.faq .question .q-and-icon svg{ 
    width: 25px;
    height: 25px;
}

section.faq .question .divider,
section.faq .question p{
    position: absolute;
    max-height: 0vh;
    overflow: hidden;
}

section.faq .question.open .divider,
section.faq .question.open p{
    position: initial;
    max-height: none;
    overflow: visible;
}

section.faq .question.open .divider{
    width: 100%;
    height: 2px;
    background-color: var(--med-grey);
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

section.faq .question.open .q-and-icon svg{
    transform: rotate(180deg);
}


/* #endregion */

/*#region Medium Screen Size (750px-1159px)*/

@media only screen and (min-width: 750px)
{
    section.intro{
        background-image: url(../img/residential-med.jpg);
    }

    section.intro .inner-container{
        padding: 2.9375rem 3.1875rem;
    }

    section.key-offers .inner-container{
        max-width: 33.5rem;
        margin: auto;
    }

    section.key-offers .offer-cards{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    section.key-offers .offer-cards .card{
        width: 12.6875rem;
        height: 17.5625rem;
    }
    
    section.financing{
        background-image: url(../img/financing-background-med.jpg);
    }

    section.financing .inner-container{
        padding: 1.875rem 1.25rem;
        max-width: 1022px;
        margin: auto;
    }

    section.financing h2{
        font-size: 2rem;
    }

    section.financing .financing-icon{
        padding: 1.25rem 2rem;
    }

    section.financing .financing-icon svg{
        width: 84px;
        height: 84px;
    }

    section.financing .financing-options{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1.5rem;
        max-width: 906px;
    }

    section.how-it-works svg.dotted-arrow{
        position: absolute;
        max-height: 0vh;
        overflow: hidden;
    }

    section.how-it-works .inner-container{
        max-width: 710px;
    }

    section.how-it-works .steps-container{
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    section.how-it-works h2{
        text-align: center;
        margin-bottom: 2.625rem;
    }

    section.how-it-works img{
        margin-top: -5rem;
        margin-left: -1rem;
        margin-right: -7rem;
        z-index: 1;
    }

    section.how-it-works .step{
        margin: 0rem;
    }

    section.how-it-works .step .step-body{
        padding-bottom: 1.75rem;
    }

    section.how-it-works .step-3{
        margin-right: 3rem;
    }

    section.how-it-works .step-bar{
        position: relative;
        max-height: none;
        overflow: visible;
        width: 481px;
        height: 18px;
        background: linear-gradient(90deg, #3D3D3D 0%, #853833 49%, #D1332A 100%);
        margin: auto;
        margin-top: -0.5625rem;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        border-radius: 9999px;
        margin-bottom: 2.8125rem;
    }

    section.how-it-works .step-bar .circ{
        width: 59px;
        height: 59px;
        border-radius: 9999px;
        background-color: var(--dark-grey);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -1.25rem;
    }

    section.how-it-works .step-bar .circ p{
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
    }

    section.how-it-works .step-bar .circ-2{
        background-color: var(--dark-red);
    }

    section.how-it-works .step-bar .circ-3{
        background-color: var(--red);
    }

    section.faq h2{
        font-size: 1.875rem;
    }

    section.faq .inner-container{
        padding: 2.5rem 2rem;
    }

}

/*#endregion Medium Screen Size (750px-1159px)*/

/*#region Large Screen Size (1160px-1439px)*/

@media only screen and (min-width: 1160px)
{
    section.intro{
        background-image: url(../img/residential-lg.jpg);
    }

    section.intro h2{
        font-size: 2rem;
        line-height: 2.25rem;
        max-width: 45.125rem;
        margin-bottom: 1rem;
    }

    section.intro p{
        font-size: 1.25rem;
        line-height: 1.5rem;
        margin-bottom: 1.5rem;
    }

    section.intro .inner-container{
        padding: 2.8125rem 3.125rem;
    }

    section.key-offers h2{
        font-size: 2.25rem;
        margin-bottom: 3.6875rem;
    }

    section.key-offers .inner-container{
        max-width: 942px;
        padding-top: 4rem;
    }

    section.key-offers .offer-cards .card{
        width: 15.125rem;
        height: 20.25rem;
    }

    section.key-offers h3{
        font-size: 1.5rem;
    }

    section.key-offers p,
    section.key-offers ul li{
        font-size: 1rem;
    }

    section.key-offers .offer-cards .card svg{
        width: 125px;
        height: 125px;
    }

    section.key-offers .offer-cards .card ul{
        margin-left: 1rem;
    }

    section.financing{
        background-image: url(../img/financing-background-lg.jpg);
    }

    section.financing h2{
        font-size: 2.25rem;
    }

    section.financing p{
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    section.faq .inner-container{
        padding: 3.4375rem 6.25rem;
    }

}

/*#endregion Large Screen Size (1190px-1439px)*/

/*#region Extra Large Screen Size (1440px)*/

@media only screen and (min-width: 1440px)
{

}

/*#endregion Extra Large Screen Size (1440px)*/