/* =========================================================
   ### Început: Hero proiecte ###
   ========================================================= */

.projects-hero {
    position: relative;

    padding: 110px 0 85px;

    color: var(--color-white);

    background:
        linear-gradient(
            90deg,
            rgba(8, 12, 15, 0.88) 0%,
            rgba(8, 12, 15, 0.68) 55%,
            rgba(8, 12, 15, 0.38) 100%
        ),
        url("/static/img/projects/10.webp")
        center center / cover no-repeat;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}

.projects-hero-inner {
    max-width: 820px;
}

.projects-hero .section-kicker {
    color: var(--color-accent);
}

.projects-hero h1 {
    margin:
        14px 0
        22px;

    max-width: 760px;

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.6rem
        );

    line-height: 1.05;

    letter-spacing: -0.035em;

    color: var(--color-white);
}

.projects-hero p {
    margin: 0;

    max-width: 720px;

    font-size: 1.15rem;
    line-height: 1.75;

    color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   ### Sfârșit: Hero proiecte ###
   ========================================================= */


/* =========================================================
   ### Început: Conținut proiecte ###
   ========================================================= */

.projects-content {
    padding: 100px 0;

    background:
        linear-gradient(
            180deg,
            #11161a 0%,
            #0d1215 100%
        );
}

.projects-category + .projects-category {
    margin-top: 110px;

    padding-top: 100px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.projects-category .section-heading {
    max-width: 720px;

    margin-bottom: 40px;
}

.projects-category .section-kicker {
    color: var(--color-accent);
}

.projects-category .section-heading h2 {
    margin:
        10px 0
        14px;

    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );

    line-height: 1.1;

    letter-spacing: -0.025em;

    color: var(--color-text);
}

.projects-category .section-heading p {
    margin: 0;

    color: var(--color-text-muted);

    line-height: 1.7;
}

/* =========================================================
   ### Sfârșit: Conținut proiecte ###
   ========================================================= */


/* =========================================================
   ### Început: Galerie proiecte ###
   ========================================================= */

.project-gallery {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}

.gallery-item {
    position: relative;

    min-height: 280px;

    margin: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #20272c 0%,
            #151b1f 100%
        );

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: var(--radius-medium);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);

    border-color:
        rgba(227, 6, 19, 0.50);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.36),
        0 8px 22px rgba(227, 6, 19, 0.07);
}

.gallery-item:hover img {
    transform: scale(1.035);

    filter:
        brightness(0.92)
        saturate(1.05);
}

/* =========================================================
   ### Sfârșit: Galerie proiecte ###
   ========================================================= */


/* =========================================================
   ### Început: Galerie instalații finalizate ###
   ========================================================= */

.project-gallery-featured {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    grid-auto-rows: 280px;
}

.project-gallery-featured .gallery-item-large {
    grid-row: span 2;
}

/* =========================================================
   ### Sfârșit: Galerie instalații finalizate ###
   ========================================================= */


/* =========================================================
   ### Început: Responsive proiecte ###
   ========================================================= */

@media (max-width: 900px) {

    /* =====================================================
       ### Început: Hero proiecte tabletă ###
       ===================================================== */

    .projects-hero {
        padding: 90px 0 70px;

        background-position: center center;
    }

    /* =====================================================
       ### Sfârșit: Hero proiecte tabletă ###
       ===================================================== */


    /* =====================================================
       ### Început: Conținut proiecte tabletă ###
       ===================================================== */

    .projects-content {
        padding: 75px 0;
    }

    .projects-category + .projects-category {
        margin-top: 80px;
        padding-top: 75px;
    }

    /* =====================================================
       ### Sfârșit: Conținut proiecte tabletă ###
       ===================================================== */


    /* =====================================================
       ### Început: Galerie proiecte tabletă ###
       ===================================================== */

    .project-gallery {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .project-gallery-featured {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .gallery-item {
        min-height: 260px;
    }

    /* =====================================================
       ### Sfârșit: Galerie proiecte tabletă ###
       ===================================================== */
}


@media (max-width: 640px) {

    /* =====================================================
       ### Început: Hero proiecte telefon ###
       ===================================================== */

    .projects-hero {
        padding: 70px 0 55px;

        background-position: center center;
    }

    .projects-hero h1 {
        font-size: 2.5rem;
    }

    .projects-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }

    /* =====================================================
       ### Sfârșit: Hero proiecte telefon ###
       ===================================================== */


    /* =====================================================
       ### Început: Conținut proiecte telefon ###
       ===================================================== */

    .projects-content {
        padding: 60px 0;
    }

    .projects-category + .projects-category {
        margin-top: 65px;
        padding-top: 60px;
    }

    .projects-category .section-heading {
        margin-bottom: 30px;
    }

    /* =====================================================
       ### Sfârșit: Conținut proiecte telefon ###
       ===================================================== */


    /* =====================================================
       ### Început: Galerie proiecte telefon ###
       ===================================================== */

    .project-gallery,
    .project-gallery-featured {
        grid-template-columns: 1fr;

        grid-auto-rows: auto;
    }

    .gallery-item,
    .gallery-item-large,
    .project-gallery-featured .gallery-item-large {
        grid-column: auto;
        grid-row: auto;

        min-height: 240px;
    }

    /* =====================================================
       ### Sfârșit: Galerie proiecte telefon ###
       ===================================================== */
}

/* =========================================================
   ### Sfârșit: Responsive proiecte ###
   ========================================================= */