/* ============================================
   Case Study Block
   ============================================ */
.acv-case-study {
    padding: 80px 190px;
    background-color: #ffffff;
}

.acv-case-study-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 160px;
    align-items: start;
}

/* Content Section */
.acv-case-study-content {
    display: flex;
    flex-direction: column;
}

.acv-case-study-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.acv-case-study-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

/* Intro - Teal italic text */
.acv-case-study-intro {
    font-size: 1.75rem;
    font-weight: 200;
    font-style: normal;
    color: #1d6b81;
    line-height: 1.35;
    margin-bottom: 40px;
}

.acv-case-study-intro p {
    margin: 0;
}

/* Sub Intro - Body text */
.acv-case-study-sub-intro {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 24px;
}

.acv-case-study-sub-intro p {
    margin: 0;
}

/* Highlights List */
.acv-case-study-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.acv-case-study-highlights li {
    font-size: 0.875rem;
    font-weight: 300;
    color: #374151;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}

.acv-case-study-highlights li:first-child {
    border-top: 1px solid #e5e7eb;
}

/* CTA Button */
.acv-case-study-cta {
    margin-top: 8px;
}

/* Button styles moved to /css/buttons.css */

/* Gallery Section */
.acv-case-study-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.acv-case-study-image {
    overflow: hidden;
}

.acv-case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.acv-case-study-image--large {
    grid-column: 1 / -1;
    min-height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
}

.acv-case-study-image--small {
    min-height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 1200px) {
    .acv-case-study-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .acv-case-study {
        padding: 60px 60px;
    }
    
    .acv-case-study-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .acv-case-study-gallery {
        order: -1;
    }
}

@media (max-width: 640px) {
    .acv-case-study {
        padding: 50px 20px;
    }
    
    .acv-case-study-title {
        font-size: 1.75rem;
    }
    
    .acv-case-study-intro {
        font-size: 1.25rem;
    }
    
    .acv-case-study-gallery {
        grid-template-columns: 1fr;
    }
    
    .acv-case-study-image--large {
        grid-column: 1;
    }
}

/* ===== Scroll Animations ===== */

/* Content section slides in from left */
.acv-case-study-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.acv-case-study-content.acv-cs-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Gallery images fade in and scale up with stagger */
.acv-case-study-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.acv-case-study-image.acv-cs-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .acv-case-study-content,
    .acv-case-study-image {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
