/* ============================================
   CASE STUDY PAGE - New Design System
   ============================================ */

/* Hero Section */
.case-study-hero {
    background: linear-gradient(135deg, #0a1628 0%, #112240 50%, #1a365d 100%);
    color: white;
    padding: 9rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.case-study-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.case-study-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.case-study-breadcrumb {
    margin-bottom: 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.case-study-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.case-study-breadcrumb a:hover {
    color: white;
}

/* Hero Header */
.case-study-hero-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.case-study-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.case-study-link {
    color: white;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.case-study-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.case-study-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* Meta Tags */
.case-study-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.meta-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.case-study-content {
    background: var(--gradient-subtle);
    padding: 4rem 0;
}

.case-study-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Section Card */
.case-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.case-section-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.case-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.case-section p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.case-section p:last-child {
    margin-bottom: 0;
}

.case-section ul {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.case-section li {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.case-section li::marker {
    color: var(--primary-400);
}

/* Section Subtitle */
.case-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.case-section h3:first-of-type {
    margin-top: 0;
}

/* Image Gallery */
.case-images {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.case-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-image-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* Mobile image */
.case-image-mobile {
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   CTA SECTION
   ============================================ */

.case-study-cta {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.case-study-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.case-study-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
}

.case-study-cta p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:not(.secondary) {
    background: white;
    color: var(--primary-600);
}

.cta-button:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .case-study-hero {
        padding: 7rem 0 3rem;
    }

    .case-study-hero-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .case-study-logo {
        height: 52px;
    }

    .case-study-subtitle {
        font-size: 1.0625rem;
    }

    .case-study-meta {
        gap: 1.5rem 2rem;
    }

    .case-study-content {
        padding: 2.5rem 0;
    }

    .case-section {
        padding: 2rem 1.5rem;
    }

    .case-section h2 {
        font-size: 1.25rem;
    }

    .case-study-cta {
        padding: 2.5rem 1.5rem;
    }

    .case-study-cta h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .cta-button {
        transition: none;
    }
}
