/* ============================================================================
   ongoing-projects.css
   Styles for the Ongoing Projects section / page.
   Deliberately distinct from completed-projects.css — uses amber/orange
   accents to signal "work in progress" vs. the teal of completed work.
   ============================================================================ */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.op-section {
    padding: 5rem 0 4rem;
    background-color: var(--white, #fff);
}

/* Alternate background when embedded on a page that already has white sections */
.op-section--alt {
    background-color: var(--light-bg, #f5f7fa);
}

/* ── Section header ──────────────────────────────────────────────────────── */
.op-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.op-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D97706;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.22);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
}

/* Animated live pulse dot in eyebrow */
.op-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D97706;
    display: inline-block;
    animation: op-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes op-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.op-section-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--navy, #0B2345);
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

.op-section-sub {
    font-size: 0.975rem;
    color: var(--slate, #64748b);
    line-height: 1.75;
    margin: 0;
}

/* ── Filter navigation ───────────────────────────────────────────────────── */
.op-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.op-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 100px;
    border: 1.5px solid rgba(217, 119, 6, 0.22);
    background: transparent;
    color: var(--slate, #64748b);
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

.op-filter-btn:hover {
    border-color: #D97706;
    color: #D97706;
    background: rgba(217, 119, 6, 0.06);
    transform: translateY(-1px);
}

.op-filter-btn.active {
    background: #D97706;
    border-color: #D97706;
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* ── Projects grid ───────────────────────────────────────────────────────── */
.op-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.op-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 35, 69, 0.07);
    border: 1px solid rgba(11, 35, 69, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease,
        opacity 0.25s ease;
}

.op-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(11, 35, 69, 0.14);
}

/* ── Card media ──────────────────────────────────────────────────────────── */
.op-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.op-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    /* Slight desaturate to signal WIP vs. finished */
    filter: saturate(0.88);
}

.op-card:hover .op-card-img {
    transform: scale(1.06);
    filter: saturate(1);
}

/* Gradient overlay */
.op-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(11, 35, 69, 0.5) 0%,
            rgba(11, 35, 69, 0.05) 45%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.op-card:hover .op-card-overlay {
    opacity: 1;
}

/* ── Category badge (top-left, amber) ────────────────────────────────────── */
.op-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #D97706;
    padding: 0.28rem 0.65rem;
    border-radius: 100px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── "In Progress" status badge (bottom-left) ────────────────────────────── */
.op-card-status {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    padding: 0.28rem 0.65rem;
    border-radius: 100px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.op-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: op-status-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes op-status-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(74, 222, 128, 0);
    }
}

/* ── Card info block ─────────────────────────────────────────────────────── */
.op-card-info {
    padding: 1rem 1.1rem 1.1rem;
}

.op-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy, #0B2345);
    margin: 0 0 0.55rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta tags ───────────────────────────────────────────────────────────── */
.op-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.op-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.op-tag-type {
    background: rgba(11, 87, 158, 0.08);
    color: var(--primary, #0B579E);
    border: 1px solid rgba(11, 87, 158, 0.15);
}

.op-tag-area {
    background: rgba(13, 148, 136, 0.07);
    color: #0D9488;
    border: 1px solid rgba(13, 148, 136, 0.18);
}

.op-tag-special {
    background: rgba(217, 119, 6, 0.08);
    color: #B45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* ── Card footer ─────────────────────────────────────────────────────────── */
.op-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid rgba(11, 35, 69, 0.07);
    padding-top: 0.65rem;
}

.op-card-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate, #64748b);
}

.op-card-location svg {
    color: #D97706;
    flex-shrink: 0;
}

.op-card-client {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate, #64748b);
    font-style: italic;
    max-width: 140px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── CTA row ─────────────────────────────────────────────────────────────── */
.op-cta-row {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}



/* ── Stats strip ─────────────────────────────────────────────────────────── */
.op-stats-strip {
    background: #fff;
    border-bottom: 1px solid rgba(11, 35, 69, 0.08);
    padding: 1.5rem 0;
}

.op-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.op-stat-item {
    text-align: center;
    padding: 0.75rem 1rem;
    border-right: 1px solid rgba(11, 35, 69, 0.08);
}

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

.op-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #D97706;
    line-height: 1;
    display: block;
}

.op-stat-num sup {
    font-size: 1rem;
    vertical-align: super;
}

.op-stat-lbl {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-top: 0.3rem;
}

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

    .op-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .op-section {
        /* padding: 3.5rem 0 3rem; */
    }

    .op-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .op-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-filter-nav {
        gap: 0.45rem;
    }

    .op-filter-btn {
        font-size: 0.78rem;
        padding: 0.45rem 0.9rem;
    }

}