/*IMPORT FONT*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');


/*VARIABLES*/
:root {
    --primary-theme: #C29949;
    --secondary-theme: #0F1827;
}

* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Lato";
}

#hero {
    width: 100vw;
    height: 700px;
    background: url("assets/hero_cmp.jpeg");
    background-size: cover;
    background-position: top right;
    position: relative;
    z-index: 0;
}

@media (max-width: 450px){
    #hero{
        background: url("assets/hero_cmp_mobile.jpeg");
        background-size: cover;
        background-position: top right;
    }
}
@keyframes fadeIn{
    0% { opacity: 0}
    10% { opacity:  1}
    50% {opacity: 1}
    60% { opacity: 0}
    100% {opacity: 0}
}

@keyframes fadeOut{
    from { opacity: 1}
    to {opacity: 0}
}

#hero-cover {
    height: 100%;
    width: 100%;
    background: url("assets/house-hero_cmp.jpeg");
    background-size: cover;
    background-position: top right;
    position: absolute;
    z-index: 0;
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 16s;
    animation-delay: 4s;
    animation-iteration-count: infinite;
/*    animation-direction: alternate;*/
}

@media (max-width: 450px){
    #hero-cover{
        background: url("assets/house-hero_cmp_mobile.jpeg");
    }
}

@media (max-width: 800px){
    #hero-cover{
        background-position: top center;
    }
}

header {
    position: fixed;
    width: 100%;
    z-index: 2;
    transition-duration: 0.2s;
}

header nav > * {
    transition-duration: 0s;
}

header nav img {
    transform-origin: left center;
}

header.shrink {
    background-color: var(--secondary-theme);
    height: 100px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 500px) {
    header.shrink {
        height: 70px;
    }
}

header.shrink nav {
    margin-top: 10px;
    margin-bottom: 10px;
}



@media (min-width: 851px) {
    header nav > * {
        transition-duration: 0s;
        transition: transform 0.2s;
    }

    header.shrink nav > * {
        transform: scale(0.9);
    }

    header.shrink #nav-list {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}



.container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

nav {
    margin-top: 20px;
    margin-bottom: 20px;
    transition-duration: 0.3s;
}

#nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
    transform-origin: right center;
    width: 500px;
}

@media (max-width: 850px) {
    #nav-list {
        z-index: 1;
        position: absolute;
        flex-direction: column;
        align-items: flex-start;
        height: 100vh;
        top: 0;
        left: 0%;
        background-color: var(--secondary-theme);
        width: 100%;
        padding-top: 100px;
        justify-content: flex-start;
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
        padding-left: 10%;
    }

    #nav-list > li {
        margin-bottom: 10px;
    }

    #nav-list.full {
        /*        transition-duration: 0s;*/
    }

    #nav-list.hide {

        left: 100%;
    }

    header.shrink nav > #logo,
    header.shrink nav > #nav-toggle {
        transform: scale(0.9);
    }

    header nav > #logo,
    header nav > #nav-toggle {
        transition: transform 0.3s;
    }
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}



#logo {
    width: 300px;
    position: relative;
    z-index: 2;
}

@media (max-width: 500px) {
    #logo {
        width: 200px;
        max-width: 50vw;
    }
}

li.active {
    font-weight: bold;
    border-bottom: 3px solid var(--primary-theme);
}

#nav-list > li {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
}

#nav-list > li:hover {
    color: var(--primary-theme);
    cursor: pointer;
}

h1 {
    background: linear-gradient(white, var(--primary-theme));
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    font-weight: bold;
    /*    font-size: 48px;*/
    font-size: 3rem;
    letter-spacing: 1px;
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, 0.16));
}

@media (max-width: 500px) {
    h1 {
        font-size: 2.5rem;
    }
    #hero h1{
        font-size: 2.1rem;
    }
}

#hero > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero p {
    color: white;
    padding-top: 20px;
    font-size: 1rem;
    line-height: 25px;
    max-width: 800px;
    filter: drop-shadow(3px 3px 1px rgba(0, 0, 0, 0.16));
}

.cta-btn {
    background: linear-gradient(#E8D6B3, var(--primary-theme));
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.16));
    color: white;
    transition-duration: 0.2s;
    margin-top: 50px;
}

.cta-btn:hover {
    filter: brightness(80%);
    filter: drop-shadow(0);
    cursor: pointer;
}

button {
    font-size: 1rem;
    font-weight: bold;
    width: 200px;
    padding: 12px 8px;
    border: none;
    background-color: unset;
    border-radius: 50px;
    transition-duration: 0.2s;
}

button:focus,
button:active {
    outline: none;
}

button:hover {
    cursor: pointer;
}

.toggle-span {
    pointer-events: none;
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 2px;
    margin-top: 2px;
    position: relative;
    background: white;
    border-radius: 10px;
    z-index: 1;
    transform-origin: 50% 50%;

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}




#nav-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 850px) {
    #nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;
    }
}

.toggled .toggle-span:nth-child(2) {
    transform: rotate(45deg);
}

.toggled .toggle-span:nth-child(3) {
    transform: rotate(-45deg);
}

.toggled .toggle-span:nth-child(1),
.toggled .toggle-span:nth-child(4) {
    opacity: 0;
}


.toggle-span.middle {
    position: fixed;
    margin: 0;
}


#quote > .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

@media (max-width: 1100px) {
    #quote > .container {
        flex-direction: column;
    }
}

#quote > .container > div {
    /*    min-width: 400px;*/
    flex-basis: 0;
    flex-grow: 1;
}

#quote > .container > div:nth-child(2) {
    background-color: white;
    border-radius: 50px;
    padding: 50px;
    z-index: 1;
    position: relative;
}

@media (max-width: 1100px) {
    #quote > .container > div:nth-child(2) {
        position: static;
        border-radius: 50px;
        margin-top: 50px;
        z-index: 0;
        padding-left: 10%;
        padding-right: 10%;
    }

    #quote > .container > div:nth-child(2) > div {
        margin-right: 0;
    }
}

#quote img {
    width: 400px;
}


@media (max-width: 1100px) {
    #quote img {
        max-width: 90%;
        position: relative;
        left: 40px;
    }
}

#quote {
    background-color: #F4F4F4;
    padding-top: 150px;
    padding-bottom: 100px;
}

@media (max-width: 1100px) {
    #quote {
        padding-top: 75px;
    }
}



h2 {
    font-size: 2rem;
}

.subtext {
    padding-top: 20px;
    color: #5C5C5C;
    line-height: 1.5rem;

}

.accent {
    margin-top: 10px;
    width: 100px;
    height: 5px;
    display: block;
    background-color: var(--primary-theme);
}

.secondary-btn {
    margin-top: 20px;
    color: white;
    background-color: var(--primary-theme);
}

.secondary-btn:hover {
    filter: brightness(80%);
}

#get-quote {}

#quote #grid-accent {
    position: absolute;
    z-index: 1;
    width: 120px;
    top: -35px;
    left: -35px;
}

@media (max-width: 1100px) {
    #quote #grid-accent {
        display: none;
    }
}

#contact {
    background-color: var(--secondary-theme);
    padding-top: 75px;
    padding-bottom: 75px;
    color: white;
}

#contact > .container > div {
    display: flex;
    width: 100%;
    padding-top: 50px;
}

@media (max-width: 1000px) {
    #contact > .container > div {
        flex-direction: column-reverse;
    }
}

#contact > .container > div > div {
    flex-basis: 0px;
}

#contact > .container > div > div:nth-of-type(1) {
    flex-grow: 1;
    margin-right: 10%;
}

@media (max-width: 1000px) {
    #contact > .container > div > div:nth-of-type(1) {
        margin-right: 0%;
    }
}

#contact > .container > div > div:nth-of-type(1) p {
    margin-bottom: 10px;
}

#contact > .container > div > div:nth-of-type(2) {
    flex-grow: 1;
}

#contact h2 {
    color: white;
}

#contact input {
    width: 100%;
    font-size: 1rem;
    padding: 10px 5px;
    border-radius: 5px;
    border: none;
    margin-bottom: 30px;
}

#contact textarea {
    width: 100%;
    resize: none;
    font-size: 1rem;
    padding: 10px 5px;
    border-radius: 5px;
    border: none;
}

#contact-items {}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}
.contact-item a{
    color: white;
}

.contact-item img {
    width: 1.5rem;
    vertical-align: bottom;
    margin-right: 20px;
}

footer hr {
    border-top: 1px solid white;
    width: 100%;
}

footer {
    background-color: var(--secondary-theme);
    color: white;
}

footer span {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    width: 100%;
    display: block;
    font-size: 0.8rem;

}

#services > .container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#services {
    padding-top: 100px;
    padding-bottom: 75px;
    background-color: white;
}



#pmi {
    margin-top: 75px;
    margin-bottom: 75px;
}


#service-list {
    border-radius: 10px;
    /*    box-shadow: 0px 0px 20px rgba(0,0,0,0.1);*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-gap: 30px;
    grid-column-gap: 75px;
    width: 100%;
}

@media (max-width: 450px){
    #service-list{
        display: flex;
        flex-direction: column;
    }
}

#service-list > div,
#service-list > div > p {
    max-width: 90vw;
}

#service-list div {
    /*    border: 1px solid var(--primary-theme);*/
    /*    border-radius: 10px;*/
}

#service-list p:first-child {
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 15px;
    padding-left: 0;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-theme);
}

#pmi p:first-child {
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 15px;
    padding-left: 0;
    margin-bottom: 0px;
    text-align: center;
}

#pmi p:nth-child(2) {
    border-bottom: 2px solid var(--primary-theme);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: red;
    padding-top: 20px;
    padding-bottom: 20px;
}

#service-list p:first-child::before {
    /*
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: top;
    background-color: var(--primary-theme);
    border-radius: 100%;
*/
}

#service-list p:nth-child(2) {
    font-size: 1;
    padding: 10px 15px;
    padding-left: 0px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#modal-overlay {
    position: fixed;
    pointer-events: inherit;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition-duration: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-overlay:hover {
    cursor: pointer;
}

#modal-overlay.hidden {
    pointer-events: none;
    opacity: 0;
}

body.no-scroll {
    overflow: hidden;
}

#modal-overlay.hidden #modal {
    transform: translateY(-100px);
    transition-timing-function: ease-in;
}

#modal p {
    text-align: center;
    padding-top: 20px;
}

@media (max-width: 450px){
    #modal p{
        font-size: 0.8rem;
    }
}

#modal-overlay #modal {
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    padding: 20px;
    max-height: 95vh;
    overflow-y: scroll;
    position: relative;
/*    overflow: hidden;*/
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#modal-overlay #modal::-webkit-scrollbar{
    display: none;
}

#modal-overlay #modal h2 {
    text-align: center;
    /*    width: 100%;*/
}

#modal-overlay #modal:hover {
    cursor: default;
}

#modal-fields {

    padding-top: 20px;
    display: flex;
    flex-direction: column;
    font-weight: bold;
}


#modal-fields > span > input {
    flex-grow: 1;
}

#modal-fields > span > input {
    display: block;
}

#modal-fields > span,
#modal-fields > row {
    flex-grow: 1;
}

#modal-fields input {
    margin-top: 5px;
    border: 1px solid #474444;
    border-radius: 5px;
    padding: 5px;
}

#modal-fields .modal-input textarea {
    margin-top: 5px;
    border: 1px solid #474444;
    border-radius: 5px;
    padding: 5px;
    width: 100%;
    resize: none;
}

#modal-fields .number-input input {}



.number-inputs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.number-inputs input {
    width: 2rem;
}

.modal-input:not(.number-inputs) {
    display: flex;
    flex-direction: column;
}



.modal-input {
    padding-top: 10px;
    padding-bottom: 10px;
}

a[href^=tel] {
    text-decoration: inherit;
    color: inherit;
}

#modal-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-theme);
    border-top-right-radius: 10px;
}

@media (max-width: 450px) {
    #modal-close-btn {
        transform-origin: top right;
        transform: scale(0.5);
    }
}

#modal-close-btn:hover {
    cursor: pointer;
    filter: brightness(80%);
}

#modal-close-btn span {
    width: 2rem;
    height: 2px;
    background-color: white;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

#modal-close-btn span:nth-of-type(1) {
    transform: translateX(-50%) translateY(-50%) rotateZ(45deg);
}

#modal-close-btn span:nth-of-type(2) {
    transform: translateX(-50%) translateY(-50%) rotateZ(-45deg);
}

#submit-quote-btn {
    float: right;
}

.modal-error-msg {
    color: red;
    font-size: 0.8rem;
}

#phone-number {
    margin-top: 5px;
    border: 1px solid #474444;
    border-radius: 5px;
    padding: 5px;

}

#phone-number > input {
    border: none;
    padding: 0;
    margin: 0;
}

#phone-number > input:focus {
    outline: none;
}

input:focus,
textarea:focus {
    outline: none;
}

.contact-error-msg {
    color: red;
    font-size: 0.8rem;
}

@media (max-width: 1000px) {
    #send-message-btn {
        float: right;
    }
}

@media (max-width: 450px) {
    #quote-btn {
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
}

#services i {
    font-size: 1.5rem;
    padding-top: 50px;
    font-weight: 300;
    text-align: center;
}

body {
    background-color: var(--secondary-theme);
    width: 100vw;
    overflow-x: hidden;
}

.radio-container {
    display: flex;
    padding-bottom: 10px;
}

@media(max-width: 430px) {
    .radio-container {
        display: block;
    }
}

.radio-container > span {
    padding-right: 20px;
}

.radio-inputs {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

#pmi {}

.pmi-cta {
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
}

#pmi-scroll {
    text-decoration: underline;
}

#pmi-scroll:hover {
    cursor: pointer;
    opacity: 0.6;
}

.pmi-table .row {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;

}

.pmi-table .row .col {
    width: 25%;
    text-align: center;
}

.pmi-table .row.header-row {
    text-align: center;
    display: block;
    font-weight: bold;
    font-size: 20px;
    border-bottom: none;
}

.pmi-table .row.row-titles {
    font-weight: bold;
    background-color: #5C5C5C;
    background-color: var(--primary-theme);
    color: white;
    border-bottom: none;
}

.pmi-table {
    margin-bottom: 50px;
}

@media (max-width: 650px){
    .pmi-table{
        font-size: 8pt;
    }
}

.pmi-table .row {
    border-bottom: 1px solid #5C5C5C;
}

.modal-success-msg {
    color: green;
    font-size: 0.8rem;
    display: none;
}

.contact-success-msg {
     color: lightgreen;
    font-size: 1rem;
    display: none;
}
