
/* ==========================================
   SKY RISE BUILDERS
   PROJECTS PAGE - COMPLETE STYLESHEET
========================================== */

.sp-projects {
    --sp-navy: #092e49;
    --sp-blue: #168dcc;
    --sp-text: #17384e;
    --sp-muted: #607789;

    color: var(--sp-text);
    overflow: hidden;
}

.sp-projects * {
    box-sizing: border-box;
}

/* ==========================================
   CONTENT CONTAINER
========================================== */

.sp-projects .container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   HERO SECTION
========================================== */

.sp-projects .sp-hero {
    position: relative;
    min-height: 580px;

    display: flex;
    align-items: center;

    color: #ffffff;
    background-color: #0b304a;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 28, 47, 0.96) 0%,
            rgba(5, 28, 47, 0.84) 36%,
            rgba(5, 28, 47, 0.48) 66%,
            rgba(5, 28, 47, 0.17) 100%
        ),
        var(--sp-hero-image);

    background-size: cover;
    background-position: center 46%;
}

.sp-projects .sp-hero-layout {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 86px;
    padding-bottom: 126px;
}

.sp-projects .sp-hero-copy {
    max-width: 780px;
}

.sp-projects .sp-eyebrow {
    margin: 0 0 18px;

    color: var(--sp-blue);
    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 2.2px;
}

.sp-projects .sp-eyebrow-light {
    color: #85d9ff;
}

.sp-projects .sp-accent-bar {
    display: block;

    width: 58px;
    height: 4px;

    margin: 28px 0;

    background: #41b9f4;
}

.sp-projects .sp-hero h1 {
    margin: 0 0 23px;

    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.12;
    letter-spacing: -2px;

    color: #ffffff;
    font-weight: 800;
}

.sp-projects .sp-hero h1 span {
    color: #94dcff;
}

.sp-projects .sp-hero-copy > p:not(.sp-eyebrow) {
    max-width: 590px;

    margin: 0 0 30px;

    font-size: 18px;
    line-height: 1.75;

    color: #dcebf4;
}

/* ==========================================
   BUTTONS
========================================== */

.sp-projects .sp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 24px;
    padding: 17px 25px;

    border-radius: 5px;
    text-decoration: none;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.sp-projects .sp-button:hover {
    transform: translateY(-2px);
}

.sp-projects .sp-button-blue {
    background: #168ed0;
    color: #ffffff;
}

.sp-projects .sp-button-blue:hover {
    background: #0879ba;
    color: #ffffff;
}

.sp-projects .sp-button-white {
    background: #ffffff;
    color: #093f61;
}

.sp-projects .sp-button-white:hover {
    background: #eaf6fd;
}

/* ==========================================
   HERO BOTTOM STRIP
========================================== */

.sp-projects .sp-hero-bottom {
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    padding: 18px 0;

    background: rgba(3, 28, 47, 0.89);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sp-projects .sp-hero-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    color: #e0edf6;

    font-size: 11px;
    font-weight: 750;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sp-projects .sp-hero-bottom b {
    color: #4abaf1;
    margin: 0 9px;
}

/* ==========================================
   INTRODUCTION
========================================== */

.sp-projects .sp-intro-section {
    padding: 100px 0 92px;
    background: #ffffff;
}

.sp-projects .sp-intro-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;

    gap: 90px;
    align-items: center;
}

.sp-projects h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.16;
    letter-spacing: -1.7px;

    color: var(--sp-navy);
}

.sp-projects h2 span {
    color: var(--sp-blue);
}

.sp-projects .sp-intro-copy > p {
    margin: 0 0 25px;

    font-size: 17px;
    line-height: 1.9;

    color: var(--sp-muted);
}

.sp-projects .sp-portfolio-count {
    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--sp-blue);

    font-size: 31px;
    font-weight: 800;
}

.sp-projects .sp-portfolio-count small {
    font-size: 11px;
    letter-spacing: 1.3px;

    color: #718999;
    font-weight: 750;
}

/* ==========================================
   PROJECT GALLERY
========================================== */

.sp-projects .sp-gallery-section {
    padding: 96px 0 112px;
    background: #f2f7fa;
}

.sp-projects .sp-gallery-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
    margin-bottom: 37px;
}

.sp-projects .sp-gallery-subline {
    margin: 0 0 7px;

    color: #698091;
    font-size: 15px;
}

/* ==========================================
   PROJECT FILTERS
========================================== */

.sp-projects .sp-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-bottom: 38px;
    padding-bottom: 19px;

    border-bottom: 1px solid #d9e5ed;
}

.sp-projects .sp-filter {
    display: inline-flex;
    align-items: center;

    gap: 13px;

    padding: 13px 18px;

    border-radius: 4px;
    border: 1px solid #dce6ed;

    background: #ffffff;

    text-decoration: none;
    color: #436074;

    font-weight: 700;
    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.sp-projects .sp-filter span {
    font-size: 12px;
    color: #899ba8;
}

.sp-projects .sp-filter:hover {
    border-color: #168dcc;
    color: #168dcc;
}

.sp-projects .sp-filter.is-active {
    background: #0a4165;
    border-color: #0a4165;
    color: #ffffff;
}

.sp-projects .sp-filter.is-active span {
    color: #9edfff;
}

/* ==========================================
   PROJECT GRID
========================================== */

.sp-projects .sp-project-grid {
    display: grid;

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

    gap: 27px;
}

.sp-projects .sp-project-card {
    display: block;

    background: #ffffff;
    overflow: hidden;

    border: 1px solid #e1eaf0;

    text-decoration: none;
    color: inherit;

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

.sp-projects .sp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 19px 40px rgba(6, 43, 67, 0.12);
}

/* ==========================================
   PROJECT IMAGES
========================================== */

.sp-projects .sp-image-wrap {
    position: relative;

    aspect-ratio: 1.2 / 1;
    overflow: hidden;

    background: #dde9ef;
}

.sp-projects .sp-image-wrap img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.sp-projects .sp-project-card:hover img {
    transform: scale(1.06);
}

/* ==========================================
   PROJECT STATUS
========================================== */

.sp-projects .sp-status {
    position: absolute;

    left: 19px;
    top: 19px;

    padding: 9px 13px;

    background: #ffffff;
    color: #18455e;

    font-weight: 800;
    font-size: 11px;

    letter-spacing: 1px;
    text-transform: uppercase;

    border-radius: 2px;
}

.sp-projects .sp-status-ongoing {
    background: #d4f1ff;
    color: #075781;
}

.sp-projects .sp-status-completed {
    background: #e4f5ec;
    color: #1b7051;
}

.sp-projects .sp-status-design {
    background: #f3eafc;
    color: #70459d;
}

.sp-projects .sp-image-arrow {
    position: absolute;

    bottom: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: #0b648a;

    font-size: 21px;
    border-radius: 50%;
}

/* ==========================================
   PROJECT CARD DETAILS
========================================== */

.sp-projects .sp-card-details {
    padding: 25px 25px 27px;
}

.sp-projects .sp-project-meta {
    margin: 0 0 10px;

    text-transform: uppercase;
    letter-spacing: 1.2px;

    color: #178ec8;

    font-size: 11px;
    font-weight: 750;
}

.sp-projects .sp-card-details h3 {
    margin: 0 0 26px;

    color: #0e3148;

    font-size: 22px;
    line-height: 1.35;
}

.sp-projects .sp-view {
    display: flex;
    justify-content: space-between;

    border-top: 1px solid #e4ebf0;
    padding-top: 16px;

    font-size: 13px;
    font-weight: 700;

    color: #38617b;
}

/* ==========================================
   EMPTY GALLERY STATE
========================================== */

.sp-projects .sp-empty {
    text-align: center;

    background: #ffffff;

    padding: 90px 25px;

    border: 1px solid #e0e9ef;
}

.sp-projects .sp-empty-icon {
    font-size: 46px;
    color: #83c2df;
}

.sp-projects .sp-empty h3 {
    font-size: 26px;
    color: #0a3049;

    margin: 15px 0;
}

.sp-projects .sp-empty p {
    color: #61798a;

    max-width: 560px;

    margin: 0 auto 25px;

    line-height: 1.7;
}

/* ==========================================
   CONTACT CALL TO ACTION
========================================== */

.sp-projects .sp-cta {
    background: linear-gradient(
        110deg,
        #072a45,
        #0a527c
    );

    color: #ffffff;
    padding: 92px 0;
}

.sp-projects .sp-cta-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 38px;
}

.sp-projects .sp-cta h2 {
    color: #ffffff;
}

.sp-projects .sp-cta p:not(.sp-eyebrow) {
    color: #d5e5ef;

    max-width: 610px;

    font-size: 17px;
    line-height: 1.7;

    margin: 20px 0 0;
}

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

@media (max-width: 980px) {

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

    .sp-projects .sp-intro-layout {
        gap: 38px;
    }

    .sp-projects .sp-hero {
        background-position: 63% center;
    }
}

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

@media (max-width: 650px) {

    .sp-projects .container,
    .sp-projects .sp-hero-layout {
        width: calc(100% - 36px);
    }

    .sp-projects .sp-hero {
        min-height: 570px;
        background-position: 63% center;
    }

    .sp-projects .sp-hero-layout {
        padding-top: 70px;
        padding-bottom: 120px;
    }

    .sp-projects .sp-hero h1 {
        font-size: clamp(38px, 10vw, 52px);
        letter-spacing: -1.5px;
    }

    .sp-projects .sp-hero-copy > p:not(.sp-eyebrow) {
        font-size: 16px;
    }

    .sp-projects .sp-hero-bottom .container {
        font-size: 9px;
        flex-wrap: wrap;
    }

    .sp-projects .sp-intro-section,
    .sp-projects .sp-gallery-section {
        padding: 65px 0;
    }

    .sp-projects .sp-intro-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sp-projects .sp-gallery-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .sp-projects .sp-project-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .sp-projects .sp-filter {
        font-size: 12px;
        padding: 11px 13px;
    }

    .sp-projects .sp-cta-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-projects .sp-cta {
        padding: 68px 0;
    }
}
