/**
 * Service Pages - Custom CSS
 *
 * Additional styles for the comprehensive service page template.
 * Works alongside Tailwind CSS utility classes.
 *
 * @package LMS_Theme
 */

/* ============================================
   Service Hero Section
   ============================================ */

.service-hero {
    position: relative;
}

/* Removed dark overlay - light/dark mode handled via Tailwind classes in template */

/* ============================================
   Benefits Cards
   ============================================ */

.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Process Timeline
   ============================================ */

.process-step {
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 5rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(to bottom, theme('colors.primary.DEFAULT'), transparent);
}

.process-step:last-child::before {
    display: none;
}

/* ============================================
   Pricing Cards
   ============================================ */

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.popular {
    border-color: theme('colors.primary.DEFAULT');
    box-shadow: 0 20px 40px -10px rgba(24, 146, 135, 0.2);
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(24, 146, 135, 0.3);
}

[x-cloak] {
    display: none !important;
}

/* ============================================
   Testimonial Cards
   ============================================ */

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Service Cards (Related/Industries)
   ============================================ */

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-2px);
}

/* ============================================
   Case Study Cards
   ============================================ */

.case-study-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CTA Options
   ============================================ */

.cta-option {
    position: relative;
    transition: all 0.3s ease;
}

.cta-option:hover {
    transform: translateY(-4px);
}

/* ============================================
   Comparison Table
   ============================================ */

.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   Stats Counter Animation
   ============================================ */

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

.stat-number {
    animation: countUp 0.5s ease-out forwards;
}

/* ============================================
   Reveal Animation (Intersection Observer)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.reveal[style*="animation-delay"] {
    transition-delay: var(--delay, 0ms);
}

/* ============================================
   Glow Effects
   ============================================ */

.shadow-glow-white {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.shadow-glow-white:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

/* ============================================
   Mini CTA Sections
   ============================================ */

.mini-cta-section {
    position: relative;
    overflow: hidden;
}

.mini-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(24, 146, 135, 0.1) 0%, transparent 50%, rgba(244, 162, 97, 0.1) 100%);
    pointer-events: none;
}

/* ============================================
   Trust Bar
   ============================================ */

.trust-bar {
    position: relative;
    z-index: 10;
}

/* ============================================
   Line Clamp Utility
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Service Description Prose Overrides
   ============================================ */

.service-description p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.service-description ul,
.service-description ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

.service-description h2,
.service-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Dark Mode Adjustments
   ============================================ */

.dark .benefit-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.dark .service-card:hover,
.dark .industry-card:hover {
    box-shadow: 0 20px 40px -10px rgba(24, 146, 135, 0.15);
}

.dark .testimonial-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .benefit-card:hover,
    .service-card:hover,
    .industry-card:hover,
    .testimonial-card:hover,
    .case-study-card:hover,
    .cta-option:hover {
        transform: none;
    }

    .process-step::before {
        left: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .mini-cta-section,
    .trust-bar,
    .final-cta {
        display: none;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .service-hero {
        min-height: auto;
        padding: 2rem 0;
        background: #f5f5f5 !important;
    }
}
