/* ═══════════════════════════════════════════
                                    PROJECT DETAIL PAGE
                                ═══════════════════════════════════════════ */


/* ── HERO ── */

.pd-hero {
    height: 52vh;
    min-height: 340px;
    max-height: 520px;
    position: relative;
    overflow: hidden;
}

.pd-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.pd-hero:hover .pd-hero__img {
    transform: scale(1.0);
}

.pd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .2) 100%);
}


/* Subtle grid texture on overlay */

.pd-hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pd-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0;
}

.pd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 2px;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pd-hero__badge--done {
    background: rgba(46, 204, 113, .15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, .3);
}

.pd-hero__badge--ongoing {
    background: rgba(232, 99, 10, .15);
    color: #e8630a;
    border: 1px solid rgba(232, 99, 10, .3);
}

.pd-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pd-hero__badge--ongoing .pd-hero__badge-dot {
    animation: pd-pulse 2s infinite;
}

@keyframes pd-pulse {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .3
    }
}

.pd-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: .75rem;
}

.pd-hero__location {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}


/* ── STATS ── */

.pd-stats {
    background: #111;
    padding: 0;
}

.pd-stats__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
}

.pd-stat {
    padding: 1.75rem 2rem;
    border-right: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: background .25s;
}

.pd-stat:last-child {
    border-right: none;
}

.pd-stat:hover {
    background: rgba(255, 255, 255, .03);
}

.pd-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 3px;
    background: rgba(232, 99, 10, .1);
    border: 1px solid rgba(232, 99, 10, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pd-stat__icon svg {
    width: 20px;
    height: 20px;
    stroke: #e8630a;
}

.pd-stat__num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
}

.pd-stat__label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-top: .2rem;
}


/* ── COVER + INFO ── */

.pd-cover {
    background: #f4f5f7;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.pd-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.pd-cover__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ddd;
    border: 1.5px solid #ddd;
    position: relative;
}


/* LEFT: image — fills height of right column */

.pd-cover__img-wrap {
    overflow: hidden;
    position: relative;
    /* min-height so short content doesn't squish it */
    min-height: 420px;
}

.pd-cover__img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.pd-cover__img-wrap:hover img {
    transform: scale(1.03);
}


/* Image caption strip */

.pd-cover__img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .8rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}


/* RIGHT: info */

.pd-cover__info {
    background: #fff;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.pd-cover__label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #e8630a;
    margin-bottom: 1.25rem;
}

.pd-cover__label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: #e8630a;
}

.pd-cover__project-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #111;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.pd-cover__desc {
    font-size: .95rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 2rem;
    flex: 1;
}


/* Specs table */

.pd-specs {
    border-top: 1px solid #eee;
    padding-top: 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .1rem;
}

.pd-spec {
    padding: .75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pd-spec__key {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: .2rem;
}

.pd-spec__val {
    font-size: .92rem;
    font-weight: 700;
    color: #111;
}


/* WA CTA */

.pd-wa {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 4px;
}

.pd-wa__text {
    flex: 1;
}

.pd-wa__text p {
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
    margin: 0;
    line-height: 1.4;
}

.pd-wa__text strong {
    font-size: .9rem;
    color: #fff;
    display: block;
    margin-bottom: .2rem;
}

.pd-wa__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 3px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

.pd-wa__btn:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}


/* ── CONTENT ── */

.pd-content {
    background: #fff;
    padding: 5rem 0;
}

.pd-content__card {
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 4px;
    padding: 3rem;
}

.pd-content__card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.pd-content__card p,
.pd-content__card li {
    font-size: .97rem;
    line-height: 1.85;
    color: #555;
}


/* ── RELATED ── */

.pd-related {
    background: #f4f5f7;
    padding: 5rem 0;
}

.pd-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-related__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -.02em;
    margin: 0;
}

.pd-related__all {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e8630a;
    text-decoration: none;
}

.pd-related__all svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform .2s;
}

.pd-related__all:hover svg {
    transform: translateX(3px);
}

.pd-related__all:hover {
    color: #e8630a;
}


/* Related card */

.pd-rcard {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.pd-rcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .09);
    color: inherit;
}

.pd-rcard__img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pd-rcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.pd-rcard:hover .pd-rcard__img img {
    transform: scale(1.05);
}

.pd-rcard__body {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1.5px solid #eee;
}

.pd-rcard__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: .35rem;
    letter-spacing: -.01em;
}

.pd-rcard__meta {
    font-size: .78rem;
    color: #999;
    font-weight: 500;
}

.pd-rcard__arrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e8630a;
}

.pd-rcard__arrow svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    transition: transform .2s;
}

.pd-rcard:hover .pd-rcard__arrow svg {
    transform: translateX(3px);
}


/* ── RESPONSIVE ── */

@media (max-width: 991px) {
    .pd-cover__grid {
        grid-template-columns: 1fr;
    }
    .pd-cover__img-wrap {
        min-height: 300px;
        /* fixed height on mobile since it's not stretching to match right col */
        height: 300px;
        position: relative;
    }
    .pd-cover__img-wrap img {
        position: absolute;
    }
    .pd-cover__info {
        padding: 2rem 1.75rem;
    }
    .pd-stats__inner {
        grid-template-columns: 1fr;
    }
    .pd-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }
    .pd-stat:last-child {
        border-bottom: none;
    }
    .pd-specs {
        grid-template-columns: 1fr;
    }
    .pd-content__card {
        padding: 1.75rem;
    }
}

@media (max-width: 575px) {
    .pd-hero {
        height: 55vw;
        min-height: 260px;
    }
    .pd-cover {
        padding: 3rem 0;
    }
    .pd-content {
        padding: 3rem 0;
    }
    .pd-related {
        padding: 3rem 0;
    }
    .pd-wa {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ── GALLERY ── */

.pd-gallery {
    background: #111;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.pd-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.pd-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-gallery__label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #e8630a;
    margin-bottom: .75rem;
}

.pd-gallery__label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: #e8630a;
}

.pd-gallery__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    margin: 0;
}

.pd-gallery__counter {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .35);
    align-self: flex-end;
    white-space: nowrap;
}

.pd-gallery__counter span {
    color: #e8630a;
}


/* Slider track */

.pd-slider {
    position: relative;
    overflow: hidden;
}

.pd-slider__track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.pd-slider__slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 .75rem;
    box-sizing: border-box;
}


/* Show 3 per row on desktop */

@media (min-width: 768px) {
    .pd-slider__slide {
        width: 33.333%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .pd-slider__slide {
        width: 50%;
    }
}

.pd-slide__img {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 4/3;
    cursor: zoom-in;
}

.pd-slide__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.pd-slide__img:hover img {
    transform: scale(1.06);
}


/* Overlay on hover */

.pd-slide__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(232, 99, 10, 0);
    transition: background .3s ease;
    pointer-events: none;
}

.pd-slide__img:hover::after {
    background: rgba(232, 99, 10, .08);
}


/* Zoom icon */

.pd-slide__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.7);
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pd-slide__zoom svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.pd-slide__img:hover .pd-slide__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Nav buttons */

.pd-slider__nav {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 2rem;
    justify-content: center;
}

.pd-slider__btn {
    width: 44px;
    height: 44px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}

.pd-slider__btn:hover {
    background: #e8630a;
    border-color: #e8630a;
}

.pd-slider__btn svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, .7);
    transition: stroke .2s;
}

.pd-slider__btn:hover svg {
    stroke: #fff;
}

.pd-slider__btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none;
}


/* Dots */

.pd-slider__dots {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 1rem;
}

.pd-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: background .2s, transform .2s, width .2s;
    border: none;
    padding: 0;
}

.pd-slider__dot.is-active {
    background: #e8630a;
    width: 20px;
    border-radius: 3px;
}


/* Lightbox */

.pd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.pd-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.pd-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(255, 255, 255, .08);
}

.pd-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s;
}

.pd-lightbox__close:hover {
    background: rgba(255, 255, 255, .2);
}

.pd-lightbox__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.pd-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.pd-lightbox__nav:hover {
    background: #e8630a;
    border-color: #e8630a;
}

.pd-lightbox__nav svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.pd-lightbox__prev {
    left: 1.5rem;
}

.pd-lightbox__next {
    right: 1.5rem;
}

.pd-lightbox__info {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .4);
    white-space: nowrap;
}

@media (max-width: 575px) {
    .pd-gallery {
        padding: 3rem 0;
    }
    .pd-lightbox__nav {
        display: none;
    }
}