@font-face {
    font-family: Roboto;
    src: url(./fonts/Roboto-Regular.ttf);
    font-display: swap;
    font-weight: 400;
}
@font-face {
    font-family: Roboto;
    src: url(./fonts/Roboto-Medium.ttf);
    font-display: swap;
    font-weight: 500;
}
@font-face {
    font-family: Roboto;
    src: url(./fonts/Roboto-SemiBold.ttf);
    font-display: swap;
    font-weight: 600;
}
@font-face {
    font-family: Roboto;
    src: url(./fonts/Roboto-Bold.ttf);
    font-display: swap;
    font-weight: 700;
}


* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    border: 0;
    font-style: normal;
    font-weight: 400;
    font-family: Roboto;
}

:root {
    --text: #263238;
}
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    border: 0;
    font-style: normal;
    font-weight: 400;
    font-family: Roboto;
    color: var(--text);
    outline: none;
}

html {
    font: 16px/20px Roboto;
    color: var(--text); 
    font-weight: 500;
}

@media screen and (max-width: 800px) {
    html {
        font-size: 14px;
        line-height: 16px;
    }
}

li {
    list-style: none;
}

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

h1 {
    color: #0D953F;
    text-transform: uppercase;
    font-size: 1.75rem;
    line-height: 1.2em;
    font-weight: 500;
    margin-bottom: 1em;
}

body {
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > header > a, 
body > main, 
footer > * {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

body > header {
    background-color: #fff;
    box-shadow: 0px 8px 40px 0px #0000000D;
    & > a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 4em;
        background: no-repeat url(./images/logo.png) .2em center / 3em;
        font-size: 1.75rem;
        line-height: 1.5em;
        & > strong {
            font-size: 2.25rem;
            font-weight: 600;
            &::after {
                display: block;
                height: 5px;
                background-image: linear-gradient(to right, #3DD476, #0D953F);
                content: "";
            }
        }
    }
}

@media screen and (max-width: 400px) {
    body > header > a {
        padding-top: 4em;
        padding-left: 1em;
        background-position: center .2em;
    }
}

body > main {
    flex: 100% 1 1;
    padding: 2rem 1rem;
    & > div:first-of-type {
        background-color: #fff;
        padding: 1.5rem;
        border-radius: 12px;
        & p {
            padding-bottom: .8em;
            & > strong {
                font-weight: 700;
            }
        }
        & > blockquote {
            display: block;
            padding-left: 2em;
            position: relative;
            margin-bottom: .8em;
            &::before {
                position: absolute;
                inset: 0 auto 0 0;
                width: 7px;
                background-image: linear-gradient(to bottom, #3DD476, #0D953F);
                border-radius: 8px;
                content: "";
            }
            & > p:last-child {
                padding-bottom: 0;
            }
        }
    }
}

ul.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 2rem;
}
ul.breadcrumbs > li {
    font-size: .875rem;
    white-space: nowrap;
    color: #10182880;
}
ul.breadcrumbs > li:not(:last-child)::after {
    color: #1D2533;
    margin-left: .4rem;
    content: "•";
}
ul.breadcrumbs > li > a {
    color: #1D2533;
}

main > nav {
    margin: 4em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2em;
}
main > nav > a {
    flex: 24em 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5em;
    background-color: #fff;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #161C2D;
    text-transform: uppercase;
    text-align: center;
    min-height: 9.4rem;
    border-radius: 12px;
    padding: 1rem 2rem;
    box-shadow: 0px 8px 40px 0px #31208A0D;
    & > picture {
        width: 4.4rem;
        height: 4.4rem;
        border-radius: 50%;
        background-image: linear-gradient(to bottom, #3DD476, #0D953F);
        padding: .7rem;
        transition: transform .3s ease;
        & > img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
    & > i {
        font-size: .9rem;
        font-weight: 500;
        color: #000000;
        text-transform: none;
        display: flex;
        align-items: center;
        gap: 1em;
        &::after {
            flex: 2em 0 0;
            height: 2em;
            background: no-repeat url(./images/arrow.svg) center / 2em;
            transition: transform .3s ease;
            content: "";
        }
    }

    transition-property: all;
    transition-duration: .3s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    &:hover {
        translate: 0 .25rem;
        --tw-shadow: 
            0 20px 25px -5px #0000001a, 
            0 8px 10px -6px #0000001a;
    
        box-shadow: 
            0 0 #0000, 
            0 0 #0000, 
            0 0 #0000, 
            0 0 #0000, 
            var(--tw-shadow);

        & > picture {
            transform: scale(1.1);
        }
        & i::after {
            transform: translateX(.5em);
        }
    }
}

@media screen and (max-width: 400px) {
    main > nav > a {
        flex: 100% 1 1;
    }
}

body:not(.home) > main > nav > a {
    padding: 0 6em;
    &::before {
        height: 7px;
        width: 100%;
        border-radius: 12px;
        background-image: linear-gradient(to right, #0D953F, #3DD476);
        content: "";
    }
}

body > footer {
    padding-top: 1rem;
    background-color: #202938;
    --text: #FFFFFF;
    & > ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 3em 1em;
        border-bottom: 1px solid #FFFFFF33;
        & > li {
            font-size: .875rem;
            &:nth-child(1) {
                flex: 23em 0 1;
                & > b {
                    display: block;
                    font-weight: 700;
                }
                & > i {
                    display: block;
                    padding-top: 1em;
                    color: #FFFFFF80;
                }
            }
            &:nth-child(2) {
                display: flex;
                flex-direction: column;
                & > a {
                    color: #FFFFFFB2;
                    padding-bottom: .3em;
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
            &:nth-child(3) {
                display: flex;
                flex-direction: column;
                gap: 1em;
                & > b {
                    font-size: 1rem;
                    font-weight: 700;
                    padding-bottom: 2em;
                }
                & > a {
                    display: block;
                    padding-left: 2.5em;
                    background: no-repeat left center / 1.4em;
                    &:nth-of-type(1) {
                        background-image: url(./images/phone.svg);
                    }
                    &:nth-of-type(2) {
                        background-image: url(./images/mail.svg);
                    }
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
        }
    }
    & > small {
        display: block;
        font-size: .75rem;
        color: #FFFFFF80;
        padding-bottom: 2rem;
    }
}