/* ────────────────────────────────────────────────────────────────────────────
   Case Studies Page Styles (marketing-case-studies.css)
   ──────────────────────────────────────────────────────────────────────────── */

:root {
    --color-primary: #6366f1;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-light: #f3f4f6;
    --color-dark: #1f2937;
    --color-border: #e5e7eb;
    --color-text-muted: #6b7280;
}

/* ────────────────────────────────────────────────────────────────────────────
   CASE STUDIES HERO SECTION
   ──────────────────────────────────────────────────────────────────────────── */

.case-studies-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-studies-hero .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.case-studies-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ────────────────────────────────────────────────────────────────────────────
   CASE STUDIES GRID SECTION
   ──────────────────────────────────────────────────────────────────────────── */

.case-studies-section {
    padding: 80px 20px;
    background: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.card-header {
    margin-bottom: 20px;
}

.clinic-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.clinic-city {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    background: var(--color-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.metric-before,
.metric-after {
    flex: 1;
    text-align: center;
}

.metric .label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.metric .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.metric .unit {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.metric-arrow {
    font-size: 1.5rem;
    color: var(--color-success);
}

.growth-percentage {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.growth-percentage span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-success);
}

.growth-percentage {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.card-description {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-description p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-testimonial {
    background: var(--color-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin-top: 20px;
}

.card-testimonial blockquote {
    margin: 0;
}

.card-testimonial blockquote p {
    color: var(--color-dark);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-testimonial footer {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ────────────────────────────────────────────────────────────────────────────
   CTA SECTION
   ──────────────────────────────────────────────────────────────────────────── */

.case-studies-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.case-studies-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.case-studies-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ────────────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ──────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .case-studies-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .case-studies-hero .hero-subtitle {
        font-size: 1.05rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-studies-cta-section h2 {
        font-size: 1.8rem;
    }

    .metric {
        flex-wrap: wrap;
    }

    .metric-before,
    .metric-after {
        flex: 1 1 40%;
    }
}

@media (max-width: 480px) {
    .case-studies-hero {
        padding: 40px 15px;
        min-height: 300px;
    }

    .case-studies-hero .hero-content h1 {
        font-size: 1.8rem;
    }

    .case-studies-section {
        padding: 40px 15px;
    }

    .case-study-card {
        padding: 20px 15px;
    }

    .metric .value {
        font-size: 1.5rem;
    }

    .metric-arrow {
        font-size: 1.2rem;
    }

    .growth-percentage span {
        font-size: 1.3rem;
    }
}
