/* general styles */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: #5A5959;
    font-size: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: #5A5959;
}

a:focus {
    outline: none;
}




/* typography */

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
    font-size: 1rem;
    line-height: 1.7;
    margin: 10px 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: bold;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.05em;
    line-height: 1em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

h4 {
    font-size: 1.25rem;
}



/* layout */

header,
section,
main {
    display: grid;
    width: 100%;
    grid-template-columns: 300px 300px 300px;
    grid-gap: 30px;
    justify-content: center;
}




/* top menu */

header > * {
    padding: 20px 0 0;
}

header ul {
    grid-column: span 2;
    display: flex;
    list-style: none;
    margin: 0;
}

header ul li {
    padding-right: 20px;
    font-weight: bold;
}

header p {
    text-align: right;
    font-weight: bold;
}



/* main */

main {
    align-items: center;
    padding: 45px 0 75px;
}

main .main-text {}

main .main-image {
    grid-column: span 2;
}

.social img {
    margin-right: 5px;
}



/* call-to-action */

section#call-to-action {
    background-color: #7AB44D;
    display: block;
    text-align: center;
    padding: 15px 0;

}

section#call-to-action * {
    color: white;
}

section#call-to-action strong {
    white-space: nowrap;
}



/* services */

section#services {
    padding: 75px 0;
}

section#services *:first-child {
    grid-column: 1/-1;
}



/* about-us */

section#about-us {
    grid-template-columns: 445px 445px;
    background-color: #5A5959;
    color: white;
    padding: 75px 0;
}

section#about-us *:first-child {
    grid-column: 1/-1;
}

section#about-us > * > * {
    margin-top: 0;
}



/* contact */

section#contact {
    padding: 75px 0;
}

section#contact *:first-child {
    grid-column: 1/-1;
}


footer {
    display: block;
    background-color: #5A5959;

}

.sc-map {
    width: 100% !important;
}



/* anchor link scrolling */

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/** mobile **/

@media screen and (max-width:480px) {


    img {
        max-width: 100%;
        height: auto;
    }

    /* typography */

    h2,
    h3,
    h4 {
        line-height: 1.3;
    }

    p,
    li {
        line-height: 1.6;
        margin: 5px 0;
    }



    /* layout*/

    header,
    section,
    main {
        display: flex;
        flex-direction: column;
        grid-gap: 0;
    }

    header {
        padding: 20px;
    }

    header > * {
        padding: 0;
    }


    header ul li {
        padding-right: 15px;
    }

    header p {
        text-align: left;
    }



    /* main */

    main {
        padding: 20px;
    }

    main > div:first-child {
        margin-bottom: 20px;
    }



    /* call-to-action */

    section#call-to-action {
        padding: 20px;
        text-align: left;

    }

    section#call-to-action * {}



    /* services */

    section#services {
        padding: 20px 20px 40px;
    }

    section#services > * {
        margin-bottom: 10px;
    }



    /* about-us */

    section#about-us {
        padding: 20px 20px 40px;
    }



    /* contact */

    section#contact {
        padding: 20px;
    }

    section#contact > * {
        margin-bottom: 10px;
    }

    section#contact > *:first-child {
        grid-column: 1/-1;
    }

}



/* Sitecake classes */

.sc-content h1.green,
.sc-content h2.green,
.sc-content h3.green,
.sc-content h4.green {
    color: #7AB44D;
}

.sc-content img.rounded {
    border-radius: 6px;
}
