﻿

.pt-project-detail {
    --pt-navy: #102d50;
    --pt-navy-dark: #09213d;
    --pt-blue: #245b91;
    --pt-text: #24364b;
    --pt-muted: #718096;
    --pt-border: #e2e9f0;
    --pt-soft: #f4f7fa;
    --pt-white: #ffffff;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 22px 65px;
    color: var(--pt-text);
    font-family: inherit;
    box-sizing: border-box;
}

.pt-project-detail *,
.pt-project-detail *::before,
.pt-project-detail *::after {
    box-sizing: border-box;
}

/* Breadcrumb */

.pt-project-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 34px;
    color: var(--pt-muted);
    font-size: 12px;
}

    .pt-project-breadcrumb a {
        color: var(--pt-muted);
        text-decoration: none;
        transition: color .2s ease;
    }

        .pt-project-breadcrumb a:hover {
            color: var(--pt-blue);
        }

    .pt-project-breadcrumb span:last-child {
        color: var(--pt-navy);
        font-weight: 600;
    }

/* Main two-column layout */

.pt-project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 48px;
    align-items: start;
    direction: rtl;
}

/* Gallery */

.pt-project-gallery {
    min-width: 0;
    direction: rtl;
}

.pt-project-main-image {
    position: relative;
    width: 100%;
    height: 385px;
    overflow: hidden;
    background: var(--pt-soft);
    border-radius: 5px;
    border: 1px solid var(--pt-border);
}

    .pt-project-main-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
    }

    .pt-project-main-image:hover img {
        transform: scale(1.025);
    }

.pt-project-image-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 15px;
    color: #fff;
    background: rgba(9, 33, 61, .88);
    border-right: 3px solid #75a8dc;
    font-size: 12px;
}

/* Thumbnail images */

.pt-project-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 13px;
}

.pt-project-thumb {
    display: block;
    width: 100%;
    height: 94px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--pt-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, opacity .2s ease;
}

    .pt-project-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
    }

    .pt-project-thumb:hover img {
        transform: scale(1.05);
    }

    .pt-project-thumb.active {
        border: 2px solid var(--pt-blue);
        padding: 2px;
    }

.pt-project-gallery-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    color: var(--pt-muted);
    font-size: 12px;
}

    .pt-project-gallery-caption span:first-child {
        color: var(--pt-navy);
        font-size: 13px;
        font-weight: 700;
    }

/* Project introduction */

.pt-project-intro {
    min-width: 0;
    padding-top: 12px;
}

.pt-project-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--pt-blue);
    font-size: 13px;
    font-weight: 700;
}

.pt-project-eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--pt-blue);
}

.pt-project-number {
    margin-bottom: 17px;
    color: #98a7b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    direction: ltr;
    text-align: right;
}

.pt-project-intro h1 {
    margin: 0 0 20px;
    color: var(--pt-navy-dark);
    font-size: clamp(27px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: -.7px;
}

.pt-project-summary {
    margin: 0;
    color: #65758a;
    font-size: 15px;
    line-height: 2.3;
    text-align: justify;
}

.pt-project-divider {
    width: 100%;
    height: 1px;
    margin: 27px 0 23px;
    background: var(--pt-border);
}

/* Project facts */

.pt-project-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.pt-project-fact {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-right: 13px;
    border-right: 2px solid #d6e3f0;
}

.pt-project-fact-title {
    color: var(--pt-muted);
    font-size: 12px;
}

.pt-project-fact strong {
    color: var(--pt-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

/* Consultation button */

.pt-project-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 56px;
    margin-top: 30px;
    padding: 0 20px;
    color: #fff;
    background: var(--pt-navy);
    border: 1px solid var(--pt-navy);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background .25s ease, border-color .25s ease;
}

    .pt-project-contact:hover {
        color: #fff;
        background: var(--pt-blue);
        border-color: var(--pt-blue);
    }

.pt-project-contact-arrow {
    font-size: 22px;
    font-weight: 400;
    transition: transform .25s ease;
}

.pt-project-contact:hover .pt-project-contact-arrow {
    transform: translateX(-4px);
}

/* Full project description */

.pt-project-description {
    margin-top: 75px;
    padding-top: 36px;
    border-top: 1px solid var(--pt-border);
}

.pt-project-description-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.pt-project-section-label {
    display: block;
    margin-bottom: 10px;
    color: #91a2b5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    direction: ltr;
    text-align: right;
}

.pt-project-description-heading h2 {
    margin: 0;
    color: var(--pt-navy-dark);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.8;
}

.pt-project-heading-mark {
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: 10px;
    background: var(--pt-blue);
}

.pt-project-description-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 48px;
    align-items: start;
}

.pt-project-description-text p {
    margin: 0 0 20px;
    color: #5f7084;
    font-size: 14px;
    line-height: 2.5;
    text-align: justify;
}

    .pt-project-description-text p:last-child {
        margin-bottom: 0;
    }

/* Service list */

.pt-project-services {
    padding: 25px;
    background: var(--pt-soft);
    border: 1px solid var(--pt-border);
    border-top: 3px solid var(--pt-navy);
    border-radius: 4px;
}

    .pt-project-services h3 {
        margin: 0 0 22px;
        color: var(--pt-navy);
        font-size: 16px;
        font-weight: 800;
    }

    .pt-project-services ul {
        display: flex;
        flex-direction: column;
        gap: 17px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pt-project-services li {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        color: #53657a;
        font-size: 13px;
        line-height: 1.9;
    }

.pt-project-check {
    display: inline-flex;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: var(--pt-blue);
    background: #e0eaf5;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

/* Bottom CTA */

.pt-project-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 65px;
    padding: 32px 36px;
    color: #fff;
    background: var(--pt-navy-dark);
    border-radius: 5px;
}

.pt-project-cta-content {
    min-width: 0;
}

.pt-project-cta-kicker {
    display: block;
    margin-bottom: 10px;
    color: #a8c9eb;
    font-size: 12px;
}

.pt-project-cta-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.9;
}

.pt-project-cta-content p {
    margin: 0;
    color: #d2deeb;
    font-size: 13px;
    line-height: 2;
}

.pt-project-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 145px;
    min-height: 48px;
    padding: 0 20px;
    color: var(--pt-navy);
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
}

    .pt-project-cta-button:hover {
        color: #fff;
        background: transparent;
    }

    .pt-project-cta-button span {
        font-size: 20px;
    }

/* Responsive */

@media (max-width: 900px) {
    .pt-project-detail {
        padding: 25px 18px 45px;
    }

    .pt-project-hero {
        gap: 28px;
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    }

    .pt-project-main-image {
        height: 310px;
    }

    .pt-project-intro h1 {
        font-size: 29px;
    }

    .pt-project-summary {
        font-size: 14px;
        line-height: 2.1;
    }

    .pt-project-description-content {
        gap: 25px;
        grid-template-columns: minmax(0, 1.3fr) minmax(230px, .8fr);
    }

    .pt-project-bottom-cta {
        padding: 26px;
    }
}

@media (max-width: 650px) {
    .pt-project-detail {
        padding: 20px 14px 35px;
    }

    .pt-project-breadcrumb {
        gap: 7px;
        margin-bottom: 23px;
        font-size: 11px;
    }

    .pt-project-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* On mobile the gallery appears first */
    .pt-project-gallery {
        grid-row: 1;
    }

    .pt-project-intro {
        grid-row: 2;
        padding-top: 0;
    }

    .pt-project-main-image {
        height: 260px;
    }

    .pt-project-thumbnails {
        gap: 8px;
        margin-top: 9px;
    }

    .pt-project-thumb {
        height: 78px;
    }

    .pt-project-eyebrow {
        margin-bottom: 18px;
    }

    .pt-project-number {
        margin-bottom: 10px;
    }

    .pt-project-intro h1 {
        margin-bottom: 14px;
        font-size: 27px;
        line-height: 1.8;
    }

    .pt-project-summary {
        font-size: 14px;
        line-height: 2.2;
    }

    .pt-project-divider {
        margin: 22px 0;
    }

    .pt-project-facts {
        gap: 18px 12px;
    }

    .pt-project-contact {
        margin-top: 24px;
    }

    .pt-project-description {
        margin-top: 48px;
        padding-top: 28px;
    }

    .pt-project-description-heading {
        margin-bottom: 22px;
    }

        .pt-project-description-heading h2 {
            font-size: 23px;
        }

    .pt-project-description-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .pt-project-description-text p {
        font-size: 13px;
        line-height: 2.3;
    }

    .pt-project-services {
        padding: 21px;
    }

    .pt-project-bottom-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
        margin-top: 42px;
        padding: 25px 20px;
    }

    .pt-project-cta-content h2 {
        font-size: 18px;
    }

    .pt-project-cta-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-project-detail *,
    .pt-project-detail *::before,
    .pt-project-detail *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* کلیک‌پذیر بودن تصاویر */

.pt-project-main-image img {
    cursor: zoom-in;
}

/* پس زمینه پاپ آپ */

.pt-project-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 55px 25px;
    background: rgba(5, 17, 32, 0.94);
    cursor: zoom-out;
}

    .pt-project-lightbox.pt-lightbox-open {
        display: flex;
        animation: ptLightboxFadeIn .25s ease;
    }

    /* تصویر بزرگ */

    .pt-project-lightbox img {
        display: block;
        max-width: 95%;
        max-height: 88vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
        box-shadow: 0 15px 55px rgba(0, 0, 0, .3);
        cursor: default;
    }

/* دکمه بستن */

.pt-project-lightbox-close {
    position: absolute;
    top: 18px;
    left: 25px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: #102d50;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

    .pt-project-lightbox-close:hover {
        background: #245b91;
    }

@keyframes ptLightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* نمایش در موبایل */

@media (max-width: 600px) {
    .pt-project-lightbox {
        padding: 45px 12px;
    }

        .pt-project-lightbox img {
            max-width: 100%;
            max-height: 82vh;
        }

    .pt-project-lightbox-close {
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
    }
}

/* دکمه‌های قبلی و بعدی پاپ‌آپ */

.pt-project-lightbox .pt-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(16, 45, 80, .9);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    z-index: 2;
}

    .pt-project-lightbox .pt-lightbox-nav:hover {
        background: #245b91;
    }

.pt-project-lightbox .pt-lightbox-prev {
    left: 25px;
}

.pt-project-lightbox .pt-lightbox-next {
    right: 25px;
}

/* شمارنده تصاویر */

.pt-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(16, 45, 80, .85);
    padding: 7px 16px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    direction: ltr;
}

/* موبایل */

@media (max-width: 600px) {
    .pt-project-lightbox .pt-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .pt-project-lightbox .pt-lightbox-prev {
        left: 8px;
    }

    .pt-project-lightbox .pt-lightbox-next {
        right: 8px;
    }

    .pt-lightbox-counter {
        bottom: 12px;
    }
}


