:root {
    --primary-color: rgb(0, 128, 128);
    --primary-color-transparent: rgba(0, 128, 128, 0.4);
    --secondary-color: rgb(0, 51, 102);
    --black-transparent: rgba(0, 0, 0, 0.3);
    --main-font: Montserrat, sans-serif;
    --footer-background-color: #20232a;
    --width-logo: 4rem;
}

html {
    @media (max-width: 800px) {
        font-size: 14px;
    }

    body {
        font-family: var(--main-font);
        margin: 0;

        a {
            color: white;
            text-decoration: none;
        }

        ul {
            list-style-type: none;
        }

        button {
            color: white;
            background-color: var(--primary-color);
            padding: 0.5rem;
            border: none;
            font-size: 1rem;
        }
        button:hover {
            background-color: var(--secondary-color);
        }

        header {
            color: white;
            background-image:   linear-gradient(0.25turn, var(--primary-color-transparent), rgba(0, 128, 128, 0.1)),
                                url("../images/header_image.avif");
            background-position: top;
            background-size: auto;
            text-align: center;

            div:first-child {
                text-align: right;

                img {
                    width: var(--width-logo);
                }
            }

            div:last-child {
                padding-bottom: 4rem;
                hgroup {
                    margin-bottom: 1rem;
                    h1 {
                        font-style: italic;
                        font-size: 5rem;
                        font-weight: 999;
                        margin: 0 0 1rem;
                    }
    
                    p {
                        font-weight: 700;
                        margin: 0;
                    }
                }
                nav {
                    ul {
                        margin: 0;
        
                        li {
                            display: inline-block;
                            padding: 0.5rem;
                        }
        
                    }
                }
            }


        }

        main {
            section#ourGoalYourSatisfaction {
                color: var(--primary-color);
                display: flex;
                @media(max-width: 800px) {
                    flex-direction: column;
                    justify-content: center;
                }
                padding: 5rem;
                width: 60%;
                margin: auto;

                img {
                    width: 20rem;
                    height: 20rem;

                    @media (max-width: 800px) {
                        width: 100%;
                    }
                }

                div {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    @media (max-width: 800px) {
                        text-align: center;
                    }

                    h2 {
                        text-decoration: underline;
                        margin-left: -5rem;
                        @media(max-width: 800px) {
                            margin: 0;
                        }
                    }

                    p {
                        margin: 1rem;
                    }
                }
            }

            ul {
                margin: 0;
                padding: 0;
                text-align: center;
                display: flex;
                justify-content: center;
                @media(max-width: 800px) {
                    flex-direction: column;
                }

                li {
                    width: 50%;
                    border: 1px solid lightgray;
                    padding: 2rem;
                    @media(max-width: 800px) {
                        width: 100%;
                        box-sizing: border-box;
                    }

                    img {
                        width: 3rem;
                    }

                }
            }

            section#yourRealEstatePartner {
                color: white;
                background-image: linear-gradient(0.25turn, var(--primary-color-transparent), rgba(0, 128, 128, 0.1)),
                    url("../images/main_image.avif");
                background-size: cover;
                background-position: center;
                display: flex;
                justify-content: right;
                @media(max-width: 800px) {
                    text-align: center;
                    justify-content: center;
                }

                div {
                    margin: 4rem 8rem;
                    width: 30%;
                    @media(max-width: 800px) {
                        width: 90%;
                        margin: 4rem;
                    }
                    h2 {
                        margin-left: -5rem;
                        @media(max-width: 800px) {
                            margin: 0;
                        }
                    }

                    p {
                        margin: 1.5rem 0 2rem;
                    }

                    a {
                        background-color: var(--primary-color);
                        padding: 0.5rem;
                    }
                }
            }

            section#discoverRealEstate {
                text-align: left;
                margin: 3rem 15%;
                h2 {
                    color: var(--primary-color);
                    @media(max-width: 800px) {
                        text-align: center;
                    }
                    /* margin-left: -3rem; */
                }

                div {
                    display: flex;
                    justify-content: left;
                    @media(max-width: 800px) {
                        flex-direction: column;
                    }

                    ul {
                        flex-direction: row;

                        li {
                            border: none;
                            padding: 2rem 4rem;

                            p:first-child {
                                color: var(--secondary-color);
                                font-size: 3rem;
                                font-weight: bold;
                                margin: 0;
                            }
                        }
                        li:first-child {
                            padding-right: 2rem;
                        }
                        li:nth-of-type(2) {
                            padding: 2rem 2rem
                        }
                        li:last-child {
                            padding-left: 2rem;
                        }
                    }

                    div {
                        text-align: left;
                        @media(min-width: 801px) {
                            display: block;
                        }
                        button {
                            border-radius: 5px;
                            padding: 0.5rem 1rem;
                            @media(max-width: 800px) {
                                margin: auto;
                            }
                        }
                    }
                }
            }
        }

        footer {
            background-color: var(--footer-background-color);
            color: white;
            display: flex;
            justify-content: center;
            padding: 3rem 0;
            margin: auto;
            @media(max-width: 800px) {
                text-align: center;
                flex-direction: column;
            }
            address {
                width: 35%;
                ul {
                    @media(max-width: 800px) {
                        display: flex;
                    }
                    li {
                        display: flex;
                        @media(max-width: 800px) {
                            display: block;
                        }
                        p, a {
                            margin: 1rem 0.5rem;
                            font-style: normal;
                        }
                        p:first-child {
                            color: var(--primary-color);
                            font-weight: bold;
                        }
                    }
                }
            }
            div {
                width: 45%;
                img {
                    width: var(--width-logo);
                }
            }
            address, div {
                @media(max-width: 800px) {
                    width: 80%;
                    margin: auto;
                }
            }
        }
    }
}