@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;700&display=swap'); */
@import url('https://use.fontawesome.com/releases/v5.0.6/css/all.css');

:root {
    --page-bg-color: whitesmoke;
    --page-text-color: grey;
    --header-bg-color: slategrey;
    --footer-bg-color: lightslategrey;
    --footer-text-color: black;
    --accent-color: tomato;
    --link-color: tomato;
    --menu-bg-color: slategrey;
}

body {
    background: var(--page-bg-color);
    color: var(--page-text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;

    /*
    font-family: 'Montserrat', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    */
}

h1, h2 {
    color: black;
    font-family: 'Roboto Slab', serif;
}

header {
    background: var(--header-bg-color);
    padding: 1rem;
}

nav.menu-toggle {
    display: block;
}

nav {
    display: none;
}

nav {
    position: fixed;
    z-index: 3;
    width: 50%;
    right: 0;
    top: 0;
    background: var(--menu-bg-color);
    height: 100vh;
    padding: 2rem;
}

nav ul {
    margin-top: 5rem;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    text-align: right;
    padding: 0.5rem;
    font-size: 1.5rem;
}

nav a:hover {
    font-weight: bold;
}

header .container {
    display: flex;
    place-content: space-between;
}

.company-logo img {
    width: 6rem;
    display: block;
}

.menu-open {
    cursor: pointer;
    width: 2rem;
}

.menu-close {
    float: right;
    margin: 0.5rem;
    cursor: pointer;
    width: 2rem;
}

a {
    color: var(--link-color);
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 0;
}

main {
    padding: 5rem 2rem;
    text-align: center;
}

main .subheading {
    text-transform: uppercase;
    font-weight: bold;
    color: grey;
    letter-spacing: 0.1rem;
    margin-bottom: 2rem;
}

.cta {
    background: var(--accent-color);
    color: white;
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 1.3rem;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 5rem;
    margin-top: 1rem;
}

.hero-image {
    width: 80%;
    margin-top: 5rem;
}

section {
    padding: 3rem 2rem;
}

footer {
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    margin-top: 5rem;
    padding-top: 2rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    font-size: 3rem;
    padding: 0 1rem;
}

footer a {
    color: white;
}

.footer-links {
    padding-top: 2rem;
    margin-bottom: 3rem;
}

footer li {
    padding: 0.5rem;
}

.copyright {
    display: inline-block;
    margin-bottom: 0.8rem;
}

/* Services page */

.services-list {
    text-align: left;
}

.services-list li {
    /* background: white; */
    /* box-shadow: 0.5rem 0.5rem 1.5rem rgba(0, 0, 0, 0.1); */
    margin: 5rem auto;
}

.services-list li:last-child {
    margin-bottom: 0;
}

.services-list img {
    display: block;
    width: 15rem;
    margin-bottom: 2rem;
}

/* About us */

.about-us {
    text-align: right;
}

.about-us article {
    margin-top: 4rem;
}

.about-us article p,
section p,
ul p {
    margin-top: 2rem;
}

/* Contact us */

#contact-form {
    margin-top: 3rem;
    text-align: left;
}

fieldset {
    border: none;
}

label {
    display: block;
}

input, textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid grey;
    border-radius: 0.5rem;
    /* box-sizing: border-box; */
}

input[type="submit"] {
    background: var(--accent-color);
    color: white;
    display: inline-block;
    padding: 0.6rem 1.3rem;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    border-radius: 5rem;
    width: unset;
    cursor: pointer;
}


@media only screen and (min-width: 44rem) {
    .menu-open, .menu-close {
        display: none;
    }

    .container {
        width: 40rem;
        margin: 0 auto;
    }

    header nav {
        display: unset;
        position: unset;
        height: auto;
        width: 100%;
        padding: 0;
    }

    header nav ul {
        display: flex;
        justify-content: right;
        margin: 0;
        padding: 0;
    }

    header nav a {
        font-size: 1.1rem;
        margin-left: 1rem;
    }

    header .company-logo {
        display: inherit;
    }

    .hero-image {
        width: 67%;
    }
}