/* Case Study Page Styles - Based on Headspace Style */

/* Override body and main styles for case study pages */
body {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    font-family: 'Be Vietnam Pro', sans-serif;
}

body::before {
    content: '' !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 3px
        );
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    display: block !important;
}

.case-study-main {
    background-color: #FFFFFF;
    color: #1a1a1a;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Override navigation for case study pages */
body .navigation.case-study-nav {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body .navigation.case-study-nav .nav-container {
    max-width: none;
    margin: 0;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body .navigation.case-study-nav .back-link-nav {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    text-transform: none;
}

body .navigation.case-study-nav .back-link-nav:hover {
    opacity: 0.7;
}

body .navigation.case-study-nav .back-arrow {
    font-size: 18px;
    line-height: 1;
}

body .nav-link {
    color: #1a1a1a;
}

/* Override footer for case study pages */
body .footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body .footer-link {
    color: #666;
}

body .footer-link:hover {
    color: #1a1a1a;
}

body .footer-copyright {
    color: #999;
}

.case-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 40px 60px 60px;
}

/* Hero Container - New Full Width Hero */
.case-hero-container {
    width: 100%;
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
    background-color: #F8F7F4;
    border-radius: 0 0 100px 100px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    margin: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.case-hero-image-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.case-hero-image-wrapper img {
    max-width: 464px;
    max-height: 358px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.case-hero-content {
    flex: 1;
    max-width: 455px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-study-meta {
    font-size: 14px;
    color: #666;
    font-family: 'Be Vietnam Pro', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.case-study-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    color: #695A50;
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-study-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-study-title .word.animate {
    opacity: 1;
    transform: translateY(0);
}

.case-study-body {
    font-size: 16px;
    line-height: 1.8;
    color: #B5A493;
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.case-study-body.fade-in {
    opacity: 1;
}

@media (max-width: 1024px) {
    .case-hero-container {
        flex-direction: column;
        height: auto;
        min-height: 650px;
        padding: 48px;
        border-radius: 60px;
    }
    
    .case-hero-image-wrapper {
        width: 100%;
        max-width: 500px;
    }
    
    .case-study-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .case-hero-container {
        padding: 32px;
        border-radius: 40px;
        min-height: 500px;
    }
    
    .case-study-title {
        font-size: 2rem;
    }
    
    .case-study-body {
        font-size: 16px;
    }
}

/* Hero Section - Content that fades in after hero */
.case-hero-section {
    margin-bottom: 0px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.case-hero-section.fade-in {
    opacity: 1;
}

.case-problem-section,
.case-discovery-section,
.case-testing-section,
.case-final-section,
.case-image-section {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.case-problem-section.fade-in,
.case-discovery-section.fade-in,
.case-testing-section.fade-in,
.case-final-section.fade-in,
.case-image-section.fade-in {
    opacity: 1;
}

.breadcrumb {
    margin-bottom: 40px;
}

.back-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.back-link:hover {
    opacity: 0.6;
}

.case-hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

@media (max-width: 768px) {
    .case-hero-title {
        font-size: 3rem;
    }
}

.case-overview-section {
    margin-top: 60px;
}

.case-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-role-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.case-tag {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-main-headline {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

@media (max-width: 768px) {
    .case-main-headline {
        font-size: 1.5rem;
    }
}

.case-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    max-width: 800px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Image Section */
.case-image-section {
    margin: 0px 0 80px 0;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px 0 60px;
    position: relative;
    z-index: 2;
}

.case-image-section-reduced-top {
    margin-top: -30px;
}

.case-image-section img {
    border-radius: 24px;
    display: block;
    max-width: 100%;
    height: auto;
}

.case-image-section img:not([src*="pipeline-concept"]):not([src*="pipeline-concepts"]):not([src*="pipeline-final-1"]):not([src*="pipeline-final-2"]):not([src*="triggers-background-2"]):not([src*="coco"]):not([src*="comp-letters-original"]):not([src*="comp-letters-final-1"]):not([src*="comp-letters-controls"]):not([src*="comp-letters-final-4"]):not([src*="comp-letters-problem"]) {
    border: 1px solid #E1E1E3;
}

.comp-letters-final-3-cropped {
    clip-path: inset(0 0 2px 2px);
}

.case-image-placeholder {
    width: 100%;
    background-color: #f5f5f5;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-image-placeholder.large {
    height: 500px;
}

.case-image-placeholder.medium {
    height: 400px;
}

/* Recognition Section */
.case-recognition-section {
    margin-bottom: 100px;
}

.case-recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-recognition-item {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Metrics Section */
.case-metrics-section {
    margin-bottom: 120px;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.case-metrics-section .case-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.case-metrics-section .case-main-headline {
    grid-column: 1 / -1;
    margin-bottom: 40px;
}

.case-metric-card {
    text-align: left;
}

.case-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-metric-value {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-metric-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    max-width: 250px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Problem Section */
.case-problem-section {
    margin-bottom: 0px;
}

.case-section-headline {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
    max-width: 900px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-problem-section .case-section-text:last-child,
.case-discovery-section .case-section-text:last-child,
.case-testing-section .case-section-text:last-child,
.case-final-section .case-section-text:last-child {
    margin-bottom: 0;
}

.case-section-text strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Design Requirements List */
.case-design-requirements {
    list-style: none;
    padding: 24px;
    margin: 0;
    background-color: #F5F5F5;
    border-radius: 16px;
}

.case-design-requirements li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-design-requirements li:last-child {
    margin-bottom: 0;
}

.case-design-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: #C8E6C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
    font-size: 14px;
    font-weight: 600;
}

/* Discovery Section */
.case-discovery-section {
    margin-bottom: 0px;
}

.case-subsection-headline {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 50px;
    margin-bottom: 25px;
    letter-spacing: -0.01em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-subsection-headline em {
    font-style: italic;
}

/* Testing Section */
.case-testing-section {
    margin-bottom: 0px;
}

.case-testing-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.case-testing-method {
    padding: 30px 0;
}

.case-method-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-method-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Question Card */
.case-question-card {
    background: #F5F5F5;
    border-left: 4px solid #1a1a1a;
    padding: 40px;
    margin: 60px 0px 60px 0px;
    max-width: 900px;
    border-radius: 0 16px 16px 0;
}

.case-question-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-question-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 400;
    font-style: italic;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Insights Grid */
.case-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px 0 0 0;
}

.case-insights-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.case-insight-item {
    padding: 30px 0;
    border-top: 1px solid #E5E5E5;
}

.case-insight-number {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-insight-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Findings Grid */
.case-findings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px 0 0 0;
}

.case-findings-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.case-finding-item {
    padding: 30px;
    background: #F5F5F5;
    border-radius: 16px;
}

.case-finding-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-finding-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.case-finding-description .quote-text {
    font-size: 12px;
    font-style: italic;
}

/* Final Section */
.case-final-section {
    margin-bottom: 0px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-container {
        padding: 100px 20px 60px;
    }
    
    .case-hero-title {
        font-size: 2.5rem;
    }
    
    .case-main-headline {
        font-size: 1.5rem;
    }
    
    .case-section-headline {
        font-size: 1.5rem;
    }
    
    .case-intro-text,
    .case-section-text {
        font-size: 16px;
    }
    
    .case-metrics-section .case-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-testing-methods {
        grid-template-columns: 1fr;
    }
    
    .case-insights-grid,
    .case-insights-grid-3col,
    .case-findings-grid,
    .case-findings-grid-3col {
        grid-template-columns: 1fr;
    }
}
