/* CSS comum pra deixar todos os navegadores uniformes */
*, *::before, *::after {
    box-sizing: border-box;
}

ul[class], ol[class] {
    padding: 0;
}

body, h1, h2, h3, h4, p, ul[class], ol[class],
li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    overflow-x: hidden;
    background: #a40c39 url('img/pattern2.png');
    font-family: 'Amiri', serif;
}

ul[class], ol[class] {
    list-style: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img {
    max-width: 100%;
    display: block;
}

article > * + * {
    margin-top: 1em;
}

input, button, textarea, select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Keyframes */
@keyframes fade-out {
    from {
        opacity: 1;
    }
  
    to {
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Carregamento da página */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(0,0,0,0.2);
}

#loading.fading {
    animation: fade-out 300ms linear forwards;
}

#loading span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 6rem;
    height: 6rem;
    background: transparent url('loading.svg') no-repeat center center;
    background-size: contain;
    margin: auto;
    animation: spin 4s linear infinite;
}


/* Container */
#mayer {
    opacity: 0;
    display: flex;
    flex-direction: row;
}

#mayer.shown {
    animation: fade-out .8s linear 1 reverse;
    opacity: 1;
}

#content {
    flex: 1;
}

#reel {
    display: flex;
    flex-direction: column;
}

#reel div {
    position: sticky;
    top: 0;
}

#reel img {
    height: 30vh;
}

/* Cabeçalho e áreas de atuação */
#header {
    background-color: #333;
    background-image: radial-gradient(circle at top center, rgba(255,255,255,.1), transparent), url('img/pattern1.png');
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -8px 13px rgba(0,0,0,.7);
    padding: 2rem;
}

#header h1 {
    width: 14rem;
    height: 10rem;
    background: transparent url('img/logotipo.png') center center no-repeat;
    background-size: contain;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    margin: 2rem;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,.6));
}

#header #areas-atuacao {
    color: #fff;
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,.7);
    letter-spacing: 0.03rem;
}

/* Redes sociais e contatos */
#social {
    background: beige url('img/bg1.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #fff;
}

#social:after {
    content:"";
    position: absolute;
    pointer-events: none;
    width: 50rem;
    height: 50rem;
    top: -20rem;
    left: -20rem;
    background-color: rgba(129, 110, 0, 0.1);
    border-radius: 50%;
}

#social ul {
    display: flex;
    list-style: none;
    padding: 4rem 2rem;
    margin: 0 auto;
    flex-wrap: wrap;
    max-width: 60rem;
}

#social ul li {
    flex: 0 0 50%;
    padding: 1.5rem 0;
    font-size: 1.1rem;
}

#social ul li a, #social ul li div.multiplo {
    display: inline-block;
    text-decoration: none;
    color: #333;
    background-position: top left;
    background-size: 46px 46px;
    background-repeat: no-repeat;
    padding: 0 0 0 4.5rem;
    transition: all linear .2s;
    line-height: 1.6rem;
}

#social ul li div.multiplo a {
    padding: 0 0 1em 0;
}

#social ul li a:hover, #social ul li a:focus {
    color: #a40c39
}

#social ul li.facebook a {
    background-image: url('img/facebook.png');
}

#social ul li.facebook a:hover, #social ul li.facebook a:focus {
    background-image: url('img/facebookh.png');
}

#social ul li.instagram a {
    background-image: url('img/instagram.png');
}

#social ul li.instagram a:hover, #social ul li.instagram a:focus {
    background-image: url('img/instagramh.png');
}

#social ul li.whatsapp a {
    background-image: url('img/whatsapp.png');
}

#social ul li.whatsapp a:hover, #social ul li.whatsapp a:focus {
    background-image: url('img/whatsapph.png');
}

#social ul li.telefone a {
    background-image: url('img/telefone.png');
}

#social ul li.telefone a:hover, #social ul li.telefone a:focus {
    background-image: url('img/telefoneh.png');
}

#social ul li.email a {
    background-image: url('img/email.png');
}

#social ul li.email a:hover, #social ul li.email a:focus {
    background-image: url('img/emailh.png');
}

#social ul li.endereco div.multiplo {
    background-image: url('img/endereco.png');
}

#social ul li.endereco div.multiplo:hover {
    background-image: url('img/enderecoh.png');
}

#social ul li a strong, #social ul li div.multiplo strong {
    display: block;
    font-size: 1.3rem;
}

#social ul li a span {
    letter-spacing: -0.09rem;
}

/* Pessoas */
#people {
    background-color: #a40c39;
    background-image: radial-gradient(circle at bottom center, rgba(255,255,255,.05), transparent), url('img/pattern2.png');
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    letter-spacing: 0.03rem;
    box-shadow: inset 0 15px 20px rgba(0,0,0,.2);
}

#people div {
    max-width: 900px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: center;
}

#people p {
    width: 50%;
    padding: 2rem 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,.7);
    text-align: right;
}

#people p strong {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fdbf6c;
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

#people p span {
    font-weight: bold;
    font-size: 0.8rem;
}


/* Tablet */
@media (max-width: 800px) {
    #mayer {
        display: block;
    }

    #reel img {
        height: auto;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #header {
        flex-wrap: wrap;   
    }

    #header h1 {
        margin: 1.5rem;
    }

    #header #areas-atuacao {
        flex: 0 0 100%;
        text-align: center;
        margin: 0 0 1rem 0;
    }

    #social ul li {
        flex: 0 0 100%;
    }

    #people p {
        width: 100%;
        text-align: left;
        padding: 1rem;
    }
}