/* Case Studies Page Styles */

/* Case Studies Hero Section */
.case-studies-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--accent) 100%);
    text-align: center;
}

.case-studies-hero .hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.case-studies-hero .hero-subheadline {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Case Studies Grid */
.case-studies-grid {
    padding: 0rem 0 6rem 0;
    background: var(--background);
}

.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--primary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-study-card:hover::before {
    opacity: 0.05;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.client-avatar svg {
    width: 30px;
    height: 30px;
}

.vention-avatar {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}

.connect-avatar {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.forplayers-avatar {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.helpcare-avatar {
    background: linear-gradient(135deg, #10B981, #059669);
}

.crawford-avatar {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.elate-avatar {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.client-industry {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin: 0;
}

.card-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--accent);
    border-radius: var(--radius);
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.metric-icon svg {
    width: 20px;
    height: 20px;
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
}

.card-tagline {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
}

.card-cta svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.case-study-card:hover .card-cta svg {
    transform: translateX(4px);
}

/* Booking Section */
.booking-section {
    padding: 6rem 0;
    background: var(--card);
}

.booking-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.booking-subheadline {
    font-size: 1.2rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.booking-form-container {
    position: relative;
}

.booking-form {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-right {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

/* Calendar Section */
.calendar-section {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.calendar-section h3 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.calendar-note {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.calendar-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--accent);
    color: var(--primary);
}

.calendar-nav svg {
    width: 16px;
    height: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day-header {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.calendar-dates {
    display: contents;
}

.calendar-day {
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: var(--muted-foreground);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.available {
    background: var(--background);
    border: 1px solid var(--border);
}

.calendar-day.available:hover {
    background: var(--accent);
    border-color: var(--primary);
}

.calendar-day.selected {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-slot {
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.time-slot:hover {
    background: var(--accent);
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.timezone-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timezone-selector label {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.timezone-selector select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.9rem;
}

/* Form Actions */
.form-actions,
.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.primary-cta {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.primary-cta:hover {
    background: var(--chart-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-note {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 0.5rem;
}

.secondary-cta {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.secondary-cta:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.success-message h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* Footer Styles */
.footer {
    padding: 4rem 0;
    background-color: var(--foreground);
    color: var(--background);
}

.dark .footer {
    background-color: var(--card);
    color: var(--card-foreground);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.dark .footer-links a {
    color: var(--muted-foreground);
}

.footer-links a:hover {
    color: white;
}

.dark .footer-links a:hover {
    color: var(--card-foreground);
}

.footer-cta {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 2px solid var(--background);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.footer-cta:hover {
    background-color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.dark .footer-copy {
    color: var(--muted-foreground);
}

/* Ready to Get Similar Results CTA Section */
.ready-results-cta {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
}

.ready-results-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ready-results-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    text-align: center;
}

.ready-results-cta p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.ready-results-cta .cta-button {
    background: var(--primary-foreground);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    display: inline-block;
    white-space: nowrap;
    box-shadow: var(--shadow);
    letter-spacing: -0.01em;
}

.ready-results-cta .cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

/* Case Study Detail Page */
.case-study-detail {
    padding-top: 80px;
}

.breadcrumb {
    padding: 1rem 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.case-study-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--accent) 100%);
    text-align: center;
}

.header-content .client-name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.header-content .client-tagline {
    font-size: 1.3rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.metric-highlight {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    margin: 0 auto;
}

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

.metric-highlight .metric-label {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.case-study-content {
    padding: 6rem 0;
    background: var(--background);
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.content-section {
    background: var(--card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

.section-header h2 {
    color: var(--foreground);
    margin: 0;
}

.section-content {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.pain-points {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pain-points li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 2rem;
}

.pain-points li:before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--destructive);
    font-size: 1.2rem;
    font-weight: 700;
}

.system-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.system-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--muted-foreground);
    margin: 0;
}

.outcome-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--foreground);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.client-testimonial {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    text-align: center;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.quote-icon svg {
    width: 30px;
    height: 30px;
}

.client-testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.client-testimonial cite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.client-testimonial cite strong {
    color: var(--foreground);
    font-weight: 700;
}

.client-testimonial cite span {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.related-studies {
    padding: 4rem 0;
    background: var(--card);
}

.related-studies h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-card h3 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.related-metric {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .studies-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-card {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions,
    .booking-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta,
    .secondary-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .outcome-stats {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        padding: 2rem;
    }
    
    .content-section {
        padding: 2rem;
    }
    
    .system-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .case-studies-hero {
        padding: 6rem 0 4rem;
    }
    
    .case-studies-hero .hero-headline {
        font-size: 2rem;
    }
    
    .booking-headline {
        font-size: 2rem;
    }
    
    .metric-highlight {
        padding: 1.5rem;
    }
    
    .metric-highlight .metric-value {
        font-size: 2.5rem;
    }
    
    .client-testimonial blockquote {
        font-size: 1.2rem;
    }
    
    .ready-results-cta h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Count-up Animation */
.count-up {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

