
/* Showcase-specific styles */
.showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.showcase-section {
    margin-bottom: var(--space-xl);
}

.project-img.showcase {
    height: clamp(200px, 30vw, 300px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    background: #f5f5f7;
    margin-bottom: var(--space-md);
}

.showcase-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: var(--card-pad);
}

.showcase-section-title {
    font-size: clamp(1.3rem, 1.5vw + 0.8rem, 1.8rem);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.process-step {
    display: flex;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
    align-items: flex-start;
}

.process-step-number {
    background: var(--accent);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.process-step-content {
    flex: 1;
}

.conclusion-section {
    background: var(--card-bg);
    padding: var(--card-pad);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
}

.showcase-hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: var(--space-xl) 0;
}

.showcase-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--content-gap);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.showcase-project-img {
    width: 100%;
    max-width: 510px;
    height: clamp(180px, 25vw, 250px);
    border-radius: 8px;
    object-fit: cover;
}

.showcase-project-img.order-1 {
    order: 1;
}

.showcase-project-img.order-2 {
    order: 2;
}

/* Mobile view - ensure text comes first, image comes second */
@media (max-width: 768px) {
    .showcase-about-content {
        grid-template-columns: 1fr;
    }

    /* In mobile view, the first child (text content) should come first */
    /* and the second child (image) should come second */
    .showcase-about-content > div:first-child {
        order: 1;
    }

    .showcase-about-content > div:last-child {
        order: 2;
    }
}

.project-img.case-study-hero {
    height: clamp(220px, 35vw, 350px);
    border-radius: 12px;
    background: linear-gradient(135deg, #0066ff, #4d94ff);
    color: white;
    font-size: clamp(1.1rem, 1vw + 0.85rem, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-hero-fused {
    width: 100%;
    max-width: 1600px;
    height: clamp(300px, 50vw, 800px);
    background-image: url('../assets/ClivetHero.webp');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
    background-color: #0066ff;
}

/* Remove rounded corners for screens smaller than 1600px */
@media (max-width: 1599px) {
    .case-study-hero-fused {
        border-radius: 0;
    }
}

.case-study-hero-fused::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: var(--card-pad);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

main.showcase-container {
    padding: 0;
}

.case-study-description {
    font-size: var(--text-lead);
    color: white;
    max-width: 65ch;
    margin-bottom: var(--space-md);
}

.case-study-title {
    font-size: var(--text-hero);
    margin-bottom: var(--space-sm);
}

/* Responsive layout shifts only — spacing/type is fluid via tokens */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 540px) {
    .process-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}