/* =========================
   PROYECTOS SECTION
========================= */

.projects {
    padding: 100px 0;
    background: #f7f5f1;
}

.projects-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* SECTION HEADER */

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
}

.projects-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--brown-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--brown-light);
    margin-bottom: 20px;
}

.projects-header h2 {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 600;
    color: #1d1d1d;
    line-height: 1.1;
    margin: 0;
}

.projects-header h2 span {
    color: var(--brown-dark);
}

.projects-header p {
    max-width: 310px;
    font-size: 14px;
    line-height: 1.7;
    color: #777;
    margin: 0;
}

/* PROJECTS LIST */

.projects-list {
    display: flex;
    flex-direction: column;
}

/* SINGLE PROJECT */

.project-item {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 30px;
    align-items: start;

    padding: 25px 0;
    border-bottom: 1px solid var(--brown-light);


}

/* PROJECT IMAGE */

.project-image {
    width: 100%;
    height: 290px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.04);
}

/* PROJECT CONTENT */

.project-content {
    position: relative;
    padding-left: 0;
    width: 100%;
    min-width: 0;
}


.project-number {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brown-dark);

}

.project-content h3 {
    font-size: 27px;
    font-weight: 600;
    color: #1d1d1d;
    margin: 0 0 0px;
}

.project-location {
    display: block;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 18px;
}

.project-content p {
    font-size: 16px;
    color: #616060;
    max-width: none;
    width: 100%; 
    max-height: 100px;
    overflow: hidden;
    margin-bottom: 30px;

}

/* PROJECT BUTTON */

.project-btn {
    display: inline-block;
    padding: 11px 23px;
    margin-top: auto;

    border: 1px solid var(--brown-dark);
    color: var(--brown-dark);
    background: transparent;

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.project-btn:hover {
    background: var(--brown-dark);
    color: #fff;
}

/* PROJECTS FOOTER */

.projects-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 35px;
    min-height: 45px;
}

/* PAGINATION DOTS */


.projects-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 15px 28px;

    background: var(--brown-dark);
    color: #fff;

    border: 1px solid var(--brown-dark);
    border-radius: 4px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.3s ease;
}

.projects-view-all:hover {
    background: transparent;
    color: var(--brown-dark);
    transform: translateY(-2px);
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .projects {
        padding: 70px 0;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-image {
        height: 280px;
    }

    .project-content {
        padding-left: 25px;
    }

    .project-content h3 {
        font-size: 24px;
    }

    .projects-footer {
        flex-direction: column;
        gap: 25px;
    }

    .projects-view-all {
        position: static;
    }
}

@media (max-width: 480px) {

    .projects-container {
        width: 92%;
    }

    .projects-header h2 {
        font-size: 34px;
    }

    .project-image {
        height: 220px;
    }

    .project-content h3 {
        font-size: 22px;
    }
}

/* =========================================
   PROYECTOS — DESKTOP
========================================= */

@media (min-width: 1025px) {

    .projects-header p {
        max-width: 500px;
        width: 80%;
        transform: translateY(30px);
    }

}