

:root {
    --color-text: black;
    --color-primary: rgb(40, 39, 236);
    --color-overlay: rgba(40, 39, 236, .5);
    --color-background: rgb(243, 243, 243);

    --font-fam-title: 'Open sans', sans-serif;
    --font-fam-serif: 'Open sans', sans-serif;
    --font-fam-logo: ;
}

*, 
*::before,
*::after {
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    font-family: var(--font-fam-serif);
    color: var(--color-text);
    font-size: 1.125rem;
    scroll-behavior: smooth;
}

body {
   margin: 0;
   box-sizing: border-box;
   overflow-x: hidden;
   background-color: var(--color-background);
}

img {
    display: block;
    max-width: 100%;
}


/* Typography */
h1,
h3,
h4,
p {
    margin: 0;
}

h2 {
    font-size: 1.6rem;
    line-height: 1.5rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-primary);   
}


/* Buttons */
.btn-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn {
    text-decoration: none;
    list-style: none;
}

.btn.btn-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

    width: 90vw;
    height: 12vh;
    margin: .2em;
    padding: .5em;
    border-radius: .1rem;

    background-color: white;
    color: var(--color-primary);
    padding: .3em;
    font-weight: 600;
    box-shadow: 2px 2px 8px 1px rgba(0, 0, 0, .5);

    transition: 200ms ease-in-out;
}

.btn.btn-cards.card1::after {
    content: 'Click to Contact Us for a Free Estimate';
    position: absolute;
    text-align: center;
    background-color: rgba(44, 44, 44, 0.9);
    border-radius: .5rem;
    color: white;
    padding: .8rem;
    top: 105%;
    font-size: .7rem;
    transform: scale(0);
    transform-origin: top;
    transition: 150ms ease-in-out;
    z-index: 2;
}
.btn.btn-cards.card2::after {
    content: 'Click to see our Kitchen Remodeling';
    position: absolute;
    text-align: center;
    background-color: rgba(44, 44, 44, 0.9);
    border-radius: .5rem;
    color: white;
    padding: .8rem;
    top: 105%;
    font-size: .7rem;
    transform: scale(0);
    transform-origin: top;
    transition: 150ms ease-in-out;
    z-index: 2;
}
.btn.btn-cards.card3::after {
    content: 'Click to see our Bathroom Remodeling';
    position: absolute;
    text-align: center;
    background-color: rgba(44, 44, 44, 0.9);
    border-radius: .5rem;
    color: white;
    padding: .8rem;
    top: 105%;
    font-size: .7rem;
    transform: scale(0);
    transform-origin: top;
    transition: 150ms ease-in-out;
    z-index: 2;
}

.btn.btn-cards.card1:hover::after,
.btn.btn-cards.card2:hover::after,
.btn.btn-cards.card3:hover::after {
    transform: scale(1);
}

.btn.btn-cards:hover,
.btn.btn-cards:focus {
    background-color: var(--color-primary);
    color: white;
}

.btn.btn-cards:hover > .dollar-icon,
.btn.btn-cards:focus > .dollar-icon {
    background-image: url(../images/Estimates_white.png);
}

.btn.btn-cards:hover > .kitchen-icon,
.btn.btn-cards:focus > .kitchen-icon {
    background-image: url(../images/Kitchen_white.png);
}

.btn.btn-cards:hover > .bath-icon,
.btn.btn-cards:focus > .bath-icon {
    background-image: url(../images/Bath_white.png);
}

.btn.send {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 0 1.5rem 5rem 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn.send > a {
    text-decoration: none;
    background-color: var(--color-primary);
    color: white;
    text-transform: uppercase;

    width: 80vw;
    padding: .3rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.2rem;

    transition: 200ms ease-in-out;
}

.btn.send a:hover,
.btn.send a:focus {
    background-color: white;
    color: var(--color-primary);
}                   

.to-the-top-container {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 2px 2px 8px 1px rgba(0, 0, 0, .5);

    right: 5%;
    top: 80%;
    width: 2.5rem;
    height: 2.5rem;

    opacity: 0;
    pointer-events: none;
    transition: 300ms ease-in-out;
    z-index: 3;
}
.to-the-top {
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.arrow {
    width: 50%;
    height: 50%;
    margin-top: .5rem;
    padding: 0;
    background-color: transparent;
    border: 6px solid var(--color-primary);
    border-bottom: transparent;
    border-right: transparent;
    transform: rotate(45deg);
}

.to-the-top-container.active {
    opacity: 1;
    pointer-events: auto;
    top: 82%;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 12vh;
    padding-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: background-color 200ms ease-in-out;
    z-index: 3;
}

.navbar.active {
    background-color: rgba(0, 0, 0, .6);
}

.navbar h1 {
    margin-bottom: 1.8rem;
    color: white;
}

.navbar h1 a {
    text-transform: none;
    text-decoration: none;
    font-size: inherit;
    position: relative;
    background-color: none;
    color: white;
    transition: 200ms ease-in-out;
}

.navbar h1 a:hover {
    color: rgb(230, 230, 230);
}

.navbar h1 a::after {
    content: 'Home';
    position: absolute;
    top: 100%;
    left: 36.6%;
    padding: .5rem;
    border-radius: .3rem;
    text-align: center;
    font-size: 1rem;
    background-color: rgba(44, 44, 44, 0.9);
    transform: scale(0);
    transition: 150ms ease-in-out;
    transform-origin: top;
}

.navbar h1 a:hover::after {
    transform: scale(1);
}


.navbar > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.navbar-left {
    display: flex;
}

.navbar-right {
    display: flex;
}

.navbar ul a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    padding: .5rem 1.2rem;
    margin: 1rem;
    border-radius: 2rem;
    transition: 200ms ease-in-out;
}

.navbar ul a:hover {
    background-color: white;
    color: var(--color-primary);
}


/* ----- ----- Home Page Styles ----- ----- */

/* Header Section */
.header {
    height: 60vh;
    width: 100vw;
    padding-bottom: 2rem;

    background-size: cover;
    background-position: 48% 60%;
    background-image: url(../images/kitchen.jpg);
    background-blend-mode: overlay;
    background-color: var(--color-primary);
    color: white;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header > h1 {
    position: absolute;
    text-align: center;
    white-space: nowrap;
    
    top: 5%;
    left: 5%;
    font-size: 1.6rem;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    white-space: nowrap;
    margin: 0;
}

.hero > h2 {
    text-align: left;
    font-weight: 300;
    font-size: 1.2rem;
}

.hero > h2 > span {
    font-weight: 600;
}



/* Services Section */
.services-section {
    position: relative;
    background-color: var(--color-background);
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.accent-triangle {
    position: absolute;
    bottom: 100%;
    margin-top: 0;
    width: 0;
    height: 0;
    border-bottom: 100px solid var(--color-background);
    border-right: 100vw solid transparent;
}

.services-section > header {
    text-align: center;
    margin: 0 .5rem .5rem .5rem;
    padding-top: 1rem;
}

.section-title {
    color: var(--color-primary);
}

.services-section > p {
    text-align: center;
    margin: 0 .5rem 1.4rem .5rem;
    width: 80%;
}

.btn-group > a > .icons {
    width: 2.5rem;
    height: 2.5rem;
}

.dollar-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(../images/Estimates_blue.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.icons {
    transition: 200ms ease-in-out;
}

.kitchen-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(../images/Kitchen_blue.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.bath-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(../images/Bath_blue.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}


/* About Us Section */
.about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-image: url(../images/kitchen2.jpg);
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: var(--color-primary);
    position: relative;

    width: 100vw;
    height: 60vh;
    margin-top: 2rem;
    z-index: 1;
}

.about-us > header {
    text-align: center;
    margin-bottom: 1rem;
}

.about-us h3 {
    color: white;
}

.about-us p {
    text-align: center;
    color: white;
    width: 80%;
}


/* Contact Form Section */
.contact-section {
    background-color: var(--color-background);
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.contact-section-container {
    position: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    padding-top: 1rem;
    width: 100%;
    z-index: 2;
}

.contact-section-container > .text-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;

    width: 100%;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.contact-section-container > div > h3 {
    padding-bottom: 0;
}
/*contact form inputs*/
.contact-container {
    display: block;
    margin: auto;
    width: 90%;
    height: 100%;
}

.contact-container > input {
    width: 100%;
    height: 3rem;
    margin-top: .3rem;
    padding-left: .4rem;

    font-family: inherit;
    outline: none;
    border: none;
    border-radius: .2rem;
}

textarea {
    height: 20vh;
    width: 100%;
    margin-top: .3rem;
    padding: .4rem .2rem .2rem .4rem;

    resize: none;
    font-weight: inherit;
    font-family: inherit;
    outline: none;
    border: none;
    border-radius: .2rem;
}

.contact-container input::placeholder, 
.contact-container textarea::placeholder {
    font-size: 1.2rem;
    font-family: 'open sans', sans-serif;
    text-transform: uppercase;
}

.contact-container input, 
.contact-container textarea {
    font-size: 1.2rem;
}

.contact-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-button {
    text-align: center;
    outline: none;
    border-radius: 2rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    font-size: inherit;
    padding: .8rem 1.5rem;
    box-shadow: 0px 1px 5px 1px rgba(0, 0, 0, .5);
    cursor: pointer;
}

.call-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.call-container h4 {
    padding-bottom: .5rem;
}

.call-container a {
    color: black;
    text-decoration: underline;
}

/* Footer Section */
.accent-triangle2 {
    position: absolute;
    bottom: 100%;
    width: 0;
    height: 0;
    border-bottom: 50px solid var(--color-primary);
    border-left: 100vw solid transparent;
    z-index: 0;
}

footer {
    width: 100vw;
    position: relative;
    background-color: var(--color-background);
}

footer .footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;

    padding: 2rem 0 1.3rem 0;
    margin: 0;
    width: 100%;

    background-color: var(--color-primary);
}

footer .footer-nav p {
    color: white;
    font-size: inherit;
}

footer .footer-nav a {
    display: inline-block;
    position: relative;
    padding: 0 .2rem 0 .2rem;
    text-decoration: none;
    color: white;
    text-transform: uppercase;

    transition: 100ms ease-in-out;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    top: 100%;
    width: 90%;
    height: 2px;
    background-color: white;
    transform: scale(0);
    transition: transform 200ms ease-in-out;
    transform-origin: right;
}

.footer-nav a:hover::before,
.footer-nav a:focus::before {
    transform: scale(1);
    transform-origin: left;
}

footer .footer-nav a:hover,
footer .footer-nav a:focus {
    color: rgb(196, 196, 196);
}

.footer-text-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;

    
    background-color: var(--color-background);
    padding: .5rem 0;
}

.footer-text-box > h4 {
    font-size: .7rem
}

.footer-text-box > p {
    white-space: nowrap;
    font-size: .6rem;
}
/* End of Home Page Styles */


/* ----- ----- Portfolio Styles ----- ----- */

/* Header */
.portfolio-header {
    position: relative;
    width: 100%;
    height: 40vh;
    padding-bottom: 2rem;
    background-color: var(--color-primary);
    background-image: url(../images/kitchen4.jpg);
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.portfolio-header > h1 {
    position: absolute;
    text-align: center;
    white-space: nowrap;
    
    top: 6%;
    left: 5%;
    font-size: 1.6rem;
} 

.hero.portfolio {
    font-size: 1.8rem;
    padding-top: 3rem;
}

.space {
    margin-left: .5rem;
}

/* Gallery Section */
.gallery {
    width: 100%;
    padding: 4rem 2.5rem;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 50px solid var(--color-background);
    border-left: 100vw solid transparent;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.textbox {
    margin-bottom: 4rem;
}

.textbox img {
    border-radius: .2rem;
}

.textbox > h3 {
    margin: 1rem 0 .5rem 0;
    font-size: 1.2rem;
}

.textbox > p {
    margin-top: .5rem;
    font-size: .9rem;
}








/* -----  ----- Media Queries ----- ----- */
@media (min-width: 320px) {
    .header .hero > h2 {
        font-size: 8vw;
        line-height: 7vw;
    }
    .header .logo {
        font-size: 8vw;
    }
    .navbar {
        justify-content: left;
        padding-right: 4rem;
        padding-top: 1.3rem;
        height: 9vh;
    }
    .navbar h1 {
        font-size: 1.3rem;
    }
}

@media (min-width: 400px) {
    .navbar {
        padding-top: 2.8rem;
        padding-right: 4.2rem;
        height: 14vh;
    }
}

@media (min-width: 500px) {
    .navbar h1 {
        font-size: 1.7rem;
    }
}

@media (min-width: 600px) {
    .contact-container input,
    .contact-container input::placeholder,
    .contact-container textarea,
    .contact-container textarea::placeholder {
        font-size: 1rem;
    }
    .gallery {
        padding: 4rem 3.5rem;
    }
    .gallery-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: .8rem;
    }
    .portfolio-header > h1 {
        font-size: 2rem;
    }
    .hero.portfolio {
        font-size: 2.2rem;
    }
}

@media (max-width: 800px) {
    .navbar ul {
        display: none;
    }
}

@media (min-width: 800px) {
    .header {
        height: 90vh;
    }
    .header .logo {
        font-size: 2rem;
        right: 5%;
        top: 3.5%;
    }
    .header .hero > h2 {
        font-size: 3rem;
        line-height: 3.5rem;
    }
    .services-section {
        padding-top: 2rem;
        margin-bottom: 5rem;
    }
    .contact-section {
        padding-top: 2rem;
    }
    .contact-button-container {
        grid-column: 1/3;
        margin-bottom: .5rem;
    }
    .btn-group {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .btn.btn-cards {
        height: 12rem;
        width: 12rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 5rem;
        width: 5rem;
    }
    .navbar {
        height: 17vh;
        padding: 1rem 0 0 0;
    }
    .navbar h1 {
        margin-bottom: 1.8rem;
    }

    .call-container {
        font-size: 1.5rem;
    }
    .contact-section {
        padding-bottom: 2rem;
    }
    .contact-section-container {
        background-color: white;
        width: 90%;
        margin-top: 3rem;
        border-radius: .1rem;
        box-shadow: 2px 2px 8px 1px rgba(0, 0, 0, .5);
    }
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: .5rem;
    }
    .contact-container > input {
        background-color: var(--color-background);
        color: black;
        border-radius: .2rem;
        height: 100%;
        padding: .5rem;
    }
    .contact-container > textarea {
        background-color: var(--color-background);
        color: black;
        border-radius: .2rem;
        grid-column: 1/3;
    }
    .btn.send {
        padding-bottom: 2rem;
        width: 10rem;
    }
    .btn.send a {
        padding: .5rem 1.2rem;
    }
    .btn.send a:hover {
        box-shadow: 0 2px 8px 1px rgba(0, 0, 0, .5);
    }
    .contact-container input,
    .contact-container input::placeholder,
    .contact-container textarea,
    .contact-container textarea::placeholder {
        font-size: 1rem;
    }
    .footer-nav a {
        font-size: 1.1rem;
    }
    .footer-text-box h4 {
        font-size: .9rem;
    }
    .footer-text-box p {
        font-size: .8rem;
    }
    .portfolio-header > h1 {
        right: 5%;
        top: 8%;
    }
    .hero.portfolio {
        padding-top: 10rem;
    }
}

@media (min-width: 1000px) {
    .header,
    .about-us {
        background-attachment: fixed;
    }
    .portfolio-header {
        background-image: url(../images/kitchen4.1.jpg);
        background-attachment: fixed;
    }
    .header .hero > h2 {
        font-size: 3.6rem;
        line-height: 3.5rem;
    }
    h3 {
        font-size: 2rem;
    }
    p {
        font-size: 1.4rem;
    }
    .btn.btn-cards {
        height: 15rem;
        width: 15rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 6rem;
        width: 6rem;
    }
    .btn-group a {
        font-size: 1.3rem;
    }
    .contact-container input,
    .contact-container input::placeholder,
    .contact-container textarea,
    .contact-container textarea::placeholder {
        font-size: 1.2rem;
    }
    .btn.btn-cards.card1::after,
    .btn.btn-cards.card2::after,
    .btn.btn-cards.card3::after {
        font-size: .9rem;
    }
    .gallery {
        padding: 4rem 4rem;
    }
}

@media (min-width: 1200px) {
    .contact-section > div {
        justify-content: space-evenly;
        align-items: center;
    }
    .btn-group {
        justify-content: space-evenly;
        padding-left: 5rem;
        padding-right: 5rem;
    }
    .btn.btn-cards {
        height: 18rem;
        width: 18rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 7rem;
        width: 7rem;
    }
    .btn-group a {
        font-size: 1.5rem;
    }
    .btn.send {
        padding-bottom: 0;
        margin-bottom: 1.5rem;
    }
    .btn.btn-cards.card1::after,
    .btn.btn-cards.card2::after,
    .btn.btn-cards.card3::after {
        font-size: 1rem;
    }
    .gallery-container {
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: .8rem;
    }
    .gallery {
        padding: 4rem 4.5rem;
    }
}

@media (min-width: 1400px) {
    .btn.btn-cards {
        height: 20rem;
        width: 20rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 8rem;
        width: 8rem;
    }
    .btn-group a {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 3rem;
    }
    .contact-section-container > .text-box {
        margin-bottom: 3rem;
        padding-top: 3rem;
    }
    .contact-container {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }
    .contact-container > input,
    .contact-container > textarea {
        padding: .8rem; 
    }
    .btn.send {
        margin-bottom: 3.5rem;
    }
    .btn.send a {
        font-size: 1.4rem;
    }
    .contact-container input,
    .contact-container input::placeholder,
    .contact-container textarea,
    .contact-container textarea::placeholder {
        font-size: 1.5rem;
    }
    .btn.btn-cards.card1::after,
    .btn.btn-cards.card2::after,
    .btn.btn-cards.card3::after {
        font-size: 1.1rem;
    }
    .gallery-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: .8rem;
    }
    .gallery {
        padding: 5rem 10rem;
    }
}

@media (min-width: 1600px) {
    .btn.btn-cards {
        height: 22rem;
        width: 22rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 10rem;
        width: 10rem;
    }
    .btn-group a {
        font-size: 2rem;
    }
    .contact-container {
        grid-gap: 1rem;
        width: 85%;
    }
}

@media (min-width: 1800px) {
    .btn.btn-cards {
        height: 24rem;
        width: 24rem;
        margin: 1rem;
    }
    .btn-group > a > .icons {
        height: 12rem;
        width: 12rem;
    }
    .btn-group a {
        font-size: 2.2rem; 
    }

}
