/* Cptify — Skin: Portfolio Studio */

/* ── Root & Common ── */
.itsmfp-pfs {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-family: inherit;
    background: #fff;
    overflow-x: hidden;
}

.itsmfp-pfs__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.itsmfp-pfs__heading {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 32px 0;
    line-height: 1.25;
}

/* ── HERO Section ── */
.itsmfp-pfs__hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.itsmfp-pfs__hero--no-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.itsmfp-pfs__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 1;
}

.itsmfp-pfs__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 800px;
}

.itsmfp-pfs__hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.itsmfp-pfs__hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.itsmfp-pfs__hero-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.itsmfp-pfs__hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.itsmfp-pfs__hero-meta-item::before {
    font-size: 14px;
}

.itsmfp-pfs__hero-meta-item--location::before {
    content: "📍";
}

.itsmfp-pfs__hero-meta-item--year::before {
    content: "📅";
}

.itsmfp-pfs__hero-meta-item--client::before {
    content: "👤";
}

/* ── BODY Wrap ── */
.itsmfp-pfs__body {
    width: 100%;
}

.itsmfp-pfs__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color .15s ease;
}
.itsmfp-pfs__back:hover {
    color: #3B82F6;
}

/* ── GALLERY Section ── */
.itsmfp-pfs__gallery {
    background: linear-gradient(135deg, #FEF9E7 0%, #E8F5E9 40%, #E3F2FD 100%);
    padding: 64px 0;
}

.itsmfp-pfs__gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.itsmfp-pfs__gallery-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 10;
    background: #000;
}

.itsmfp-pfs__gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.itsmfp-pfs__gallery-img.is-active {
    opacity: 1;
    z-index: 2;
}


.itsmfp-pfs__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.itsmfp-pfs__gallery-arrow:hover {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.05);
}

.itsmfp-pfs__gallery-arrow--prev {
    left: 16px;
}

.itsmfp-pfs__gallery-arrow--next {
    right: 16px;
}

.itsmfp-pfs__gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.itsmfp-pfs__gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.itsmfp-pfs__gallery-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.itsmfp-pfs__gallery-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.itsmfp-pfs__gallery-thumb {
    width: 96px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.itsmfp-pfs__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itsmfp-pfs__gallery-thumb:hover {
    opacity: 0.85;
}

.itsmfp-pfs__gallery-thumb.is-active {
    opacity: 1;
    border-color: #3B82F6;
    transform: scale(1.03);
}

/* ── OVERVIEW Section ── */
.itsmfp-pfs__overview {
    background: #FAFAFA;
    padding: 64px 0;
}

.itsmfp-pfs__overview-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.itsmfp-pfs__overview-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.itsmfp-pfs__overview-content {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.itsmfp-pfs__overview-content p {
    margin: 0 0 16px 0;
}

.itsmfp-pfs__overview-content p:last-child {
    margin-bottom: 0;
}

.itsmfp-pfs__details-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.itsmfp-pfs__details-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 8px;
}

.itsmfp-pfs__details-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 3px;
    background: #3B82F6;
    border-radius: 99px;
}

.itsmfp-pfs__details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itsmfp-pfs__details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.itsmfp-pfs__details-item:first-child {
    padding-top: 0;
}

.itsmfp-pfs__details-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.itsmfp-pfs__details-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.itsmfp-pfs__details-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

/* ── TRANSFORMATION Section ── */
.itsmfp-pfs__transform-section {
    background: linear-gradient(135deg, #BFDBFE 0%, #DBEAFE 50%, #E0F2FE 100%);
    padding: 64px 0;
}

.itsmfp-pfs__transform {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 10;
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.itsmfp-pfs__ba-after {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.itsmfp-pfs__ba-before {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.itsmfp-pfs__ba-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--pfs-ba-w, 840px);
    height: 100%;
}

.itsmfp-pfs__transform-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itsmfp-pfs__transform-label--before,
.itsmfp-pfs__transform-label--after {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.itsmfp-pfs__transform-label--before {
    right: 16px;
    background: #0f172a;
}

.itsmfp-pfs__transform-label--after {
    left: 16px;
    background: #3B82F6;
}

.itsmfp-pfs__ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 4;
}

.itsmfp-pfs__ba-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #3B82F6;
    border: 1px solid #E5E7EB;
}

/* ── KEY FEATURES Section ── */
.itsmfp-pfs__features {
    background: linear-gradient(135deg, #DBEAFE 0%, #E0F7FA 100%);
    padding: 64px 0 80px;
}

.itsmfp-pfs__features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.itsmfp-pfs__feature {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.itsmfp-pfs__feature::before {
    content: "✦";
    color: #3B82F6;
    font-weight: bold;
}

/* ── RELATED Section ── */
.itsmfp-pfs__related {
    background: #FAFAFA;
    padding: 64px 0 80px;
}

.itsmfp-pfs__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.itsmfp-pfs__related-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.itsmfp-pfs__related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.itsmfp-pfs__related-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.itsmfp-pfs__related-card-img-wrap {
    width: 100%;
    height: 100%;
}

.itsmfp-pfs__related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itsmfp-pfs__related-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.itsmfp-pfs__related-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    z-index: 2;
    text-align: left;
}

.itsmfp-pfs__related-card-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0.15);
}

.itsmfp-pfs__related-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── RESPONSIVE Media Queries ── */
@media (max-width: 900px) {
    .itsmfp-pfs__overview-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .itsmfp-pfs__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .itsmfp-pfs__hero {
        min-height: 360px;
    }
    
    .itsmfp-pfs__features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .itsmfp-pfs__transform-slider {
        flex-direction: column;
        aspect-ratio: auto;
    }
    
    .itsmfp-pfs__transform-item {
        width: 100%;
        height: 240px;
    }
    
    .itsmfp-pfs__transform-handle {
        display: none;
    }
    
    .itsmfp-pfs__gallery-stage {
        aspect-ratio: 4 / 3;
    }
    
    .itsmfp-pfs__gallery-thumb {
        width: 80px;
        height: 54px;
    }
}

@media (max-width: 560px) {
    .itsmfp-pfs__features-grid {
        grid-template-columns: 1fr;
    }
    
    .itsmfp-pfs__related-grid {
        grid-template-columns: 1fr;
    }
    
    .itsmfp-pfs__hero-meta {
        gap: 16px;
    }
}
