﻿html {
    box-sizing: border-box;
    padding: 0;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

:root {
    --dark: #060D0F;
    --light: #EDE7E3;
    --cta-bg: #1C53FF;
    --blue: #16697A;
    --light-blue: #A8D3DC;
    --error-red: #F02727;
}

body {
    font-family: "Afacad Flux", sans-serif;
}

.container{
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

/* FLEX UTIL */

.flex {
    display: flex;
}

.row, .mobile-row {
    flex-direction: row;
}

@media screen and (max-width: 930px){
    .row{
        flex-direction: column;
    }

    .cta_section .container{
        align-items: center;
    }

    .nav{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

.col {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-between {
    justify-content: space-between;
}

.space-evenly {
    justify-content: space-evenly;
}

.gap-sm {
    gap: 1rem;
}

.gap {
    gap: 1.5rem;
}

.gap-2 {
    gap: 3rem;
}

.wrap {
    flex-wrap: wrap;
}

@media screen and (max-width: 850px) {
    .row {
        flex-direction: column;
    }
}

/* TEXT UTIL */

.text-center{
    text-align: center;
}

.large{
    font-size: 65px;
    line-height: 55px;
}

.tr-balance{
    text-wrap: balance;
}

.light{
    color: var(--light);
}

.light-blue{
    color: var(--light-blue);
}

.primary{
    color: var(--blue);
}

.secondary{
    color: var(--cta-bg);
}

/* HEADER SECTION STYLES */

header {
    background: #FFFFFF;   
}

.nav{
    padding: .25rem 1rem;
}

.nav_brand{
    max-width: 110px;
    width: 100%;
}

.disclaimer_bar {
    background: #C8E1D3;
    padding: .5rem 1rem;
    color: #15281F;
    font-weight: 600;
}

@media screen and (max-width: 465px){
    .disclaimer_bar p{
        font-size: 10px;
    }
}

/* CTA SECTION STYLES */

.mobile-cta_section{
    display: none;
}

.cta_section{
    background: url('../images/desktop_frame.png');
    background-position: 0 0;
    background-size: 50%;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 4rem 1rem;
}

@media screen and (max-width: 1280px){
    .cta_section{
        background-size: 55%;
    }
}

@media screen and (max-width: 1100px){
    .cta_section{
        background-size: 75%;
    }
}

@media screen and (max-width: 850px) {
    .mobile-cta_section {
        display: flex;
        padding: 1rem;
        position: relative;
        overflow: hidden;
        background: linear-gradient(to bottom, rgba(243, 157, 44, .75), rgba(174, 103, 10, .75)), url('../images/housing-bg.jpeg');
        background-size: cover;
    }

        .mobile-cta_section h1 {
            font-size: 25px;
        }

    .large {
        font-size: 30px;
        line-height: 25px;
    }

    .cta_content {
        display: none;
    }

    .cta_section {
        background-image: none;
        background: #FFFFFF;
        padding: 1rem;
    }

    .cta_form-section h2{
        font-size: 25px !important;
    }
}

    .cta_section h1 {
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,.5);
    }

.cta_content{
    max-width: 500px;
    width: 100%;
}

.cta_content ul{
    margin-left: 1.5rem;
    font-size: 24px;
}

.cta_form-section{
    max-width: 500px;
    width: 100%;
    gap: .5rem;
}

.cta_form-section h2{
    font-size: 30px;
    line-height: 28px;
    text-wrap: balance;
}

.cta_form--container{
    width: 100%;
}

.cta-form{
    gap: 1rem;
}

.cta-form .cta_btn{
    margin-top: .5rem;
}

.input {
    appearance: none;
    width: 100%;
    padding: .7rem;
    border: 1px solid #A8AEAB;
    border-radius: 2px;
    font-size: 16px;
    line-height: 16px;
}

.input:hover{
    border-color: var(--dark);
}

.input::placeholder{
    font-weight: 530
}

.cta_btn{
    cursor: pointer;
    background: var(--cta-bg);
    border-radius: 50px;
    border: none;
    padding: 1.5rem;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 2px;
    box-shadow: 5px 5px 20px rgba(0,0,0,.3);
    transition: all .3s ease-in-out;
}

@keyframes pulse{
    50%{
        transform: scale(.9);
    }
    100%{
         transform: scale(1);
     }
}

.pulse{
    animation: pulse 2s infinite alternate-reverse ease-in-out;
}

.cta_btn:hover {
    box-shadow: none;
    background: #0029A3;
    color: var(--light);
}

.error{
    color: var(--error-red);
    position: absolute;
    left: 0;
    top: -18px;
}

.offer_section{
    margin: 8rem auto;
}

    .offer_section h3 {
        font-size: 35px;
        text-shadow: 2px 2px 3px rgba(0,0,0,.6);
    }

.card {
    max-width: 270px;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 5px 5px 20px rgba(0,0,0,.3);
    border-radius: 20px;
    padding: 2.5rem 1rem;
    gap: 1rem;
    transition: all .3s ease-in-out;
}

@media screen and (max-width: 850px){
    .card{
        max-width: unset;
    }
}

.card:hover{
    box-shadow: none;
}

.card h4{
    font-size: 25px;
    line-height: 25px;
}

.card p{
    font-size: 20px;
    line-height: 22px;
}

.card_icon {
    background: #C8E1D3;
    padding: .75rem;
    border-radius: 8px;
    width: 60px;
    height: auto;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #124026;

}

.icon-lg{
    font-size: 40px;
}

.tcpa{
    font-size: 12px;
    line-height: 12px;
}

/* FOOTER STYLES */

.footer{
    padding: 2rem 1rem;
    background: var(--light);
}

.footer a{
    color: var(--blue);
}