/* ENHANCED SERVICE CARDS - COMPREHENSIVE DESIGN SYSTEM */

/* Service Card Container Architecture */
.service-card-enhanced {
    border-radius: 20px;
    padding: 40px 30px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-enhanced:hover::before {
    opacity: 1;
}

.service-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Background Color Variables */
.service-card-enhanced.bg-color-03 {
    --bg-primary: #E8A798;
    --bg-secondary: #D4948B;
}

.service-card-enhanced.bg-color-04 {
    --bg-primary: #9BB4A3;
    --bg-secondary: #8AA89B;
}

/* Image Container Enhancement */
.service-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    margin-bottom: 20px;
}

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

.service-card-enhanced:hover .service-image {
    transform: scale(1.05);
}

/* Image Overlay System */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-enhanced:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Content Container */
.service-content-enhanced {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 20px;
}

/* Service Badge System */
.service-badge {
    margin-bottom: 15px;
}

.badge-text {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Typography Hierarchy */
.service-title-enhanced {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-description-enhanced {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Benefits List System */
.service-benefits {
    margin-top: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
}

.benefit-icon {
    color: #4CAF50;
    margin-right: 12px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.2);
    padding: 4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design Framework */
@media (max-width: 991.98px) {
    .service-card-enhanced {
        margin-bottom: 30px;
        min-height: 350px;
        padding: 30px 25px;
    }
    
    .service-image-container {
        height: 200px;
        margin-bottom: 25px;
    }
    
    .service-title-enhanced {
        font-size: 1.6rem;
    }
    
    .service-description-enhanced {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .abox-2-wrapper .row {
        flex-direction: column;
    }
    
    .service-card-enhanced {
        margin-bottom: 25px;
        min-height: auto;
        padding: 25px 20px;
    }
    
    .service-card-enhanced .row {
        flex-direction: column;
    }
    
    .service-image-container {
        height: 180px;
        margin-bottom: 20px;
    }
    
    .service-content-enhanced {
        padding: 0;
        text-align: center;
    }
    
    .service-title-enhanced {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .service-description-enhanced {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .service-benefits {
        margin-top: 15px;
    }
    
    .benefit-item {
        justify-content: center;
        margin-bottom: 6px;
    }
}

@media (max-width: 575.98px) {
    .service-card-enhanced {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .service-image-container {
        height: 160px;
        border-radius: 10px;
    }
    
    .service-title-enhanced {
        font-size: 1.3rem;
    }
    
    .service-description-enhanced {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .benefit-item {
        font-size: 0.8rem;
    }
    
    .overlay-icon {
        font-size: 2.5rem;
    }
}

/* Accessibility Enhancements */
.service-card-enhanced:focus-within {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.service-card-enhanced[role="article"] {
    cursor: pointer;
    position: relative;
}

/* Performance Optimizations */
.service-card-enhanced,
.service-image-container,
.service-image {
    will-change: transform;
    transform: translateZ(0);
}

/* Print Styles */
@media print {
    .service-card-enhanced {
        box-shadow: none;
        border: 2px solid #ccc;
        page-break-inside: avoid;
        transform: none !important;
    }
    
    .image-overlay,
    .service-badge {
        display: none;
    }
    
    .service-title-enhanced,
    .service-description-enhanced,
    .benefit-item {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-card-enhanced {
        box-shadow: 0 8px 30px rgba(255,255,255,0.1);
    }
    
    .badge-text {
        background: rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.2);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card-enhanced,
    .service-image,
    .image-overlay,
    .overlay-icon {
        transition: none;
        animation: none;
    }
    
    .service-card-enhanced:hover {
        transform: none;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .service-card-enhanced {
        border: 2px solid white;
    }
    
    .benefit-icon {
        background: white;
        color: black;
    }
    
    .badge-text {
        background: white;
        color: black;
        border: 2px solid black;
    }
}
