/* ================================
   AB Performance - Services Content CSS
   Modern Clean Design
   ================================ */

.ab-performance-services-content-section {
    padding: 100px 20px;
}

/* Background variations */
.ab-performance-services-content-white {
    background-color: #ffffff;
}

.ab-performance-services-content-grey {
    background: linear-gradient(135deg, #f5f5f5 0%, #eaeaea 100%);
}

.ab-performance-services-content-dark {
    background: #1a1a1a;
}

.ab-performance-services-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ab-performance-services-content-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Reverse layout for alternating sections */
.ab-performance-services-content-reverse {
    grid-template-columns: 1fr 1.1fr;
}

.ab-performance-services-content-reverse .ab-performance-services-content-text {
    order: 2;
}

.ab-performance-services-content-reverse .ab-performance-services-content-image {
    order: 1;
}

/* --------------------------------
   Text Content
   -------------------------------- */
.ab-performance-services-content-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #e1303a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.ab-performance-services-content-dark .ab-performance-services-content-label {
    color: #E9A329;
}

.ab-performance-services-content-text h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 20px;
}

.ab-performance-services-content-dark .ab-performance-services-content-text h2 {
    color: #ffffff;
}

.ab-performance-services-content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e1303a, #E9A329);
    border-radius: 2px;
}

.ab-performance-services-content-intro {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.5;
}

.ab-performance-services-content-dark .ab-performance-services-content-intro {
    color: rgba(255, 255, 255, 0.9);
}

.ab-performance-services-content-text p {
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.ab-performance-services-content-dark .ab-performance-services-content-text p {
    color: rgba(255, 255, 255, 0.7);
}

.ab-performance-services-content-text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------
   Image Content
   -------------------------------- */
.ab-performance-services-content-image {
    position: relative;
}

.ab-performance-services-content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

.ab-performance-services-content-dark .ab-performance-services-content-image img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Accent behind image */
.ab-performance-services-content-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e1303a 0%, #E9A329 100%);
    border-radius: 10px;
    z-index: 0;
}

.ab-performance-services-content-reverse .ab-performance-services-content-image::before {
    right: auto;
    left: -20px;
}

/* --------------------------------
   Lightbox
   -------------------------------- */
.ab-performance-services-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.ab-performance-services-lightbox.active {
    display: flex;
}

.ab-performance-services-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.ab-performance-services-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ab-performance-services-lightbox-close:hover {
    background: #e1303a;
}

.ab-performance-services-lightbox-close::before,
.ab-performance-services-lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
}

.ab-performance-services-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ab-performance-services-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 968px) {
    .ab-performance-services-content-section {
        padding: 80px 20px;
    }
    
    .ab-performance-services-content-layout,
    .ab-performance-services-content-reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .ab-performance-services-content-reverse .ab-performance-services-content-text,
    .ab-performance-services-content-reverse .ab-performance-services-content-image {
        order: unset;
    }
    
    .ab-performance-services-content-text h2 {
        font-size: 32px;
    }
    
    .ab-performance-services-content-intro {
        font-size: 17px;
    }
    
    .ab-performance-services-content-text p {
        font-size: 15px;
    }
    
    .ab-performance-services-content-image {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .ab-performance-services-content-image::before {
        top: 15px;
        right: -15px;
    }
    
    .ab-performance-services-content-reverse .ab-performance-services-content-image::before {
        left: -15px;
        right: auto;
    }
}

@media (max-width: 640px) {
    .ab-performance-services-content-section {
        padding: 70px 20px;
    }
    
    .ab-performance-services-content-layout {
        gap: 40px;
    }
    
    .ab-performance-services-content-text h2 {
        font-size: 28px;
    }
    
    .ab-performance-services-content-intro {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .ab-performance-services-content-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .ab-performance-services-content-image::before {
        top: 12px;
        right: -12px;
    }
    
    .ab-performance-services-content-reverse .ab-performance-services-content-image::before {
        left: -12px;
    }
}

@media (max-width: 480px) {
    .ab-performance-services-content-section {
        padding: 60px 15px;
    }
    
    .ab-performance-services-content-text h2 {
        font-size: 26px;
    }
    
    .ab-performance-services-content-intro {
        font-size: 15px;
    }
    
    .ab-performance-services-content-text p {
        font-size: 14px;
    }
    
    .ab-performance-services-content-image::before {
        display: none;
    }
    
    .ab-performance-services-lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
