/* ─── HERO ───────────────────────────────────────────────── */
.projects-hero {
    background: linear-gradient(
        135deg,
        var(--blue-deep) 0%,
        var(--blue-mid) 100%
    );
    padding: 80px 80px 64px;
}
.projects-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}
.projects-hero h1 em {
    font-style: normal;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}
.projects-hero p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
}
.projects-hero .section-eyebrow::before {
    background: rgba(255, 255, 255, 0.3);
}

/* ─── FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
    padding: 24px 80px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: sticky;
    top: var(--nav-h);
    z-index: 10;
}
.filter-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-right: 8px;
}
.filter-btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-dark);
    background: none;
    border: 1px solid var(--gray-light);
    cursor: pointer;
    padding: 7px 16px;
    border-radius: 2px;
    transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--blue-deep);
    color: var(--white);
    border-color: var(--blue-deep);
}

/* ─── ACTIVE SECTION ─────────────────────────────────────── */
.active-projects-section {
    padding: 72px 80px;
    background: var(--off-white);
}
.active-section-header {
    margin-bottom: 48px;
}

/* ─── MIXED GRID ─────────────────────────────────────────── */
.mixed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.proj-featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border-top: 3px solid transparent;
    overflow: hidden;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}
.mixed-grid > .proj-featured:nth-child(1) {
    grid-column: 1 / 3;
}
.mixed-grid > .proj-featured:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.proj-featured:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.1);
    transform: translateY(-3px);
}
.proj-featured-img {
    height: 280px;
    position: relative;
    flex-shrink: 0;
}
.proj-featured-label {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    padding: 4px 10px;
    border-radius: 2px;
}
.proj-featured-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.proj-featured-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 12px;
    line-height: 1.3;
}
.proj-featured-body p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--gray-mid);
    flex: 1;
    margin-bottom: 24px;
}
.proj-progress-wrap {
    margin-top: auto;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.proj-raised {
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-deep);
}
.proj-cta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--blue-mid);
    text-transform: uppercase;
}

/* Small cards */
.proj-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border-top: 3px solid transparent;
    overflow: hidden;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}
.proj-card:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 8px 28px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}
.proj-card-img {
    height: 180px;
    position: relative;
}
.proj-cat-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
}
.proj-card-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.proj-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 8px;
    line-height: 1.35;
}
.proj-card-body p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--gray-mid);
    flex: 1;
    margin-bottom: 14px;
}
.proj-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}
.proj-cta-sm {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--blue-mid);
    text-transform: uppercase;
}

/* ─── COMPLETED SECTION ───────────────────────────────────── */
.completed-projects-section {
    padding: 72px 80px 96px;
    background: var(--white);
}
.completed-section-header {
    margin-bottom: 40px;
}
.completed-section-header p {
    font-size: 14px;
    font-weight: 300;
    color: var(--gray-mid);
    margin-top: 12px;
    max-width: 560px;
}

.completed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.completed-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--off-white);
    overflow: hidden;
    border-bottom: 3px solid transparent;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}
.completed-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.completed-card-img {
    height: 140px;
    background: linear-gradient(135deg, #2a2a3a, #3a3a5a);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    filter: grayscale(30%);
}
.completed-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}
.completed-card-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.completed-card-line {
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 14px;
    flex-shrink: 0;
}
.completed-cat {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 6px;
}
.completed-card-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.completed-card-body p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-mid);
    flex: 1;
    margin-bottom: 16px;
}
.completed-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}
.completed-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-mid);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: background var(--transition);
}
.completed-card-status span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-mid);
    transition: color var(--transition);
}
.completed-card:hover .completed-check {
    background: var(--green);
}
.completed-card:hover .completed-card-status span {
    color: var(--blue-mid);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .mixed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mixed-grid > .proj-featured:nth-child(1) {
        grid-column: 1 / 2;
    }
    .mixed-grid > .proj-featured:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .completed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1024px) {
    .projects-hero,
    .active-projects-section,
    .completed-projects-section,
    .filter-bar {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 768px) {
    .projects-hero,
    .active-projects-section,
    .completed-projects-section {
        padding: 48px 24px;
    }
    .filter-bar {
        padding: 18px 24px;
    }
    .mixed-grid {
        grid-template-columns: 1fr;
    }
    .mixed-grid > .proj-featured:nth-child(1),
    .mixed-grid > .proj-featured:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }
    .completed-grid {
        grid-template-columns: 1fr;
    }
}
