* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fcf5e9;
    --dark-color: #333;
    --container-normal: 1100px;
    --container-wide: 1400px;
    --container-narrow: 900px;
}

body {
    font-family: 'Open Sans', sans-serif;
}


ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

img {
    width: 100%;
}

.bg-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.bg-dark {
    background: var(--dark-color);
    color: #fff;
}

.btn {
    display: block;
    padding: 1rem 2rem;
    border: 1px solid var(--dark-color);
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark-color);
    color: #fff;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.service-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;

}

.container {
    max-width: var(--container-normal);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: var(--container-wide);
}

.container-sm {
    max-width: var(--container-narrow);
}



.header {
    margin: 1.5rem auto;

    .logo {
        width: 130px;
    }

    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .main-menu {
            display: flex;
            gap: 1rem;

            a {
                padding: 0.5rem 1rem;

                &:hover {
                    background: var(--primary-color);
                }
            }

            .current {
                background: var(--primary-color);
                font-weight: 900;
            }
        }
    }
}

.hero {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    h2 {
        font-size: 3rem;
        line-height: 1.4;
        font-weight: normal;
    }
}


/* Gallery Section */

.gallery-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;


}

.gallery-item {
    width: calc(33.333% - 20px);
    border-radius: 10px;

    img {
        border-radius: 10px;
    }

    &:hover {
        opacity: 0.9;
    }
}


/* Team Section */

.team {
    padding: 3rem 0 4rem;
    margin-bottom: 0.7rem;
}

.team-flex {
    display: flex;
    gap: 1.4rem;
}

.team-item img {
    border-radius: 10px;
}


/* Footer section */

.footer {
    border-top: 1px solid #aaa;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer img {
    width: 120px;
    height: 35px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer a {
    margin: 0.2rem;
}


/* About page */

.services {
    padding: 3rem 0 4rem;
}



.services-flex {
    display: flex;
    gap: 2rem;
}

.services-flex h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}


/* Contact Page */
.contact {
    padding: 3rem 0 4rem;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin: 2rem 0;
}

.contact input,
.contact textarea {
    border: none;
    border-bottom: 1px solid var(--dark-color);
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    padding-bottom: 1rem;
}

.contact textarea {
    height: 200px;
}

.contact input:focus,
.contact textarea:focus {
    outline: 0;
}

.contact button {
    width: 100%;
}




/* Media query */

@media (max-width:768px) {

    .header-flex,
    .footer .footer-flex,
    .services-flex,
    .team-flex {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        height: 300px;

        h2 {
            font-size: 1.8rem;
        }
    }

    .gallery-item {
        width: calc(50% - 20px);
    }

    .footer .footer-flex {
        text-align: center;
    }

}
