/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    font-family: 'Open Sans', serif;
    font-weight: normal;
}

body {
    background-color: #FAF9F6;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: unset;
}
a:hover {
    text-decoration: underline;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

header h1 {
    font-family: 'Open Sans', serif;
    font-weight: bold;
    font-style: normal;
    margin: 40px auto;
}

header .logo {
    max-width: 300px;
}

header .header-img {
    position: relative;
}

header .header-img::before {    
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #ffc65d;
    opacity: 1;
    top: 2.5em;
    left: -2.5em;
    z-index: -1;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
header .img-header {
    max-width: 400px;
}

main {
    margin: 80px auto;
    text-align: center;
}
main .container {
    max-width: 1000px;    
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
main .container-grid {
    display: flex;
    justify-content: center;
}
main .img {
    overflow: hidden;
}
main img {
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

footer .contact {
    margin-bottom: 20px;
    flex-direction: column;
    text-align: center;
}

footer .contact ul {
    list-style-type: none;
    padding-inline-start: 0;
}

footer .icon-contact {
    display: inline-block;
    margin-right: 10px;
    width: 20px;
    height: auto;
}
footer ul li a {
    display: flex;
    margin: 8px 0;
}
footer .copyright {
    font-size: 12px;
}


/* CSS Grid*/
main .img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
}

@media (max-width: 500px) {
    header .logo {
        max-width: 150px;
        height: auto;
    }
    header .img-header {
        max-width: 240px;
        height: auto;
    }
    main h2 {
        font-size: 16px;
    }
}
@media only screen and (min-width: 750px) {
    main .img-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Bigger than Phones(laptop / desktop) */
@media only screen and (min-width: 970px) {
    main .img-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}