/* =========================================================
   MANAPJE — PROJECTS PAGE
   Page-specific rules only.
   Global layout, typography, navigation, buttons, footer,
   reveal animation and shared project base styles remain in:
   styles.css + about.css
========================================================= */

/* Page hero image only — the inner-hero structure is inherited
   from about.css. */
.projects-hero .inner-hero-image {
    background: url("assets/images/solar-farm.jpg") center 48% / cover no-repeat;
    opacity: .78;
}

/* =========================================================
   PROJECT INTRO
========================================================= */

.projects-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(50px, 8vw, 105px);
    align-items: start;
}

.projects-intro-grid h2 {
    max-width: 650px;
}

.projects-intro-copy {
    max-width: 700px;
}

.projects-intro-copy .lead {
    margin-bottom: 20px;
}

/* =========================================================
   PORTFOLIO PAGE OVERRIDES
   The project-card/grid/filter base is already in styles.css.
========================================================= */

.portfolio-section {
    background: var(--off-white);
}

.projects-page-heading {
    margin-bottom: 38px;
}

.projects-page-heading > p {
    max-width: 500px;
    margin-bottom: 5px;
}

.projects-page-grid .project-card {
    min-height: 0;
}

.projects-page-grid .project-overlay p {
    max-width: 520px;
    margin-top: 0;
    color: rgba(255,255,255,.76);
    font-size: .82rem;
    line-height: 1.65;
}

.projects-page-grid .project-overlay a {
    display: inline-flex;
    margin-top: 7px;
}

.projects-empty {
    margin: 25px 0 0;
    padding: 20px;
    border: 1px solid var(--border);
    background: #fff;
    color: #666;
    text-align: center;
}

/* =========================================================
   DOCUMENTED EXPERIENCE
========================================================= */

.documented-section {
    padding: 105px 0;
    background: var(--charcoal);
    color: #fff;
}

.documented-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 48px;
}

.documented-heading h2 {
    color: #fff;
}

.documented-heading > p {
    max-width: 510px;
    color: rgba(255,255,255,.68);
}

.documented-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.documented-card {
    position: relative;
    min-height: 310px;
    padding: 36px 30px 32px;
    border-right: 1px solid rgba(255,255,255,.16);
}

.documented-card:last-child {
    border-right: 0;
}

.documented-number {
    display: block;
    margin-bottom: 28px;
    color: rgba(255,255,255,.38);
    font-family: var(--heading-font);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.documented-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    background: rgba(255,255,255,.08);
    color: #ef5d60;
    font-size: 1.1rem;
}

.documented-card h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.18rem;
}

.documented-card p {
    max-width: 360px;
    color: rgba(255,255,255,.62);
    font-size: .84rem;
    line-height: 1.7;
}

/* =========================================================
   PROJECT DELIVERY
========================================================= */

.delivery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 52px;
}

.delivery-heading > p {
    max-width: 510px;
}

.delivery-timeline {
    border-top: 1px solid var(--border);
}

.delivery-step {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.delivery-step > span {
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.delivery-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.delivery-step p {
    max-width: 700px;
    margin: 0;
    font-size: .86rem;
}

/* =========================================================
   PAGE CAPABILITY STRIP
   Shared capability-strip/capability-list styling comes
   from about.css. Only spacing specific to this page lives here.
========================================================= */

.projects-capability-strip {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* =========================================================
   RESPONSIVE — only rules needed by this page
========================================================= */

@media (max-width: 900px) {
    .projects-intro-grid,
    .documented-heading,
    .delivery-heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .documented-grid {
        grid-template-columns: 1fr;
    }

    .documented-card {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .documented-card:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    .projects-page-heading {
        margin-bottom: 30px;
    }

    .projects-page-grid .project-overlay {
        padding: 75px 22px 22px;
    }

    .projects-page-grid .project-overlay h3 {
        font-size: 1.1rem;
    }

    .documented-section {
        padding: 78px 0;
    }

    .documented-card {
        padding: 30px 0;
    }

    .delivery-step {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 18px;
        padding: 25px 0;
    }

    .projects-capability-strip {
        padding-top: 65px;
        padding-bottom: 65px;
    }
}

@media (max-width: 420px) {
    .projects-page-grid .project-card,
    .projects-page-grid .project-card.project-large,
    .projects-page-grid .project-card.project-wide {
        height: 285px;
        min-height: 285px;
    }

    .projects-page-grid .project-overlay {
        padding: 65px 18px 18px;
    }

    .projects-page-grid .project-overlay p {
        font-size: .76rem;
    }
}
