/* ── Portfolio listing ──────────────────────────────────────────────── */
.pf-listing {
    padding: 32px 0 80px;
}

/* ── Header (inline, like blog) ───────────────────────────────────── */
.pf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.pf-header__text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pf-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 93, 136, 0.08);
    color: #005D88;
    flex-shrink: 0;
}

.pf-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.pf-header__sub {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 0 auto;
    line-height: 1.5;
    white-space: nowrap;
}

/* ── Filters ──────────────────────────────────────────────────────── */
.pf-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.pf-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
    min-width: 80px;
}

.pf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.pf-pill:hover {
    color: #005D88;
    border-color: #005D88;
}

.pf-pill.is-active {
    color: #005D88;
    background: rgba(0, 93, 136, 0.06);
    border-color: #005D88;
    font-weight: 600;
}

/* ── Project grid ─────────────────────────────────────────────────── */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Project card ─────────────────────────────────────────────────── */
.pf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.pf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Card image */
.pf-card__img {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;
}

.pf-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pf-card:hover .pf-card__img img {
    transform: scale(1.04);
}

/* Badge: logo + name on card image */
.pf-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 100 / 56;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.pf-card__badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pf-card__badge-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.pf-card__badge-logo--wide {
    width: auto;
    height: 18px;
    border-radius: 0;
}

.pf-card__badge-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

/* Card body */
.pf-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 20px 20px;
}

/* Client row: logo + name */
.pf-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pf-card__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.pf-card__client {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Title = subtitle of project (what we did) */
.pf-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pf-card__summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

/* Tags */
.pf-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.pf-card__tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #005D88;
    background: rgba(0, 93, 136, 0.07);
    border-radius: 4px;
    letter-spacing: 0.01em;
}

/* Footer: metric + arrow */
.pf-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.pf-card__metric {
    font-size: 12px;
    font-weight: 600;
    color: #005D88;
    letter-spacing: 0.01em;
}

.pf-card__arrow {
    display: flex;
    align-items: center;
    color: #005D88;
    transition: transform 0.2s ease;
}

.pf-card:hover .pf-card__arrow {
    transform: translateX(4px);
}

/* ── Empty state ──────────────────────────────────────────────────── */
.pf-empty {
    text-align: center;
    padding: 60px 20px;
}

.pf-empty p {
    font-size: 16px;
    color: #9ca3af;
}

/* ── CTA block ────────────────────────────────────────────────────── */
.pf-cta {
    margin-top: 48px;
}

.pf-cta__inner {
    background: #f0f7fc;
    border: 1px solid rgba(0, 93, 136, 0.12);
    border-radius: 16px;
    padding: 40px 48px;
    text-align: center;
}

.pf-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.pf-cta__text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 auto 24px;
    max-width: 520px;
    line-height: 1.6;
}

.pf-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #005D88;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0, 93, 136, 0.2);
}

.pf-cta__btn:hover {
    background: #004a6e;
    box-shadow: 0 4px 16px rgba(0, 93, 136, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pf-listing {
        padding: 20px 0 56px;
    }

    .pf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .pf-header__sub {
        margin: 0;
        white-space: normal;
    }

    .pf-header__title {
        font-size: 24px;
    }

    .pf-filters {
        gap: 10px;
        margin-bottom: 24px;
    }

    .pf-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pf-filter-label {
        min-width: 0;
    }

    .pf-pills {
        flex-wrap: wrap;
    }

    .pf-pill {
        font-size: 12px;
        padding: 5px 12px;
    }

    .pf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pf-card__title {
        font-size: 16px;
    }

    .pf-cta__inner {
        padding: 28px 24px;
    }

    .pf-cta__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pf-header__title {
        font-size: 22px;
    }
}
