/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

/* Hero Banner */
.services-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1592424001806-258aeb1d7132?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 100px;
    margin-top: -100px; /* Offset for fixed navbar */
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(14, 27, 19, 0.95) 0%, rgba(14, 27, 19, 0.7) 100%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Service Overview Cards */
.service-overview-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

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

.service-overview-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(39, 174, 96, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-overview-card:hover .icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Individual Service Detail Sections */
.service-detail {
    padding: 6rem 0;
}

.service-detail:nth-child(even) {
    background-color: var(--color-light);
}

.service-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-detail:hover .service-image-wrapper img {
    transform: scale(1.05);
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #4a5568;
}

.service-features-list li i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Industry Cards */
.industry-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--color-primary);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.industry-card:hover i {
    transform: scale(1.1);
}

/* Vertical Workflow Timeline */
.workflow-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: rgba(39, 174, 96, 0.2);
}

@media (min-width: 768px) {
    .workflow-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.workflow-step {
    position: relative;
    margin-bottom: 3rem;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.workflow-number {
    position: absolute;
    left: 20px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.2);
}

@media (min-width: 768px) {
    .workflow-number {
        left: 50%;
        transform: translateX(-50%);
    }
}

.workflow-content {
    margin-left: 80px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    width: calc(100% - 80px);
}

@media (min-width: 768px) {
    .workflow-content {
        width: 42%;
        margin-left: 0;
    }
    
    .workflow-step:nth-child(odd) .workflow-content {
        margin-left: auto;
    }
    
    .workflow-step:nth-child(even) .workflow-content {
        margin-right: auto;
    }
    
    /* Arrows */
    .workflow-step:nth-child(odd) .workflow-content::before {
        content: '';
        position: absolute;
        top: 15px;
        left: -10px;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid white;
    }
    
    .workflow-step:nth-child(even) .workflow-content::before {
        content: '';
        position: absolute;
        top: 15px;
        right: -10px;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid white;
    }
}

/* Before and After Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
}

.ba-slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.ba-slider-img-after {
    clip-path: inset(0 0 0 50%); /* Start at 50% */
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: -1px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-label {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 4;
}

.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

/* Interactive Map Container */
.service-map-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.map-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.district-pill {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 20px;
    margin: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.district-pill:hover, .district-pill.active {
    background: var(--color-primary);
    color: white;
}