/* =====================================================
   UNIFIED SERVICES PAGE STYLING
   Modern, Consistent Design System for All Service Pages
   ===================================================== */

/* Base Mobile-First Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.services-hero-unified *,
.services-section * {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Hero Section - Unified Design */
.services-hero-unified {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 140px 0 80px; /* Consistent padding with header clearance */
    position: relative;
    overflow: hidden;
    min-height: 45vh; /* Desktop: 45vh (320-500px range) */
    display: flex;
    align-items: center;
}

.services-hero-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.8;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.services-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.services-hero-subtitle {
    font-size: 1.4rem;
    color: #f1f5f9;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.services-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Modern Button System */
.services-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.services-btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.services-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    color: white;
    text-decoration: none;
}

.services-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.services-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Content Sections */
.services-section {
    padding: 100px 0;
}

.services-section-light {
    background: #ffffff;
}

.services-section-gray {
    background: #f8fafc;
}

.services-section-dark {
    background: #1e293b;
    color: white;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-section-dark .services-section-title {
    color: white;
}

.services-section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-section-dark .services-section-subtitle {
    color: #cbd5e1;
}

/* Feature Grid System */
.services-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile override for grid */
@media (max-width: 450px) {
    .services-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

.services-feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.services-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.services-feature-card:hover::before {
    transform: scaleX(1);
}

.services-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.services-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.services-feature-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.services-feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.services-feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.services-feature-list li::before {
    content: '✓';
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Stats Section */
.services-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Stats Section - 3 Column Centered */
.services-stats-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    justify-items: center;
}

.services-stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0; /* Prevent overflow */
    overflow: hidden;
}

.services-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.services-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

/* Stats Section - Light Background Variant */
.services-stats-light {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.services-stat-item-light {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-stat-item-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.services-stat-number-light {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.services-stat-label-light {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* Process Timeline */
.services-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.services-process-step {
    text-align: center;
    position: relative;
}

.services-process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    transition: transform 0.3s ease;
}

.services-process-step:hover .services-process-icon {
    transform: scale(1.1) rotate(5deg);
}

.services-process-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.services-process-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.services-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.services-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.services-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 898px) {
    .services-hero-unified {
        padding: 120px 15px 60px;
        min-height: 40vh; /* Mobile: Better height for mobile */
        text-align: center;
        overflow-x: hidden;
        width: 100%;
    }
    
    .services-hero-content {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .services-hero-badge {
        font-size: 0.8rem;
        padding: 10px 20px;
        margin-bottom: 1.5rem;
    }
    
    .services-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .services-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .services-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 2rem 0;
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .services-stat-item {
        text-align: center;
        padding: 1.5rem 1rem;
        min-width: 0;
    }
    
    .services-stat-number {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .services-stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .services-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .services-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .services-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .services-feature-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .services-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .services-section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .services-section-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        text-align: center;
        padding: 0 1rem;
    }
    
    .services-stats-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .services-process {
        grid-template-columns: 1fr;
    }
    
    .services-cta-title {
        font-size: 2rem;
    }
    
    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .services-hero-unified {
        padding: 100px 10px 50px;
        min-height: 50vh; /* Better height for small mobile screens */
        overflow-x: hidden;
    }
    
    .services-hero-content {
        padding: 0 0.25rem;
        max-width: 100%;
    }
    
    .services-hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        margin-bottom: 1.25rem;
    }
    
    .services-hero-title {
        font-size: 1.8rem; /* Smaller for very small screens */
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .services-hero-subtitle {
        font-size: 0.95rem; /* Smaller subtitle */
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
        line-height: 1.5;
    }
    
    .services-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 1.5rem 0;
        padding: 0 0.25rem;
    }
    
    .services-stat-item {
        padding: 1.25rem 0.75rem; /* Less padding on mobile */
        min-width: 0;
        overflow: hidden;
    }
    
    .services-stat-number {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .services-stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .services-hero-actions {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .services-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        max-width: 100%; /* Full width on very small screens */
        width: 100%;
    }
    
    .services-section {
        padding: 40px 0; /* Less padding */
    }
    
    .services-section-title {
        font-size: 1.6rem; /* Even smaller title */
    }
    
    .services-section-subtitle {
        font-size: 1rem;
    }
    
    .services-container {
        padding: 0 0.75rem; /* Less side padding */
    }
    
    .services-feature-card {
        padding: 1.5rem 1rem; /* Compact padding */
    }
    
    .services-feature-title {
        font-size: 1.2rem;
    }
    
    .services-feature-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .services-stats-3col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-process {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .services-cta-title {
        font-size: 1.6rem;
    }
    
    .services-cta-description {
        font-size: 1rem;
    }
}
