/* ----------HERO SECTION---------- */
section#hero{
    position: relative;
    width: 100%;
    min-height: 50vh;
    
    display: flex;
    align-items: center;

    background: 
    linear-gradient(rgba(15,47,79,0.55), rgba(15,47,79,0.15)),
    url('../images/herobg2.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;
}

article.hero-content{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 80px;
}

p.tagline{
    font-size: 48px;
    font-weight: 700;
    line-height: 1.0;
}

span.lblue{
    color: #92d0ff;
}

p.tag2{
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

article a.cta{
    margin-top: 20px;
}

/* ----------SERVICES SECTION---------- */
section#services{
    position: relative;
    width: 100%;
    min-height: 130px;
    background: linear-gradient(to bottom, #f8fafc 90%, #e6edf5);
}

article.services-content{
    display: flex;
    justify-content: center;
}

div.card{
    display: flex;
    position: relative;
    align-items: center;
    padding: 10px 30px;
    color: #444;
}

div.card:not(:last-child)::after{
    content: "";
    position: absolute;
    top: 20px;
    right: 3px;
    width: 1px;
    height: 70%;
    background: rgba(0,0,0,0.1);
}

div.card img{
    max-width: 100px;
    padding-right: 10px;
}

div.card h3{
    color: var(--dblue);
    padding-bottom: 5px;
}

/* ----------BEFOE & AFTER SECTION---------- */
section#beforeandafter{
    position: relative;
    width: 100%;
    padding-bottom: 50px;
    
    display: flex;
    justify-content: center;

    background: url('../images/beforeandafterBG.png');
        
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section#beforeandafter::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.25);
    pointer-events: none;
}

article.beforeandafter-content{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    box-sizing: border-box;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

div.claim{
    flex: 1.1;
    min-width: 320px;
    margin-top: 0;
    padding-top: 10px;
    color: var(--dblue);
    text-align: left;
}

div.claim h2{
    margin: 0 0 12px;
    margin-bottom: 8px;
    font-size: 38px;
    line-height: 1.05;
    color: var(--dblue);
}

div.claim .subhead{
    margin: 0 0 28px;
    font-size: 22px;
}

div.results{
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 320px;
    margin-top: 10px;
    color: var(--dblue);
}

div.claim p, div.results p{
    color: #444;  
}

div.claim img{
    display: block;
    width: 56px;
    margin-bottom: 8px;
}

div.claim .feature-row{
    display: flex;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 18px;
    margin-top: 20px;
}

div.claim h3{
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.2;
    color: var(--dblue);
}

div.claim .feature-box{
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 18px;
    margin: 0;
}

div.claim .feature-box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 75%;
    background: rgba(0,0,0,0.08);
}

div.claim .feature-box p {
    font-size: 14px;
    line-height: 1.35;
    color: #4b5563;
}

div.results img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    border: 8px solid #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.42);
}

/* ----------CALL TO ACTION SECTION---------- */

section#action{
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 50px 0 60px;
    
    display: flex;
    justify-content: center;

    background: url('../images/cta.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



article.action-content h2{
    margin: 18px 0;
    font-size: 38px;
    line-height: 1.05;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
}

article.action-content h2 span{
    color: #6cc24a;
}

form.quote{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 640px;
}

form.quote > div{
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

form.quote input, form.quote select{
    width: 260px;
    height: 46px;
    border-radius: 8px;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.4);
}

form.quote input::placeholder, form.quote select{
    color: #666;
}

form.quote input[type="submit"]{
    border: 2px solid #6cc24a;
    border-radius: 6px;
    font-weight: 700;
    background: #6cc24a;
    color: #fff;
    padding: 0px 32px;
    height: 52px;
    font-size: 18px;
    margin-top: 6px;
    width: auto;
    cursor: pointer;
    transition: .2s ease;
}

form.quote input[type="submit"]:hover{  
    background: #5aad3d;
    border: 2px solid #5aad3d;
    color: white;
}

form.quote textarea {
    min-height: 140px;
    resize: vertical;
    width: 90%;
    max-width: 520px;
    border-radius: 6px;
    padding: 10px;
    outline: none;
    box-sizing: border-box;
}

.form-message {
    max-width: 510px;
    margin: 10px 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
    }

.form-message.success {
    background: #eaf7e4;
    color: #2f6b1f;
    border: 1px solid #b7d9a8;
    }

.form-message.error {
    background: #fdeaea;
    color: #8a1f1f;
    border: 1px solid #efb2b2;
    }

.input-error {
    border: 2px solid #d93025 !important;
}

.form-message.error ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.form-message:empty {
    display: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media only screen and (max-width: 953px) {

  /* ------------------------ HERO ------------------------ */
    p.tagline{
    font-size: 32px;
    font-weight: 700;
    line-height: 1.0;
    }

    p.tag2{
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }

    article.hero-content{
        padding-left: 40px;
    }


  /* ------------------------ SERVICES ------------------------ */

    section#services{
    min-height: 100px;
    }

    article.services-content{
        display: flex;
        justify-content: center;
    }

    div.card{
        padding: 10px 10px;
        flex-direction: column;
    }

    div.card img{
        max-width: 50px;
        padding-right: 5px;
    }

    div.card h3{
        font-size: 16px;
        text-align: center;
    }

    div.card p{
        font-size: 14px;
        text-align: center;
    }


      /* ------------------------ BEFORE AND AFTER ------------------------ */

    article.beforeandafter-content{
        flex-wrap: wrap;
    }

    div.claim h2{
        font-size: 25px;
        text-align: center;
    }

    div.claim p.subhead{
        font-size: 17px;
        text-align: center;
    }

    

    div.claim .feature-box{
        padding: 0 5px;
    }
    

      /* ------------------------ CTA ------------------------ */


    div.top, div.bottom{
        flex-direction: column;
        align-items: center;
    }

}

@media only screen and (max-width: 380px) {

    article.beforeandafter-content{
        padding: 0 10px;
    }
    
    div.results, div.claim{
        min-width: 260px;
    }
}