/* =========================================================
   PROJECT DETAIL PAGE — extends style.css tokens
========================================================= */

/* ===== HERO ===== */
.pdetail-hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    overflow: hidden;
    background: var(--charcoal);
}

.pdetail-hero-photo {
    position: relative;
    width: 100%;
    height: 100%;
}

.pdetail-hero-add {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.pdetail-hero-add svg {
    width: 34px;
    height: 34px;
}

.pdetail-hero-add span {
    font-family: var(--tertiary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pdetail-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 70%);
    pointer-events: none;
}

.pdetail-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 2;
}

.pdetail-tags {
    font-family: var(--tertiary);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.pdetail-tags .dot {
    margin: 0 10px;
    color: var(--terracotta);
}

.pdetail-hero-content h1 {
    font-family: var(--secondary);
    color: var(--white);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 500;
    text-transform: uppercase;
    max-width: 800px;
}

/* ===== OVERVIEW ===== */
.pdetail-overview {
    background: var(--white);
    padding: var(--extra-large-section-padding);
}

.pdetail-overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.pdetail-lead {
    font-family: var(--secondary);
    font-size: 24px;
    line-height: 1.6;
    color: var(--onyx);
    margin-bottom: 36px;
}

.pdetail-copy-spacer {
    margin-top: 8px;
}

.pdetail-copy p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(32, 33, 31, 0.68);
    margin-top: var(--content-gap);
    margin-bottom: 20px;
    max-width: 620px;
}

.pdetail-facts-card {
    background: var(--cream);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pdetail-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(32, 33, 31, 0.1);
}

.pdetail-fact-label {
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(32, 33, 31, 0.5);
    font-weight: 600;
}

.pdetail-fact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--onyx);
    text-align: right;
}

.floor-plan-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
    margin-top: var(--content-gap);
}

.floor-plan-download svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.floor-plan-download:hover {
    gap: 14px;
}

.pdetail-scope {
    margin-top: 4px;
}

.pdetail-scope-list {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdetail-scope-list li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--onyx);
}

.pdetail-scope-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--terracotta);
}

.pdetail-facts-cta {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

/* ===== GALLERY ===== */
.pdetail-gallery {
    background: var(--cream);
    padding: var(--extra-large-section-padding);
}

.pdetail-gallery-head {
    max-width: 560px;
    margin-bottom: 44px;
}

.pdetail-gallery-head h2 {
    font-family: var(--secondary);
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--onyx);
    margin: var(--content-gap) 0;
}

.pdetail-gallery-head h2 .fade {
    color: var(--terracotta);
    font-weight: 800;
}

.pdetail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

.pdetail-gallery-item {
    background: var(--white);
    border: 1px dashed rgba(32, 33, 31, 0.25);
    overflow: hidden;
}

.pdetail-gallery-item .pdetail-hero-add {
    color: rgba(32, 33, 31, 0.35);
}

.pdetail-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.pdetail-gallery-item img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ===== DISCIPLINES APPLIED ===== */
.pdetail-disciplines {
    background: var(--onyx);
    padding: var(--extra-large-section-padding);
    text-align: center;
}

.pdetail-disciplines .eyebrow {
    margin-bottom: var(--content-gap);
}

.pdetail-disciplines h2 {
    font-family: var(--secondary);
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 56px;
}

.pdetail-disciplines h2 .fade {
    color: var(--terracotta);
    font-weight: 800;
}

.pdetail-discipline-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: left;
}

.pdetail-discipline .discipline-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.pdetail-discipline h3 {
    font-family: var(--secondary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}

.pdetail-discipline p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

/* ===== PREV / NEXT NAV ===== */
.pdetail-nav {
    background: var(--white);
    padding: 50px 0;
    border-top: 1px solid rgba(32, 33, 31, 0.1);
    border-bottom: 1px solid rgba(32, 33, 31, 0.1);
}

.pdetail-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.pdetail-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--onyx);
}

.pdetail-nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.pdetail-nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(32, 33, 31, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pdetail-nav-arrow svg {
    width: 18px;
    height: 18px;
}

.pdetail-nav-link:hover .pdetail-nav-arrow {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.pdetail-nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdetail-nav-text.right {
    align-items: flex-end;
}

.pdetail-nav-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(32, 33, 31, 0.45);
    font-weight: 700;
}

.pdetail-nav-name {
    font-family: var(--secondary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--onyx);
}

.pdetail-nav-all {
    font-family: var(--tertiary);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracotta);
    white-space: nowrap;
    text-align: center;
}

/* ===== CLOSING CTA ===== */
.pdetail-cta {
    background:color-mix(in srgb, var(--onyx) 85%, transparent);
    padding: 70px 0;
}

.pdetail-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.pdetail-cta-copy .eyebrow {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.pdetail-cta-copy h2 {
    font-family: var(--secondary);
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
}


/* =========================================================
   PROJECT DETAIL — TABLET
   MAX WIDTH: 1024px
========================================================= */

@media (max-width: 1024px) {

    /* =====================================================
       GLOBAL
    ===================================================== */

    .pdetail-hero,
    .pdetail-overview,
    .pdetail-gallery,
    .pdetail-disciplines,
    .pdetail-nav,
    .pdetail-cta {
        width: 100%;
        overflow: hidden;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .pdetail-hero {
        height: 65vh;
        min-height: 440px;
    }

    .pdetail-hero-content {
        bottom: 35px;
        padding: 0 30px;
    }

    .pdetail-tags {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .pdetail-hero-content h1 {
        font-size: clamp(34px, 6vw, 52px);
        line-height: 1.05;
        max-width: 700px;
    }


    /* =====================================================
       OVERVIEW
    ===================================================== */

    .pdetail-overview {
        padding: 80px 30px;
    }

    .pdetail-overview-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pdetail-lead {
        font-size: 22px;
        line-height: 1.5;
        max-width: 800px;
    }

    .pdetail-copy {
        max-width: 800px;
    }

    .pdetail-copy p {
        max-width: 100%;
        font-size: 14px;
    }

    .pdetail-facts-card {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 30px;
    }


    /* =====================================================
       GALLERY
    ===================================================== */

    .pdetail-gallery {
        padding: 80px 30px;
    }

    .pdetail-gallery-head {
        max-width: 100%;
        margin: 0 auto 40px;
        text-align: center;
    }

    .pdetail-gallery-head h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        text-align: center;
    }

    .pdetail-gallery-head p {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .pdetail-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 16px;
    }

    .pdetail-gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }


    /* =====================================================
       DISCIPLINES
    ===================================================== */

    .pdetail-disciplines {
        padding: 80px 30px;
    }

    .pdetail-disciplines h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        text-align: center;
        margin-bottom: 45px;
    }

    .pdetail-discipline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
        text-align: center;
    }

    .pdetail-discipline .discipline-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .pdetail-discipline h3 {
        font-size: 16px;
    }

    .pdetail-discipline p {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       PREVIOUS / NEXT NAVIGATION
    ===================================================== */

    .pdetail-nav {
        padding: 40px 30px;
    }

    .pdetail-nav-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 18px;
    }

    .pdetail-nav-link {
        gap: 10px;
    }

    .pdetail-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .pdetail-nav-name {
        font-size: 13px;
    }


    /* =====================================================
       CTA
    ===================================================== */

    .pdetail-cta {
        padding: 60px 30px;
    }

    .pdetail-cta-wrap {
        justify-content: center;
        text-align: center;
    }

    .pdetail-cta-copy {
        width: 100%;
    }

    .pdetail-cta-copy h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        text-align: center;
    }
}



/* =========================================================
   PROJECT DETAIL — MOBILE
   MAX WIDTH: 768px
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       HERO
    ===================================================== */

    .pdetail-hero {
        height: 65vh;
        min-height: 400px;
    }

    .pdetail-hero-content {
        bottom: 25px;
        padding: 0 20px;
    }

    .pdetail-tags {
        font-size: 10px;
        letter-spacing: .8px;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .pdetail-tags .dot {
        margin: 0 6px;
    }

    .pdetail-hero-content h1 {
        font-size: clamp(30px, 8vw, 44px);
        line-height: 1.05;
        max-width: 100%;
    }


    /* =====================================================
       OVERVIEW
    ===================================================== */

    .pdetail-overview {
        padding: 60px 20px;
    }

    .pdetail-overview-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pdetail-lead {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .pdetail-copy-spacer {
        margin-top: 0;
    }

    .pdetail-copy p {
        font-size: 13px;
        line-height: 1.7;
        margin-top: 15px;
        margin-bottom: 16px;
    }


    /* =====================================================
       FACTS CARD
    ===================================================== */

    .pdetail-facts-card {
        padding: 22px;
        gap: 14px;
    }

    .pdetail-fact {
        gap: 12px;
        padding-bottom: 12px;
    }

    .pdetail-fact-label {
        font-size: 10px;
    }

    .pdetail-fact-value {
        font-size: 13px;
    }

    .floor-plan-download {
        font-size: 13px;
        margin-top: 10px;
    }

    .floor-plan-download svg {
        width: 18px;
        height: 18px;
    }

    .pdetail-scope-list {
        gap: 7px;
    }

    .pdetail-scope-list li {
        font-size: 12px;
        padding-left: 18px;
    }

    .pdetail-scope-list li::before {
        width: 7px;
        height: 7px;
        top: 6px;
    }

    .pdetail-facts-cta {
        margin-top: 10px;
    }


    /* =====================================================
       GALLERY
    ===================================================== */

    .pdetail-gallery {
        padding: 60px 20px;
    }

    .pdetail-gallery-head {
        max-width: 100%;
        margin-bottom: 32px;
        text-align: center;
    }

    .pdetail-gallery-head h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        line-height: 1.1;
        text-align: center;
    }

    .pdetail-gallery-head p {
        font-size: 13px;
        line-height: 1.6;
    }

    .pdetail-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .pdetail-gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }


    /* =====================================================
       DISCIPLINES
    ===================================================== */

    .pdetail-disciplines {
        padding: 60px 20px;
    }

    .pdetail-disciplines .eyebrow {
        margin-bottom: 12px;
        text-align: center;
    }

    .pdetail-disciplines h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        line-height: 1.1;
        margin-bottom: 40px;
        text-align: center;
    }

    .pdetail-discipline-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
        text-align: center;
    }

    .pdetail-discipline .discipline-icon {
        width: 52px;
        height: 52px;
        margin: 0 auto 16px;
    }

    .pdetail-discipline .discipline-icon svg {
        width: 26px;
        height: 26px;
    }

    .pdetail-discipline h3 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .pdetail-discipline p {
        font-size: 12px;
        line-height: 1.6;
    }


    /* =====================================================
       PREVIOUS / NEXT NAVIGATION
    ===================================================== */

    .pdetail-nav {
        padding: 20px 0px;
    }

    .pdetail-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .pdetail-nav-all {
        display: none;
    }

    .pdetail-nav-link {
        gap: 8px;
        min-width: 0;
    }

    .pdetail-nav-link.next {
        justify-content: flex-end;
    }

    .pdetail-nav-arrow {
        width: 38px;
        height: 38px;
    }

    .pdetail-nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    .pdetail-nav-text {
        min-width: 0;
    }

    .pdetail-nav-name {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;

        max-width: 130px;
    }

    .pdetail-nav-label {
        font-size: 8px;
    }


    /* =====================================================
       CTA
    ===================================================== */

    .pdetail-cta {
        padding: 55px 20px;
    }

    .pdetail-cta-wrap {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .pdetail-cta-copy {
        width: 100%;
    }

    .pdetail-cta-copy .eyebrow {
        margin-bottom: 10px;
    }

    .pdetail-cta-copy h2 {
        font-size: clamp(24px, 3.5vw, 40px);
        line-height: 1.1;
        text-align: center;
    }

    .pdetail-cta-wrap .btn,
    .pdetail-cta-wrap a {
        max-width: 100%;
    }
}


