
/* =====================================
   THE GLOBAL INTERIORS - PROJECTS
===================================== */

.projects-section {
    padding: 110px 7%;
    background: #f8f7f3;
    font-family: 'DM Sans', sans-serif;
}

.projects-container {
    max-width: 1440px;
    margin: auto;
}

/* SECTION HEADER */

.projects-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #a68a5b;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.projects-eyebrow::before,
.projects-eyebrow::after {
    content: '';
    width: 25px;
    height: 1px;
    background: #a68a5b;
}

.projects-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    font-weight: 500;
    color: #292821;
    margin: 0;
}

.projects-heading h2 span {
    color: #a68a5b;
    font-style: italic;
}

.projects-heading p {
    color: #77736b;
    font-size: 13px;
    line-height: 1.9;
    margin: 20px auto 0;
    max-width: 520px;
}

/* FILTER BUTTONS */

.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.project-filter {
    background: transparent;
    border: 1px solid #dedbd2;
    color: #666158;
    padding: 12px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-filter:hover,
.project-filter.active {
    background: #282721;
    border-color: #282721;
    color: #fff;
}

/* PROJECT GRID */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px 25px;
}

.project-card {
    min-width: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.is-hidden {
    display: none;
}

/* PROJECT IMAGE */

.project-image {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #e7e2d8;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover .project-image img {
    transform: scale(1.07);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 23, 18, 0.12);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

/* VIEW PROJECT */

.project-view {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f7f3;
    color: #292821;
    text-decoration: none;
    font-size: 19px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}

/* PROJECT DETAILS */

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
}

.project-category {
    color: #a68a5b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: #292821;
    margin: 9px 0 7px;
}

.project-location {
    font-size: 11px;
    color: #89847a;
}

.project-number {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #b9aa8c;
    padding-top: 5px;
}

/* VIEW ALL */

.projects-footer {
    text-align: center;
    margin-top: 60px;
}

.projects-all-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    min-height: 55px;
    padding: 0 28px;
    border: 1px solid #292821;
    color: #292821;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.projects-all-btn:hover {
    background: #292821;
    color: #fff;
}

.projects-all-btn span {
    font-size: 17px;
}

/* TABLET */

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .project-image {
        height: 300px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .projects-section {
        padding: 75px 6%;
    }

    .projects-heading {
        margin-bottom: 35px;
    }

    .projects-heading h2 {
        font-size: 40px;
    }

    .projects-heading p {
        font-size: 12px;
    }

    .project-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 25px;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .project-filter {
        flex-shrink: 0;
        padding: 11px 17px;
        font-size: 9px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-view {
        opacity: 1;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .project-details h3 {
        font-size: 21px;
    }

    .projects-footer {
        margin-top: 40px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-image img,
    .project-view,
    .projects-all-btn {
        transition: none;
    }
}
