/* ============================================================
   FITCO CASE STUDY STYLES
   Specific styles for case study pages
   Version: 1.0.0 | Date: 2026-01-30
   ============================================================ */

/* ==================== CASE STUDY HEADER ==================== */
.fud-v1 .case-study-main {
    position: relative;
    overflow-x: hidden;
    margin-bottom: 0;
}

.fud-v1 .case-study-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fe 50%, #ffffff 100%);
    color: #111827;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-16) 0 var(--space-24);
    position: relative;
    overflow: hidden;
}

.fud-v1 .case-study-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(23, 44, 117, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.fud-v1 .case-study-header .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .fud-v1 .case-study-header .container {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

.fud-v1 .industry-tag {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.fud-v1 .date {
    opacity: 0.8;
    font-weight: var(--font-normal);
}

.fud-v1 .case-study-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
}

.fud-v1 .highlight {
    color: var(--accent);
    font-weight: var(--font-extrabold);
}

.fud-v1 .case-study-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    opacity: 0.9;
    margin-bottom: var(--space-12);
    max-width: 90%;
}

/* ==================== KEY METRICS ==================== */
.fud-v1 .key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.fud-v1 .metric {
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(23, 44, 117, 0.12);
    border-top: 3px solid #172c75;
    padding: var(--space-6) var(--space-4);
    border-radius: var(--rounded-xl);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(23, 44, 117, 0.05);
}

.fud-v1 .metric:hover {
    transform: translateY(-3px);
    background: #f8faff;
    box-shadow: 0 6px 20px rgba(23, 44, 117, 0.12);
}

.fud-v1 .metric-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    line-height: 1;
    margin-bottom: var(--space-2);
    color: #172c75;
    letter-spacing: -0.02em;
}

.fud-v1 .metric-label {
    opacity: 0.9;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-xs);
}

/* ==================== HEADER IMAGE ==================== */
.fud-v1 .header-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fud-v1 .header-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-lg);
}

/* ==================== CLIENT OVERVIEW ==================== */
.fud-v1 .client-overview {
    background: #ffffff;
}

.fud-v1 .client-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

.fud-v1 .client-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.fud-v1 .client-details {
    display: grid;
    gap: var(--space-4);
}

.fud-v1 .detail-item {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.fud-v1 .detail-item:last-child {
    border-bottom: none;
}

.fud-v1 .detail-item strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    display: inline-block;
    min-width: 120px;
}

/* ==================== CHALLENGE SECTION ==================== */
.fud-v1 .challenge-section,
.fud-v1 .results-section {
    background: #f8f9fe;
}

.fud-v1 .solution-section {
    background: #ffffff;
}

.fud-v1 .challenge-intro,
.fud-v1 .solution-intro,
.fud-v1 .results-intro {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--text-secondary);
}

.fud-v1 .challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.fud-v1 .challenge-item {
    background: var(--bg-card);
    border: 1px solid rgba(23, 44, 117, 0.1);
    padding: var(--space-6);
    border-radius: var(--rounded-xl);
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fud-v1 .challenge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 44, 117, 0.12);
    background: #f8faff;
    border-color: rgba(23, 44, 117, 0.2);
}

.fud-v1 .challenge-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #172c75 0%, #2a45a8 100%);
    color: #ffffff;
    border-radius: var(--rounded-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(23, 44, 117, 0.25);
}

.fud-v1 .challenge-icon svg {
    stroke: #ffffff;
}

.fud-v1 .challenge-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.fud-v1 .challenge-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==================== STANDARDS COMPLIANCE ==================== */
.fud-v1 .standards-compliance {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--border-subtle);
    margin-top: var(--space-8);
}

.fud-v1 .standards-compliance h3 {
    margin-bottom: var(--space-6);
    text-align: center;
}

.fud-v1 .standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.fud-v1 .standard-item {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--rounded);
    border: 1px solid var(--border-subtle);
}

.fud-v1 .standard-item strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.fud-v1 .standard-item span {
    color: var(--text-secondary);
}

/* ==================== SOLUTION/UTM SYSTEMS ==================== */
.fud-v1 .utm-systems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.fud-v1 .utm-system {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--rounded-xl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid #172c75;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: left;
}

.fud-v1 .utm-system:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(23, 44, 117, 0.1);
}

.fud-v1 .utm-system h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.fud-v1 .utm-system p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.fud-v1 .utm-system ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.fud-v1 .utm-system li {
    padding: var(--space-2) 0;
    color: var(--text-primary);
    position: relative;
    padding-left: var(--space-6);
}

.fud-v1 .utm-system li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success, #10b981);
    font-weight: bold;
}

/* ==================== TECH ENHANCEMENTS ==================== */
.fud-v1 .tech-enhancements {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
}

.fud-v1 .tech-enhancements h3 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.fud-v1 .enhancement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.fud-v1 .enhancement-item {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rounded);
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
}

.fud-v1 .enhancement-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fud-v1 .enhancement-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.fud-v1 .enhancement-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==================== RESULTS SECTION ==================== */
.fud-v1 .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.fud-v1 .result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: var(--space-4);
    border-radius: var(--rounded);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.fud-v1 .result-item:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.fud-v1 .result-metric {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: var(--space-1);
    color: var(--accent);
}

.fud-v1 .result-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.fud-v1 .result-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: var(--text-sm);
}

/* ==================== COMPLIANCE ACHIEVEMENT ==================== */
.fud-v1 .compliance-achievement {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
}

.fud-v1 .compliance-achievement h3 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.fud-v1 .compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.fud-v1 .compliance-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: #ffffff;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid #10b981;
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.fud-v1 .compliance-item:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.fud-v1 .checkmark {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-base);
    flex-shrink: 0;
    margin-top: 2px;
}

.fud-v1 .compliance-item strong {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-lg);
}

.fud-v1 .compliance-item p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--text-base);
}

/* ==================== TESTIMONIAL SECTION ==================== */
.fud-v1 .testimonial-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fe 100%);
    padding: var(--space-20) 0;
    border-top: 1px solid rgba(23, 44, 117, 0.08);
    border-bottom: 1px solid rgba(23, 44, 117, 0.08);
}

.fud-v1 .testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.fud-v1 .quote-mark {
    font-size: 5rem;
    color: #172c75;
    opacity: 0.15;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    font-family: Georgia, serif;
}

.fud-v1 .testimonial-text {
    font-style: italic;
    margin: var(--space-8) 0;
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.fud-v1 .testimonial-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
}

.fud-v1 .testimonial-footer cite {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    font-style: normal;
}

/* ==================== CONCLUSION SECTION ==================== */
.fud-v1 .conclusion-section {
    background: var(--slate-50);
    padding: var(--space-12) 0;
    margin-bottom: 0;
}

.fud-v1 .conclusion-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
    max-width: 780px;
    margin: 0 auto;
}

.fud-v1 .conclusion-wrapper:has(.conclusion-content + .cta-content) {
    grid-template-columns: 2fr 1fr;
    max-width: none;
}

.fud-v1 .conclusion-content {
    background: #ffffff;
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

.fud-v1 .conclusion-text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.fud-v1 .cta-content {
    background: #ffffff;
    padding: var(--space-6);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.fud-v1 .cta-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.fud-v1 .cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* ==================== RELATED STUDIES ==================== */
.fud-v1 .related-studies {
    background: white;
    padding: var(--space-16) 0;
}

.fud-v1 .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.fud-v1 .related-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rounded-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow);
}

.fud-v1 .related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fud-v1 .related-image {
    position: relative;
    overflow: hidden;
}

.fud-v1 .related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--duration-slow);
}

.fud-v1 .related-item:hover .related-image img {
    transform: scale(1.05);
}

.fud-v1 .related-content {
    padding: var(--space-6);
}

.fud-v1 .related-content h3 {
    margin-bottom: var(--space-3);
}

.fud-v1 .related-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.fud-v1 .related-content h3 a:hover {
    color: var(--accent);
}

.fud-v1 .related-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.fud-v1 .related-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--rounded-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .fud-v1 .case-study-header {
        padding: var(--space-12) 0;
    }
    
    .fud-v1 .challenge-grid,
    .fud-v1 .enhancement-grid,
    .fud-v1 .utm-systems {
        grid-template-columns: 1fr;
    }
    
    .fud-v1 .conclusion-wrapper {
        grid-template-columns: 1fr;
    }
    
    .fud-v1 .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fud-v1 .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== CALL TO ACTION ==================== */
.fud-v1 .cta-section {
    background: linear-gradient(135deg, #172c75 0%, #0f172a 100%);
    color: #ffffff;
    padding: var(--space-16) 0;
    margin-top: var(--space-16);
    position: relative;
    overflow: hidden;
}

.fud-v1 .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.fud-v1 .cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fud-v1 .cta-box h3 {
    color: #ffffff;
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-6);
    font-weight: var(--font-extrabold);
}

.fud-v1 .cta-box p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.fud-v1 .cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.fud-v1 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--rounded-full);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    font-size: var(--text-base);
}

.fud-v1 .btn-primary {
    background: #ffffff;
    color: #172c75;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fud-v1 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #f8f9fe;
}

.fud-v1 .btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}

.fud-v1 .btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ==================== GENERAL BLOCKQUOTE ==================== */
.fud-v1 blockquote:not(.testimonial) {
    position: relative;
    background: #f8f9fe;
    border-left: 4px solid #172c75;
    padding: var(--space-8) var(--space-10);
    margin: var(--space-8) 0;
    border-radius: 0 var(--rounded-xl) var(--rounded-xl) 0;
    font-size: var(--text-xl);
    font-style: italic;
    color: #111827;
    line-height: var(--leading-relaxed);
    box-shadow: var(--shadow-sm);
}

.fud-v1 blockquote:not(.testimonial)::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(23, 44, 117, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.fud-v1 blockquote:not(.testimonial) footer {
    margin-top: var(--space-4);
    font-size: var(--text-base);
    font-style: normal;
    font-weight: var(--font-bold);
    color: #172c75;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.fud-v1 blockquote:not(.testimonial) footer::before {
    content: '';
    width: 30px;
    height: 2px;
    background: #172c75;
    display: inline-block;
}
