/* Page: projects — the case-study index. */

.ce-projects {
    font-family: var(--font-primary);
    color: #444;
    padding: 70px 0 20px;
}

.ce-projects__header {
    max-width: 760px;
    margin-bottom: 50px;
}

.ce-projects__title {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--maine-black);
    margin: 0 0 18px;
}

.ce-projects__intro {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

/* =============================================================
   Grid
   ============================================================= */

.ce-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .ce-projects__grid {
        grid-template-columns: 1fr;
    }
}

.ce-project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.ce-project-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 16px 46px rgba(0, 46, 93, .14);
    transform: translateY(-3px);
}

.ce-project-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}

.ce-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ce-project-card:hover .ce-project-card__media img {
    transform: scale(1.05);
}

.ce-project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

/* No photo yet: the accent rule keeps the card from reading as an empty box. */
.ce-project-card--text .ce-project-card__body {
    padding: 34px 28px;
    border-top: 3px solid var(--brand-orange);
}

.ce-project-card__category {
    display: block;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ce-project-card__name {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--maine-black);
    margin-bottom: 12px;
}

.ce-project-card__text {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.ce-project-card__more {
    display: block;
    margin-top: auto;
    color: var(--brand-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* =============================================================
   CTA banner (shared markup with the other pages)
   ============================================================= */

.cta-section-wrapper {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.cta-banner {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(90deg, #2a2a2a 0%, #2a2a2a 30%, #a64d16 60%, #e0691e 100%);
    padding: 80px 10%;
    transform: scale(0.92);
    border-radius: 20px;
    transition: transform 0.1s linear, border-radius 0.1s linear;
}

.cta-inner-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.cta-content {
    flex: 1;
    color: #fff;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.cta-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-box {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    min-width: 280px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.cta-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.cta-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.cta-value {
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

@media (max-width: 991px) {
    .cta-banner {
        padding: 50px 24px;
    }

    .cta-inner-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-box {
        min-width: 0;
    }
}
