/* ===================================
   🆕 Modern Service Card Design
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Wider cards */
    gap: 1.5rem;
}

.service-card-modern {
    background: white;
    border-radius: 1.5rem;
    /* Larger border radius */
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Header: Avatar & Name */
.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-size: 1.25rem;
    font-weight: 800;
    /* Extra bold */
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(89, 136, 107, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.provider-avatar {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-gradient);
    border-radius: 1rem;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Body: Info Rows */
.card-body-modern {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: flex-start;
    /* Align to start (right in RTL) */
    gap: 0.35rem;
    /* Space between label and value */
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.info-label i {
    color: var(--primary);
    opacity: 0.8;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    width: 100%;
    padding-right: 1.8rem;
    /* Indent slightly under the text part of label */
}

/* Actions: Large Buttons */
.card-actions-modern {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-modern {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

/* Call Button */
.btn-call {
    background: #0D9488;
    /* Teal/Green matching image */
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(13, 148, 136, 0.2);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 148, 136, 0.3);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #22c55e;
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-modern {
        padding: 1.25rem;
    }

    .provider-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .btn-modern {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

/* Service Badges */
.service-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-badge.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.service-badge.new {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}