* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    padding: 0 2rem;
    font-family: "authentic-sans";
      cursor: pointer;
}

/* FONTES */

@font-face {
    font-family: "aston-script";
    src: url(./font/aston-script.ttf);
}

@font-face {
    font-family: "authentic-sans";
    src: url(./font/authentic-sans-90.woff2);
}

/* NAVEGAÇÃO */

header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
    padding: 0 4rem;
    font-family: "aston-script";
    font-size: 2rem;
}

header nav ul .home-btn {
    grid-column: span 6;
}

header nav ul .work-btn {
    grid-column: 7 / span 6;
    text-align: right;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 0 2rem;
    gap: 1.25rem;
}

.grid .home-btn a {
    text-decoration: none;
    color: #000000;
}

.grid .work-btn a {
    text-decoration: none;
    color: #000000;
}

/* LISTA PROJETOS */

section.home .projects {
    margin-bottom: 1.25rem;
    grid-column: span 7;

}

section.home .about {
    margin-bottom: 1.25rem;
    grid-column: span 5;
    text-align: justify;
    line-height:1.5;

}

h2 {
    margin-bottom: 0;
}

.projects a {
    text-decoration: none;
    color: #000000;
}

.projects a:hover {
    opacity: 0.5;
}


/* FOOTER */

footer .img-logo img {
    width: 100%;
    height: auto;
    padding: 0 3rem;
}

.info-footer a:hover {
    opacity: 0.5;
}

.info-footer a {
    text-decoration: none;
    color: #000000;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.info-footer {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
}

.info-footer a {
    flex: 1;
    text-decoration: none;
    color: #000000;
}

.info-footer a:first-child {
    text-align: left;
}

.info-footer a:nth-child(2) {
    text-align: center;
}

.info-footer a:last-child {
    text-align: right;
}

/* PROJETOS */

.project-info {
    grid-column: span 6;
}

.project-info > div:nth-child(1){     
    position: sticky;
    top: 6rem;
}

.project-info p{
    text-align: justify;
    line-height: 1.5;
}

.project-type {
    display: flex;
    align-items: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
    top: 9.5rem;
}

.type-first-letter {
    font-size: 2rem;
    font-family: "aston-script";
}

.type-word {
    font-size: 1.25rem;
    font-family: "authentic-sans";

}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 0 2rem;
    gap: 1.25rem;
}

.project-images {
    grid-column: span 6;
}

.project-images img {
    width: 100%;
    height: auto;
}

.project p {
    text-align: justify;
    line-height: 1.5;
}

.projects a {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.projects:hover li {
    opacity: .3;
}

.projects li:hover {
    opacity: 1;
}

.projects li {
    transition: opacity .3s ease,
                transform .3s ease;
}

.projects li:hover {
    transform: translateX(12px);
}

/* =========================
   TABLET E MOBILE
   ========================= */

@media (max-width: 820px) {

    body {
        padding: 0 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section.home .projects,
    section.home .about {
        grid-column: 1;
    }

    header nav ul {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    header nav ul .home-btn,
    header nav ul .work-btn {
        grid-column: span 12;
        text-align: center;
    }

    header nav ul {
        line-height: normal;
    }

    .work-btn {
        text-align: center;
    }

    header .grid {
        gap: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    /* PROJETOS */

    .project-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .project-info,
    .project-images {
        grid-column: 1 / -1;
        width: 100%;
    }

    .project-info > div:nth-child(1) {
        position: static;
    }

    .project-images img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 0.75rem;
    }

    .project p {
        margin-top: 1rem;
    }

    /* FOOTER */

    .info-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-footer a {
        text-align: center;
    }
}


/* MOBILE PEQUENO */

@media (max-width: 480px) {

    body {
        padding: 0 0.5rem;
    }

    header nav ul {
        font-size: 1.5rem;
    }

    footer .img-logo img {
        padding: 0;
    }
}

@media (max-width: 820px) {

    .project-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0 2rem;
    }

    .project-info,
    .project-images {
        width: 100%;
    }

    .project-images img {
        width: 100%;
        display: block;
        height: auto;
    }

}