/* =========================================================
   SNMF INFRATECH
   PROJECTS PAGE
   assets/css/projects.css
========================================================= */


/* =========================================================
   PROJECT PAGE VARIABLES
========================================================= */

:root {

    --projects-container: 1304px;
    --projects-side-space: 60px;

    --projects-gold: #c89b3c;
    --projects-gold-light: #e0b85c;
    --projects-gold-dark: #9d7422;

    --projects-black: #050606;
    --projects-black-soft: #0a0b0b;
    --projects-black-card: #0c0d0d;

    --projects-white: #f4f1e9;
    --projects-text: #d2d0c9;
    --projects-muted: #a8a69f;

    --projects-border: rgba(200, 155, 60, 0.30);

}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.projects-container {

    width: calc(100% - (var(--projects-side-space) * 2));

    max-width: var(--projects-container);

    margin-left: auto;
    margin-right: auto;

}


/* =========================================================
   COMMON SECTION LABEL
========================================================= */

.projects-section-label {

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 5px;

    line-height: 1.6;

    color: var(--projects-gold-light);

    text-transform: uppercase;

}


/* =========================================================
   COMMON SECTION TITLE
========================================================= */

.projects-section-title {

    margin: 8px 0 0;

    font-family: "Playfair Display", serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 1.15;

    letter-spacing: -0.4px;

    color: var(--projects-white);

}

.projects-section-title span {

    color: var(--projects-gold-light);

}


/* =========================================================
   COMMON BUTTON
========================================================= */

.projects-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 40px;

    padding: 0 17px;

    border: 1px solid var(--projects-gold);

    border-radius: 2px;

    background: transparent;

    color: var(--projects-gold-light);

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;

}

.projects-btn:hover {

    background: var(--projects-gold);

    color: #080808;

    border-color: var(--projects-gold);

    transform: translateY(-2px);

}

.projects-btn-arrow {

    font-size: 14px;

    line-height: 1;

}


/* =========================================================
   HERO
========================================================= */

.projects-hero {

    position: relative;

    height: 328px;

    overflow: hidden;

    background: #050606;

}


/* Hero Background */

.projects-hero-background {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-image:
        url("../images/projects/hero-image-projects.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center center;

    z-index: 0;

}


/* Hero Overlay */

.projects-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            rgba(3, 4, 4, 0.98) 0%,
            rgba(3, 4, 4, 0.91) 18%,
            rgba(3, 4, 4, 0.70) 34%,
            rgba(3, 4, 4, 0.36) 52%,
            rgba(3, 4, 4, 0.12) 73%,
            rgba(3, 4, 4, 0.25) 100%
        ),

        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.32) 0%,
            rgba(0, 0, 0, 0.06) 48%,
            rgba(0, 0, 0, 0.55) 100%
        );

}


/* Hero Container */

.projects-hero-container {

    position: relative;

    height: 100%;

    z-index: 2;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    padding-bottom: 15px;

}


/* Hero Content */

.projects-hero-content {

    width: 520px;

    margin-top: 8px;

}


.projects-hero-label {

    margin-bottom: 7px;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 5px;

    color: var(--projects-gold-light);

}


.projects-hero-title {

    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: 39px;

    font-weight: 400;

    line-height: 1.04;

    letter-spacing: -1px;

    color: var(--projects-white);

}

.projects-hero-title span {

    color: var(--projects-gold-light);

}


.projects-hero-description {

    width: 390px;

    margin: 10px 0 15px;

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 400;

    line-height: 1.55;

    color: rgba(244, 241, 233, 0.78);

}


/* Hero Side */

.projects-hero-side {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-right: 4px;

    margin-top: 35px;

}


.projects-hero-side-line {

    width: 1px;

    height: 58px;

    background: var(--projects-gold);

    opacity: 0.85;

}


.projects-hero-side-text {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.projects-hero-side-text span {

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

    color: var(--projects-white);

}


/* =========================================================
   PROJECT INTRO / PHILOSOPHY
========================================================= */

.projects-intro {
    position: relative;
    height: 208px;
    overflow: hidden;

    background: #050606;

    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(200,155,60,0.30);
}


/* =========================================================
   INTRO BACKGROUND IMAGE
========================================================= */

.projects-intro-background {
    
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    background-image:
        url("../images/projects/Possibilities-image.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center 80%;
}


/* =========================================================
   INTRO DARK FADE
========================================================= */

.projects-intro-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(4,5,5,1.00) 0%,
            rgba(4,5,5,0.99) 18%,
            rgba(4,5,5,0.93) 30%,
            rgba(4,5,5,0.72) 40%,
            rgba(4,5,5,0.35) 52%,
            rgba(4,5,5,0.10) 68%,
            rgba(4,5,5,0.16) 100%
        ),

        linear-gradient(
            180deg,
            rgba(0,0,0,0.18) 0%,
            rgba(0,0,0,0.04) 45%,
            rgba(0,0,0,0.42) 100%
        );

}


/* =========================================================
   INTRO CONTAINER
========================================================= */

.projects-intro-container {
    position: relative;

    height: 100%;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.projects-intro-content {
    width: 440px;

    margin-top: 0;
}


/* Label */

.projects-intro-content .projects-section-label {
    margin: 0 0 5px;

    font-size: 9px;

    line-height: 1.45;

    letter-spacing: 4px;
}


/* Heading */

.projects-intro-content .projects-section-title {
    margin: 0;

    font-size: 27px;

    line-height: 1.05;

    letter-spacing: -0.5px;
}


/* Gold line */

.projects-gold-line {
    width: 24px;
    height: 1px;

    margin: 7px 0 8px;

    background: var(--projects-gold);
}


/* Description */

.projects-intro-description {
    width: 385px;

    margin: 0 0 12px;

    font-family: "DM Sans", sans-serif;

    font-size: 9.5px;

    line-height: 1.45;

    color: rgba(244,241,233,0.76);
}


/* =========================================================
   APPROACH BUTTON
========================================================= */

.projects-intro-content .projects-btn {
    min-height: 29px;

    padding: 0 13px;

    font-size: 9px;

    gap: 7px;
}


/* =========================================================
   RIGHT SIDE TEXT
========================================================= */

.projects-intro-side {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-right: 4px;

    margin-top: 20px;
}


.projects-intro-side-line {
    width: 1px;

    height: 49px;

    background: var(--projects-gold);

    opacity: 0.85;
}


.projects-intro-side-text {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.projects-intro-side-text span {
    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.3px;

    line-height: 1.25;

    color: var(--projects-white);
}

/* =========================================================
   FEATURED PROJECTS
========================================================= */

.projects-featured {

    padding: 18px 0 18px;

    background: var(--projects-black);

}


.projects-featured-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 12px;

}


.projects-featured-heading .projects-section-title {

    margin-top: 4px;

    font-size: 29px;

}


.projects-view-all {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 2px;

    color: var(--projects-gold-light);

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    font-weight: 500;

    text-decoration: none;

    transition: color 0.3s ease;

}


.projects-view-all:hover {

    color: var(--projects-white);

}


.projects-view-all span {

    font-size: 14px;

}


/* =========================================================
   PROJECT GRID
========================================================= */

.projects-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {

    overflow: hidden;

    background: var(--projects-black-card);

    border: 1px solid rgba(200,155,60,0.28);

    border-radius: 2px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

}


.project-card:hover {

    transform: translateY(-4px);

    border-color: rgba(200,155,60,0.65);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.35);

}


/* Card Image */

.project-card-image {

    position: relative;

    height: 136px;

    overflow: hidden;

    background: #111;

}


.project-card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.02) 45%,
            rgba(0,0,0,0.28) 100%
        );

    pointer-events: none;

}


.project-card-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.55s ease;

}


.project-card:hover .project-card-image img {

    transform: scale(1.04);

}


/* Card Content */

.project-card-content {

    min-height: 120px;

    padding: 9px 11px 11px;

}


.project-card-title {

    margin: 0 0 8px;

    font-family: "DM Sans", sans-serif;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    color: var(--projects-white);

}


/* =========================================================
   PROJECT META
========================================================= */

.project-card-meta {

    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-bottom: 10px;

}


.project-meta-item {

    display: flex;

    align-items: center;

    gap: 6px;

    min-height: 14px;

}


.project-meta-item img {

    width: 11px;

    height: 11px;

    object-fit: contain;

    flex-shrink: 0;

}


.project-meta-item span {

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    font-weight: 400;

    color: var(--projects-muted);

}


/* Card Button */

.project-card-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 29px;

    padding: 0 12px;

    border: 1px solid var(--projects-gold);

    border-radius: 2px;

    color: var(--projects-gold-light);

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;

}


.project-card-btn span {

    font-size: 12px;

}


.project-card-btn:hover {

    background: var(--projects-gold);

    color: #080808;

}


/* =========================================================
   PROJECT CATEGORIES
========================================================= */

.projects-categories {

    padding: 18px 0 19px;

    background: #070808;

    border-top: 1px solid rgba(255,255,255,0.025);

    border-bottom: 1px solid rgba(200,155,60,0.26);

}


.projects-categories .projects-section-title {

    font-size: 29px;

    margin-top: 4px;

}


.projects-category-grid {

    display: grid;

    grid-template-columns:
        1fr
        1px
        1fr
        1px
        1fr
        1px
        1fr;

    align-items: center;

    margin-top: 16px;

}


.projects-category-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    min-height: 91px;

}


.projects-category-icon {

    width: 43px;

    height: 43px;

    margin-bottom: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.projects-category-icon img {

    display: block;

    width: 43px;

    height: 43px;

    object-fit: contain;

}


.projects-category-item h3 {

    margin: 0 0 4px;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    font-weight: 600;

    color: var(--projects-white);

}


.projects-category-item p {

    margin: 0;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    line-height: 1.45;

    color: var(--projects-muted);

}


.projects-category-divider {

    width: 1px;

    height: 60px;

    background: rgba(200,155,60,0.52);

}


/* =========================================================
   PROJECT PHILOSOPHY
========================================================= */

.projects-philosophy {

    position: relative;

    height: 220px;

    overflow: hidden;

    background: #050606;

}


.projects-philosophy-background {

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        url("../images/projects/project-philosophy.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center center; 

}


.projects-philosophy-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            rgba(3,4,4,0.12) 0%,
            rgba(3,4,4,0.18) 28%,
            rgba(3,4,4,0.76) 54%,
            rgba(3,4,4,0.94) 72%,
            rgba(3,4,4,0.98) 100%
        ),

        linear-gradient(
            180deg,
            rgba(0,0,0,0.12) 0%,
            rgba(0,0,0,0.18) 55%,
            rgba(0,0,0,0.55) 100%
        );

}


.projects-philosophy-container {

    position: relative;

    height: 100%;

    z-index: 2;

    display: grid;

    grid-template-columns: 50% 50%;

}


.projects-philosophy-image-space {

    min-width: 0;

}


.projects-philosophy-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding-left: 38px;

    padding-right: 30px;

}


.projects-philosophy-content .projects-section-title {

    font-size: 28px;

    line-height: 1.08;

    margin-top: 5px;

}


.projects-philosophy-content p {

    max-width: 365px;

    margin: 10px 0 13px;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    line-height: 1.55;

    color: rgba(244,241,233,0.76);

}


/* =========================================================
   FINAL CTA
========================================================= */

.projects-final-cta {

    position: relative;

    min-height: 108px;

    overflow: hidden;

    background: #050606;

    border-top: 1px solid rgba(200,155,60,0.35);

}


.projects-final-cta-pattern {

    position: absolute;

    inset: 0;

    opacity: 0.35;

    background-image:

        radial-gradient(
            ellipse at 15% 100%,
            transparent 0 48%,
            rgba(200,155,60,0.20) 48.5%,
            transparent 49%
        ),

        radial-gradient(
            ellipse at 85% 100%,
            transparent 0 48%,
            rgba(200,155,60,0.20) 48.5%,
            transparent 49%
        );

    pointer-events: none;

}


.projects-final-cta-content {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 108px;

    text-align: center;

}


.projects-final-cta-content h2 {

    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: 26px;

    font-weight: 400;

    line-height: 1.15;

    color: var(--projects-white);

}


.projects-final-cta-content p {

    margin: 3px 0 9px;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;

    color: var(--projects-muted);

}


.projects-btn-gold {

    min-height: 28px;

    padding: 0 16px;

    border-color: var(--projects-gold);

    background: var(--projects-gold);

    color: #080808;

    font-size: 9px;

}


.projects-btn-gold:hover {

    background: var(--projects-gold-light);

    border-color: var(--projects-gold-light);

    color: #080808;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    :root {

        --projects-side-space: 45px;

    }


    .projects-hero {

        height: 330px;

    }


    .projects-hero-content {

        width: 470px;

    }


    .projects-hero-title {

        font-size: 36px;

    }


    .projects-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 14px;

    }


    .project-card-image {

        height: 175px;

    }


    .projects-category-item {

        min-height: 95px;

    }


    .projects-philosophy {

        height: 230px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    :root {

        --projects-side-space: 22px;

    }


    /* Common */

    .projects-section-label {

        font-size: 9px;

        letter-spacing: 3.5px;

    }


    .projects-section-title {

        font-size: 25px;

    }


    /* Hero */

    .projects-hero {

        height: 500px;

    }


    .projects-hero-background {

        background-position: 63% center;

    }


    .projects-hero-overlay {

        background:

            linear-gradient(
                90deg,
                rgba(3,4,4,0.97) 0%,
                rgba(3,4,4,0.86) 42%,
                rgba(3,4,4,0.40) 75%,
                rgba(3,4,4,0.35) 100%
            ),

            linear-gradient(
                180deg,
                rgba(0,0,0,0.38) 0%,
                rgba(0,0,0,0.08) 45%,
                rgba(0,0,0,0.72) 100%
            );

    }


    .projects-hero-container {

        align-items: flex-end;

        padding-bottom: 52px;

    }


    .projects-hero-content {

        width: 100%;

    }


    .projects-hero-label {

        font-size: 9px;

        letter-spacing: 4px;

    }


    .projects-hero-title {

        font-size: 34px;

        line-height: 1.04;

    }


    .projects-hero-description {

        width: 100%;

        max-width: 360px;

        font-size: 10px;

        line-height: 1.55;

        margin-top: 12px;

    }


    .projects-hero-side {

        display: none;

    }


    /* Intro */

    .projects-intro {

        height: auto;

        min-height: 390px;

    }


    .projects-intro-background {

        background-position: center center;

    }


    .projects-intro-overlay {

        background:

            linear-gradient(
                90deg,
                rgba(4,5,5,0.97) 0%,
                rgba(4,5,5,0.88) 48%,
                rgba(4,5,5,0.45) 100%
            ),

            linear-gradient(
                180deg,
                rgba(0,0,0,0.20) 0%,
                rgba(0,0,0,0.65) 100%
            );

    }


    .projects-intro-container {

        min-height: 390px;

        align-items: center;

    }


    .projects-intro-content {

        width: 100%;

    }


    .projects-intro-content .projects-section-title {

        font-size: 27px;

    }


    .projects-intro-description {

        width: 100%;

        max-width: 380px;

        font-size: 10px;

        line-height: 1.6;

    }


    .projects-intro-side {

        display: none;

    }


    /* Featured */

    .projects-featured {

        padding: 25px 0;

    }


    .projects-featured-heading {

        display: block;

        margin-bottom: 18px;

    }


    .projects-featured-heading .projects-section-title {

        font-size: 26px;

    }


    .projects-view-all {

        margin-top: 9px;

    }


    .projects-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    .project-card-image {

        height: 190px;

    }


    .project-card-content {

        min-height: 120px;

        padding: 12px;

    }


    .project-card-title {

        font-size: 14px;

    }


    .project-meta-item span {

        font-size: 10px;

    }


    .project-card-btn {

        min-height: 31px;

        font-size: 9px;

    }


    /* Categories */

    .projects-categories {

        padding: 25px 0;

    }


    .projects-categories .projects-section-title {

        font-size: 26px;

    }


    .projects-category-grid {

        grid-template-columns: 1fr 1fr;

        gap: 0;

        margin-top: 20px;

    }


    .projects-category-item {

        min-height: 130px;

        padding: 12px 5px;

    }


    .projects-category-icon,
    .projects-category-icon img {

        width: 42px;

        height: 42px;

    }


    .projects-category-item h3 {

        font-size: 12px;

    }


    .projects-category-item p {

        font-size: 9px;

    }


    .projects-category-divider {

        display: none;

    }


    .projects-category-item:nth-child(1),
    .projects-category-item:nth-child(5) {

        border-right: 1px solid rgba(200,155,60,0.45);

    }


    .projects-category-item:nth-child(3),
    .projects-category-item:nth-child(7) {

        border-right: 1px solid rgba(200,155,60,0.45);

    }


    .projects-category-item:nth-child(-n+4) {

        border-bottom: 1px solid rgba(200,155,60,0.25);

    }


    /* Philosophy */

    .projects-philosophy {

        height: 420px;

    }


    .projects-philosophy-background {

        background-position: center center;

    }


    .projects-philosophy-overlay {

        background:

            linear-gradient(
                180deg,
                rgba(3,4,4,0.12) 0%,
                rgba(3,4,4,0.42) 40%,
                rgba(3,4,4,0.96) 78%,
                rgba(3,4,4,0.99) 100%
            );

    }


    .projects-philosophy-container {

        display: block;

    }


    .projects-philosophy-image-space {

        height: 185px;

    }


    .projects-philosophy-content {

        height: calc(100% - 185px);

        padding: 20px 0 28px;

        justify-content: center;

    }


    .projects-philosophy-content .projects-section-title {

        font-size: 27px;

    }


    .projects-philosophy-content p {

        max-width: 340px;

        font-size: 10px;

    }


    /* Final CTA */

    .projects-final-cta {

        min-height: 125px;

    }


    .projects-final-cta-content {

        min-height: 125px;

    }


    .projects-final-cta-content h2 {

        font-size: 25px;

    }


    .projects-final-cta-content p {

        font-size: 9px;

        margin-bottom: 10px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .projects-hero {

        height: 470px;

    }


    .projects-hero-title {

        font-size: 31px;

    }


    .projects-hero-description {

        max-width: 310px;

    }


    .projects-intro {

        min-height: 410px;

    }


    .projects-intro-container {

        min-height: 410px;

    }


    .projects-intro-content .projects-section-title {

        font-size: 25px;

    }


    .projects-philosophy {

        height: 400px;

    }


    .projects-philosophy-image-space {

        height: 170px;

    }


    .projects-philosophy-content {

        height: calc(100% - 170px);

    }

}