/* =========================================================
   SAN MEP SOLUTIONS | UNIFIED PROJECT PORTFOLIO
   Uses the shared navy / teal brand and shared card motion.
   ========================================================= */

/* PROJECTS HERO — same existing project background and brand overlay */
.page-hero.bolt-projects.projects-hero {
    display: flex;
    align-items: center;
    min-height: 390px !important;
    margin-top: 0 !important;
    padding: 62px 0 58px !important;
    overflow: hidden;
}

.page-hero.bolt-projects.projects-hero .container {
    width: min(calc(100% - 48px), 1280px);
    max-width: 1280px;
    margin: 0 auto;
}

.projects-portfolio-hero .section-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #6de0d8;
}

.projects-portfolio-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(2.65rem, 5.2vw, 4.55rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.projects-portfolio-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.8;
}

.projects-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.projects-hero-actions .btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
}

.projects-hero-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    font-weight: 600;
}

.projects-hero-note i {
    color: #5cd7cd;
}


/* STICKY SECTION NAVIGATION */
.project-tabs.portfolio-tabs {
    position: sticky;
    top: 108px;
    z-index: 80;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #dfe7ec;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 22px rgba(11,34,57,.055);
    backdrop-filter: blur(12px);
}

.portfolio-tabs-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 66px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.project-tabs.portfolio-tabs a,
.project-tabs.portfolio-tabs a:visited {
    flex: 0 0 auto;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 9px;
    color: #52697c !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none !important;
    transition: color .2s ease, background .2s ease;
}

.project-tabs.portfolio-tabs a:hover {
    color: #0d9488 !important;
    background: #edf8f7 !important;
}

.project-tabs.portfolio-tabs a.active,
.project-tabs.portfolio-tabs a.active:visited,
.project-tabs.portfolio-tabs a[aria-current="location"],
.project-tabs.portfolio-tabs a[aria-current="location"]:visited {
    color: #087e79 !important;
    background: #e8f7f5 !important;
}

.portfolio-section,
.portfolio-section-heading,
#data-center,
#selected-mep,
#other-notable-projects {
    scroll-margin-top: 190px;
}


/* SHARED SECTION RHYTHM */
.portfolio-section {
    padding: 88px 0 94px;
}

.portfolio-data-center {
    background: #ffffff;
}

.portfolio-selected-mep {
    background: #f4f6f8;
}

.portfolio-notable {
    background: #ffffff;
}

.portfolio-section-heading {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.portfolio-section-heading .section-kicker {
    display: inline-block;
    margin-bottom: 12px;
}

.portfolio-section-heading .section-title {
    margin: 0 0 14px;
    color: #102f49;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.portfolio-section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #607487;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   DATA CENTER FEATURED PROJECTS
   Wide cards echo the site project-card hover treatment.
   ========================================================= */

.data-center-project-list {
    display: grid;
    gap: 26px;
}

.dc-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #dce5eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(11,34,57,.055);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.dc-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20,184,166,.38);
    box-shadow: 0 18px 38px rgba(11,34,57,.11);
}

.dc-project-media {
    position: relative;
    min-width: 0;
    min-height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: #0b1d2b;
}

.dc-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 490px;
    object-fit: contain;
    object-position: center;
}

.dc-project-media-caption {
    position: absolute;
    left: 25px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #61d8cf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    pointer-events: none;
}

.dc-project-media-caption::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #1ab4a8;
}

.dc-project-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 42px;
}

.dc-project-topline,
.dc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portfolio-eyebrow {
    color: #0b9991;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.dc-capacity {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    background: #e8f7f5;
    color: #087e79;
    font-size: 14px;
    font-weight: 850;
}

.dc-project-content h3 {
    margin: 18px 0 8px;
    color: #102f49;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(25px, 2.3vw, 32px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.03em;
}

.dc-title-row h3 {
    margin: 18px 0 8px;
}

.project-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #087e79;
    background: #e9f7f5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dc-project-location,
.mep-project-location {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: #61788b;
    font-size: 14px;
    font-weight: 600;
}

.dc-project-location i,
.mep-project-location i {
    color: #12a89f;
}

.dc-project-detail {
    padding: 15px 0 14px;
    border-top: 1px solid #e5edf1;
}

.dc-project-detail span,
.mep-project-detail span {
    display: block;
    margin-bottom: 6px;
    color: #0d9488;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dc-project-detail p,
.mep-project-detail p {
    margin: 0;
    color: #52697c;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   SELECTED MEP PROJECTS
   Single client-supplied drawing per project where provided.
   ========================================================= */

 .mep-project-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 24px;
}

/* Same split-card structure as the Data Center profiles. */
.mep-project-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #dfe7ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(11,34,57,.05);
    transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}

.mep-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20,184,166,.38);
    box-shadow: 0 18px 36px rgba(11,34,57,.11);
}

.mep-project-media {
    position: relative;
    min-width: 0;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 22px;
    background: #0b1d2b;
}

.mep-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    object-position: center;
}

.mep-image-caption {
    position: absolute;
    left: 22px;
    bottom: 17px;
    padding: 6px 9px;
    border-radius: 5px;
    background: rgba(7,24,38,.80);
    color: #72ddd5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mep-project-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 38px;
}

.mep-project-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0b817b;
    background: #e8f7f5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mep-project-content h3 {
    margin: 0 0 9px;
    color: #102f49;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.mep-project-location {
    margin-bottom: 14px;
    font-size: 13px;
}

.mep-project-detail {
    width: 100%;
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 1px solid #e7eef2;
}

.mep-project-detail p {
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   OTHER NOTABLE PROJECTS — readable list, no invented images
   ========================================================= */

.notable-project-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.notable-project-group {
    min-width: 0;
    padding: 27px 25px 25px;
    border: 1px solid #e0e8ed;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(11,34,57,.045);
    transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}

.notable-project-group:hover {
    transform: translateY(-4px);
    border-color: rgba(20,184,166,.35);
    box-shadow: 0 16px 32px rgba(11,34,57,.09);
}

.notable-group-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 19px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e7eef2;
}

.notable-group-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e6f5f3;
    color: #0d9488;
    font-size: 17px;
}

.notable-group-heading h3 {
    margin: 0 0 4px;
    color: #12324d;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.notable-group-heading p {
    margin: 0;
    color: #718496;
    font-size: 11px;
    line-height: 1.45;
}

.notable-project-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notable-project-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f4;
}

.notable-project-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.notable-project-list strong {
    color: #29465c;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.notable-project-list span {
    color: #7a8c9a;
    font-size: 11px;
    line-height: 1.5;
}


/* CTA uses the shared website CTA component and contact modal. */
.cta {
    padding: 68px 0;
}

.cta h2 {
    margin-bottom: 12px;
}

.cta p {
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.75;
}


/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1050px) {
    .dc-project-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dc-project-content {
        padding: 30px;
    }

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


/* =========================================================
   MOBILE / TABLET HEADER AND PROJECT CARDS
   ========================================================= */
@media (max-width: 900px) {
    .page-hero.bolt-projects.projects-hero {
        min-height: 320px !important;
        margin-top: 0 !important;
        padding: 52px 0 46px !important;
    }

    .project-tabs.portfolio-tabs {
        top: 68px;
    }

    .portfolio-tabs-inner {
        min-height: 58px;
        gap: 4px;
    }

    .project-tabs.portfolio-tabs a,
    .project-tabs.portfolio-tabs a:visited {
        min-height: 42px;
        padding: 0 15px;
        font-size: 12px;
    }

    .portfolio-section {
        padding: 64px 0 70px;
    }

    .portfolio-section-heading {
        margin-bottom: 32px;
    }

    .portfolio-section-heading p {
        font-size: 15px;
    }

    .dc-project-card {
        grid-template-columns: 1fr;
    }

    .dc-project-media {
        min-height: 350px;
        max-height: 420px;
    }

    .dc-project-media img {
        max-height: 370px;
    }

    .dc-project-content {
        padding: 28px;
    }

    .mep-project-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mep-project-media {
        min-height: 310px;
    }

    .mep-project-content {
        padding: 26px 28px;
    }

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

@media (max-width: 640px) {
    .page-hero.bolt-projects.projects-hero {
        min-height: 330px !important;
        padding: 44px 0 42px !important;
    }

    .page-hero.bolt-projects.projects-hero .container {
        width: min(calc(100% - 30px), 1280px);
    }

    .projects-portfolio-hero h1 {
        font-size: clamp(2.1rem, 9vw, 3.1rem);
    }

    .projects-portfolio-hero p {
        font-size: 15px;
        line-height: 1.75;
    }

    .projects-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-top: 23px;
    }

    .projects-hero-actions .btn {
        min-height: 52px;
        padding: 0 18px;
        font-size: 13px;
    }

    .portfolio-section {
        padding: 52px 0 58px;
    }

    .portfolio-section-heading {
        margin-bottom: 26px;
    }

    .portfolio-section-heading .section-title {
        font-size: clamp(27px, 7vw, 34px);
    }

    .portfolio-section-heading p {
        font-size: 14px;
    }

    .data-center-project-list {
        gap: 18px;
    }

    .dc-project-media {
        min-height: 280px;
        max-height: 330px;
        padding: 14px;
    }

    .dc-project-media img {
        max-height: 300px;
    }

    .dc-project-content {
        padding: 23px 21px;
    }

    .dc-project-content h3 {
        font-size: 25px;
    }

    .dc-title-row {
        align-items: flex-start;
    }

    .dc-title-row h3 {
        font-size: 23px;
    }

    .mep-project-grid,
    .notable-project-groups {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .mep-project-card {
        grid-template-columns: 1fr;
    }

    .mep-project-media {
        min-height: 260px;
        max-height: 310px;
        padding: 14px;
    }

    .mep-project-media img {
        max-height: 280px;
    }

    .mep-project-content {
        padding: 23px 22px 25px;
    }

    .mep-project-content h3 {
        font-size: 21px;
    }

    .notable-project-group {
        padding: 23px 21px;
    }

    .cta {
        padding: 52px 0;
    }

    .portfolio-section,
    #data-center,
    #selected-mep,
    #other-notable-projects {
        scroll-margin-top: 135px;
    }
}


/* Keep all portfolio section heading accents centered, matching the site's
   shared section-heading treatment. */
.portfolio-section-heading .section-title::after {
    margin-left: auto;
    margin-right: auto;
}


/* Desktop: keep the portfolio label clear of the fixed navigation */
@media (min-width: 768px) {
    .page-hero.bolt-projects.projects-hero {
        padding-top: 112px !important;
    }

    .projects-portfolio-hero .section-kicker {
        display: inline-block !important;
        position: relative;
        z-index: 2;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 16px;
    }
}

/* Mobile: preserve the existing layout */
@media (max-width: 767px) {
    .page-hero.bolt-projects.projects-hero {
        padding-top: 66px !important;
    }
}

