/* =========================
   01. HERO
========================= */

.projects-hero {
    position: relative;

    width: 100%;
    min-height: 400px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--white);
}

.projects-hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}

.projects-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.projects-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 400px;
}

.projects-hero h1 {
    margin: 0;

    color: var(--color-teal);

    font-size: 72px;
    line-height: 1;
    font-weight: 700;

    text-align: center;
}

/* =========================
   02. PORTFÓLIO
========================= */

.portfolio {
    width: 100%;

    padding: 88px 0 112px;

    background: var(--white);
}


/* INTRODUÇÃO */

.portfolio-intro {
    max-width: 680px;

    margin-bottom: 52px;
}

.portfolio-intro p {
    margin-bottom: 0;

    font-size: 17px;
    line-height: 1.6;
}


/* FILTROS */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;

    margin-bottom: 64px;
}

.portfolio-filter {
    min-width: 170px;
    min-height: 40px;

    padding: 0 22px;

    border: 0;
    border-radius: 0;

    background: var(--color-indigo);
    color: var(--white);

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
    background: var(--color-teal);
}


/* GRELHA */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 28px;
}


/* PROJECTO */

.portfolio-item {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: var(--bg-green);

    cursor: pointer;
}

.portfolio-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* INFORMAÇÃO SOBRE O PROJECTO */

.portfolio-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 24px;

    background: rgba(32, 52, 51, 0.76);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    margin-bottom: 6px;

    color: var(--white);

    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.portfolio-info p {
    margin-bottom: 0;

    color: var(--white);

    font-size: 14px;
    line-height: 1.4;
}


/* PROJECTO FILTRADO */

.portfolio-item.is-hidden {
    display: none;
}


/* =========================
   03. CTA
========================= */

.projects-cta {
    width: 100%;

    padding: 104px 0 112px;

    background: var(--bg-lilac);
}

.projects-cta-inner {
    text-align: center;
}

.projects-cta h2 {
    margin-bottom: 40px;

    color: var(--color-teal);

    font-size: 48px;
    line-height: 1.15;
}

.projects-cta-button {
    min-height: 42px;

    padding: 0 22px;

    background: var(--color-indigo);
    color: var(--white);

    font-size: 14px;
}

.projects-cta-button:hover {
    background: var(--color-teal);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1199px) {

    /* HERO */

    .projects-hero,
    .projects-hero-content {
        min-height: 340px;
    }

    .projects-hero h1 {
        font-size: 56px;
    }


    /* PORTFÓLIO */

    .portfolio {
        padding: 76px 0 96px;
    }

    .portfolio-filters {
        gap: 18px;

        margin-bottom: 52px;
    }

    .portfolio-filter {
        min-width: 140px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);

        gap: 24px;
    }


    /* CTA */

    .projects-cta {
        padding: 88px 0 96px;
    }

    .projects-cta h2 {
        font-size: 40px;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    /* HERO */

    .projects-hero,
    .projects-hero-content {
        min-height: 260px;
    }

    .projects-hero h1 {
        font-size: 42px;
    }


    /* PORTFÓLIO */

    .portfolio {
        padding: 64px 0 72px;
    }

    .portfolio-intro {
        margin-bottom: 36px;
    }

    .portfolio-intro p {
        font-size: 16px;
    }


    /* FILTROS */

    .portfolio-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

        margin-bottom: 44px;

        scroll-margin-top: 20px;
    }

    .portfolio-filter {
        min-width: 0;
        width: 100%;

        padding: 0 12px;

        font-size: 13px;
    }


    /* GRELHA */

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 16px;
    }


    /* INFORMAÇÃO DOS PROJECTOS EM TOUCH */

    .portfolio-overlay {
        align-items: flex-end;

        padding: 16px;

        background:
            linear-gradient(to top,
                rgba(32, 52, 51, 0.82) 0%,
                rgba(32, 52, 51, 0.42) 42%,
                rgba(32, 52, 51, 0) 72%);

        opacity: 1;
    }

    .portfolio-info h3 {
        margin-bottom: 4px;

        font-size: 15px;
    }

    .portfolio-info p {
        font-size: 12px;
    }


    /* CTA */

    .projects-cta {
        padding: 64px 0 72px;
    }

    .projects-cta h2 {
        margin-bottom: 28px;

        font-size: 32px;
        line-height: 1.15;
    }

}