/*RESET*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
}

/*FIM RESET*/

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F2E8D5;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem; border-radius: .35rem; background: rgb(245, 184, 65); color: rgb(58, 11, 12); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
:where(a, button):focus-visible { outline: 3px solid rgb(245, 184, 65); outline-offset: 3px; }

@keyframes change-color {
    from {
        color: rgb(58, 9, 10);
    }

    to {
        color: rgb(245, 184, 65);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateX(25rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

header {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-inline: 1rem;
    background-color: rgb(58, 11, 12);
    height: 7rem;


    & img {
        width:100px;
        height:100px;
    }

    nav .menu {
        display: flex;
        gap: 1rem;
        list-style: none;

        & a {
            background-color: rgb(58, 11, 12);
            color: white;
            border: 2px solid rgb(107, 70, 71);
            padding: .5rem 1rem;
            border-radius: 1.5rem;
            transition: all .1s ease-in-out;

            &:hover {
                transform: scale(1.2);
                box-shadow: 4px 4px 5px rgba(255, 255, 255, 0.2);
                color: rgb(245, 184, 65);
            }
        }
    }
}

.title {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-inline: 1rem;
    text-align: center;

    & h1 {
        color: rgb(58, 11, 12);
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.2;
        animation: change-color 1s ease-in-out infinite alternate;
    }
}

main .container {
    display: flex;
    justify-content: center;
}

main .premiacoes-container {
    width: min(74rem, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;

    & .premiacoes {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
        padding-bottom: 1rem;
        margin: 2rem 0;
        padding: .5rem;


        & > h3 {
            font-size: 2rem;
            align-self: flex-start;
            color: rgb(58, 11, 12);
        }

        & .boralina,
        & .herculana,
        & .formosinha,
        & .nova-fonte,
        & .carvalho-minas,
        & .ribeirinha {
            display: flex;
            gap: 1rem;
            border: 2px solid rgb(58, 11, 12);
            padding: 1.5rem;
        }

        & .premiacoes-card {
            width: 25rem;
            background-color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1rem;
            border: 2px solid rgb(58, 11, 12);
            border-radius: .25rem;
            animation: fade-in 600ms ease-in-out forwards;
            animation-delay: calc(var(--i) * 0.2s);
            opacity: 0;

            & h3 {
                text-align: center;
                margin-bottom: .5rem;
                color: rgb(58, 11, 12);
                font-weight: bolder;
                font-size: 1.5rem;
            }

            & p {
                color: rgb(58, 9, 10);
                font-weight: bold;
                width: 100%;
                text-align: center;
                line-height: 1.5;
            }

            & img {
                width: 7rem;
                height: 7rem;
                border-radius: .5rem;
                margin-bottom: .5rem;
            }
        }
    }
}

.separator {
    width: 80%;
    height: 1px;
    border: 2px solid rgb(245, 184, 65);
    margin: 0 auto;

}

.descricao-concursos {
    width: min(74rem, 100%);
    margin-inline: auto;
    padding: 1rem;

    & .title h2 {
        color: rgb(58, 11, 12);
        font-weight: bold;
        font-size: 2rem;
        margin-top: 1rem;
    }

    & .concursos {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;

        & h2 {
            color: rgb(58, 11, 12);
            font-weight: bold;
            margin-bottom: 1rem;
        }

        & h3 {
            color: rgb(58, 11, 12);
            font-weight: bold;
            margin-bottom: 1rem;
            font-size: 1.5rem;
            text-align: center;
            line-height: 1.3;
        }

        & p {
            font-size: 1.25rem;
            width: 80%;
            line-height: 140%;
            text-align: justify;
            margin-bottom: .25rem;
            color: rgb(58, 9, 10);
        }
    }
}

.footer {
    width: 100%;
    margin-top: 3rem;
    padding: 2.5rem 2rem 1.2rem;
    background-color: rgb(58, 11, 12);
    color: white;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img { width: 6rem; height: auto; }
.footer-brand p { max-width: 200px; color: rgba(255, 255, 255, .7); font-size: .9rem; line-height: 1.5; }

.footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.footer-social h2 { margin: 0; color: white; font-size: 1rem; }
.social { display: flex; align-items: center; gap: .8rem; padding: 0; }
.social a {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(107, 70, 71);
    border-radius: 50%;
    background-color: white;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.social a:hover { transform: translateY(-3px); border-color: rgb(245, 184, 65); background-color: rgb(245, 184, 65); }
.social img { width: 1.4rem; height: 1.4rem; }

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
}
.footer-bottom p { color: rgba(255, 255, 255, .6); font-size: .85rem; }

@media (max-width: 900px) {
    .title {
        padding-inline: 1rem;
        text-align: center;
    }
    .title h1 { width: 100%; }
    main .premiacoes-container { width: 100%; }
    main .premiacoes-container .premiacoes { width: 100%; padding-inline: 1rem; }
    main .premiacoes-container .premiacoes > h3 { align-self: center; text-align: center; }
    main .premiacoes-container .premiacoes > div {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    main .premiacoes-container .premiacoes .premiacoes-card { width: min(25rem, calc(100vw - 2rem)); }
    .descricao-concursos .concursos p { width: 100%; font-size: 1rem; }
}
@media (max-width: 650px) {
    header {
        height: 5.5rem;
        margin-bottom: 2.5rem;
        padding-inline: .75rem;
    }
    header img { width: 72px; height: 72px; }
    header nav .menu { gap: .4rem; }
    header nav .menu a { display: block; padding: .45rem .7rem; font-size: .9rem; }
    header nav .menu a:hover { transform: none; }

    .title { margin-bottom: 1rem; }
    main .premiacoes-container { margin-bottom: 1rem; }
    main .premiacoes-container .premiacoes { gap: 1.25rem; margin-block: 1rem; padding-inline: .75rem; }
    main .premiacoes-container .premiacoes > h3 { font-size: 1.6rem; }
    main .premiacoes-container .premiacoes > div { padding: .75rem; gap: .75rem; }
    main .premiacoes-container .premiacoes .premiacoes-card {
        width: 100%;
        padding: .9rem;
    }
    main .premiacoes-container .premiacoes .premiacoes-card h3 { font-size: 1.25rem; }
    main .premiacoes-container .premiacoes .premiacoes-card p { font-size: .95rem; }

    .separator { width: calc(100% - 2rem); }
    .descricao-concursos { padding: 1rem .75rem; }
    .descricao-concursos .title h2 { font-size: 1.65rem; }
    .descricao-concursos .concursos { padding: 1rem .25rem; }
    .descricao-concursos .concursos h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
    .descricao-concursos .concursos p { line-height: 1.6; text-align: left; }

    .footer { padding: 2rem 1rem 1rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; }
    .footer-brand p { max-width: 320px; }
    .footer-social { align-items: center; }
    .footer-bottom { margin-top: 1.5rem; }
}
@media (max-width: 360px) {
    header nav .menu a { padding-inline: .55rem; font-size: .82rem; }
    main .premiacoes-container .premiacoes { padding-inline: .5rem; }
    main .premiacoes-container .premiacoes > div { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    main .premiacoes-container .premiacoes .premiacoes-card { opacity: 1; }
}
